:root {
    --bg-color: #050505;
    --text-color: #00ff00;
    --prompt-color: #00ccff;
    --error-color: #ff3333;
    --glow: 0 0 10px rgba(0, 255, 0, 0.4);
    --font-family: 'Fira Code', monospace;
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 16px;
    overflow: hidden;
}

/* CRT Scanlines Overlay */
#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%), 
        linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    background-size: 100% 2px, 3px 100%;
    z-index: 999;
    pointer-events: none;
    opacity: 0.7;
}

body {
    text-shadow: var(--glow);
}

#terminal-container {
    padding: 20px 30px;
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#terminal-output {
    flex-grow: 0;
    margin-bottom: 5px;
}

.output-line {
    margin: 4px 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.output-cmd {
    color: var(--text-color);
}

.system-msg {
    color: #ffd700;
}

.error-msg {
    color: var(--error-color);
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
}

#input-line {
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 20px;
}

.prompt {
    color: var(--prompt-color);
    margin-right: 12px;
    font-weight: 700;
}

/* Hide actual input but keep it structured so users can type on mobile/desktop naturally */
#terminal-input {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: default;
    background: transparent;
    border: none;
    color: transparent;
    outline: none;
}

#typed-input {
    white-space: pre;
}

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

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

/* Link styling */
a {
    color: #4da6ff;
    text-decoration: none;
    transition: text-shadow 0.2s, color 0.2s;
}
a:hover {
    color: #b3d9ff;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(77, 166, 255, 0.8);
}

/* Webkit scrollbar for custom premium look */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    #terminal-container {
        padding: 15px 20px;
    }
    body, html {
        font-size: 14px;
    }
    .ascii-art {
        font-size: 1.8vw;
        line-height: 1.2;
        white-space: pre !important;
    }
}
@media screen and (max-width: 480px) {
    #terminal-container {
        padding: 10px 10px;
    }
    body, html {
        font-size: 12px;
    }
    .ascii-art {
        font-size: 2.2vw;
    }
}
