* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    background: #050805;
    color: #b7ffb7;

    font-family:
        "Courier New",
        Courier,
        monospace;
}

body {
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* ============================= */
/* SCROLLABLE CONTENT             */
/* ============================= */

#terminal-content {
    flex: 1;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 30px;

    scrollbar-color: #315c31 #050805;
}


/* ============================= */
/* LOGIN                         */
/* ============================= */

.screen {
    width: 100%;
    height: 100%;
}

#login-screen {
    display: flex;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(
            ellipse at center,
            #0b180b 0%,
            #050805 60%,
            #020302 100%
        );
}

.login-box {
    width: min(600px, 90vw);

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.ascii-logo {
    margin-bottom: 40px;

    color: #62ff62;

    text-align: center;

    font-size: 12px;

    text-shadow:
        0 0 5px #39ff39,
        0 0 15px #39ff39;
}

.prompt {
    color: #72ff72;

    margin-top: 10px;
}

input {
    width: 100%;

    background: transparent;

    border: none;
    border-bottom: 1px solid #4b8f4b;

    color: #b7ffb7;

    padding: 8px 4px;

    font-family: inherit;
    font-size: 16px;

    outline: none;
}

input:focus {
    border-bottom-color: #7fff7f;

    box-shadow:
        0 2px 8px rgba(80, 255, 80, 0.2);
}

button {
    align-self: flex-start;

    margin-top: 20px;

    padding: 8px 20px;

    background: transparent;

    border: 1px solid #62ff62;

    color: #62ff62;

    font-family: inherit;

    cursor: pointer;
}

button:hover {
    background: #62ff62;
    color: #050805;
}

#verification {
    min-height: 150px;

    margin-top: 30px;

    white-space: pre-line;

    color: #8cff8c;
}


/* ============================= */
/* TERMINAL                      */
/* ============================= */
#terminal-screen {
    display: flex;
    flex-direction: column;

    width: 100vw;
    height: 100vh;

    background: #050805;

    overflow: hidden;
}

.terminal-header {
    flex-shrink: 0;

    display: flex;
    justify-content: space-between;

    padding: 14px 20px;

    border-bottom: 1px solid #315c31;

    color: #72ff72;

    font-size: 14px;
}

#terminal-content {
    flex: 1;

    overflow-y: auto;

    padding: 30px;

    scrollbar-color: #315c31 #050805;
}


/* ============================= */
/* FILE BROWSER                  */
/* ============================= */

.directory-title {
    margin-bottom: 30px;

    color: #aaffaa;

    font-size: 22px;
}

.file-list {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.file-entry {
    display: grid;

    grid-template-columns: 35px 180px 1fr;

    padding: 7px 10px;

    cursor: pointer;

    border: 1px solid transparent;
}

.file-entry:hover {
    border-color: #315c31;

    background: #0a140a;
}

.file-arrow {
    color: #72ff72;
}

.file-name {
    color: #aaffaa;
}

.file-description {
    color: #557755;
}


/* ============================= */
/* DOCUMENT                      */
/* ============================= */

.document {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding-bottom: 100px;
}

.document-header {
    border: 1px solid #315c31;

    padding: 20px;

    margin-bottom: 30px;
}

.document-classification {
    color: #ff7777;

    margin-bottom: 15px;
}

.document-title {
    font-size: 24px;

    margin-bottom: 15px;
}

.document-meta {
    color: #658765;

    line-height: 1.7;
}

.document-body {
    white-space: pre-wrap;

    line-height: 1.7;

    color: #b7ffb7;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */

.terminal-footer {
    display: flex;
    justify-content: space-between;

    padding: 8px 20px;

    border-top: 1px solid #315c31;

    color: #456745;

    font-size: 12px;
}


/* ============================= */
/* MOBILE                        */
/* ============================= */

@media (max-width: 700px) {

    #terminal-content {
        padding: 15px;
    }

    .file-entry {
        grid-template-columns: 25px 1fr;
    }

    .file-description {
        display: none;
    }

    .terminal-header {
        flex-direction: column;

        gap: 5px;
    }
}