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

:root {
    --bg-black: #0a0a0a;
    --terminal-bg: #1a1a1a;
    --text-primary: #c5c5c5;
    --text-accent: #6b8da8; /* steel blue */
    --text-muted: #757575;
    --header-bg: #2a2a2a;
    --cursor: #6b8da8;
}

body {
    font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
    background-color: var(--bg-black);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Terminal window */
.terminal {
    width: 90%;
    max-width: 900px;
    height: 85vh;
    background-color: var(--terminal-bg);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Terminal header */
.terminal-header {
    background-color: var(--header-bg);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-title {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

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

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #555;
}

.control.close { background-color: #ff5f57; }
.control.minimize { background-color: #ffbd2e; }
.control.maximize { background-color: #28c840; }

/* Terminal body */
.terminal-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.output {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-accent);
    text-align: center;
}

/* Prompt at bottom */
.prompt-line {
    display: flex;
    align-items: center;
    margin-top: auto;
    font-size: 16px;
}

.prompt {
    color: var(--text-accent);
    margin-right: 8px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--cursor);
    animation: blink 1s step-end infinite;
}

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

/* Typing effect */
.typing-text {
    display: inline;
    white-space: pre-wrap;
}

/* Responsive design */
@media (max-width: 768px) {
    .terminal {
        width: 95%;
        height: 90vh;
    }

    .output {
        font-size: 16px;
        padding: 0 8px;
    }

    .prompt-line {
        font-size: 14px;
    }
}
