@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    height: 1000vh;
    background: #000;
    color: #fff;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

#timeline-info {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 25px 35px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 380px;
}

#timeline-info.hidden {
    display: none;
}

#era-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: -0.5px;
}

#era-description {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
}

#time-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#audio-indicator {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

#audio-indicator.hidden {
    display: none;
}

#volume-level {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 8px;
    font-weight: 500;
}

#scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    font-weight: 300;
    animation: fade 3s infinite;
}

#scroll-hint.hidden {
    display: none;
}

@keyframes fade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.6; }
}

::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none;
}

#event-markers {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-marker {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.event-marker:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.event-marker::after {
    content: attr(data-label);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.event-marker:hover::after {
    opacity: 1;
}

#nasa-panel {
    position: fixed;
    top: 40px;
    right: 40px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 320px;
}

#nasa-fact {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

#planet-info {
    position: fixed;
    bottom: 120px;
    left: 40px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 25px 30px 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
    position: relative;
}

#planet-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

#planet-info p {
    font-size: 13px;
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

#planet-info .hint {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

#timeline-slider-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.slider-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    font-weight: 300;
}

#timeline-slider {
    -webkit-appearance: none;
    width: 300px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    transition: box-shadow 0.2s;
}

#timeline-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
}

#timeline-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
    0% { filter: brightness(10); }
    100% { filter: brightness(1); }
}

body.bigbang {
    animation: bigbang-flash 0.3s ease-out;
}

#close-planet-info {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
    padding: 0;
}

#close-planet-info:hover {
    color: #fff;
    transform: scale(1.2);
}
