:root {
    --size: 1.3;
}

/* General styling for all devices */
body {
    font-family: 'Courier New', monospace;
    background-color: #000;
    color: #fff;
    margin: 0;
    padding: 0;
}

/* Terminal styling for all screen sizes */
.terminal {
    width: 100%;
    max-width: 100%;
    height: 80vh; /* Use viewport height for flexible sizing */
    box-sizing: border-box;
    font-size: var(--base-font-size); /* Use base font size */
    line-height: var(--line-height);
    white-space: pre-wrap; /* Wrap text to fit the container */
    word-wrap: break-word;
    padding: var(--terminal-padding);
}

/* Tablet styling (768px and below) */
@media (max-width: 768px) {
    .terminal {
        font-size: var(--tablet-font-size); /* Slightly larger font for readability */
        padding: 10px;
    }
}

/* Mobile styling (480px and below) */
@media (max-width: 480px) {
    .terminal {
        --size: 1;
        padding: 5px;
        line-height: 1.2;
        height: 100vh;
    }
}

/* Landscape mode adjustments for mobile devices only */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .terminal {
        --size: 1;
        padding: 5px;
        line-height: 1.2;
        height: 100vh;
    }
}

/* Portrait mode adjustments */
@media (orientation: portrait) {
    .terminal {
        height: 100vh;
    }
}

/* Landscape mode adjustments */
@media (orientation: landscape) {
    .terminal {
        height: 100vh;
    }
}