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

body {
    background-color: #0a0a0a;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    padding: 20px;
}

.terminal {
    max-width: 900px;
    margin: 0 auto;
    background-color: #1a1a1a;
    border: 2px solid #00ff00;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.terminal-header {
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#output {
    margin-bottom: 20px;
    min-height: 400px;
    overflow-x: auto; /* Add this: enables horizontal scroll on overflow */
    white-space: pre; /* Change from pre-wrap to pre: preserves whitespace without wrapping */
}

.output-line {
    margin: 8px 0;
    line-height: 1.6;
    white-space: pre; /* Update this too for consistency */
}

.input-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prompt {
    color: #00ff00;
}

#command-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    outline: none;
}

.output-line {
    margin: 5px 0;
    line-height: 1.5;
}

.command {
    color: #ffff00;
}

.error {
    color: #ff0000;
}

a {
    color: #00aaff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    body {
        padding: 10px; /* Reduce body padding for more screen space */
    }

    .terminal {
        max-width: 100%; /* Full width on mobile */
        padding: 15px; /* Slightly less padding */
        border-radius: 4px; /* Softer corners for mobile */
    }

    #output, .output-line, #command-input {
        font-size: 14px; /* Smaller font to fit more content without overflow */
    }

    .input-line {
        gap: 5px; /* Tighter spacing */
    }
}

@media (max-width: 480px) {
    #output, .output-line, #command-input {
        font-size: 12px; /* Even smaller for very narrow devices */
    }
}