#spinnerContainer {
    position: absolute;
    left: 50vw;
    top: 70%;
    max-width: 90%;
    max-height: 90%;
    background: rgba(0, 0, 0, 0);
    background-image: none;
    z-order: 9999;
}

.lds-ellipsis {
    display: block;
    position: absolute;
    z-index: 19;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 120px;
    height: 80px;
    background: rgba(0, 0, 0, 0);
}

#preloaderContainer {
    background: radial-gradient(ellipse at center, #492956, rgb(0, 0, 0));
}


#preloader-bg-image {
    position: fixed;
    top: 20%;
    scale: 1.5;
    transform: translateX(-50%);
    left: 50%;
    transform-origin: left;
}

#preloader-bg {
    width: 100%;
    height: 100%;
    position: fixed;
    animation: fade-in 2s ease-out forwards;
}

#preloader {
    width: 100vw;
    height: 100vh;
    position: absolute;
    background-image: url("PRELOADER_BG.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    animation: fade-in 2s ease-out forwards;
}

@media (orientation: landscape) {
    #preloader {
        background-size: contain;
    }
}

#barBg, #progress {
    position: absolute;
    width: 60%;
    display: grid;
    left: 50%;
    top: 63%;
    max-height: 10%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    animation: fade-in 1s ease-out;

}

#barBg {
    height: 2.2em;
    border-radius: 0.9em;
    border: 1px solid #9c7aab;
    background: radial-gradient(ellipse at top, #462d7020, #12022520),
    radial-gradient(ellipse at bottom, #4b2e7320, #1e073d20);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

#progress {
    left: 20%;
    height: 2.15em;
    border-radius: 0.9em;
    width: 10%;
    border: 1px solid #9c71d4;
    transform: translate(0%, -50%);
    box-shadow: 0 0 20px rgb(225, 90, 255);
    background: radial-gradient(ellipse at bottom, rgb(235, 86, 251), #6732ad);
}

#game-logo {
    z-index: 15;
    position: absolute;
    max-width: 90%;
    max-height: 20%;
    left: 50%;
    top: 80%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.lds-ellipsis div {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: url("PRELOADER_TICK.png");
    background-repeat: no-repeat;
    background-position: center;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 0px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 0px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 50px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 100px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes enter-in-small {
    0% {
        transform: translate(-50%, -20%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes enter-in {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes lds-ellipsis1 {
    0% {
        transform: translate(-70px, 0) scale(0.75);
        opacity: 0;
    }
    100% {
        transform: translate(-20px, 0) scale(1);
        opacity: 1;
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(-20px, 0);
    }
    100% {
        transform: translate(30px, 0);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: translate(-70px, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(20px, 0) scale(0.75);
        opacity: 0;
    }
}

@keyframes particle {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
        scale: 0.5;
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50px);
        scale: 0.7;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -100px);
        scale: 1;
    }
}

@keyframes particles {
    0% {
        opacity: 0;
        scale: 0.5;
    }
    50% {
        opacity: 1;
        scale: 0.7;
    }
    100% {
        opacity: 0;
        scale: 1;
    }
}
