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

body {
    background: #1a1a2e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
}

.terminal {
    width: 100%;
    max-width: 800px;
    background: #0d0d0d;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn.red { background: #ff5f56; }
.btn.yellow { background: #ffbd2e; }
.btn.green { background: #27ca40; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: #888;
    font-size: 13px;
}

.terminal-body {
    padding: 20px;
    min-height: 400px;
    max-height: 70vh;
    overflow-y: auto;
}

#output {
    color: #00ff00;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-line {
    margin-bottom: 5px;
}

.output-line.command {
    color: #00ff00;
}

.output-line.response {
    color: #cccccc;
}

.output-line.error {
    color: #ff5f56;
}

.output-line.info {
    color: #61afef;
}

.output-line.highlight {
    color: #e5c07b;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    color: #98c379;
    margin-right: 10px;
    white-space: nowrap;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    caret-color: #00ff00;
}

a {
    color: #61afef;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.ascii-art {
    color: #e5c07b;
    font-size: 10px;
    line-height: 1.2;
}

.snake-game {
    color: #cccccc;
    line-height: 1.1;
    font-size: 14px;
}

@media (max-width: 600px) {
    .terminal-body {
        padding: 15px;
        min-height: 300px;
    }

    .prompt {
        font-size: 12px;
    }

    #command-input {
        font-size: 12px;
    }
}
