:where(#st-loading-overlay) {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    transition: opacity 0.3s ease;
}

:where(#st-loader-svg) {
    width: 200px;
    height: 200px;
}

:where(#st-loader-svg) svg {
    width: 100%;
    height: 100%;
}

:where(#st-loading-overlay.st-loader-visible) {
    opacity: 1;
    pointer-events: all;
}

:where(#st-loading-overlay.st-loader-hidden) {
    opacity: 0;
    pointer-events: none;
}

:where(#st-loading-message) {
    color: white;
    font-size: 18px;
    margin-top: 20px;
    text-align: center;
    max-width: 80%;
    min-height: 1.4em;
}

:where(.st-loading-inline) {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

:where(.st-loading-inline)::before {
    content: "";
    background-image: url("../assets/st-loader.svg");
    width: 200px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

:where(.st-loading-inline.st-loading-inline-dark)::before {
    /* generated on https://angel-rs.github.io/css-color-filter-generator/ to get the RCL blue */
    filter: brightness(0) saturate(100%) invert(7%) sepia(59%) saturate(2935%)
        hue-rotate(238deg) brightness(112%) contrast(103%);
}
