:root {
    --background-dark: hsl(208, 50%, 12%);
    --background-light: hsla(208, 73%, 21%, 0.95);
    --card-background: hsl(210, 8%, 19%);
    --card-border: hsl(210, 8%, 29%);
    --card: var(--text);
    --code-background: hsl(266, 60%, 12%);
    --code-border: hsl(266, 50%, 22%);
    --code: var(--highlights);
    --font-size: calc(0.6rem + 0.6vw);
    --gradient-end: var(--background-dark);
    --gradient-start: var(--background-light);
    --header-background: hsl(29, 72.8%, 79.8%);
    --headers: hsl(195, 100%, 70%);
    --highlights: hsl(297, 80%, 75%);
    --shadow: hsl(208, 73%, 5%);
    --text: hsl(0, 100%, 100%);
}

@font-face {
    font-family: "Maple Mono";
    font-weight: bold;
    src: url("fonts/MapleMono-Bold.ttf") format("truetype");
}

@font-face {
    font-family: "Maple Mono";
    font-style: italic;
    font-weight: bold;
    src: url("fonts/MapleMono-BoldItalic.ttf") format("truetype");
}

@font-face {
    font-family: "Maple Mono";
    src: url("fonts/MapleMono-Regular.ttf") format("truetype");
}


a {
    color: var(--text);
    font-weight: bold;
    text-decoration: underline var(--highlights);
    transition: 0.2s;
}

a:hover {
    color: var(--highlights);
}

body {
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 44rem;
}

button {
    background: var(--header-background);
    border-radius: 2rem;
    border: 0.2rem solid var(--header-background);
    box-shadow:
        0 0.5rem 1rem 0 var(--shadow),
        0 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.2);
    color: var(--code-background);
    font-family: "Maple Mono";
    font-size: 1rem;
    font-weight: bold;
    min-width: 20%;
    padding: 0.5rem;
    transition: 0.2s;
}

button:active,
button:hover {
    background: var(--highlights);
    color: var(--code-background);
}

code,
textarea {
    background-color: var(--code-background);
    border-radius: 0.2rem;
    color: var(--code);
    padding: 0.025rem 0.2rem 0.1rem 0.2rem;
    transition: 0.2s;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: bold;
}

code:hover,
details:hover,
textarea:focus-within,
textarea:hover {
    border-color: var(--highlights);
    outline: none;
}

details {
    background-color: var(--card-background);
    border-radius: 1.5rem;
    border: 0.2rem solid var(--card-border);
    box-shadow:
        0 0.5rem 1rem 0 var(--shadow),
        0 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.2);
    display: block;
    font-family: "Maple Mono";
    font-weight: bold;
    height: fit-content;
    line-height: 1.5rem;
    margin: 4rem auto 4rem auto;
    overflow: auto;
    padding: 1rem;
    transition: 0.2s;
    width: 90%;
}

details > details {
    margin: 1rem;;
}

details > ul > li > a,
details > ul > ul > li > a,
details > ul > ul > ul > li > a {
    text-decoration: underline dotted var(--highlights);
}

div {
    align-content: center;
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
    justify-content: space-between;
    margin: 0;
}

div > img {
    max-width: 50%;
}

em {
    background: black;
    border-radius: 2rem;
    color: var(--highlights);
    display: inline;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    transition: 0.2s;
}

footer {
    background-color: var(--background-dark);
    border-radius: 0 0 2rem 2rem;
    font-family: "Maple Mono";
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 1rem;
    width: 100%;
}

footer > div {
    margin: 2rem;
}

footer > div > a > img,
footer > div > img {
    border-radius: 100%;
    box-shadow:
        0 0.2rem 1rem 0 var(--shadow),
        0 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.2);
    margin: 0;
    width: 4rem;
}

footer > div > p {
    margin: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
h1 > a,
h2 > a,
h3 > a,
h4 > a,
h5 > a,
h6 > a {
    color: var(--headers);
    font-size: 1.2rem;
    text-decoration: none;
    width: fit-content;
}

h1 {
    font-style: italic;
    text-align: center;
    font-size: 1.3rem;
    margin: 4rem auto auto auto;
}

h3, h4, h5, h6 {
    font-size: 1rem;
}

header {
    background-color: var(--header-background);
    border-radius: 2rem 2rem 0 0;
    font-size: var(--font-size);
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    padding-top: 1rem;
    width: 100%;

    /* vertical organization */
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-evenly;
    font-size: 1.2rem;
}

hr {
    border-color: var(--headers);
    margin-bottom: 4rem;
    width: 20%;
}

html {
    background-size: 90%;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url("images/stars.svg"), var(--background-dark);
    color: var(--text);
    font-family: "Maple Mono";
    font-size: var(--font-size);
    width: 100%;
}

img {
    display: block;
    margin: 2rem auto 2rem auto;
    max-width: 50%;
}

main {
    background: linear-gradient(
        var(--gradient-start),
        var(--gradient-end),
        var(--gradient-end)
    );
    padding-left: 1rem;
    padding-right: 1rem;
}

main > p {
    font-style: italic;
    text-align: center;
}


header #under-construction {
    color: black;
    font-weight: bold;
    font-style: italic;
    padding: 0;
    margin: 0;
    font-size: 0.6rem;
}

header a > img {
    filter: invert(1);
    margin: 0;
    max-width: 100%;
    transition: 0.2s;
    width: 10rem;
}

header a > img:hover {
    filter: invert(0);
}

nav {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    align-items: baseline;
    gap: 1rem;
}

nav > a {
    color: black;
    text-decoration: underline black;
    transition: 0.2s;
}

pre > code,
textarea {
    border: 0.2rem solid var(--code-border);
    border-radius: 2rem;
    box-shadow:
        0 0.5rem 1rem 0 var(--shadow),
        0 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.2);
    display: block;
    font-family: "Maple Mono";
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.5rem;
    margin: 1.5rem auto 2rem auto;
    max-width: 100%;
    overflow: auto;
    padding: 1.2rem;
    white-space: pre;
    width: 90%;
}

section {
    margin-bottom: 4rem;
}

summary {
    border-bottom: 0.1rem solid var(--card-border);
    cursor: pointer;
    padding-bottom: 0.5rem;
    transition: 0.2s;
}

summary:hover {
    border-color: var(--highlights);
    color: var(--highlights);
}

textarea {
    font-size: 1rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
    min-height: 22rem;
}

ul > li {
    list-style-type: disc;
    margin-top: 0.5rem;
}

dt {
    margin-top: 0.5rem;
    font-weight: bold;
}
