﻿.btn-progress,
.viewer-progress {
    font-family: 'M PLUS Rounded 1c', sans-serif !important;
    height: fit-content;
    margin: 0 auto !important;
    background: var(--loading-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-progress {
    width: 196px;
    height: 33px;
    margin: 2px;
    z-index: 0;
    font-size: 12px;
    line-height: 31px;
    color: var(--text-color);
    border-radius: 28px;
    background: var(--main-bg-color);
    box-shadow: inset 6px 6px 12px var(--main-shadow-dark), inset -6px -6px 12px var(--main-shadow-light);

}

#viewer_progress {
    margin: 0 auto !important;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#loading_progress {
    border-radius: 28px;
    line-height: 28px;
}


.loading span {
    font-family: 'M PLUS Rounded 1c', sans-serif !important;
    font-weight: bold;
    color: var(--loading-bg-color);
    margin: 0 8px;
    font-size: 12px;
    animation: animate 2.4s linear infinite;
}

.loading {
    margin: 0px !important;
    justify-content: center;
}

@keyframes animate {
    0% {
        text-shadow: -6px -6px 14px var(--text-shadow-color-light), 6px 6px 10px var(--text-shadow-color-dark);
        transform: scaleX(1);
    }

    40% {
        text-shadow: inset -6px -6px 14px var(--text-shadow-color-light), inset 6px 6px 10px var(--text-shadow-color-dark);
        transform: scale(1.4);
    }

    80%, 100% {
        text-shadow: inset -6px -6px 14px var(--text-shadow-color-light), inset 6px 6px 10px var(--text-shadow-color-dark);
        transform: scale(1);
    }
}

.loading span:nth-child(1) {
    animation-delay: 0s;
}

.loading span:nth-child(2) {
    animation-delay: 0.25s;
}

.loading span:nth-child(3) {
    animation-delay: 0.5s;
}

.loading span:nth-child(4) {
    animation-delay: 0.75s;
}

.loading span:nth-child(5) {
    animation-delay: 1.0s;
}

.loading span:nth-child(6) {
    animation-delay: 1.25s;
}

.loading span:nth-child(7) {
    animation-delay: 1.5s;
}

.loading span:nth-child(8) {
    animation-delay: 1.75s;
}
