﻿
.loading-block {
    position: fixed;
    display: inline-block;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100vw;
    height: 100vh;
    background: #000;
    opacity: 0.5;
    z-index: 1000;
}

    .loading-block:after {
        content: '';
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        width: 3rem;
        height: 3rem;
        border: solid 8px #ffffff;
        border-top: solid 8px #009d42;
        border-radius: 50%;
        animation-name: rotation;
        animation-duration: 1s;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
        opacity: 1;
        z-index: 2000;
    }

@keyframes rotation {
    25% {
        transform: rotate(90deg);
    }

    50% {
        transform: rotate(180deg);
    }

    75% {
        transform: rotate(270deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
