/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
    overflow: hidden;
}

/* Game container and canvas */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Game UI */
#game-ui {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.game-stats {
    display: flex;
    gap: 20px;
}

.score, .lives {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 163, 255, 0.8);
}

/* Buttons */
.button {
    background-color: #4fc3f7;
    color: #121212;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button:hover {
    background-color: #81d4fa;
    transform: scale(1.05);
}

.icon-button {
    background-color: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-button:hover {
    transform: scale(1.1);
    color: #4fc3f7;
}

/* Overlay screens (start and game over) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 20;
}

.overlay .content {
    text-align: center;
    background-color: rgba(18, 18, 18, 0.85);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(79, 195, 247, 0.3);
}

.overlay h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #4fc3f7;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

.overlay p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-stats {
        gap: 10px;
    }
    
    .score, .lives {
        font-size: 16px;
    }
    
    .overlay .content {
        padding: 30px;
    }
    
    .overlay h1 {
        font-size: 30px;
    }
    
    .overlay p {
        font-size: 16px;
    }
    
    .button {
        padding: 10px 20px;
    }
}