html{
width: 100%;
    height: 100%;
}
body{
    width: 100%;
    height: 100%;
    margin: 0px;
    background: url("ttt.jpg") center / cover no-repeat fixed;
    background-color:rgb(101, 99, 99);

}
#wrapper{
    width: 100%;
    height: 100%;
    display: grid;
   
    grid-template-columns:20% 20% 20% 20% 20%;
    grid-template-rows: 20% 20% 20% 20% 20%;


    
}
#desktop{
    width:100%;
    height: 100%;
    grid-row: 1/6;
    grid-column: 1/6; 

}
#knappar{
    grid-row: 5;
    grid-column: 1/6;
    display: flex;
    flex-direction: row;

    justify-content: space-around;
    position: relative;
    z-index: 10;

}
.knapp {
    width: 20%;
    height: 30%;
    align-self: center;
    background-color: black;
    color: white;
    border-radius: 20%;
    border: none;
    font-size: 18px;
    position: relative;
    z-index: 11;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.knapp:hover {
    transform: scale(1.08);
    box-shadow: 0 0 10px white,
                0 0 20px white,
                0 0 30px rgba(255, 255, 255, 0.5);
    cursor: pointer;
}


#h1{
    color:white;
    grid-row:1;
    grid-column:2/5;
    text-align: center;
    align-content: center;
}

#aboutme{
    color:white;
    grid-row:2;
    grid-column:2/5;
    text-align: center;


}
#welcome{
    color:white;
    grid-row:2;
    grid-column:2/5;
    text-align: center;
    align-content: center;

    transition: all 0.8s ease; } 

.text:hover
{transform: scale(1.08);
    text-shadow: 
    0 0 10px white, 
    0 0 20px white, 
    0 0 30px rgba(255, 255, 255, 0.5); 
    cursor: pointer;
    transition: all 0.8s ease;
}

.text{
        background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

#figma{
    color:white;
    grid-row:1;
    grid-column:2/5;
    text-align: center;
   
}

#contact{
    color:white;
    grid-row:2;
    grid-column:2/5;
    text-align: center;
}

#figmap{
    color:white;
    grid-row:2;
    grid-column:2/5;
    text-align: center;
}


.loggor{
    width: 30%;
    border-radius: 50%;
}
#bildkeeper{
    width: 100%;
    background-color: brown;
    grid-row: 5;
    grid-column: 3/4;
    display: flex;
    justify-content: space-around;
    align-items: center;

}

#boxes {
    margin: 20px auto;
    width: 100%;
    height: 100%;

    grid-column: 1 / 6;
    grid-row: 1 / 5;

    display: grid;

    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);

    gap: 20px;
}

.project:hover
{transform: scale(1.08);
    text-shadow: 
    0 0 10px white, 
    0 0 20px white, 
    0 0 30px rgba(255, 255, 255, 0.5); 
    cursor: pointer;
    transition: all 0.8s ease;
}

.project {
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;

    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
}


.project img {
    width: 80%;
    height: 80%;
    object-fit: cover;
}

.project span {
    color: white;
    font-size: 18px;
    font-weight: bold;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255,);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    padding: 8px 20px;
    border-radius: 8px;

    text-shadow: 0 0 5px rgb(0, 0, 0);
    margin: 5px;
}


#pic{
    grid-row: 3/5;
    grid-column: 4/6;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#minbild {
    grid-row: 3/ 5;
    grid-column: 1 / 4;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: flex;
    justify-content: center;
    align-items: center;

    margin-right: 5px;
    margin-left: 5px; } 

    .bildhover:hover
    {transform: scale(1.08);
         text-shadow: 
         0 0 10px white, 
         0 0 20px white, 
         0 0 30px rgba(255, 255, 255, 0.5); 
         cursor: pointer;
}




@media (max-width: 700px) {
    #boxes {
        display:grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 150px);
        height: auto;
    }
    #wrapper{
         display: grid;
    grid-template-columns:20% 20% 20% 20% 20%;
    grid-template-rows: 20% 20% 20% 20% 20%;
    }
    .project img {
    width: 60%;
    height: 60%;
    object-fit: cover;
    }

    .project {
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none;

    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    }


    #minbild{
        grid-row: 3/4;
        width: 100%;
        height: 100%;
        object-fit: contain;
    
    }
    #pic{
            grid-row: 3/4;
            width: 100%;
            height: 100%;
            object-fit: contain;
        
    }


}

