:root {
    --primary: black;
    --secondary: #1f2020;
    --tertiary: white;
    --quaternary: #484C4C;
    --accent: #b0bff8;
    --dark-shadow: #0d0d0d;
    font-size: 10px;
    font-family: sans-serif;
    text-align: center;
    scrollbar-color: var(--accent) var(--quaternary);
    scrollbar-width: thin;
}
* {
    box-sizing: border-box;
    user-select: none;
}

html, body {
    margin: 0;
    padding: 0;
}
body {
    overflow-x: hidden;
    background-color: var(--secondary);
    color: var(--tertiary);
}

/* #region Main Animations */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}
@keyframes fade-in-down {
    from {
        top: -1rem;
        opacity: 0;
    }
    to {
        top: 0;
        opacity: 1;
    }
}
@keyframes fade-in-left {
    from {
        left: -2rem;
        opacity: 0;
    }
    to {
        left: 0;
        opacity: 1;
    }
}
@keyframes fade-in-right {
    from {
        right: -2rem;
        opacity: 0;
    }
    to {
        right: 0;
        opacity: 1;
    }
}
@keyframes fade-in-expand {
    from {
        width: 0%;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}
@keyframes streak {
    0%, 50% {
        width: 0%;
        background-color: var(--secondary);
        box-shadow: none;
    }
    100% {
        width: 20%;
        background-color: var(--accent);
        box-shadow:
            0 0 0.1rem 0.1rem var(--accent),
            0 0 1rem 0.1rem var(--accent);
    }
}
@keyframes glow {
    0%, 50% {
        background-color: var(--dark-shadow);
        box-shadow: none;
    }
    100% {
        background-color: var(--accent);
        box-shadow:
            0 0 0.1rem 0.1rem var(--accent),
            0 0 5rem 0.5rem var(--accent);
    }
}
/* #endregion */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
}
.navbar {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 2.5rem;
    background-color: var(--secondary);
    border-bottom: 1px solid var(--accent);
    box-shadow:
        inset 0 0 0.2rem -0.2rem var(--accent),
        0.05rem 0.05rem var(--accent),
        0.1rem 0.1rem 0.5rem var(--accent);
    transition: box-shadow 0.5s;
    ul {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        height: inherit;
        width: inherit;
    }
}
.navbar:hover {
    box-shadow:
        inset 0 -0.1rem 0.2rem -0.2rem var(--accent),
        0 0.1rem var(--accent),
        0 0.2rem 0.5rem var(--accent);
}
.navlink {
    color: var(--tertiary);
    font-size: 1rem;
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    transition: font-size 0.25s, background-color 0.25s, color 0.25s, border 0.25s;
}
.navlink:hover {
    background-color: var(--tertiary);
    color: var(--secondary);
    font-size: 1.2rem;
}
.navlink:active {
    background-color: var(--primary);
    color: var(--tertiary);
    border: 1px solid var(--quaternary);
}
.banner {
    width: 100%;
    filter: brightness(0.5) blur(2px);
    object-fit: cover;
}
.page-title-cont {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 30rem;
    height: 7.5rem;
    padding: 0 1rem;
    z-index: 1;
}
.page-title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    opacity: 1;
    margin: 0;
    border-left: 0.2rem solid var(--tertiary);
    border-right: 0.2rem solid var(--tertiary);
    border-radius: 2rem;
    animation: fade-in-expand 2s;
    & h1 {
        margin: 0;
        opacity: 0;
        font-size: 5rem;
        animation: fade-in-down 1s 1s forwards;
    }
}

main {
    position: relative;
    background-color: var(--primary);
    margin: 1.5rem;
    margin-bottom: 0;
    border-radius: 1rem;
    padding: 2rem;
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    p {
        color: var(--quaternary);
        font-size: 0.75rem;
        margin: 1rem 0;
    }
}

hr {
    border: none;
    border-top: 1px solid var(--tertiary);
}

/* #region Animation Effects */
.streaks-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: absolute;
    gap: 0.5rem;
    width: 100%;
}
.streaks-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    position: absolute;
    gap: 0.5rem;
    width: 100%;
}
.streak {
    background-color: var(--secondary);
    width: 0%;
    height: 0.5rem;
    animation: streak 2s infinite alternate;
}

main::before, main::after {
    content: '';
    position: absolute;
    width: 0.1rem;
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-shadow);
    animation: glow 3s ease-in-out 1s infinite alternate;
}
main::before {
    left: 3rem;
}
main::after {
    right: 3rem;
}
main * {
    position: relative;
    z-index: 2;
}

#animation-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1000;
    pointer-events: none;
}

@keyframes click-effect {
    from {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}
.click-effect {
    position: fixed;
    width: 100px;
    height: 100px;
    background-color: transparent;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.9;
    box-shadow:
        inset 0 0 1rem var(--accent),
        0 0 1rem var(--accent);
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: click-effect 0.5s ease-out forwards;
}

@keyframes ui-alert {
    0% {
        bottom: -3rem;
        opacity: 0;
        transform: translate(-50%, -50%) rotateY(-300deg);
    }
    20% {
        bottom: 1rem;
        opacity: 1;
        transform: translate(-50%, -50%) rotateY(0);
    }
    80% {
        bottom: 1rem;
        opacity: 1;
        transform: translate(-50%, -50%) rotateY(0);
    }
    100% {
        bottom: 1rem;
        opacity: 0;
        transform: translate(-50%, -50%) rotateY(300deg) scale(1.2);
    }
}
.ui-alert {
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: -3rem;
    left: 50%;
    opacity: 0;
    padding: 0.5rem;
    transform: translate(-50%, -50%);
    background-color: var(--quaternary);
    border-radius: 0.5rem;
    animation: ui-alert 3s forwards;
    p {
        margin: 0;
    }
}
/* #endregion */

.js-only {
    display: none;
}

@media only screen and (min-width: 600px) {
    /* Tablets */
    :root {
        font-size: 17.5px;
    }
    .streak {
        height: 0.875rem;
    }
}
@media only screen and (min-width: 992px) {
    /* Desktop */
    :root {
        font-size: 20px;
    }
    .streak {
        height: 1rem;
    }
}