*{
  box-sizing: border-box;  
}

body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

::-webkit-scrollbar {
    display: none;
}

.container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(5, 1fr);
    height: 100vh;
}

ul{
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
}

li{
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
    margin: 20px;
    width: fit-content;
    padding: 5px;
    border-radius: 3px;
    font-size: 20px;
    box-shadow: 5px 5px 10px rgb(0, 0, 0);
    transition: 0.2s;
}

li:hover{
    transform: scale(1.1);
}

a{
    text-decoration: none;
}

.logo{
    max-height: 70%;
    background-color: transparent;
}

.box{

}

.ajfon{
    max-height: 65%;
    object-fit: cover;
}

.box:nth-of-type(1){
    background-color: rgb(209, 209, 209);
    height: 219px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box:nth-of-type(2){
    background-color: rgb(209, 209, 209);
    height: 219px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box:nth-of-type(3){
    background-color: rgb(209, 209, 209);
    height: 219px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box:nth-of-type(4){
    background-color: white;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.box:nth-of-type(5){
    background-color: white;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.box:nth-of-type(6){
    background-color: white;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.box:nth-of-type(7){
    background-color: rgb(209, 209, 209);
    height: 200px;
}
.box:nth-of-type(8){
    background-color: rgb(209, 209, 209);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.box:nth-of-type(9){
    background-color: rgb(209, 209, 209);
    height: 200px;
}

@media screen and (max-width: 950px){
    .container{
        grid-template-columns: 1fr 1fr;
    }
    .box:nth-of-type(7){
        display: none;
    }

    .box:nth-of-type(9){
        display: none;
    }
    .box:nth-of-type(8){
    background-color: rgb(209, 209, 209);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: 1/3;
    }

    .box:nth-of-type(3){
        grid-column: 1/3;
    }
    .box:nth-of-type(6){
        grid-column: 1/3;
    }
}

@media screen and (max-width: 768px){
    .container{
    grid-template-columns: 1fr;

}

.box:nth-of-type(7){
    display: none;
}

.box:nth-of-type(9){
    display: none;
}

.box:nth-of-type(1){
    background-color: rgb(209, 209, 209);
    height: 219px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box:nth-of-type(2){
    background-color: rgb(209, 209, 209);
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.box:nth-of-type(3){
    background-color: rgb(209, 209, 209);
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box:nth-of-type(8){
    grid-column: revert;
}

    .box:nth-of-type(3){
        grid-column: revert;
    }
    .box:nth-of-type(6){
        grid-column: revert;
    }
}