:root {
    --size_min: 14px;
    --size_text: 18px;
    --size_subheadline: 24px;
    --size_section-titles: 32px;
    --size_headline: 48px;
    --font_family_mono: "Courier New", Courier, monospace;
    --light_gray: #aeb5bd;
}

:root[data-theme="dark"] {
    --light: #ffffff;
    --text: #f0f6ff;
    --background: #1c1e1f;
    --lighter_background: #28292a;
    --darker_background: #121515;
    --primary: #81b5fd;
    --secondary: #9b0336;
    --accent: #fa5a0f;
}

:root[data-theme="light"] {
    --light: #000000;
    --text: #01142d;
    --background: #e7f0fe;
    --lighter_background: #ffffff;
    --darker_background: #aeb5bd;
    --primary: #02357e;
    --secondary: #fc6497;
    --accent: #f04f05;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

li, p, h2, h3, a, footer {
    word-spacing: 0.2em;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: "Sans Serif Collection", serif;
    line-height: 1.5;
    font-size: var(--size_text);
}

section, .navbar {
    max-width: 1400px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: var(--text);
}

.subheading {
    text-align: center;
    margin: 0 auto 30px;
    font-family: var(--font_family_mono), serif;
    text-decoration: underline;
}

.hidden {
    display: none;
}

footer {
    width: 100%;
    margin: 0;
    text-align: center;
    background-color: var(--darker_background);
    display: flex;
    flex-direction: row;
    gap: 0.2rem;
    justify-content: space-evenly;
    align-items: center;
    padding: 1.5rem;

    div {
        flex: 1;
        text-align: center;
    }

    .socials {
        display: flex;
        flex-direction: column;
        align-items: center;

        .links {
            display: flex;
            flex-direction: row;
            gap: 0.2rem;
        }
    }

    a:hover {
        text-decoration: underline;
    }

    .scrollToTop {
        margin: 0 auto;
        cursor: pointer;
        border-radius: 10px;
        padding: 5px;
        display: flex;
        flex-direction: column;
        font-size: var(--size_min);
        justify-content: center;
        align-items: center;
        width: 100px;

        svg {
            width: 25px;
            height: 25px;
            stroke: var(--light);
            fill: var(--light);
        }
    }

    .scrollToTop:hover {
        background-color: var(--lighter_background);
    }
}