html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
}

#terminal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Fixed: Ensure we have a proper height with line buffer */
    height: calc(100% - 1.2em);
    background: #000;
    color: #39FF14;
    font-family: 'VT323', monospace;
    text-align: left;
    padding: 1vh 1vw;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 4vw;
    line-height: 1.1em;
    /* Ensure proper scrolling behavior */
    -webkit-overflow-scrolling: touch;
}

#caret {
    display: inline-block;
    width: 0.6ch;
    height: 1em;
    background: rgba(57, 255, 20, 0.9);
    animation: blink 1s steps(1) infinite;
    vertical-align: bottom;
    margin-left: 0.1ch;
}

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