@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans' sans-serif;
}
body{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-image: radial-gradient(#104069,#000000);
    flex-direction: column;
}
.wrapper{
    width: 65vmin;
    height: 70vmin;
    display: flex;
    overflow: hidden; 
    flex-direction: column;
    border-radius: 5px;
    background: #293447;
    border: 5px double #fff;
}
.game-details{
    color: #B8C6DC;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 20px 27px;
    display: flex;
    justify-content: space-between;
    border-bottom: 3px solid #fff;
}
.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;
    }
    .controls i{
        padding: 15px 0;
        font-size: 1rem;
    }
}
#exit{
    margin: 1em auto 0 auto;
    background-color: #ff0000;
    color: #ffffff;
    padding: 10px 100px;
    border: none;
    border-radius: 5px;
    font-size: 20px;
    letter-spacing: 10px;
    font-weight: 600;
}
#exit:hover{
    background-color: #f73333;
    cursor: pointer;
}