@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0a0014, #1a0a2e);
    color: #00ffff;
    min-height: 100vh;
    overflow-x: auto;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 0 20px #00ffff;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1rem;
    color: #66ccff;
    margin-bottom: 15px;
}

.warning {
    background: linear-gradient(45deg, #ff0000, #ffff00);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.main-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.display-container {
    position: relative;
    flex: 1;
}

#canvas {
    border: 3px solid #00ffff;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    width: 100%;
    max-width: 800px;
    height: auto;
    cursor: crosshair;
}

.scanlines {
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    pointer-events: none;
    border-radius: 7px;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
}

#fps-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #00ff00;
}

.control-panel {
    width: 320px;
    background: linear-gradient(135deg, #1a1a3a, #2a2a4a);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.control-section h3,
.preset-section h3 {
    color: #ffff00;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px #ffff00;
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.control-group label {
    font-size: 0.9rem;
    color: #cccccc;
    flex: 1;
}

.control-group input[type="range"] {
    flex: 2;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #003366, #00ffff);
    outline: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffff;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px #00ffff;
}

.control-group span {
    font-size: 0.8rem;
    color: #00ffff;
    min-width: 40px;
    text-align: right;
}

.control-group select {
    flex: 2;
    background: #1a1a3a;
    color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 5px;
    padding: 5px;
    font-family: inherit;
}

.preset-section {
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.preset-btn {
    width: 100%;
    background: linear-gradient(45deg, #004466, #0066aa);
    color: white;
    border: 1px solid #00ffff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    background: linear-gradient(45deg, #0066aa, #0088cc);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.info-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #444;
    text-align: center;
}

#reset-btn,
#sound-toggle {
    width: 100%;
    background: linear-gradient(45deg, #662200, #aa4400);
    color: white;
    border: 1px solid #ff6600;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s ease;
}

#reset-btn:hover,
#sound-toggle:hover {
    background: linear-gradient(45deg, #aa4400, #cc6600);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

.disclaimer {
    font-size: 0.7rem;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #333;
}

footer a {
    color: #00ffff;
    text-decoration: none;
    font-size: 0.9rem;
}

footer a:hover {
    text-shadow: 0 0 10px #00ffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }
    
    .control-panel {
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 15px;
    }
    
    .control-panel {
        padding: 20px;
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .control-group label {
        text-align: center;
    }
    
    #canvas {
        max-width: 100%;
        height: 300px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a3a;
}

::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0088cc;
}