@import url('https://fonts.googleapis.com/css2?family=New+Tegomin&display=swap');
	@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.body{
    background: url("bg.jpg");
    min-height: 100vh;
    background-size: 100vw 100vh;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scoreBox{
    position: absolute;
    top: 9px;
    right: 50px;
    font-size: 39px;
    font-weight: bolder;
    text-shadow: 2px 2px 5px white;
    font-family: 'New Tegomin', serif;
}

#hiscoreBox{
    position: absolute;
    top: 59px;
    right: 50px;
    font-size: 39px;
    font-weight: bolder;
    color: white;
    text-shadow: 2px 2px 5px black;
    font-family: 'New Tegomin', serif;
}

#board{
    background: linear-gradient(#799fe0, #8f9bb0);
    width: 90vmin;
    height: 92vmin;
    border: 2px solid black;
    display: grid;
    grid-template-rows: repeat(36, 1fr);
    grid-template-columns: repeat(36, 1fr);
}

.head{
    background: linear-gradient(rgb(240, 124, 124), rgb(228, 228, 129));
    border: 1.9px solid rgb(34, 4, 34);
    transform: scale(1.3);
    border-radius: 42%;
    z-index: 3;
}

.snake{
    background-color: #ff0;
    border: 0.01px solid white;
    border-radius: 50%;
    filter: blur(0.5px);
    box-shadow:2px 2px 5px .05px #000, inset 1px 4px 10px #0B8A00;
    z-index: 2;
}

.food{
    background: linear-gradient(red, purple);
    border: .25vmin solid black;
    border-radius: 50%;
    transform: scale(1.2);
}

#spFoodID{
    background: linear-gradient(yellow, white);
    border: .25vmin solid black;
    border-radius: 50%;
    transform: scale(1.7);
}

.scoreNumber{
    left: 0%;
    top: 0%;
    width: 29%;
    height: 100%;
    position: absolute;
}

#scoreNum{
    color: white;
    text-shadow: 2px 2px 5px black;
    z-index: 3;
    font-size: 500%;
    opacity: 1;
    position: relative;
    font-family: 'Itim', cursive;
}

.anime{
    animation: anime .5s linear;
}

@keyframes anime{
    0%{
        transform: scale(0);
        opacity: 0;
    }
    35%{
        transform: scale(1);
        opacity: 1;
    }
    70%{
        transform: scale(.9);
        opacity: 1;
    }
    100%{
        transform: scale(.8);
        opacity: 0;
    }
}