.loading {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 50px;
    min-width: 50px;
    color: white;
    animation: 1s appear linear;
}
.loading svg {
    animation: rotate 2s linear infinite;
    z-index: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
    width: 50px;
    height: 50px;
}

.loading svg circle {
    stroke: #3fa9f5;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes appear {
    from {
        opacity: 0;
    }
    30% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}