.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  transition: opacity 0.75s, visability 0.75%;
  z-index: 2;
}

.loader-hidden{
  opacity: 0;
  visibility: hidden;
}

.loader::after{
  content: "";
  width: 3.5rem;
  height: 3.5rem;
  border: 0.6rem solid #dddd;
  border-top-color: rgb(50, 50, 50);
  border-radius: 50%;
  animation: loading 0.75s ease infinite;
}

@keyframes loading {
from{
  transform:rotate(0turn) ;
}
to{
  transform: rotate(1turn);
}
}