﻿.loader {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 0;
    height: 100vh; 
}

.loader .loader__icon { 
    z-index: 1;
    top: 50vh;
    left: 50vw;  
    visibility: hidden;  
    display: flex;            /* Make it flex */
    flex-direction: column;   /* wrap children elements to columns */
    align-items: center;      /* Center children horizontally */
    justify-content: center;  /* Center children vertically */
    height: 100vh;
}

.loader--active {
    width: 100%; 
    opacity: 0.7;
    background-color: rgb(0, 0, 0);
    color: #fff;
}

.loader--active .loader__icon {
    visibility: visible;
    opacity: 1; 
}
     
     
