/*=====================Preloader===========================*/
:root {
    --secondary-color: #0e1735;
}
.handle-preloader {
    align-items: center;
    -webkit-align-items: center;
    display: flex;
    display: -ms-flexbox;
    height: 100%;
    justify-content: center;
    -webkit-justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999999;
    background: var(--secondary-color);
}

.preloader-close {
    position: fixed;
    z-index: 99999999;
    font-size: 12px;
    background: #fff;
    color: var(--theme-color);
    width: 40px;
    height: 40px;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    right: 30px;
    top: 30px;
    font-weight: 400;
    display:none;
}

.handle-preloader .animation-preloader {
    position: absolute;
    z-index: 100;
}

    .handle-preloader .animation-preloader .spinner {
        animation: fadeIn 4s forwards;
        border-radius: 50%;
        height: 150px;
        margin: 0 auto 45px auto;
        width: 150px;
    }

    .handle-preloader .animation-preloader .txt-loading {
        text-align: center;
        user-select: none;
        /* The company name is spelled one <span> per letter, and those spans are
           inline-block boxes. In Arabic the root carries dir="rtl" (set in _Layout before
           first paint), so the bidi algorithm places the boxes right-to-left and the loader
           reads "krowemarf".

           unicode-bidi on its own does not fix this: an isolate only stops the run mixing
           with surrounding text, it does not change the direction the boxes are laid out in.
           The direction itself has to be pinned.

           Scoped to this container, so the rest of the site stays RTL. The matching
           dir="ltr" on the element in _Layout.cshtml says the same thing in the markup;
           this rule is what keeps it true if that attribute is ever dropped. */
        direction: ltr;
        unicode-bidi: isolate;
    }

        .handle-preloader .animation-preloader .txt-loading .letters-loading:before {
            animation: letters-loading 4s infinite;
            content: attr(data-text-preloader);
            left: 0;
            opacity: 0;
            top: 0;
            position: absolute;
        }

        .handle-preloader .animation-preloader .txt-loading .letters-loading {
            font-family: var(--title-font);
            font-weight: 500;
            letter-spacing: 15px;
            display: inline-block;
            position: relative;
            font-size: 70px;
            line-height: 70px;
            text-transform: uppercase;
            color: transparent;
            -webkit-text-stroke-width: 1px;
            -webkit-text-stroke-color: rgba(255, 255, 255, 0.30);
        }

            .handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(2):before {
                animation-delay: 0.2s;
            }

            .handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(3):before {
                animation-delay: 0.4s;
            }

            .handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(4):before {
                animation-delay: 0.6s;
            }

            .handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(5):before {
                animation-delay: 0.8s;
            }

            .handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(6):before {
                animation-delay: 1s;
            }

            .handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(7):before {
                animation-delay: 1.2s;
            }

            .handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(8):before {
                animation-delay: 1.4s;
            }

            .handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(9):before {
                animation-delay: 1.6s;
            }

            .handle-preloader .animation-preloader .txt-loading .letters-loading:nth-child(10):before {
                animation-delay: 1.8s;
            }

.handle-preloader .loader-section {
    background-color: #ffffff;
    height: 100%;
    position: fixed;
    top: 0;
    width: calc(50% + 1px);
}

.preloader .loaded .animation-preloader {
    opacity: 0;
    transition: 0.3s ease-out;
}

.handle-preloader .animation-preloader .txt-loading .letters-loading:before {
    color: #ffffff;
}

.handle-preloader .animation-preloader .spinner {
    border: 3px solid #fff;
    border-top-color: rgba(255, 255, 255, 0.3);
}

/* Animación del preloader */
@keyframes spinner {
    to {
        transform: rotateZ(360deg);
    }
}

@keyframes letters-loading {
    0%, 75%, 100% {
        opacity: 0;
        transform: rotateY(-90deg);
    }

    25%, 50% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

@media screen and (max-width: 767px) {
    .handle-preloader .animation-preloader .spinner {
        height: 8em;
        width: 8em;
    }
}

@media screen and (max-width: 500px) {
    .handle-preloader .animation-preloader .spinner {
        height: 7em;
        width: 7em;
    }

    .handle-preloader .animation-preloader .txt-loading .letters-loading {
        font-size: 30px;
        letter-spacing: 5px;
    }
}
