body {
    margin: 0;
    padding: 0;
    background-color: #000;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    overflow: hidden;
}

#terminal {
    width: 100vw;
    height: 100vh;
    background-color: #000;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

#output {
    height: calc(100vh - 120px);
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.4;
    margin-bottom: 10px;
}

#input-line {
    display: flex;
    align-items: center;
}

#prompt {
    color: #00ff00;
    margin-right: 5px;
}

#command-input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex: 1;
    caret-color: #00ff00;
}

#command-buttons {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

#command-buttons button {
    background: #111;
    border: 1px solid #00ff00;
    color: #00ff00;
    font-family: inherit;
    font-size: 12px;
    padding: 5px 10px;
    cursor: pointer;
    transition: background 0.2s;
}

#command-buttons button:hover {
    background: #00ff00;
    color: #000;
}

/* Flickering effect */
@keyframes flicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    10% { opacity: 0.95; filter: brightness(1.05); }
    20% { opacity: 0.9; filter: brightness(0.95); }
    30% { opacity: 0.98; filter: brightness(1.02); }
    40% { opacity: 0.92; filter: brightness(0.98); }
    50% { opacity: 0.85; filter: brightness(0.9); }
    60% { opacity: 0.97; filter: brightness(1.03); }
    70% { opacity: 0.88; filter: brightness(0.92); }
    80% { opacity: 0.94; filter: brightness(1.01); }
    90% { opacity: 0.91; filter: brightness(0.96); }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

#terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.03);
    animation: flicker 0.15s infinite;
    pointer-events: none;
    z-index: 1;
}

#terminal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.3), transparent);
    animation: scanline 3s infinite linear;
    pointer-events: none;
    z-index: 2;
}

/* Typing cursor */
#command-input::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 1.2em;
    background-color: #00ff00;
    animation: blink 1s infinite;
}

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