@import url('https://fonts.googleapis.com/css2?family=New+Tegomin&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.body {
    background: url("img.jpg") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#scoreBox {
    position: absolute;
    top: 9px;
    right: 200px;
    font-size: 39px;
    font-weight: bold;
    font-family: 'New Tegomin', serif;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
    z-index: 10;
}

#hiscoreBox {
    position: absolute;
    top: 59px;
    right: 140px;
    font-size: 39px;
    font-weight: bold;
    font-family: 'New Tegomin', serif;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
    z-index: 10;
}

.board {
    background: linear-gradient(rgb(170, 236, 170), rgb(236, 236, 167));
    width: 90vmin;
    height: 92vmin;
    border: 2px solid black;
    display: grid;
    grid-template-rows: repeat(18, 1fr);
    grid-template-columns: repeat(18, 1fr);
    cursor: crosshair;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 1;
}

.head {
    background: linear-gradient(rgb(240, 124, 124), rgb(228, 228, 129));
    border: 2px solid rgb(34, 4, 34);
    transform: scale(1.02);
    border-radius: 9px;
}

.snake {
    background-color: purple;
    border: 0.25vmin solid white;
    border-radius: 12px;
}

.food {
    background: linear-gradient(red, purple);
    border: 0.25vmin solid black;
    border-radius: 8px;
}

@media (max-width: 768px) {
    #scoreBox, #hiscoreBox {
        font-size: 26px;
        right: 20px;
    }

    .board {
        width: 95vmin;
        height: 95vmin;
    }
}
