.fade-in {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.fade-in.show {
    opacity: 1;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #282829;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
} 

#loading {
  position: fixed;       
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: whitesmoke;  
    z-index: 999;
    transform: translateY(-40px);
}

#loading {
    opacity: 1;
    transition: opacity 0.5s ease;
}

#loading.hide {
    opacity: 0;
    pointer-events: none;
}