﻿/*New Loader*/
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
}

.loading-bar {
    display: inline-block;
    width: 4px;
    height: 58px;
    border-radius: 4px;
}

    .loading-bar:nth-child(1) {
        background-color: #424449;
        -webkit-animation: loading 1s ease-in-out infinite;
        animation: loading 1s ease-in-out infinite;
        -webkit-animation-delay: 0;
        animation-delay: 0;
    }

    .loading-bar:nth-child(2) {
        background-color: #629c59;
        -webkit-animation: loading 1s ease-in-out infinite;
        animation: loading 1s ease-in-out infinite;
        -webkit-animation-delay: 0.09s;
        animation-delay: 0.09s;
    }

    .loading-bar:nth-child(3) {
        background-color: #424449;
        -webkit-animation: loading 1s ease-in-out infinite;
        animation: loading 1s ease-in-out infinite;
        -webkit-animation-delay: .18s;
        animation-delay: .18s;
    }

    .loading-bar:nth-child(4) {
        background-color: #629c59;
        -webkit-animation: loading 1s ease-in-out infinite;
        animation: loading 1s ease-in-out infinite;
        -webkit-animation-delay: .27s;
        animation-delay: .27s;
    }

    .loading-bar:nth-child(5) {
        background-color: #424449;
        -webkit-animation: loading 1s ease-in-out infinite;
        animation: loading 1s ease-in-out infinite;
        -webkit-animation-delay: .36s;
        animation-delay: .36s;
    }

@-webkit-keyframes loading {
    0% {
        -webkit-transform: scale(1);
    }

    20% {
        -webkit-transform: scale(1, 2.2);
    }

    40% {
        -webkit-transform: scale(1);
    }
}

@keyframes loading {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1, 2.2);
    }

    40% {
        transform: scale(1);
    }
}

/*Old Loader*/
.cont {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 100vh;
}

.loader {
    max-width: 15rem;
    width: 100%;
    height: auto;
    stroke-linecap: round;
}

circle {
    fill: none;
    stroke-width: 3.5;
    -webkit-animation-name: preloader;
    animation-name: preloader;
    -webkit-animation-duration: 3s;
    animation-duration: 3s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-transform-origin: 170px 170px;
    transform-origin: 170px 170px;
    will-change: transform;
}

    circle:nth-of-type(1) {
        stroke-dasharray: 550;
    }

    circle:nth-of-type(2) {
        stroke-dasharray: 500;
    }

    circle:nth-of-type(3) {
        stroke-dasharray: 450;
    }

    circle:nth-of-type(4) {
        stroke-dasharray: 300;
    }

    circle:nth-of-type(1) {
        -webkit-animation-delay: -0.15s;
        animation-delay: -0.15s;
    }

    circle:nth-of-type(2) {
        -webkit-animation-delay: -0.3s;
        animation-delay: -0.3s;
    }

    circle:nth-of-type(3) {
        -webkit-animation-delay: -0.45s;
        -moz-animation-delay: -0.45s;
        animation-delay: -0.45s;
    }

    circle:nth-of-type(4) {
        -webkit-animation-delay: -0.6s;
        -moz-animation-delay: -0.6s;
        animation-delay: -0.6s;
    }

@-webkit-keyframes preloader {
    50% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes preloader {
    50% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
