* {
    padding: 0;
    margin: 0;

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

html {
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000;
    color: #effcde;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

body {
    /* We make sure the page will always be centered and adapt well to mobile
       screens */
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    height: 100vh;
    margin: auto;
    padding: 16pt;
    padding-bottom: 0;
    font-size: 1em;

    font-family: monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;

    display: flex;
    flex-direction: column;
    text-align: justify;

    align-items: center;
    justify-content: center;
    /*gap: 5ch;*/
}

section {
    display: none;
    height: 50vh;
    overflow: scroll;
}

section:target {
    display: block;
}

hr {
    margin: 10px 0px;
    border: none;
    outline: none;
    width: 100%;
    border-bottom: 2px dashed rgba(55, 255, 255, 0.5);
}

p:not(:first-child) {
    padding-top: 1em;
}

/* Make every header, that is not directly followed by another header, have a
   padding */
h1:not(:first-child),
h2:not(:first-child),
h3:not(:first-child),
h4:not(:first-child),
h5:not(:first-child) {
    padding-top: 20px;
}

ul {
    display: flex;
    flex-direction: column;
    gap: 1ch;
    list-style-position: inside;
    padding: 1.5ch;
}

code {
    display: inline-block;
    font-family: monospace;
    border: 2px solid rgba(0, 0, 255, 0.4);
    background-color: rgba(255, 0, 255, 0.1);
}

:not(pre) > code {
    padding: 2px 4px;
}

pre:has(code) {
    border: 1px solid rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.1);

    padding: 12px;
    color: black;
    overflow-x: scroll;
}

article {
    border: 1px solid rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.1);

    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

table {
    margin-top: 10px;
    margin-bottom: 10px;
    border-collapse: collapse;
    overflow: hidden;
}

th,
td {
    padding: 8px;
}

blockquote {
    width: fit-content;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1ch;
}

/* "Hover to reveal" type spoilers. */
span.spoiler {
    background-color: grey;
    color: grey;
    &:hover {
        color: inherit;
        background-color: inherit;
    }
}

div.centerbox {
    text-align: center;
}

#TITLE {
    margin-top: auto;
    display: block;
    width: auto;
    color: rgba(155, 255, 205, 1);
}

#TITLE > a {
    color: rgba(155, 255, 205, 1);
    display: unset;
    text-decoration: none;
    border: 0;
}

#content {
    width: 60%;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 8pt;
    overflow: scroll;
    /*border: 2pt ridge;*/
}

#content a {
    display: inline-block;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 2px;
}

#content a:visited {
    display: inline-block;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    padding: 2px;
}

#content a:hover {
    color: rgba(155, 255, 205, 1);
}

#content table {
    margin: auto;
    width: 50%;
}

footer {
    width: 60%;
    margin-top: auto;
    padding: 1ch;

    justify-self: flex-end;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1ch;
}

footer a {
    color: rgba(255, 255, 255, 0.2);
}

footer a:hover {
    color: rgba(255, 100, 10, 0.4);
}

.warning {
    color: yellow;
}

.visible {
    height: fit-content;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1ch;
}

.visible div {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 1ch;
}

.visible div *:nth-child(odd) {
    color: rgba(5, 205, 255, 1);
}

.visible p {
    padding: 0 !important;
}
