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

body {
    background: #000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.4;
    overflow: hidden;
    height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.terminal {
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
    position: relative;
}

#output {
    margin-bottom: 10px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.input-line {
    display: flex;
    align-items: center;
    position: relative;
}

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

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

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: #00ff00;
    animation: blink 1s infinite;
    position: absolute;
    left: 25px;
}

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

.ascii-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 10px;
    overflow: hidden;
    white-space: pre-wrap;
    font-size: calc(0.6vw + 0.6vh);
    line-height: 0.9;
    letter-spacing: 0;
    transition: opacity 0.5s ease-in-out;
}

.ascii-display.hidden {
    display: none;
}

.terminal.hidden {
    display: none;
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .ascii-display {
        font-size: calc(1.2vw + 1.2vh);
        letter-spacing: 0;
    }
    
    .mobile-message {
        text-align: center;
        padding: 40px 20px;
        line-height: 1.6;
    }
}