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

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

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



.score-container {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    width: 100%;
    padding: 20px 40px;
    font-family: "Tektur", sans-serif;
    font-size: 32px;
    font-weight: bold;
}

#scoreBox, #highscoreBox {
    position: static;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
}

#board {
    background: linear-gradient(rgb(139, 141, 139), rgb(245, 245, 191));
    width: 90vmin;
    height: 80vmin;
    border: 5px solid black;
    border-radius: 10px;
    display: grid;
    grid-template-rows: repeat(18, 1fr);
    grid-template-columns: repeat(18, 1fr);
}

.head {
    background: linear-gradient(rgb(246, 123, 123), rgb(243, 243, 125));
    border: 2px solid rgb(26, 1, 26);
    transform: scale(1.02);
    border-radius: 9px;
}

.snake {
    background-color: purple;
    border: .25vmin solid white;
    border-radius: 12px;
}

.food {
    background: linear-gradient(red, purple);
    border: .25vmin solid black;
    border-radius: 8px;
}

/* ✅ Responsive layout under 500px */
@media (max-width: 850px) {
    .score-container {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        gap: 8px;
        font-size: 20px;
    }
}
