﻿.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #030712;
    z-index: 1000;
}

    .loading-screen .bar {
        position: absolute;
        height: 100%;
        width: 50%;
        background-color: #030712;
    }

    .loading-screen .top-bar {
        top: 0;
        left: 0;
    }

    .loading-screen .down-bar {
        bottom: 0;
        right: 0;
    }

    .loading-screen .animation-preloader {
        z-index: 1001;
    }

        .loading-screen .animation-preloader .spinner {
            animation: spinner 1s infinite linear;
            border-radius: 50%;
            border: 10px solid #002891;
            border-top-color: #fff;
            width: 150px;
            height: 150px;
            margin: 0 auto 3.5em auto;
        }

        .loading-screen .animation-preloader .txt-loading {
            font: bold 1.5em "Inter", sans-serif;
            text-align: center;
            user-select: none;
        }

            .loading-screen .animation-preloader .txt-loading .letters-loading {
                color: #fff;
                position: relative;
            }

                .loading-screen .animation-preloader .txt-loading .letters-loading:before {
                    animation: letters-loading 4s infinite;
                    color: #002891;
                    content: attr(data-text-preloader);
                    left: 0;
                    opacity: 0;
                    position: absolute;
                    top: -3px;
                    transform: rotateY(-90deg);
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(2):before {
                    animation-delay: 0.2s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(3):before {
                    animation-delay: 0.4s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(4):before {
                    animation-delay: 0.6s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(5):before {
                    animation-delay: 0.8s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(6):before {
                    animation-delay: 1s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(7):before {
                    animation-delay: 1.2s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(8):before {
                    animation-delay: 1.4s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(9):before {
                    animation-delay: 1.6s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(10):before {
                    animation-delay: 1.8s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(11):before {
                    animation-delay: 2s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(12):before {
                    animation-delay: 2.2s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(13):before {
                    animation-delay: 2.4s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(14):before {
                    animation-delay: 2.6s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(15):before {
                    animation-delay: 2.8s;
                }

                .loading-screen .animation-preloader .txt-loading .letters-loading:nth-child(16):before {
                    animation-delay: 3s;
                }

@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) {
    .loading-screen .animation-preloader .spinner {
        height: 8em;
        width: 8em;
    }

    .loading-screen .animation-preloader .txt-loading {
        font: bold 1.5em "Inter", sans-serif;
    }
}

@media screen and (max-width: 500px) {
    .loading-screen .animation-preloader .spinner {
        height: 7em;
        width: 7em;
    }

    .loading-screen .animation-preloader .txt-loading {
        font: bold 1.5em "Inter", sans-serif;
    }
}
