@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap');

:root {
    --bg-color: #0c0c0c;
    --text-color: #33ff33;
    /* Classic terminal green */
    --prompt-color: #bd93f9;
    /* Dracula purple style for prompt */
    --error-color: #ff5555;
    --dim-color: #6272a4;
    --font-stack: 'Fira Code', 'Courier New', monospace;
    --glow: 0 0 10px rgba(51, 255, 51, 0.5);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    margin: 0;
    padding: 20px;
    height: 100vh;
    overflow: hidden;
    /* Scroll handled by terminal container */
    font-size: 22px;
    line-height: 1.5;
}

/* CRT Overlay Effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
}

#terminal {
    max-width: 900px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    /* Hide scrollbar for immersion */
}

#terminal::-webkit-scrollbar {
    display: none;
}

/* Output Area */
.output-line {
    margin-bottom: 5px;
    white-space: pre-wrap;
    /* Preserve formatting */
    word-wrap: break-word;
}

#output{
    color: var(--dim-color);
    font-family: var(--font-stack);
    font-size: 22px;
}

.command-echo {
    color: var(--text-color);
    font-weight: bold;
}

.success-msg {
    color: var(--text-color);
}

.error-msg {
    color: var(--error-color);
}

.info-msg {
    color: var(--dim-color);
}

/* Input Line */
.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
    /* Keeps input always visible at bottom */
}

.prompt {
    color: var(--prompt-color);
    margin-right: 10px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(189, 147, 249, 0.5);
}

#command-input {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-stack);
    font-size: 22px;
    flex-grow: 1;
    outline: none;
    caret-color: var(--text-color);
    /* Blinking block cursor provided by browser usually, or we can custom style */
    text-shadow: var(--glow);
}

/* Custom ASCII Art / Specific text styling */
.ascii-art {
    color: var(--text-color);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: var(--glow);
}

.link {
    color: #8be9fd;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
        font-size: 20px;
    }

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

    .ascii-art {
        font-size: 16px;
    }

    /* Scales down big text */
}
