﻿/* Loader */
.kd-loader-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: RGBA(255,255,255, 0.5);
    z-index: 15;
    height: 100%;
    width: 100%;
}

.kd-loader {
    padding: 32px 48px;
    border-radius: 5px;
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 500 19px/27px Metric, Arial, sans-serif;
    background-color: RGBA(0,0,0, 0.8);
    color: #fff;
}

    .kd-loader .icon {
        position: relative;
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-right: 30px;
        z-index: 5;
    }

        .kd-loader .icon::before {
            content: "";
            position: absolute;
            width: 200%;
            height: 200%;
            top: -50%;
            left: -50%;
            z-index: -1;
            background-image: url("rings.svg");
            background-repeat: no-repeat;
            background-size: cover;
            -webkit-animation: spin 1s ease-in-out infinite;
            animation: spin 1s ease-in-out infinite;
        }

    .kd-loader .icon {
        animation-name: pulse;
        animation-duration: 5000ms;
        transform-origin: 70% 70%;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
    }
        /* thunder color and border */
        .kd-loader .icon svg path {
            fill: #ffff00;
            stroke: #ffbf00;
        }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.10);
    }

    50% {
        transform: scale(1);
    }

    60% {
        transform: scale(1);
    }

    70% {
        transform: scale(1.10);
    }

    80% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}
