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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    color: #00ff88;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #00ff88;
}

header h1 {
    font-size: 2.5rem;
    color: #00ff88;
    text-shadow: 0 0 10px #00ff88;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    color: #ffaa00;
    margin-bottom: 15px;
}

.mode-toggle {
    display: inline-block;
}

.mode-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.mode-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #00ff88;
}

.main-content {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    margin-bottom: 30px;
}

.info-panel {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #444;
    height: fit-content;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    color: #00ff88;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-content {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #cccccc;
}

.info-content details {
    margin-top: 10px;
}

.info-content summary {
    color: #ffaa00;
    cursor: pointer;
    margin-bottom: 5px;
}

.fun-facts {
    background: #0d2818;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #00ff88;
}

.fun-facts h3 {
    margin-bottom: 10px;
}

#funFact {
    font-size: 0.9rem;
    font-style: italic;
    color: #88ffaa;
    line-height: 1.3;
}

.display-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.canvas-container {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    border: 4px solid #333;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

#mainCanvas {
    border: 2px solid #555;
    border-radius: 5px;
    background: #000;
}

.view-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.view-btn {
    background: linear-gradient(135deg, #333, #555);
    color: #00ff88;
    border: 2px solid #666;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: linear-gradient(135deg, #444, #666);
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.view-btn.active {
    background: linear-gradient(135deg, #00aa66, #00ff88);
    color: #000;
    border-color: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.control-panel {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #444;
    height: fit-content;
}

.control-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.control-section:last-child {
    border-bottom: none;
}

.control-section h3 {
    color: #00ff88;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-section label {
    display: block;
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 8px;
    margin-top: 12px;
}

.control-section select,
.control-section input[type="range"] {
    width: 100%;
    padding: 5px;
    background: #333;
    border: 1px solid #555;
    border-radius: 3px;
    color: #00ff88;
    font-family: inherit;
}

.control-section select {
    padding: 8px;
}

.control-section input[type="range"] {
    height: 25px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    outline: none;
}

.control-section input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #00ff88;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.control-section input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #00ff88;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.readout {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.led.green {
    background: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.led.red {
    background: #ff0000;
    box-shadow: 0 0 5px #ff0000;
}

footer {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333;
}

footer a {
    color: #00ff88;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .canvas-container {
        padding: 15px;
    }
    
    #mainCanvas {
        width: 100%;
        max-width: 800px;
        height: auto;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .view-controls {
        flex-direction: column;
        gap: 5px;
    }
    
    .container {
        padding: 10px;
    }
}

/* Retro CRT glow effect for authentic mode */
.authentic-glow {
    text-shadow: 0 0 5px currentColor;
    animation: flicker 0.15s infinite linear;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* Swiss precision styling */
.swiss-precision {
    border: 1px solid #ff0000;
    background: linear-gradient(45deg, #ff0000 25%, transparent 25%, transparent 75%, #ff0000 75%);
    background-size: 4px 4px;
}