#loader-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #121212;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.2s ease;
}

#loader-wrapper.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    color: white;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

.loading-text span {
    display: inline-block;
    opacity: 0.3;
    animation: fadeInOutChar 2.1s infinite ease-in-out;
}

.loading-text span:nth-child(n) {
    animation-delay: calc(var(--i) * 0.1s);
}

@keyframes fadeInOutChar {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader:before , .loader:after{
    content: '';
    border-radius: 50%;
    position: absolute;
    inset: 0;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3) inset;
}

.loader:after {
    box-shadow: 0 2px 0 rgba(255, 255, 255, 0.2) inset;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {  transform: rotate(0)}
    100% { transform: rotate(360deg)}
}
