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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.game-container {
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.header {
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; }
    to { text-shadow: 0 0 15px #00ffff, 0 0 25px #00ffff, 0 0 35px #00ffff; }
}

.score-board {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    background: rgba(0, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #00ffff;
}

.player-score {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #00ffff;
}

.player-score span:last-child {
    font-size: 2rem;
    font-weight: bold;
    color: #ffff00;
}

.lives {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.player-lives {
    background: rgba(255, 255, 0, 0.1);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #ffff00;
}
.powerup-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    border-color: #00ffff;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #ffffff;
}

.legend-box {
    width: 14px;
    height: 14px;
    display: inline-block;
    border: 1px solid #ffffff;
    border-radius: 3px;
}

.player-lives span:last-child {
    color: #ffff00;
    font-weight: bold;
    font-size: 1.2rem;
}

#gameCanvas {
    border: 3px solid #00ffff;
    border-radius: 10px;
    background: #000000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    margin-bottom: 20px;
}

.controls {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.control-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    min-width: 200px;
}

.control-section h3 {
    color: #00ffff;
    margin-bottom: 8px;
}

.control-section p {
    color: #cccccc;
    font-size: 0.9rem;
}

.game-over, .start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #ff0000;
    text-align: center;
    z-index: 1000;
}

.start-screen {
    border-color: #00ff00;
}

.game-over h2, .start-screen h2 {
    color: #ff0000;
    margin-bottom: 20px;
    font-size: 2rem;
}

.start-screen h2 {
    color: #00ff00;
}

.game-over p, .start-screen p {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

button {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: linear-gradient(45deg, #0080ff, #00ffff);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

button:active {
    transform: scale(0.95);
}

/* Responsive design */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    #gameCanvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    
    .score-board, .lives {
        flex-direction: column;
        gap: 10px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-section {
        min-width: 150px;
    }
}

/* Particle effects for explosions */
.explosion {
    position: absolute;
    pointer-events: none;
    z-index: 999;
}

/* Power-up indicator */
.power-up-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ffff00;
    color: #ffff00;
    font-weight: bold;
}
