﻿

.loadercontainer {
    height: 100px;
    width: 100%;
    font-family: Helvetica;
}

.loader2 {
    height: 20px;
    width: 250px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.loader--dot {
    animation-name: loader;
    animation-timing-function: ease-in-out;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    height: 20px;
    width: 20px;
    border-radius: 100%;
    background-color: black;
    position: absolute;
    border: 2px solid white;
}

    .loader--dot:first-child {
        background-color: #2D383F;
        animation-delay: 0.5s;
    }

    .loader--dot:nth-child(2) {
        background-color: #7B9BAA;
        animation-delay: 0.4s;
    }

    .loader--dot:nth-child(3) {
        background-color: #000;
        animation-delay: 0.3s;
    }

    .loader--dot:nth-child(4) {
        background-color: #2D383F;
        animation-delay: 0.2s;
    }

    .loader--dot:nth-child(5) {
        background-color: #7B9BAA;
        animation-delay: 0.1s;
    }

    .loader--dot:nth-child(6) {
        background-color: #000;
        animation-delay: 0s;
    }

.loader--text {
    position: absolute;
    top: 200%;
    left: 0;
    right: 0;
    width: 500px;
    margin: auto;
}

    .loader--text:after {
        content: "Loading";
        font-weight: bold;
        animation-name: loading-text;
        animation-duration: 3s;
        animation-iteration-count: infinite;
    }

@keyframes loader {
    15% {
        transform: translateX(0);
    }

    45% {
        transform: translateX(230px);
    }

    65% {
        transform: translateX(230px);
    }

    95% {
        transform: translateX(0);
    }
}

@keyframes loading-text {
    0% {
        content: "Please wait, still fetching for related files";
    }

    25% {
        content: "Please wait, still fetching for related files.";
    }

    50% {
        content: "Please wait, still fetching for related files..";
    }

    75% {
        content: "Please wait, still fetching for related files...";
    }
}

@media (max-width: 415px) {
    .loader2 {
        height: 20px;
        width: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: auto;
    }

    .loader--text {
        position: absolute;
        top: 200%;
        left: 0;
        right: 0;
        width: 100%;
        margin: auto;
    }
}
