/* style.css */
body {
    background-color: #0c0c0c;
    color: #00ff00; /* Classic Green */
    font-family: 'Fira Code', 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    font-size: 14px;
    line-height: 1.4;
    overflow-x: hidden;
}

.terminal {
    max-width: 900px;
    margin: 0 auto;
    min-height: 80vh;
}

/* ASCII Art */
.ascii-art {
    white-space: pre;
    font-size: 10px;
    line-height: 10px;
    color: #00ff00;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Prompt & Text */
.prompt {
    color: #ffffff; 
    margin-right: 10px;
}

#type-display {
    color: #00ff00;
}

/* Blinking Cursor */
.cursor {
    color: #00ff00;
    animation: blink 1s step-end infinite;
}

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

/* Hidden Input */
#cmd-input {
    opacity: 0;           
    position: absolute;   /* Take out of layout flow */
    
    /* CRITICAL FOR MOBILE: */
    width: 100%;          /* Make it wide so it captures taps */
    height: 100%;         /* Cover the line */
    top: 0;
    left: 0;
    z-index: 10;          /* Sit on top of everything */
    
    /* Prevent iOS Zoom on focus */
    font-size: 16px;      
    
    /* Remove default styling */
    background: transparent;
    border: none;
    outline: none;
    color: transparent;
    caret-color: transparent; /* Hide the default blinking cursor */
}

/* Links */
a { color: #fff; text-decoration: underline; cursor: pointer; }

/* Input Line Layout */
.input-line {
    display: none;       
    margin-top: 20px;    
    align-items: center; 
    display: flex;
    position: relative; /* REQUIRED for the absolute input to work */
}

/*NEW STYLES BELOW*/

/* 1. Hide Mobile Buttons */
.mobile-controls {
    display: none !important;
}

/* 2. Glow Effect */
.glow {
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

/* 3. Subtle Brown Text*/
.subtle {
    color: #c5a365; /* Vintage Terminal Amber/Brown */
    font-style: italic;
}

@media (max-width: 768px) {
    .ascii-art {
        font-size: 8px; 
        line-height: 8px;
    }
    body { padding: 10px; }
}


/* TERMINAL IMAGES */
.terminal-img {
    max-width: 100%;
    border: 2px solid #00ff00;
    margin-top: 10px;
    margin-bottom: 10px;
    opacity: 0.9;
    /* Makes image look like an old CRT screen */
    filter: sepia(100%) hue-rotate(50deg) saturate(300%) contrast(1.2); 
}

/* Clickable Commands (UX Improvement) */
.cmd-link {
    cursor: pointer;
    border-bottom: 1px dashed #00ff00;
}
.cmd-link:hover {
    background-color: #00ff00;
    color: #000;
}