*, *::before, *::after {
    /* box-sizing: border-box; */
}

html,
body,
app {
    height: 100%;
    min-height: 100%;
    margin: 0;
}

#loaderWrapper {
    height: inherit;
    width: inherit;
    display: flex;
    justify-content: center;
    align-items: center;

    padding-bottom: 10vh;
    background-color: var(--loader-background);
}

#noScriptError {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, -10vh);
}

#noScriptError h3 {
    font-family: 'Play';
    font-weight: 400;
}

#noScriptError p {
    font-family: Roboto, Helvetica Neue, Helvetica, Arial, sans-serif;
    width: max-content;
    max-width: 80vw;
}

#loader {
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
}

#loader img {
    width: 200px;
    height: 200px;
    max-width: 100%;
    max-height: 100%;
}

/* Progress Bar */
#loadProgress {
    position: relative;
    height: 4px;
    width: 300px;
    max-width: 100%;
    /* background-color: #676767; */
    background-color: var(--loader-primary);
    border-radius: 100vw; /* Forces perfect pill shape regardless of size. */
    -webkit-background-clip: border-box;
    background-clip: border-box;
    overflow: hidden;
}

#loadProgress .indeterminate {
    /* background-color: #e3af30; */
    background-color: var(--loader-secondary);
}

#loadProgress .indeterminate:before {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
    animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
}

#loadProgress .indeterminate:after {
    content: '';
    position: absolute;
    background-color: inherit;
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;
    -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
    -webkit-animation-delay: 1.15s;
    animation-delay: 1.15s;
}

@-webkit-keyframes indeterminate {
    0% {
        left: -35%;
        right: 100%;
    }

    60% {
        left: 100%;
        right: -90%;
    }

    100% {
        left: 100%;
        right: -90%;
    }
}

@keyframes indeterminate {
    0% {
        left: -35%;
        right: 100%;
    }

    60% {
        left: 100%;
        right: -90%;
    }

    100% {
        left: 100%;
        right: -90%;
    }
}

@-webkit-keyframes indeterminate-short {
    0% {
        left: -200%;
        right: 100%;
    }

    60% {
        left: 107%;
        right: -8%;
    }

    100% {
        left: 107%;
        right: -8%;
    }
}

@keyframes indeterminate-short {
    0% {
        left: -200%;
        right: 100%;
    }

    60% {
        left: 107%;
        right: -8%;
    }

    100% {
        left: 107%;
        right: -8%;
    }
}
