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

:root {
    --bg-color: #0d1117;
    --text-color: #58a6ff;
    --prompt-color: #3fb950;
    --error-color: #ff7b72;
    --art-color: #d2a8ff;
    --font-stack: 'Fira Code', 'Courier New', monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-stack);
    margin: 0;
    padding: 20px;
    font-size: 16px;
    overflow-x: hidden;
}

#terminal {
    max-width: 800px;
    margin: 0 auto;
}

/* ASCII Art Styling */
#ascii-art {
    color: var(--art-color);
    font-weight: bold;
    font-size: 12px;
    white-space: pre;
    margin-bottom: 20px;
    line-height: 1.2;
}

.output-line {
    margin-bottom: 5px;
    white-space: pre-wrap;
    line-height: 1.4;
}

.command-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.prompt {
    color: var(--prompt-color);
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* The real input is hidden but keeps focus */
#hidden-input {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: default;
}

/* The visible text mirroring the input */
#typer {
    outline: none;
    border: none;
    white-space: pre;
}

/* The Block Cursor */
.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background-color: var(--text-color);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 1px;
}

@keyframes blink {
    50% { opacity: 0; }
}

a { color: inherit; text-decoration: underline; }
a:hover { background-color: var(--text-color); color: var(--bg-color); text-decoration: none; }
