*{
    box-sizing: border-box;
}

body{
    background-color: rgb(252, 221, 201);
    margin: 0;
    font-family: sans-serif;
}
header{
    background-color: rgb(70, 45, 45);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
h1{
    margin-left: 10px;
}
nav{
    display: flex;
    gap: 20px;
    margin-right: 10px;
}
a{
    color: white;
    text-decoration: none;
}

.container{
    padding-top: 50px;
    max-width: 1200px;
    min-height: 100dvh;
    margin: auto;
    border-radius: 5px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    grid-auto-rows: minmax(150px, auto);
}

.box{
    background-color: rgb(116, 79, 79);
    color: white;
    font-size: 1em;
    border: 1px solid rgb(73, 33, 33);
    padding: 20px;
    border-radius: 5px;
}

footer{
    background-color: rgb(70, 45, 45);
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}




@media screen and (max-width: 768px) {
    .container{
        grid-template-columns: 1fr;
        grid-template-rows: revert;
    }
   
}

@media screen and (min-width: 778px)and ( max-width: 968px)  {
  
.container{
    padding-top: 50px;
    max-width: 1200px;
    min-height: 100dvh;
    margin: auto;
    border-radius: 5px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    grid-auto-rows: minmax(150px, auto);
}
.box:nth-of-type(1){
    background-color: rgb(70, 45, 45);
    grid-column: 1/3;

}
.box:nth-of-type(9){
    background-color: rgb(70, 45, 45);
    grid-column: 1/3;

}
}