﻿/* ====== start loader ====== */
 .loader {
    width: 200px;
    height: 200px;
    margin: 25px auto;
    border: solid 40px #fff;
    border-radius: 50%;
    perspective: 800px;
    -webkit-animation: spin 5s linear infinite;
    animation: spin 5s linear infinite;
    background-color: #fff;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(-360deg);
    }
}

.inner {
    position: absolute;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

    .inner.one {
        left: 0%;
        top: 0%;
        animation: rotate-one 1.5s linear infinite;
        border-top: dotted 1px rgba(107,72,157,.15);
        border-right: dotted 3px rgba(107,72,157,.35);
        border-bottom: 6px solid rgba(107,72,157, 1); /*arc line*/
        border-left: 1px solid rgba(255,255,255, 0); /*no line*/
    }

    .inner.two {
        right: 0%;
        top: 0%;
        animation: rotate-two 1.5s linear infinite;
        border-top: dotted 3px rgba(35,101,72, .35);
        border-right: 6px solid rgba(35,101,72,1); /*arc line*/
        border-bottom: dotted 1px rgba(255,255,255, 0); /*no line*/
        border-left: dotted 1px rgba(35,101,72, .15);
    }

    .inner.three {
        right: 0%;
        bottom: 0%;
        animation: rotate-three 1.5s linear infinite;
        border-top: 6px solid rgba(222,100,40,1); /*arc line*/
        border-right: 1px solid rgba(255,255,255, 0); /*no line*/
        border-bottom: dotted 1px rgba(222,100,40, .15);
        border-left: dotted 3px rgba(222,100,40, .35);
    }

@keyframes rotate-one {
    0% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
    }
}

@keyframes rotate-two {
    0% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
    }
}

@keyframes rotate-three {
    0% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
    }
}

/* ====== end loader ====== */

@media only screen and (max-width: 767px) {

    .loader {
        /*position: absolute;*/
        z-index: 5000;
        top: calc(50% - 32px);
        left: calc(50% -32px);
        width: 164px;
        height: 164px;
        border-radius: 50%;
        perspective: 800px;
        -webkit-animation: spin 2s linear infinite;
        animation: spin 20s linear infinite;
        margin: 0 auto;
    }

    @-webkit-keyframes spin {
        0% {
            -webkit-transform: rotate(0deg);
        }

        100% {
            -webkit-transform: rotate(-360deg);
        }
    }

    .inner {
        position: absolute;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }

        .inner.one {
            left: 0%;
            top: 0%;
            animation: rotate-one 1s linear infinite;
            border-top: dotted 1px rgba(107,72,157,.50);
            border-right: dotted 2px rgba(107,72,157,.75);
            border-bottom: 6px solid rgba(107,72,157, 1);
        }

        .inner.two {
            right: 0%;
            top: 0%;
            animation: rotate-two 1s linear infinite;
            border-left: dotted 1px rgba(35,101,72, .5);
            border-top: dotted 2px rgba(35,101,72, .75);
            border-right: 6px solid rgba(35,101,72,1);
        }

        .inner.three {
            right: 0%;
            bottom: 0%;
            animation: rotate-three 1s linear infinite;
            border-bottom: dotted 1px rgba(222,100,40, .5);
            border-left: dotted 1px rgba(222,100,40, .75);
            border-top: 6px solid rgba(222,100,40,1);
        }

    @keyframes rotate-one {
        0% {
            transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg);
        }

        100% {
            transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg);
        }
    }

    @keyframes rotate-two {
        0% {
            transform: rotateX(50deg) rotateY(10deg) rotateZ(0deg);
        }

        100% {
            transform: rotateX(50deg) rotateY(10deg) rotateZ(360deg);
        }
    }

    @keyframes rotate-three {
        0% {
            transform: rotateX(35deg) rotateY(55deg) rotateZ(0deg);
        }

        100% {
            transform: rotateX(35deg) rotateY(55deg) rotateZ(360deg);
        }
    }
    /* end loader */
}