 #preloader {
position: fixed;
top: 0;
width: 100%;
height: 100%;

background: #000;
z-index: 9999; /* makes it so that this is the most important part, nothing goes above it*/
}

.spinner  {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #fff;
  
        border-top: 5px solid transparent;
    border-radius: 50%;
animation: spin 1s linear infinite;
 
}
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg)}
    to {transform: translate(-50%, -50%) rotate(360deg)}
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;

}
