body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;

    /* Background Image */
    background-image: url("assets/snake1.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
/* body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: antiquewhite;
    text-align: center;
} */

/* #game-arena {
    width: 600px;
    height: 600px;
    background-color: #333;
    position: relative;
    border: 5px solid #666;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
} */

#game-arena {
    width: 600px;
    height: 600px;
    position: relative;
    border: 5px solid #666;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background-image: url("assets/snake3.jpg");
    background-size: 20px 20px;
    background-repeat: repeat;
}

#score-board {
    font-size: x-large;
    font-weight: bold;
    color: black;
    margin: 10px 0;
}

.start-button {
    background-color: orangered;
    color: white;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    margin: 4px 0;
    cursor: pointer;
    border: none;
    border-radius: 6px;
}

.food {
    width: 20px;
    height: 20px;
    background-color: red;
    position: absolute;
    border-radius: 50%;
    animation: blink 1s infinite;
}

#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

#restart-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: crimson;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#game-over-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-size: 24px;
}

#play-again-btn {
    margin-top: 15px;
    padding: 12px 25px;
    font-size: 18px;
    background: limegreen;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

@keyframes blink {
    50% {
        opacity: 0.5;
    }
}

.snake {
    width: 20px;
    height: 20px;
    background-color: #2e8bf5;
    position: absolute;
    border-radius: 5px;
}