@font-face {
    font-family: "Montserrat Variable";
    src: url("./assets/fonts/montserrat-latin-wght-normal.woff2")
        format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --background: #181825;
    --primary: #89b4fa;
    --secondary: #fab387;
    --white: #dfdfdf;
    --nav-button-size: 32px;

    --full-height: 100dvh;
    --full-width: 100dvw;
}
html {
    font-size: 18px;
}

html,
body {
    background-color: var(--background);
    color: var(--white);
    font-family: "Montserrat Variable", sans-serif;
}
body {
    font-size: 1rem;
    width: 100%;
    height: 100%;
}

#container {
    position: relative;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    height: 100vh;
    height: var(--full-height);
    width: 100vw;
    width: var(--full-width);
    overflow-y: scroll;
    overflow-x: hidden;
    transition: height 0.3s ease-in-out;

    container-type: scroll-state;
    container-name: scroll-container;
}

section {
    height: 100vh;
    height: var(--full-height);
    width: 100vw;
    width: var(--full-width);
    transition: height 0.1s ease-in-out;
    scroll-snap-align: start;
}
.hidden {
    display: none !important;
}
section,
.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

sup {
    color: var(--white);
    letter-spacing: 0;
    font-size: 0.6rem;
}
.content-wrapper {
    max-width: 800px;
    width: 100%;
}
section p:not(:last-of-type),
section figure {
    margin-bottom: 28px;
}
section figure img {
    max-width: 100%;
}
section p {
    width: 100%;
}
section details {
    margin-bottom: 16px;
    width: 100%;
}
section details summary {
    font-style: italic;
    cursor: pointer;
}
section details p {
    margin-top: 6px;
    padding: 16px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
}
section.text-justify p:not(.tc) {
    text-align: justify;
    letter-spacing: 1px;
    line-height: 1.4rem;
}

.note,
.weak {
    font-size: 0.8rem;
    font-style: italic;
}
h1 {
    color: var(--primary);
}
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 32px;
    text-transform: capitalize;
}

aside {
    font-size: 1.4rem;
}

* {
    font-family:
        "Montserrat Variable",
        -apple-system,
        system-ui sans-serif;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

*::selection {
    background-color: var(--primary);
    color: var(--background);
}

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

.shiny {
    background: linear-gradient(
        137deg,
        var(--primary) 0%,
        var(--secondary) 33%,
        var(--primary) 62%,
        var(--secondary) 100%
    );
    background-size: 400%;
    animation: shine 2s linear infinite;
    animation-direction: alternate;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

    30%,
    70% {
        background-position: 0%;
    }
}

section#upload {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 96px;
    justify-content: center;
    align-items: center;
}
section#upload > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
section#upload > div > aside {
    text-align: left;
}

.pb {
    padding-block: 12px;
}
.tc {
    text-align: center;
}

@media screen and (max-width: 768px) {
    html {
        font-size: 12px;
    }
}

input {
    font-size: 1.2rem;
    padding: 8px;
}
input#download-url {
    width: 800px;
    max-width: 90vw;
    text-align: center;
    padding: 8px;
}
