  .loader-wrapper{
    position: fixed;
    background-color: rgba(0, 0, 0, 0.2);
    /*dim the background*/
    top:0;
    left:0;
    width:100%;
    height:100%;
    color:black;
    text-align: center;
    z-index: 10000;
   display:none;
   }
 
.loader {
  position: absolute;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 10px solid teal;
  border-right: 10px solid teal;
  border-bottom: 10px solid purple;
  border-left:10px solid purple;
  width: 100px;
  height: 100px;
  left: 50%;
  top: 40%;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
