/* © 2021 - 2026 Joalor64, All rights reserved. */
/* Made with ❤️ */

/* Special thanks to Rizsim Studios for a ton of improvements and fixes! */

:root {
    --bg: #22232f;
    --fg: white;
    --divider: #43444e;

    --default-button-color: #007bff;
    --default-button-hover-color: #0056b3;
    --secondary-button-color: #28a745;
    --secondary-button-hover-color: #218838;
    --noCoverImage: url("/img/thumbnails/placeholder.png");
}

html.lightmode {
    --bg: #fafafa;
    --fg: black;
    --divider: #ccc;
}

.preload *,
.preload *::before,
.preload *::after {
    transition: none !important;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background-color: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid #1976d2;
    outline-offset: 2px;
}

.navLinesBurger {
    display: none;
    position: absolute;
    cursor: pointer;
    top: 22px;
    right: 55px;
    z-index: 10001;
}

main {
    flex: 1 0 auto;
    min-width: 0;
}

#topnav-container {
    min-height: 48px;
}

img {
    user-select: none;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::-webkit-scrollbar-thumb {
    background-color: #3c3c3c;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #3c3c3cae;
}

::-webkit-scrollbar-corner {
    background-color: #f1f1f1;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/font/poppins-regular.woff2) format('woff2');
}

@font-face {
    font-family: 'Jua';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url(/font/jua-latin.woff2) format('woff2');
}

hr {
    border: none;
    width: 70%;
    height: 1px;
    background-color: var(--divider);
}

a,
a:link,
a:visited {
    color: inherit;
    text-decoration: none;
}

footer {
    background: linear-gradient(to bottom, #ffffff00, #000000);
    padding: 10px;
}

footer p {
    font-size: 20px;
    padding-bottom: 10px;
}

.header {
    font-size: 46px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sub-head {
    font-size: 1.5em;
    margin: 0.83em 0;
    font-weight: normal;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.topnav {
    background-color: #333;
    top: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 5000;
    align-items: center;
}

.topnav .txt {
    position: absolute;
    left: 12px;
    top: 54%;
    transform: translateY(-50%);
    color: white;
    font-family: 'Jua', sans-serif;
    font-size: clamp(18px, 2vw, 30px);
    white-space: nowrap;
}

.topnav a,
.topnav .theme-toggle {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px clamp(8px, 1vw, 16px);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: clamp(14px, 1vw, 17px);
}

.topnav a:hover,
.topnav .theme-toggle:hover {
    background-color: #ddd;
    cursor: pointer;
    color: black;
}

.topnav a.active {
    background-color: #04AA6D;
    cursor: default;
    color: white;
}

.topnav-middle {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
}

.topnav .theme-toggle {
    background: none;
    border: 0;
    margin: 0;
    font-family: inherit;
    line-height: normal;
    cursor: pointer;
}

.topnav .navLinesBurger {
    background: none;
    border: 0;
    padding: 0;
    color: #f2f2f2;
    font-size: inherit;
    line-height: 1;
}

.topnav-right {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
}

.mobile-nav {
    display: none;
}

.announcement-banner {
    width: 100%;
    background: linear-gradient(90deg, #ffecb3 0%, #ffe082 100%);
    color: #222;
    font-size: 20px;
    font-weight: 600;
    padding: 14px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    z-index: 999;
    position: relative;
    letter-spacing: 0.5px;
}

.announcement-banner.discontinued {
    background: linear-gradient(90deg, #ffb3b3 0%, #ff8282 100%);
}

.announcement-banner.completed {
    background: linear-gradient(90deg, #b3ffb3 0%, #8cff8c 100%);
}

.progress-circle-wrapper {
    background: none;
    border: 0;
    padding: 0;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
    transition:
        opacity 0.3s cubic-bezier(.4, 2, .4, 1),
        transform 0.3s cubic-bezier(.4, 2, .4, 1);
}

.progress-circle-wrapper.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.progress-circle {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.progress-circle:hover {
    transform: scale(1.10);
}

.progress-circle>svg {
    transform: rotate(-90deg);
}

.progress-arrow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%);
    display: flex;
    font-size: 16px;
    pointer-events: none;
    color: black;
}

.hr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 40px auto;
    width: 80%;
}

.hr-container::before,
.hr-container::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: var(--divider);
}

.hr-container span {
    font-size: 30px;
    font-weight: bold;
    font-family: inherit;
    white-space: nowrap;
    padding: 0 12px;
}

.oopsImg {
    background-image: url('/img/faviconOops.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.not-found-title {
    font-size: 60px;
    margin-bottom: -5px;
}

a.homeButton {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 25px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: var(--default-button-color);
    color: white;
    transition: background-color 0.3s;
    font-family: inherit;
}

a.homeButton svg {
    vertical-align: -0.1em;
}

a.homeButton:hover {
    background-color: var(--default-button-hover-color);
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 10px;
    }

    .navLinesBurger {
        display: block;
        position: absolute;
        cursor: pointer;
        top: 31%;
        right: 125%;
    }

    .topnav {
        position: relative;
    }

    .topnav a,
    .topnav .theme-toggle {
        float: none;
        display: block;
        text-align: left;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        width: calc(100% - 20px);
        max-width: 500px;
        height: auto;
        background: #111;
        border-radius: 8px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        transform-origin: top center;
        pointer-events: none;
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .mobile-nav.open {
        transform: translateX(-50%) translateY(0);
        pointer-events: auto;
        opacity: 1;
        display: flex;
    }

    .mobile-nav a {
        color: white;
        text-decoration: none;
        font-size: 18px;
    }

    .mobile-nav a.active {
        background-color: #04AA6D;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 420px) {
    body {
        padding: 10px;
    }

    .topnav {
        padding: .35rem .0rem;
        border-radius: 8px;
        gap: 8px
    }

    .topnav a,
    .topnav .theme-toggle {
        padding: .4rem .6rem;
        font-size: .92rem;
    }
}

@media (max-width: 412px) {
    .hr-container span {
        font-size: 20px;
    }
}