/* Matrix Terminal Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100vh;
    width: 100vw;
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', 'Monaco', monospace;
    overflow: hidden;
    position: relative;
}

/* Matrix Rain Background */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0.1;
}

/* Terminal Screen */
.terminal-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
}

/* Terminal Content Area */
.terminal-content {
    flex: 1;
    padding: 20px;
    padding-bottom: 60px; /* Extra space for input line */
    overflow: hidden;
    font-size: 16px;
    line-height: 1.4;
    white-space: pre-wrap;
}

/* Terminal Input Line at Bottom */
.terminal-input-line {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 40px;
    background: #000000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-top: 1px solid #00ff00;
    z-index: 20;
}

.prompt {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 10px;
    min-width: fit-content;
}

.matrix-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
    text-shadow: 0 0 10px #00ff00;
    caret-color: transparent;
    flex: 1;
    min-width: 0;
    width: 100%;
    margin-left: 0;
}

/* Blinking Cursor */
.cursor {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 18px;
    background: #00ff00;
    animation: blink 1s infinite;
    box-shadow: 0 0 5px #00ff00;
    z-index: 22;
    left: 20px; /* Will be updated by JavaScript */
}

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

/* Matrix Text Effects */
.matrix-text {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-weight: normal;
}

.matrix-glow {
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00;
}

/* Terminal Line */
.terminal-line {
    margin-bottom: 5px;
    word-wrap: break-word;
}

/* Error Text */
.error-text {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

/* Success Text */
.success-text {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* ASCII Art Styling */
.ascii-art {
    color: #00ff00;
    text-shadow: 0 0 3px #00ff00;
    font-size: 8px;
    line-height: 0.8;
    margin: 2px 0;
    font-family: 'Courier New', monospace;
    white-space: pre;
}

/* Typing Animation */
@keyframes typing {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.typing-char {
    animation: typing 0.1s ease-in-out;
}

/* No scrollbars - content flows upward */
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* Hidden class */
.hidden {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .terminal-content {
        padding: 10px;
        font-size: 14px;
    }
    
    .terminal-input-line {
        padding: 0 10px;
        height: 35px;
    }
    
    .matrix-input {
        font-size: 14px;
    }
    
    .ascii-art {
        font-size: 10px;
    }
}