﻿
.loading {
    position: relative;
}

    .loading::before {
        position: absolute;
        /*    left: 0;
    right: 0;
    bottom: 0;
    top: 0;*/
        content: '';
        background-color: rgb(114 114 114 / 0,24);
        z-index: 9999;
        max-height: 100%;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(3px);
    }

    .loading::after {
        content: '';
    }


.cover-spin {
    vertical-align: central;
    position: absolute;
    margin: auto;
    width: 60px;
    height: 60px;
    top: min(300px, calc(50% - 30px));
    left: calc(50% - 30px);
    background-color: transparent;
    z-index: 9999;
}


@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cover-spin::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border-top: 5px solid #444242;
    border-right: 2px solid transparent;
    animation: spin 1s infinite;
}


.loader-small {
    height: 20px;
    width: 20px;
}

    .loader-small .cover-spin {
        width: 100%;
        height: 100%;
        top: 0px;
        left: 0px;
    }

        .loader-small .cover-spin::after {
            width: 20px;
            height: 20px;
            border-top: 2px solid #444242;
            margin-top: -2px;
            margin-left: 10px;
        }

@media screen and (max-width: 1024px) {
    .loader-small {
        height: 40px;
        width: 40px;
    }

        .loader-small .cover-spin::after {
            width: 40px;
            height: 40px;
            border-top: 3px solid #444242;
            margin-top: -2px;
            margin-left: 10px;
        }
}
