.box-loader {
    position: fixed;
    background-color: rgba(243, 243, 243, 0.8);
    width: 100vw;
    height: 100vh;
    z-index: 9;
}
.loader-out {
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease 0.5s, z-index 0.1s ease 1.5s;
}
.loader {
    background: none;
    width: 50px;
    height: 50px;
    margin-left: auto;
    margin-right: auto;
}

.loader::after {
    display: block;
    position: relative;
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 1px solid rgba(0, 0, 0, 0.7);
    opacity: 1;
    animation: spin 600ms linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}