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

body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    overflow: hidden;
    background: #0a1628;
}

#scene-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#time-display {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 28px;
    border-radius: 50px;
    color: #fff5e6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 212, 255, 0.2);
    z-index: 100;
}

#time-icon {
    font-size: 1.3rem;
}

#controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 100;
}

#quick-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.time-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 107, 53, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #fff5e6;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-btn:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(255, 107, 53, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

#slider-container {
    max-width: 600px;
    margin: 0 auto 16px;
}

#time-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, 
        #0a1628 0%, #0a1628 25%, 
        #ffa07a 27%, #87CEEB 35%, 
        #87CEEB 65%, #ff6b35 75%, 
        #0a1628 80%, #0a1628 100%);
    cursor: pointer;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff5e6;
    border: 3px solid #00d4ff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.5);
    transition: transform 0.2s;
}

#time-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#time-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff5e6;
    border: 3px solid #00d4ff;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.5);
}

#slider-markers {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: rgba(255, 245, 230, 0.5);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

#action-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

#action-buttons button {
    background: rgba(255, 245, 230, 0.1);
    border: 1px solid rgba(255, 245, 230, 0.2);
    color: #fff5e6;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#action-buttons button:hover {
    background: rgba(255, 245, 230, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
}

#info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

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

#info-content {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    color: #fff5e6;
    position: relative;
}

#close-info {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff5e6;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#close-info:hover {
    opacity: 1;
}

#info-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #00d4ff;
}

#info-content h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    color: #ff6b35;
}

#info-content p {
    line-height: 1.7;
    margin-bottom: 12px;
    opacity: 0.9;
}

#info-content strong {
    color: #00d4ff;
}

footer {
    position: fixed;
    bottom: 130px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 245, 230, 0.4);
    font-size: 0.75rem;
    z-index: 50;
    pointer-events: none;
}

footer span {
    display: block;
    margin-bottom: 4px;
}

footer a {
    color: rgba(0, 212, 255, 0.6);
    text-decoration: none;
    pointer-events: auto;
    transition: color 0.3s;
}

footer a:hover {
    color: #00d4ff;
}

@media (max-width: 768px) {
    #time-display {
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    
    #controls {
        padding: 15px;
    }
    
    .time-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    #slider-markers {
        font-size: 0.65rem;
    }
    
    #info-content {
        padding: 25px;
    }
    
    #info-content h2 {
        font-size: 1.4rem;
    }
    
    footer {
        bottom: 115px;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    #quick-buttons {
        gap: 8px;
    }
    
    .time-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    #action-buttons button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}