/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    color: #00ff00;
}

/* Terminal Window */
.terminal {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1), 0 0 40px rgba(0, 0, 0, 0.8);
    max-width: 1200px;
    width: 95vw;
    max-height: 95vh;
    margin: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Terminal Header */
.terminal-header {
    background: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    font-size: 12px;
}

.terminal-controls {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.terminal-title {
    color: #888;
    font-weight: normal;
}

/* Terminal Content */
.terminal-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #0a0a0a;
    color: #00ff00;
    font-size: 14px;
}

.terminal-output {
    margin-bottom: 20px;
}

/* ASCII Art */
.ascii-art {
    color: #00aa00;
    text-align: center;
    margin-bottom: 30px;
    font-size: 10px;
    line-height: 1.1;
}

.ascii-art pre {
    margin: 0;
    font-family: inherit;
}

/* Boot Sequence */
.boot-sequence {
    margin-bottom: 25px;
}

.boot-sequence p {
    margin: 4px 0;
    animation: typewriter 0.1s ease-in-out;
}

.status-ok {
    color: #00ff00;
    font-weight: bold;
}

.welcome-msg {
    color: #00aaff !important;
    font-weight: bold;
}

/* Command Help */
.command-help {
    margin-bottom: 20px;
}

.command {
    color: #ffff00;
    font-weight: bold;
}

/* Command Line */
.command-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    color: #00ff00;
    margin-right: 5px;
    font-weight: bold;
}

.game-link {
    color: #ffff00;
    text-decoration: none;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: color 0.2s ease;
}

.game-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 0, 0.1);
    text-shadow: 0 0 5px #ffff00;
}

.cursor {
    color: #00ff00;
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Terminal Footer */
.terminal-footer {
    background: #2d2d2d;
    padding: 6px 15px;
    border-top: 1px solid #333;
    font-size: 11px;
    color: #888;
    text-align: center;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Responsive design */
@media (max-width: 968px) {
    .terminal {
        width: 98vw;
        margin: 10px;
    }
    
    .terminal-content {
        padding: 15px;
        font-size: 13px;
    }
    
    .ascii-art {
        font-size: 8px;
    }
}

@media (max-width: 768px) {
    .terminal-content {
        font-size: 12px;
        padding: 12px;
    }
    
    .ascii-art {
        font-size: 7px;
    }
    
    .terminal-header {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .terminal-footer {
        padding: 4px 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .terminal-content {
        font-size: 11px;
        padding: 10px;
    }
    
    .ascii-art {
        font-size: 6px;
    }
    
    .control {
        width: 10px;
        height: 10px;
    }
    
    .terminal-controls {
        gap: 4px;
        margin-right: 10px;
    }
}
