body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #2c3e50;
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

.game-wrapper {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#gameContainer {
    position: relative;
    width: 400px;
    height: 400px;
    background-color: #34495e;
    border: 3px solid #2ecc71;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#snakeHead, .snake-tail {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #2ecc71;
    border-radius: 5px;
    transition: all 0.1s ease;
}

#food {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#timer, #roundInfo, #score {
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#gameOverScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

#gameOverScreen button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#gameOverScreen button:hover {
    background-color: #2980b9;
}