@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #0d0d0d;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}

header {
    margin-top: 20px;
    font-size: 40px;
    color: #00FF00;
    text-shadow: 2px 2px 20px #00FF00, -2px -2px 20px #00FF00;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 2px 2px 20px #00FF00, -2px -2px 20px #00FF00;
    }

    100% {
        text-shadow: 2px 2px 40px #00FF00, -2px -2px 40px #00FF00;
    }
}

.game-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    font-size: 18px;
}

#gameCanvas {
    background: radial-gradient(circle, rgba(43, 43, 43, 0.8), rgba(30, 30, 30, 0.95));
    border: 5px solid #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 0 10px #FFD700;
    margin: 30px auto;
    width: 800px;
    height: 1080px;
}

.controls {
    margin: 30px 0;
}

button {
    background-color: #333;
    color: #fff;
    font-size: 16px;
    padding: 15px 30px;
    border: 2px solid #FFD700;
    margin: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

button:hover {
    background-color: #FFD700;
    color: #0d0d0d;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.5), 0 0 10px #FFD700;
    transform: scale(1.05);
}

#score {
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.score-updated {
    color: #00FF00;
    transform: scale(1.2);
    transition: transform 0.5s ease, color 0.5s ease;
}

#game-over {
    display: none;
    font-size: 64px;
    color: #FF4500;
    text-shadow: 2px 2px 40px #FF4500, -2px -2px 40px #FF4500;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.show-game-over {
    opacity: 1;
    display: block;
}

.message {
    font-size: 28px;
    color: #FFD700;
    margin-top: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 10px #FFD700;
    }

    100% {
        text-shadow: 0 0 25px #FFD700, 0 0 50px #FFD700;
    }
}

.high-scores-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.score-box {
    background-color: #1e1e1e;
    padding: 20px;
    border: 2px solid #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
    text-align: left;
    width: 200px;
}

.score-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.5);
}

footer {
    margin-top: 40px;
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 20px 0;
    background-color: #1e1e1e;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.5);
}