.loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    text-align: center;
    z-index: 999;
    display: none;
}

.spinner {
    margin: 100px auto;
    width: 22px;
    height: 22px;
    position: relative;
}

.circle {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.circle:before {
    content: '';
    display: block;
    margin: 0 auto;
    width: 20%;
    height: 20%;
    background-color: #000;

    border-radius: 100%;
    -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
    animation: bouncedelay 1.2s infinite ease-in-out;
    /* Prevent first frame from flickering when animation starts */
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.circle2 {
    -webkit-transform: rotate(30deg);
    transform: rotate(30deg)
}

.circle3 {
    -webkit-transform: rotate(60deg);
    transform: rotate(60deg)
}

.circle4 {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg)
}

.circle5 {
    -webkit-transform: rotate(120deg);
    transform: rotate(120deg)
}

.circle6 {
    -webkit-transform: rotate(150deg);
    transform: rotate(150deg)
}

.circle7 {
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg)
}

.circle8 {
    -webkit-transform: rotate(210deg);
    transform: rotate(210deg)
}

.circle9 {
    -webkit-transform: rotate(240deg);
    transform: rotate(240deg)
}

.circle10 {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg)
}

.circle11 {
    -webkit-transform: rotate(300deg);
    transform: rotate(300deg)
}

.circle12 {
    -webkit-transform: rotate(330deg);
    transform: rotate(330deg)
}

.circle2:before {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s
}

.circle3:before {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s
}

.circle4:before {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s
}

.circle5:before {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s
}

.circle6:before {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s
}

.circle7:before {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s
}

.circle8:before {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s
}

.circle9:before {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s
}

.circle10:before {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s
}

.circle11:before {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s
}

.circle12:before {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s
}

@-webkit-keyframes bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0.0)
    }
    40% {
        -webkit-transform: scale(1.0)
    }
}

@keyframes bouncedelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0.0);
        transform: scale(0.0);
    }
    40% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
    }
}