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

 /* Update the root variables */
:root {
    --arcade-green: #4CAF50;
    --light-green: #8BC34A;
    --dark-green: #2E7D32;
    --arcade-yellow: #d7c228;
}

body {
    margin: 0;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
}

canvas {
    display: block;
    margin: 0 auto;
    border: 2px solid var(--arcade-green);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
}

h1 {
    color: #00ffcc;
    text-align: center;
    font-size: 48px;
    margin-top: 20px;
}

.score {
    color: var(--dark-green);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.instructions {
    color: #ffffff;
    font-size: 18px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.neon {
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc, 0 0 20px #00ffcc;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.button {
    background-color: #00ffcc;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    animation: pulse 1.5s infinite;
}

.button:hover {
    background-color: #009999;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: var(--arcade-green);
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--arcade-green);
    border-top: 5px solid #f0f0f0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#game-container {
    position: relative;
}

#gameCanvas {
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
}

#score, #lives {
    color: var(--dark-green);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

#score {
    top: 20px;
    right: 20px;
}

#lives {
    top: 20px;
    left: 20px;
}

#power-ups {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.power-up {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--neon-yellow);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-yellow);
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(182, 182, 182, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    z-index: 1000;
}

.game-over h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--neon-pink);
    color: var(--dark-green);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.game-over button {
    background: var(--arcade-green);
    border: none;
    padding: 15px 30px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.game-over button:hover {
    background: var(--dark-green);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#restartButton {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}

#restartButton:hover {
    background: #45a049;
}