/* The loader styling */

.loader-background {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 100;
    background: rgba(0,0,0,0.4);
    top: 0;
    left: 0;
    transition: 0.5s ease;
}

.loader-background .loader {
    display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 600px;
}

.loader-background .loader {
    display: flex;
    flex-direction: row;
    -ms-flex-direction: row;
    align-items: center;
    flex: 5;
    padding-left: 15px;
    transition: 0.5s ease;
    -webkit-box-reflect: below -15px linear-gradient(transparent, rgba(0,0,0,0.3));
}

.loader-background .loader span {
    position: relative;
    display: inline-block;
    color: #fff;
    text-transform: uppercase;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.6em;
    font-weight: 500;
    margin-right: 10px;
    animation: animate 1.5s ease-in-out infinite;
    animation-delay: calc(0.1s * var(--i));
    overflow: hidden;
}

@keyframes animate {
    0% {
        transform: translateY(0px);
    }
    20% {
        transform: translateY(-20px);
    }
    40%, 100% {
        transform: translateY(0px);
    }
}

@media screen and (max-width: 575px) {

    .loader-background .loader {
        width: 90%;
    }

    .loader-background .loader {
        flex: 1;
        -webkit-box-reflect: below -12px linear-gradient(transparent, rgba(0,0,0,0.3));
    }

    .loader-background .loader span {
        font-size: 2.2em;
        text-align: center;
    }
}
