/* CSS RESETS */
html,
body {
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

/* ANIMATIONS */

@keyframes scrollBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -1000% 1000%;
    }
}

/* CLASSES */

.vflex {
    display: flex;
    flex-direction: column;
}

.hflex {
    display: flex;
    flex-direction: row;
}

.boxing {
    background-color: var(--blk);
    border: 0.3rem ridge var(--cyn);
    border-radius: 8px;
    padding: 1rem 1rch;
}

.list2 {
    width: 40ch;
}

.list2 td:first-of-type {
    width: 100%;
}

.list3 {
    width: 80ch;
}

/*.list3 td {
    width: 40%;
}*/

.button88 {
    width: 88px;
    height: 31px;
}

.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(
            90deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 255, 0, 0.02),
            rgba(0, 0, 255, 0.06)
        );
    z-index: 2;
    background-size:
        100% 2px,
        6px 100%;
    pointer-events: none;
}

.crt_small::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(
            90deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 255, 0, 0.02),
            rgba(0, 0, 255, 0.06)
        );
    z-index: 2;
    background-size:
        100% 2px,
        6px 100%;
    pointer-events: none;
}

/* IDS */

#main {
    background-color: rgba(0, 0, 0, 0);
    min-width: 100vw;
    min-height: 100vh;
    /*justify-content: space-between;*/
    align-items: center;
}

#navigation {
    border: 0;
    border-bottom: 0.3rem ridge var(--cyn);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    width: 100%;
    height: 2.4rem;
    align-items: center;
    justify-content: space-evenly;
}

#navigation a {
    font-weight: bold;
}

#content_container {
    width: 100%;
    height: 100%;
    flex-grow: 5;
    align-items: center;
    justify-content: space-evenly;
}

#content {
    width: 70vw;
    height: 65vh;
    align-self: center;
    margin: auto;
    overflow: scroll;
}

#content details {
    width: 80ch;
}

#sidebar {
    width: 20vw;
    height: 50vh;
    margin-left: auto;
    border-right: 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    overflow: scroll;
}

#foot {
    width: 100%;
    max-height: 30%;
    padding: 2ch;
    flex-grow: 1;
    border-top: 0.3rem ridge var(--cyn);
    align-items: center;
    justify-content: space-evenly;
}

#buttons {
    width: 80%;
}

#buttons > img {
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

/* ELEMENTS */

body {
    background-color: var(--blk);
    color: var(--wht);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    /* ANIM */
    animation: scrollBackground 300s linear infinite;
    background-image: url(/media/util/stars3.gif);
    background-repeat: repeat;
    /* FONT */
    font-family: monospace;
    font-size: 14px;
    cursor: grab;
    /*text-align: justify;*/
}

a {
    text-decoration: none;
    font-weight: normal;
    color: var(--ylw);
    cursor: crosshair;
}

a:hover {
    font-style: italic;
}

details {
    cursor: pointer;
}

details * {
    cursor: pointer;
}

details > summary {
    width: fit-content;
    background-color: var(--grr);
    padding: 0.4em 0.4ch;
    padding-bottom: 0.2em;
}

details:open > summary {
    color: var(--grn);
}

details > p {
    padding: 0.4em 0.4ch;
    background-color: var(--grr);
    margin: 0;
}

table {
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}

table th {
    text-align: left;
    font-weight: bold;
}

td {
    padding-right: 0.5ch;
}

p {
    line-height: 1.4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
}

/* RULES */

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none !important;
    }
}
