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

body {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    overflow: hidden;
    background: #0a0a0a;
    color: #ffffff;
}

#header {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#header h1 {
    font-size: 24px;
    margin-bottom: 12px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#equations {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.equation-line {
    margin-bottom: 4px;
}

.equation-line:first-child {
    color: #00ffff;
}

.equation-line:not(:first-child) {
    color: #ffffff;
}

#param-a-display {
    color: #ff6b6b;
}

#param-b-display {
    color: #4ecdc4;
}

#param-c-display {
    color: #ffd93d;
}

#scene-container {
    width: 100vw;
    height: 100vh;
}

.glass-panel {
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    z-index: 1000;
}

#control-panel {
    top: 20px;
    right: 20px;
    width: 300px;
    max-height: 80vh;
    overflow-y: auto;
}

#info-panel {
    bottom: 60px;
    left: 20px;
    width: 320px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h3 {
    color: #00ffff;
    margin: 0;
}

.panel-header button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.panel-header button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.control-group {
    margin-bottom: 20px;
}

.control-group h4 {
    color: #ff00ff;
    margin-bottom: 12px;
    font-size: 16px;
}

.slider-group {
    margin-bottom: 12px;
}

.slider-group label {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
}

.slider-group input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 50%;
    cursor: pointer;
}

.slider-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-group select {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-family: inherit;
}

.checkbox-group {
    margin-bottom: 12px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #ffffff;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #00ffff;
}

.button-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.button-row button, #control-panel button {
    padding: 8px 12px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    transition: all 0.3s;
}

.button-row button:hover, #control-panel button:hover {
    background: linear-gradient(45deg, #2a2a2a, #3a3a3a);
    border-color: #00ffff;
}

#chaos-mode {
    background: linear-gradient(45deg, #ff4444, #ff6666) !important;
}

#chaos-mode:hover {
    background: linear-gradient(45deg, #ff6666, #ff8888) !important;
}

#info-content {
    line-height: 1.6;
}

#info-content p {
    margin-bottom: 12px;
    color: #cccccc;
}

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

#info-content em {
    color: #ff00ff;
}

.easter-egg {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 12px;
}

footer a {
    color: #00ffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 1;
}

.physics-joke {
    color: #ffd93d;
    cursor: help;
    opacity: 0.7;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
}

/* Responsive design */
@media (max-width: 768px) {
    #header {
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    #control-panel {
        top: auto;
        bottom: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 40vh;
    }
    
    #info-panel {
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    footer {
        bottom: 10px;
        right: 10px;
        left: 10px;
        justify-content: center;
        text-align: center;
    }
}