/* Basic Reset and Body Styling */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrollbars */
    height: 100%;
    width: 100%;
    background-color: #000; /* Black background */
    color: white;
    font-family: sans-serif;
}

/* Canvas takes up the full space */
canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    /* --- FIX #1: Ensure canvas is behind overlays --- */
    z-index: 1; 
}

/* --- Overlay Styles --- */
/* Common styles for both overlays */
#loading-overlay, #audio-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; 
    flex-direction: column;
    transition: opacity 0.5s ease-out;

    /* --- NEW BACKGROUND IMAGE STYLES --- */
    /* This layers a semi-transparent black color over your image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://pub-9da94effa96f44bb8d6f4ff32e9907a6.r2.dev/images/IKYHWM_FINAL_2.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hidden {
    display: none !important;
}

.prompt-box {
    text-align: center;
    font-family: 'Blackout', sans-serif;
}

.prompt-box p {
    font-size: 24px;
    margin-bottom: 20px;
}

#loading-text {
    font-size: 24px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

#progress-bar-container {
    width: 300px;
    height: 20px;
    border: 2px solid white;
    margin-bottom: 10px;
    /* --- FIX #2: Center the progress bar container --- */
    margin-left: auto;
    margin-right: auto;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: white;
    transition: width 0.2s ease-out;
}

#progress-percent {
    font-size: 18px;
}

#start-button {
    font-family: 'Blackout', sans-serif;
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 24px;
    padding: 10px 40px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

#start-button:hover {
    background-color: white;
    color: black;
}