/* * Variables */

:root {
    --background: #121212;
    --text: #f5f5f5;
    --text-muted: #d9d9d9;

    --border: #262626;
    --topbar-bg: #1a1a1a;
}

/* * Global */

html,
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;

    background-color: var(--background);
    color: var(--text);
    font-family: "Courier New", Courier, monospace;
}

body {
    display: flex;
    flex-direction: column;
}

/* * Header */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--topbar-bg);
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 0.9rem;
    font-weight: normal;
    margin: 0;
    color: var(--text);
}

header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.2s;
}

header nav a:hover {
    color: #ff5f56;
}

/* * Terminal Screen */

main#terminal-screen {
    flex: 1;
    padding: 20px;
    background-color: var(--background);
    overflow: hidden; /* Hard block on scrollbars */

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* * Terminal Output */

main#terminal-screen p {
    margin: 4px 0 0 0;
    line-height: 1.5;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

/* * Footer */

footer {
    background-color: var(--background);
    padding: 15px 20px;
    border-top: 1px solid var(--border);
}

/* * Command Line */

.cli-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* * Command Input */

#prompt {
    color: var(--text);
    font-weight: bold;
    white-space: nowrap;
}

footer input[type="text"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    padding: 0;
}

footer input[type="text"]::placeholder {
    color: #444;
}

/* * Responsive Layout */

@media (max-width: 480px) {
    header {
        padding: 10px 14px;
    }

    header h1,
    header nav a {
        font-size: 0.8rem;
    }

    main#terminal-screen {
        padding: 14px;
    }

    main#terminal-screen p {
        line-height: 1.4;
    }

    footer {
        padding: 12px 14px;
    }

    .cli-row {
        align-items: flex-start;
        gap: 8px;
    }

    #prompt {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    footer input[type="text"] {
        font-size: 0.9rem;
    }
}
