.loader {
  background-color: rgba(255,255,255,0.85);
  border-radius: 25px;
  box-shadow:  0 0 15px rgba(10,10,10,0.8);
  padding: 10px;
  position: absolute;
  left: calc(50% - 60px);
  top: calc(50% - 60px);
  z-index: 10;
}

.loader div {
  position: relative;
  width: 100px;
  height: 100px;
}

.loader .gear1 {
  -webkit-animation-name: spin;
  -webkit-animation-duration: 3000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 3000ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 3000ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  -o-transition: rotate(360deg);
  position: absolute;
  left: 5px;
  bottom: 0;
  width: 70px;
}

.loader .gear2 {
  -webkit-animation-name: spin-cc;
  -webkit-animation-duration: 2100ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin-cc;
  -moz-animation-duration: 2100ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin-cc;
  -ms-animation-duration: 2100ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  -o-transition: rotate(-360deg);
  position: absolute;
  right: 5px;
  top: 0;
  width: 50px;
}

@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    from {transform:rotate(0deg);}
    to {transform:rotate(360deg);}
}

@-moz-keyframes spin-cc {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(-360deg); }
}
@-webkit-keyframes spin-cc {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(-360deg); }
}
@keyframes spin-cc {
    from {transform:rotate(0deg);}
    to {transform:rotate(-360deg);}
}