/* Chalk theme accent tokens (see static/css/edu-theme.css :root for the
   canonical values). The ocean scene itself stays black/underwater on
   purpose -- that's the simulation's content, not chrome -- so this file
   only pulls in the accent hues, used to brand the overlay UI (panels,
   stats, slider thumbs, back link), not the primary/secondary/text tokens
   edu-theme uses for a light page background. */
:root {
    --accent-blue: #96305F;
    --accent-purple: #D9A441;
    --accent-green: #2F7A6B;
    --accent-deep: #7A2650;
    --hairline: #E3DFD9;
    /* Lightened plum for legible text on the dark overlay panels below --
       --accent-blue itself is tuned for white surfaces and is too low-
       contrast against this scene's near-black glass. */
    --accent-blue-bright: #D97FA8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#ocean {
    display: block;
    cursor: none;
}

#controls {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(20, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(150, 48, 95, 0.25);
    min-width: 250px;
}

#stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: 'IBM Plex Mono', 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent-blue-bright);
}

#stats span {
    display: block;
}

#settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#settings label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: #c9c3cc;
}

#settings input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

#settings input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-blue-bright);
    border-radius: 50%;
    cursor: pointer;
}

#settings input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-blue-bright);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#settings input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--accent-blue-bright);
}

#settings label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
}

#instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 10, 20, 0.7);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 25px;
    border: 1px solid rgba(150, 48, 95, 0.25);
    font-size: 14px;
    color: #c9c3cc;
    text-align: center;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    #controls {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 15px;
        min-width: auto;
    }
    
    #instructions {
        bottom: 10px;
        padding: 10px 20px;
        font-size: 12px;
    }
}