body {
    --questHeight: 20%;
    --mainMaxWidth: 500px;
    /*
    background-color: #ffffff;
    background-image: radial-gradient(#ff0000 0.6000000000000001px, #ffffff 0.6000000000000001px);
    background-size: 12px 12px;
    */
    transition: all 0.5s ease-in-out;
    font-optical-sizing: auto;
    font-family: "Poppins", sans-serif;
    font-style: normal;
    font-size: 0.7rem;
    line-height: 1.2;
    overflow: hidden;
}

.quizGrid {
    display: none !important;
}

#background {
    z-index: -20;
    opacity: 0.2;
    height: 100vh;
    width: 100vw;

    background: radial-gradient(
            70% 70% at 25% 30%,
            rgba(255, 0, 110, 0.5) 0%,
            /* neon pink */ rgba(255, 154, 0, 0.6) 50%,
            /* vibrant orange */ rgba(255, 255, 255, 0) 100%
        ),
        radial-gradient(
            80% 80% at 80% 70%,
            rgba(0, 255, 200, 0.4) 0%,
            /* aqua */ rgba(0, 122, 255, 0.5) 50%,
            /* vivid blue */ rgba(255, 255, 255, 0) 100%
        ),
        radial-gradient(
            60% 60% at 90% 10%,
            rgba(181, 0, 255, 0.4) 0%,
            /* electric purple */ rgba(255, 255, 255, 0) 100%
        ),
        linear-gradient(
            135deg,
            rgba(255, 255, 0, 0.5) 10%,
            /* bright yellow */ rgba(255, 0, 255, 0.4) 80% /* hot magenta */
        );

    background-blend-mode: screen, lighten, overlay, hard-light;
    filter: blur(30px);
}

#main {
    height: 97dvh;
    width: 97vw;
    max-width: var(--mainMaxWidth);
    max-height: calc(var(--mainMaxWidth) * 18 / 9);
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    border: solid;
    border-width: 0;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.1));
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.6);
    overflow: scroll;
}

@media (min-width: 1024px) {
    #main {
        height: 90dvh;
    }
}

a {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#loadingSpinner {
    height: 100%;
    width: 100%;
    display: none;
}
/* HTML: <div class="loader"></div> */
.loader {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60%;
    width: 50px;
    aspect-ratio: 1;
    background: #000000;
    position: relative;
    animation: l8-0 2.5s infinite linear alternate;
}
.loader:before {
    content: "";
    position: absolute;
    inset: 0;
    background: #a5a5a5;
    transform: translate(100%);
    transform-origin: top left;
    animation: l8-1 0.5s infinite alternate;
}
@keyframes l8-0 {
    0%,
    19.9%,
    80%,
    100% {
        transform: scale(1, 1);
    }
    20%,
    39.9% {
        transform: scale(-1, 1);
    }
    40%,
    59.9% {
        transform: scale(-1, -1);
    }
    60%,
    79.9% {
        transform: scale(1, -1);
    }
}
@keyframes l8-1 {
    0%,
    20% {
        transform: translate(100%) rotate(0);
    }
    80%,
    100% {
        transform: translate(100%) rotate(-180deg);
    }
}

#popup {
    z-index: 10000;
    font-size: 13px;
    height: calc(100% - 100px);
    width: calc(100% - 60px);
    border-radius: 15px;
    padding-top: 20px;
    padding-right: 20px;
    margin: 20px;
    background-color: rgba(255, 255, 255, 1);
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.1));
    backdrop-filter: blur(20px);
    position: fixed;
}

#popup h2 {
    text-align: center;
}

#popup button {
    margin-top: 20px;
}

#popup li {
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 15px;
}
