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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    color: #ff6b35;
    min-height: 100vh;
    overflow-x: auto;
}

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

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 0 0 20px #ff6b35;
    color: #ff8c42;
}

.nixie-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: radial-gradient(circle, rgba(20, 20, 40, 0.8) 0%, rgba(10, 10, 20, 0.9) 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

#canvas {
    border: 2px solid #444;
    border-radius: 10px;
    background: #0a0a0a;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

#canvas:hover {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.controls {
    background: rgba(30, 30, 50, 0.8);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #444;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-weight: bold;
    color: #ff8c42;
    font-size: 0.9rem;
}

input[type="text"], select {
    padding: 10px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #1a1a2e;
    color: #ff8c42;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #444;
    outline: none;
    transition: background 0.3s ease;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6b35;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ff6b35;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

button {
    padding: 10px 20px;
    border: 2px solid #ff6b35;
    border-radius: 8px;
    background: transparent;
    color: #ff6b35;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

button:hover {
    background: #ff6b35;
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

.preset-buttons {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.preset-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
    min-width: 100px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: #ff6b35;
}

label input[type="checkbox"] {
    margin-right: 8px;
}

label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

span {
    color: #ff8c42;
    font-weight: bold;
    margin-left: 10px;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #888;
    border-top: 1px solid #444;
}

.footer a {
    color: #ff6b35;
    text-decoration: none;
}

.footer a:hover {
    text-shadow: 0 0 10px #ff6b35;
}

.easter-egg-hint {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.7;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    #canvas {
        max-width: 100%;
        height: auto;
    }
    
    .controls {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .preset-buttons {
        grid-column: 1;
    }
}

/* Animations */
@keyframes nixieGlow {
    0%, 100% { 
        text-shadow: 0 0 20px #ff6b35, 0 0 30px #ff6b35, 0 0 40px #ff6b35;
    }
    50% { 
        text-shadow: 0 0 10px #ff6b35, 0 0 20px #ff6b35, 0 0 30px #ff6b35;
    }
}

h1 {
    animation: nixieGlow 3s ease-in-out infinite;
}

/* Vintage control styling */
.controls {
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 140, 66, 0.1) 0%, transparent 50%),
        rgba(30, 30, 50, 0.8);
}

/* Loading state */
.loading {
    opacity: 0.5;
    pointer-events: none;
}