@charset "UTF-8";

@font-face {
    font-family: 'dejavu_sans_mono';
    src:
        local('dejavu_sans_mono'),
        url('/fonts/DejaVuSansMono.woff2') format('woff2');
    font-weight: normal;
    font-family: monospace;
    font-display: swap;
}

@font-face {
    font-family: 'dejavu_sans_mono_bold';
    src:
        local('dejavu_sans_mono_bold'),
        url('/fonts/DejaVuSansMono-Bold.woff2') format('woff2');
    font-weight: bold;
    font-family: monospace;
    font-display: swap;
}

@font-face {
    font-family: 'dejavu_sans_mono_boldoblique';
    src:
        local('dejavu_sans_mono_boldoblique'),
        url('/fonts/DejaVuSansMono-BoldOblique.woff2') format('woff2');
    font-weight: bold;
    font-family: monospace;
    font-display: swap;
}

@font-face {
    font-family: 'dejavu_sans_mono_oblique';
    src:
        local('dejavu_sans_mono_oblique'),
        url('/fonts/DejaVuSansMono-Oblique.woff2') format('woff2');
    font-family: monospace;
    font-display: swap;
}

:root {
    font-family: 'dejavu_sans_mono';
    --font-size: 12px;
    line-height: 1;
    tab-size: 4;

    --background-color: black;
    --color: rgb(226, 214, 187);
    background-color: var(--background-color);
    color: var(--color);
}

@media (min-width: 400px) {
    :root {
        --font-size: 12px;
    }
}

@media (min-width: 576px) {
    :root {
        --font-size: 17px;
    }
}
@media (min-width: 768px) {
    :root {
        --font-size: 18px;
    }
}
@media (min-width: 992px) {
    :root {
        --font-size: 19px;
    }
}
@media (min-width: 1200px) {
    :root {
        --font-size: 20px;
    }
}

html {
    height: 100%;
    /* overflow: auto; */
}

body {
    margin: 0;
    padding: 0 1ch;
    overflow: hidden;
    height: 98%;
    font-size: var(--font-size);
}

#window {
    position: relative;
    display: block;
    margin: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

#terminal {
    position: relative;
    display: block;
    margin: 0;
    height: 100%;
    overflow: auto;
}

#console {
    min-height: 1em;
    overflow: hidden;
}

#console p {
    margin-top: 0.5em;
    /* min-height: 1em; */
    /* margin-bottom: 0; */
    margin-bottom: 0.25em;
    white-space: pre;
}

#cmd {
    font-size: 0;
    max-height: 1em;
    margin-top: 0.5em;
    padding-bottom: 1em;
    cursor: text;
    position: relative;
    white-space: nowrap;
}

#cmd span {
    font-size: var(--font-size);
}

/*
Maybe style this so it doesn't look weird if visible.
*/
#cmd_input {
    display: inline;
    color: var(--color);
    background: none;
    resize: none;
    border: none;
    outline: none;
    opacity: 0;
    width: 0;
    padding: 0;
    margin: 0;
    height: 1em;
}

#cmd_text,
#cmd_cursor {
    margin: 0;
    margin-left: 1ch;
}

#cmd_text {
    display: inline-block;
    font-size: var(--font-size);
    white-space: pre;
}

#cmd_cursor {
    display: inline-block;
    position: relative;
    width: 1ch;
    max-width: 1ch;
    height: 1.2em;
    right: 0;
    left: -1ch;
    bottom: -0.2em;
    color: var(--color);
    background-color: var(--color);
    opacity: 1;
    transform: translateY(0.2%);
    overflow: hidden;
    animation: blinking 1s linear infinite;
}

@keyframes blinking {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.color_test {
    color: rgb(170, 84, 84);
}

.p_right {
    padding-right: 1ch;
}

.c_green {
    color: lawngreen;
}

.c_blue {
    color: dodgerblue;
}

.c_base {
    color: rgb(226, 214, 187);
}

.hide {
    display: none;
}
