#spinnerContainer {
    position: absolute;
    left: 50%;
    top: 78%;
    width: 100%;
    max-width: 10%;
    height: 100%;
    max-height: 10%;
    background: rgba(0, 0, 0, 0);
    background-image: none;
}

.lds-ellipsis {
    display: block;
    position: absolute;
    z-index: 19;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    width: 120px;
    height: 80px;
    background: rgba(0, 0, 0, 0);
}

#fantasma-preloader-container {
    background:
        radial-gradient(ellipse at top, #1a0d0a, transparent 50%),
        radial-gradient(ellipse at bottom, #2d1f1c, transparent 50%),
        linear-gradient(135deg, #8B0000 0%, #5C0000 25%, #3D0000 50%, #5C0000 75%, #8B0000 100%),
        radial-gradient(ellipse at center, rgba(139, 69, 19, 0.3), transparent 70%);
    width: 100%;
    height: 100%;
    position: fixed;
}

#fade-in {
    -webkit-animation: fade-in 2s ease-out forwards;
    animation: fade-in 2s ease-out forwards;
}

#preloader-bg {
    width: 100%;
    height: 100%;
    top: -12px;
    position: absolute;
	transform: translateY(-8%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#preloader {
    width: 100%;
    height: 100%;
    position: absolute;
}

#loadingText {
    max-width: 50%;
}

#corpLogo {
    position: absolute;
    transform: translateX(-50%);
    left: 50%;
    bottom: 4%;
    max-height: 13vh;
    max-width: 30%;
}

#loadingText, #barBg, #progress {
    position: absolute;
    left: 50%;
    top: 65%;
    max-height: 8%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

#barBg, #progress {
    width: 80%;
    border-radius: 1.8em;
    display: grid;
    -webkit-animation: fade-in 1s ease-out;
    animation: fade-in 1s ease-out;
}

#barBg {
    height: 2.8em;
    border: 4px solid #2D1B08;
    background:
        linear-gradient(180deg, #1A0F05 0%, #3D2710 50%, #1A0F05 100%),
        radial-gradient(ellipse at center, #2D1B08, #1A0F05);
    -webkit-box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.9),
        0 0 0 2px rgba(139, 69, 19, 0.3);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.6),
        0 8px 24px rgba(0, 0, 0, 0.9),
        0 0 0 2px rgba(139, 69, 19, 0.3);
}

#progress {
    left: 10%;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    height: 2.6em;
    width: 79%;
    border: 3px solid #FFD700;
    border-radius: 1.6em;
    background:
        linear-gradient(90deg,
            #FFD700 0%,
            #FFA500 15%,
            #FF8C00 30%,
            #FFA500 50%,
            #FFD700 70%,
            #FFFF99 85%,
            #FFD700 100%
        ),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4), transparent 70%);
    -webkit-box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(255, 140, 0, 0.8),
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 35px rgba(255, 215, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4);
    box-shadow:
        inset 0 2px 6px rgba(255, 255, 255, 0.6),
        inset 0 -2px 4px rgba(255, 140, 0, 0.8),
        0 0 25px rgba(255, 215, 0, 0.8),
        0 0 35px rgba(255, 215, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
}

/* Add a subtle shimmer effect to the progress bar */
#progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer 2s infinite ease-in-out;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.lds-ellipsis div {
    position: absolute;
    width: 88px;
    height: 50px;
    background-image: url("tick.png");
    background-repeat: no-repeat;
    background-position: center;
    -webkit-animation-timing-function: cubic-bezier(0, 1, 1, 0);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: -60px;
    -webkit-animation: lds-ellipsis1 0.6s infinite;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: -60px;
    -webkit-animation: lds-ellipsis2 0.6s infinite;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 10px;
    -webkit-animation: lds-ellipsis2 0.6s infinite;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 80px;
    -webkit-animation: lds-ellipsis3 0.6s infinite;
    animation: lds-ellipsis3 0.6s infinite;
}

@-webkit-keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@-webkit-keyframes enter-in-small {
    0% {
        -webkit-transform: translate(-50%, -20%);
        transform: translate(-50%, -20%);
        opacity: 0;
    }
    100% {
        -webkit-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes enter-in-small {
    0% {
        -webkit-transform: translate(-50%, -20%);
        transform: translate(-50%, -20%);
        opacity: 0;
    }
    100% {
        -webkit-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@-webkit-keyframes enter-in {
    0% {
        -webkit-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
        opacity: 0;
    }
    100% {
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes enter-in {
    0% {
        -webkit-transform: translate(-50%, 0);
        transform: translate(-50%, 0);
        opacity: 0;
    }
    100% {
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@-webkit-keyframes lds-ellipsis1 {
    0% {
        -webkit-transform: translate(-120px, 0);
        transform: translate(-120px, 0);
        opacity: 0;
    }
    100% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
        opacity: 1;
    }
}

@keyframes lds-ellipsis1 {
    0% {
        -webkit-transform: translate(-120px, 0);
        transform: translate(-120px, 0);
        opacity: 0;
    }
    100% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
        opacity: 1;
    }
}

@-webkit-keyframes lds-ellipsis2 {
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
    100% {
        -webkit-transform: translate(70px, 0);
        transform: translate(70px, 0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
    }
    100% {
        -webkit-transform: translate(70px, 0);
        transform: translate(70px, 0);
    }
}

@-webkit-keyframes lds-ellipsis3 {
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        -webkit-transform: translate(120px, 0);
        transform: translate(120px, 0);
        opacity: 0;
    }
}

@keyframes lds-ellipsis3 {
    0% {
        -webkit-transform: translate(0, 0);
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        -webkit-transform: translate(120px, 0);
        transform: translate(120px, 0);
        opacity: 0;
    }
}