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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #fff;
}

.computer-housing {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    border: 2px solid #555;
}

.monitor-bezel {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.8),
        0 5px 15px rgba(0,0,0,0.3);
    border: 3px solid #333;
}

#terminal {
    display: block;
    background: #000;
    border-radius: 8px;
    box-shadow: 
        inset 0 0 30px rgba(0,0,0,0.8),
        0 0 20px rgba(0,255,65,0.1);
    cursor: text;
    filter: contrast(1.1) brightness(0.95);
}

.screen-overlay {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    background: linear-gradient(
        rgba(255,255,255,0.02) 50%,
        transparent 50%
    );
    background-size: 100% 4px;
    border-radius: 8px;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.control-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 15px 20px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    border: 1px solid #444;
}

.power-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.power-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #555;
    background: linear-gradient(145deg, #333, #222);
    color: #888;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.power-button:hover {
    background: linear-gradient(145deg, #444, #333);
    color: #aaa;
}

.power-button:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.power-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    border: 1px solid #555;
    transition: all 0.3s;
}

.power-led.on {
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.knob-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.knob-group label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

.knob {
    width: 60px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: #222;
    border-radius: 10px;
    border: 1px solid #444;
    outline: none;
    cursor: pointer;
}

.knob::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #555, #333);
    border: 1px solid #666;
    cursor: pointer;
}

.knob::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #555, #333);
    border: 1px solid #666;
    cursor: pointer;
}

.terminal-select {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.terminal-select label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
}

.terminal-select select {
    background: #222;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    outline: none;
}

.sound-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #444;
    background: linear-gradient(145deg, #333, #222);
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.sound-btn:hover {
    background: linear-gradient(145deg, #444, #333);
    color: #aaa;
}

.footer {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .computer-housing {
        padding: 15px;
    }
    
    .monitor-bezel {
        padding: 20px;
    }
    
    #terminal {
        width: 100%;
        max-width: 600px;
        height: 400px;
    }
    
    .control-panel {
        flex-direction: column;
        gap: 15px;
    }
    
    .controls {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    #terminal {
        height: 300px;
    }
    
    .controls {
        gap: 10px;
    }
    
    .knob {
        width: 50px;
    }
}

/* Retro glow effects */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px currentColor; }
    50% { text-shadow: 0 0 10px currentColor, 0 0 15px currentColor; }
}

#terminal {
    animation: glow 4s ease-in-out infinite;
}