*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', 'sans-serif';

}
body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #E3F2FD;
}
.wrapper{
    width: 65vmin;
    height: 70vmin;
    display: flex;
    overflow:  hidden;
    flex-direction: column;
    background:  #293447;
    border-radius: 10px;
}
.game-details{
    color: #B8C6DC;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 20px 27px;
    display: flex;
    justify-content: space-between;
}
.play-board{
    width: 100%;
    height: 100%;
    display: grid;
    grid-template: repeat(30, 1fr) / repeat(30, 1fr);
    background: #212837;

}
.play-board .food{
    background: #FF003D;
}
.play-board .head{
    background: #60CBFF;
}
.controls{
    display: none;
    justify-content: space-between;
}
.controls i{
    padding: 25px 0;
    color: #B8C6DC;
    text-align: center;
    cursor: pointer;
    font-size: 1.3rem;
    width: calc(100% / 4);
    border-right: 1px solid #171b26;
}
@media screen and (max-width: 800px){
    .wrapper{
        width: 90vmin;
        height: 115vmin;
    }
    .game-details{
        font-size: 1rem;
        padding: 15px 27px;
    }
    .controls{
        /* display: flex; we change this so as to have a better buttons layout*/
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1px;
        justify-items: center;
        align-items: center;
    }
    .controls i{
        padding: 15px;
        font-size: 1rem;
    }
    .controls i:nth-child(1){ grid-area: 2 / 1; } /* left */
    .controls i:nth-child(2){ grid-area: 1 / 2; } /* up */
    .controls i:nth-child(3){ grid-area: 2 / 3; } /* right */
    .controls i:nth-child(4){ grid-area: 3 / 2; } /* down */
}