@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    color: #fff;
}

html, body{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #17a33f;
    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
}

.app-container{
    width: 36rem;
    height: 36rem;
    background-color: #808E62;
    padding: 0rem 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 1rem;
    border: 12px solid #B3C194;
    outline: 10px solid #4F5440;
}

h1{
    margin: 0rem 0rem 2.5rem;
    font-size: 4rem;
    font-weight: 100;
}
.scores{
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.scores p{
    padding: 0.5rem 0 1.2rem;
    font-size: 2rem;
}

.board{
    width: 85%;
    height: 87%;
    background-color: #B3C194;
    display: grid;
    grid-template-columns: repeat(21,1fr);
    grid-template-rows: repeat(21,1fr);
}

.btn{
    width: 8rem;
    height: 3.5rem;
    font-family: "VT323", monospace;
    margin: 2rem;
    padding: 0.7rem;
    font-size: 2rem;
    color: white;
    background-color:rgba(6, 202, 16, 0.897);
    outline: none;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
}

.head{
    background-color:rgba(9, 194, 92, 0.904);
    /* border-radius: 0.5rem; */
    /* z-index: 22; */

}

.snake{
    background-color: #ebf655;
    z-index: 22;
}

.food{
    background-color: rgba(190, 36, 16, 0.849);
    border-radius: 50%;
    /* background-color: #dedede;
    border: #999 5px solid; */
}

img{
    height: 450px;
    width: 260px;
    object-fit: contain;
    position: absolute;
    left: calc(100vw - 37vw);
    bottom: calc(100vh - 86vh);
}


@media  screen and (max-width:1750px)  {
    img{
        height: 450px;
        left: calc(100vw - 36vw);
        bottom: calc(100vh - 89vh);
    }
}

@media screen and (max-width:750px){
    .app-container{
        width: 30rem;
        height: 30rem;
    }
    img{
        display: none;
    }
}
@media screen and (max-width:550px){
    .app-container{
        width: 25rem;
        height: 25rem;
    }
}
@media screen and (max-width:450px){
    .app-container{
        width: 22rem;
        height: 27rem;
    }
 
}
@media screen and (max-width:390px){
    .app-container{
        width: 20rem;
        height: 27rem;
    }
    
}