

/* CUSTOM CSS - LOADING */

div.loading {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999997;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: 0.4s;
}


div.loading.active {
    visibility: visible;
    opacity: 1;
    transition: 0.4s;
}


div.loading > div.shadow-container {
    height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


div.loading > div.shadow-container > div.shadow-main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100px;
    width: 100px;
    border-radius: var(--defaultBorderRadius);
    background-color: var(--loadingContainerBackgroundColor);
    animation: loading-shadow-fade-container 3s infinite;
}

div.loading > div.shadow-container > div.shadow-main > img {
    max-width: 100%;
    width: auto;
    max-height: 100%;
    height: auto;
    padding: 12px;
}

div.loading > div.shadow-container > div.shadow-main > div.shadow-1,
div.loading > div.shadow-container > div.shadow-main > div.shadow-2,
div.loading > div.shadow-container > div.shadow-main > div.shadow-3 {
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    z-index: -1;
    background-color: var(--loadingShadowBackgroundColor);
    opacity: 0.3;
    position: absolute;
    border-radius: var(--defaultBorderRadius);
    animation: loading-shadow-fade-1 3s infinite;
}

div.loading > div.shadow-container > div.shadow-main > div.shadow-2 {
    width: calc(100% + 32px);
    height: calc(100% + 32px);
    z-index: -2;
    animation: loading-shadow-fade-2 3s infinite;
}

div.loading > div.shadow-container > div.shadow-main > div.shadow-3 {
    width: calc(100% + 48px);
    height: calc(100% + 48px);
    z-index: -3;
    animation: loading-shadow-fade-3 3s infinite;
}


div.loading > span.text {
    font-size: 20px;
    margin-top: 40px;
    color: #eee;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
}




@keyframes loading-shadow-fade-container {
    0%, 10% {
        height: 100px;
        width: 100px;
    }

    20%, 80% {
        height: 120px;
        width: 120px;
    }

    90%, 100% {
        height: 100px;
        width: 100px;
    }
}

@keyframes loading-shadow-fade-1 {
    0%, 10% {
        transform: scale(0);
    }

    20%, 80% {
        transform: scale(1);
    }

    90%, 100% {
        transform: scale(0);
    }
}

@keyframes loading-shadow-fade-2 {
    0%, 20% {
        transform: scale(0);
    }

    30%, 70% {
        transform: scale(1);
    }

    80%, 100% {
        transform: scale(0);
    }
}

@keyframes loading-shadow-fade-3 {
    0%, 30% {
        transform: scale(0);
    }

    40%, 60% {
        transform: scale(1);
    }

    70%, 100% {
        transform: scale(0);
    }
}