:root {
    --text: hsl(0, 0%, 100%);
    --headers: hsl(200, 100%, 66%);
    --foreground: hsl(207, 80%, 40%);
    --background: hsl(208, 73%, 15%);
    --highlights: hsl(297, 100%, 68%);

    --card: var(--text);
    --card-background: hsl(210, 8%, 19%);
    --card-border: var(--foreground);

    --code: var(--highlights);
    --code-background: hsl(266, 100%, 12%);
    --code-border: var(--foreground);
}

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

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

html {
    color: var(--text);
    background: linear-gradient(
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.5)
    ), url("/images/stars.svg"), var(--background);
    font-size: calc(0.8rem + 0.5vw);
    font-family: "Maple Mono";
    background-size: 100%, cover;
    background-repeat: no-repeat;
}

body {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(
        hsla(208, 73%, 15%, 0.95),
        hsla(208, 73%, 15%, 0.95)
    ), url(images/stars.svg), var(--background);
    border: 0.2rem inset var(--foreground);
    border-radius: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

code {
    font-family: "Maple Mono";
    color: var(--code);
    background-color: var(--code-background);
    border: 0.2rem solid var(--code-border);
    border-radius: 2rem;
    padding: 1rem;
    font-weight: bold;
    height: fit-content;
    width: fit-content;
    margin-top: 4rem;
    margin-bottom: 4rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5rem;
    white-space: pre;
    display: block;
    max-width: 90%;
    overflow: scroll;
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 1.0), 0 0.1rem 0.2rem 0 rgba(0, 0, 0, 0.2);
    transition: 0.2s;
}

header {
    font-size: 1.3rem;
    margin-top: 1rem;
    margin-bottom: 5rem;
    border-bottom: dashed 0.1rem var(--foreground);
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

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

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

nav > ul {
    padding: 0;
    list-style: none;
    margin: 0;
    font-weight: bold;
}

nav > ul > li {
    display: inline-block;
    margin-right: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--headers);
}

h1 {
    text-align: center;
    font-style: italic;
}

h2 {
    border-bottom: 0.1rem dashed var(--foreground);
}

hr {
    color: var(--foreground);
    border-style: dashed;
    border-width: 0.1rem;
    width: 10rem;
}

section {
    margin-top: 5rem;
    margin-bottom: 5rem;
}

nav > a > img {
    width: 10rem;
    margin-bottom: 0.5rem;
}

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

footer {
    font-family: "Maple Mono";
    font-weight: lighter;
    margin: auto;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
}

footer > hr {
    width: 100%;
    margin-bottom: 2rem;
}

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

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

summary {
    cursor: pointer;
    border-bottom: 0.1rem dashed var(--foreground);
    transition: 0.2s;
}

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

code:hover, details:hover {
    border-color: var(--highlights);
}

details > ul > li > a {
    text-decoration: none;
}
