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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    user-select: none;
}

/* Game container - covers entire viewport */
#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    cursor: crosshair;
}

/* Hidden target area - 300x300px as specified */
#target-area {
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.1s ease;
}



/* Game UI overlay */
#game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Score display - top right corner */
#score {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    pointer-events: none;
}

/* Game timer display - top left corner */
#game-timer {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    pointer-events: none;
}

/* Instructions panel - centered */
#instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    pointer-events: auto;
}

#instructions h1 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: -0.5px;
}

#instructions p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
button {
    background-color: #333;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background-color: #444;
}

#start-button, #restart-button {
    margin-top: 20px;
    font-size: 18px;
    padding: 15px 30px;
}

/* Background music controls - bottom left corner */
#bg-music-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    pointer-events: auto;
    min-width: 200px;
}

#bg-music-controls label {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

#bg-volume-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

#bg-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

#bg-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
}

/* Game over screen */
#game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 10px;
    z-index: 20;
    pointer-events: auto;
}

#game-over h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #FFF;
    letter-spacing: -0.5px;
}

#game-over p {
    font-size: 18px;
    margin-bottom: 20px;
}

#game-over #timer-display {
    font-size: 24px;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 30px;
    letter-spacing: -0.25px;
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    #instructions {
        padding: 20px;
        margin: 20px;
    }
    
    #instructions h1 {
        font-size: 28px;
    }
    
    #score {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    #game-timer {
        font-size: 16px;
        padding: 8px 12px;
    }
} 