﻿#loader_css {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 1000;
    width: 120px;
    height: 120px;
    margin: -60px 0 0 -60px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}


    #loader_css::before,
    #loader_css::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 152px;
        height: 152px;
        border: 4px solid rgba(52, 152, 219, 0.5);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
        animation: ripple 2s linear infinite;
    }

    #loader_css::after {
        animation-delay: 1s;
    }

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}
