body {
    background: #190024;
}

#spinnerContainer {
    position: absolute;
    left: 50vw;
    top: 120%;
    max-width: 90%;
    max-height: 90%;
    background: rgba(0, 0, 0, 0);
    background-image: none;
    z-order: 9999;
    display: none;
}

.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, #562929, rgb(0, 0, 0));
}

#preloader-bg-image {
    position: fixed;
    max-height: 125%;
    max-width: 140%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    left: 50%;
    transform-origin: left;
}

#preloader-bg {
    width: 100%;
    height: 100%;
    position: fixed;
    animation: fade-in 2s ease-out forwards;
}

#preloader-image {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    max-height: 100%;
    max-width: 100%;
    z-index: 20;
}

#preloader {
    top: 2.5%;
    max-height: 70%;
    max-width: 100%;
    position: absolute;
    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: 106.5%;
    max-height: 10%;
    -webkit-transform: translateX(-50%) translateY(-25%);
    transform: translateX(-50%) translateY(-25%);
    animation: fade-in 1s ease-out;

}

#barBg {
    height: 2.2em;
    border-radius: 0.9em;
    border: 4px solid #32303C;
    background: radial-gradient(ellipse at top, #ff151520, #25020220),
    radial-gradient(ellipse at bottom, #73422e20, #3d070720);
    box-shadow: 0px 0px 35px #BF0902;
}

#progress {
    left: 20%;
    height: 2.2em;
    border-radius: 0.7em;
    width: 10%;
    transform: translate(0%, -50%);
    background: radial-gradient(ellipse at bottom, #FF0000, #711403);
}

#game-logo {
    z-index: 21;
    position: absolute;
    max-width: 95.5%;
    max-height: 50%;
    left: 50%;
    top: 69%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.lds-ellipsis div {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url("PRELOADER_TICK.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    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;
    }
}
