// http://codepen.io/MichaelRyanSmith/pen/yyKWpq?editors=110
.uac-loader.uac-loader-squarepuls{
  width:106px; 
  height: 106px;
  margin-left: -53px;

  &>span:nth-child(1),&>span:nth-child(2){
    display: block;
    position: absolute;
    left:50%;
    top:50%;
    width: 76px;
    height: 76px;
    margin-top: -38px;
    margin-left: -38px;
    // margin-top: 0px auto;
    transform: rotate(45deg);
    &:after, &:before {
      position: absolute;
      content: '';
      height: 10px;
      width: 10px;
      display: block;
      top: 0;
      border-radius: 3px;
      animation-delay: -.5s;
    }
    
    &:after {
      background: $dot-red ;
      right: 0;
      animation: square-tr 2s ease infinite;
      animation-delay: .125s;
    }
    
    &:before {
      background: $dot-blue ;
      animation: square-tl 2s ease infinite;
      animation-delay: .125s;
    }

  }
  &>span:nth-child(2){
    position: relative;
    
    &:after, &:before {
      background: $dot-green ;
      bottom: 0;
      top: initial;
    }
    
    &:after {
      background: $dot-yellow ;
      animation: square-br 2s ease infinite;
      animation-direction: reverse;
    }
    
    &:before {
      animation: square-bl 2s ease infinite;
      animation-direction: reverse;
    }
  }
  &>span:nth-child(3){ // center square
    display: inline-block;
    position: absolute;
    background: map-get($color-indigo,'400') ;
    transform: rotate(45deg);
    height: 30px;
    width: 30px;
    left: 50%;
    top: 50%;
    margin-left: -15px;
    margin-top: -15px;
    border-radius: 3px;
    animation: pulse 1s ease infinite;
  }
}
@keyframes square-tl {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(0, 62.5px);
  }
  50% {
    transform: translate(62.5px, 62.5px);
  }
  75% {
    transform: translate(62.5px, 0);
  }
}

@keyframes square-bl {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(0, -62.5px);
  }
  50% {
    transform: translate(62.5px, -62.5px);
  }
  75% {
    transform: translate(62.5px, 0);
  }
}

@keyframes square-tr {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-62.5px, 0);
  }
  50% {
    transform: translate(-62.5px, 62.5px);
  }
  75% {
    transform: translate(0, 62.5px);
  }
}

@keyframes square-br {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-62.5px, 0);
  }
  50% {
    transform: translate(-62.5px, -62.5px);
  }
  75% {
    transform: translate(0, -62.5px);
  }
}


@keyframes pulse {
  0%, 100% {
    transform: scale(inherit) rotate(45deg);
  }
  75% {
    transform: scale(.25) rotate(45deg)
  }
}

// -------------------------- wave ------------
.uac-loader.uac-loader-wave{
  width:100px; 
  height: 100px;
  margin-left: -50px;
  padding-top: 20px;
  &>span{
    width: 6px;
    height: 60px;
    display: inline-block;
    margin-right: 4px;
    background-color: red;
    animation: stretchdelay 1.2s infinite ease-in-out;
  }
  &>span:nth-child(1){
    animation-delay: -1.2s;
    background: map-get($color-red,'400');
  }
  &>span:nth-child(2){
    animation-delay: -1.1s;
    background: map-get($color-pink,'400');
  }
  &>span:nth-child(3){
    animation-delay: -1s;
    background: map-get($color-deep-orange,'400');
  }
  &>span:nth-child(4){
    animation-delay: -0.9s;
    background: map-get($color-orange,'400');
  }
  &>span:nth-child(5){
    background: map-get($color-amber,'400');
    animation-delay: -0.8s;
  }
  &>span:nth-child(6){
    background: map-get($color-yellow,'400');
    animation-delay: -0.7s;
  }
}
@keyframes stretchdelay {
  0%, 40%, 100% { 
    transform: scaleY(0.4);
  }  20% { 
    transform: scaleY(1.0);
  }
}

// --------------------------
.uac-loader.uac-loader-orbit {
  position: absolute;
  width: 66px;
  left: 50%;
  margin-left: -33px;

  .uac-loader-dot {
    position: absolute;
    width: 66px;
    height: 66px;
    opacity: 0;
    transform: rotate(225deg);
    animation-iteration-count: infinite;
    animation-name: orbit;
    animation-duration: 5.5s;
    
    &:after {
      content: '';
      position: absolute;
      width: 8px;
      height: 8px;
      border-radius: 8px;
      background: red; /* Pick a color */
    }
    &:nth-child(1):after { background-color: map-get($color-light-green,'400'); }
    &:nth-child(2) {  animation-delay: 240ms; 
      &:after{
       background-color: map-get($color-light-blue,'400');
      }
     }
    &:nth-child(3) {  animation-delay: 480ms; 
      &:after{
       background-color: map-get($color-purple,'400'); 
      }
     }
    &:nth-child(4) {  animation-delay: 720ms; 
      &:after{
       background-color: map-get($color-orange,'400'); 
      }
     }
    &:nth-child(5) {  animation-delay: 960ms; 
      &:after{
       background-color: map-get($color-pink,'400'); 
      }
     }
  }
}

@keyframes orbit { 
  0%   { transform:rotate(225deg); opacity: 1;
         animation-timing-function: ease-out; } 
    
  7%   { transform:rotate(345deg);
         animation-timing-function: linear; }
    
  30%   { transform:rotate(455deg);
          animation-timing-function: ease-in-out; }
    
  39%   { transform:rotate(690deg);
          animation-timing-function: linear; }
    
  70%   { transform:rotate(815deg); opacity: 1;
         animation-timing-function: ease-out; }
    
  75%   { transform:rotate(945deg); 
         animation-timing-function: ease-out; }
    
  76% { transform:rotate(945deg); opacity: 0; }
  100% { transform:rotate(945deg); opacity: 0; } 
}