/*!
 * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)
 * Copyright 2015 Daniel Cardoso <@DanielCardoso>
 * Licensed under MIT
 */
.la-ball-running-dots,
.la-ball-running-dots > div {
  position: relative;

  box-sizing: border-box;
}

.la-ball-running-dots {
  display: block;
  font-size: 0;
  color: #fff;
}

.la-ball-running-dots.la-dark {
  color: #333;
}

.la-ball-running-dots > div {
  display: inline-block;
  float: none;
  background-color: currentColor;
  border: 0 solid currentColor;
}

.la-ball-running-dots {
  width: 10px;
  height: 10px;
}

.la-ball-running-dots > div {
  position: absolute;
  width: 10px;
  height: 10px;
  margin-left: -25px;
  border-radius: 100%;

  animation: ball-running-dots-animate 2s linear infinite;
}

.la-ball-running-dots > div:nth-child(1) {
  animation-delay: 0s;
}

.la-ball-running-dots > div:nth-child(2) {
  animation-delay: -0.4s;
}

.la-ball-running-dots > div:nth-child(3) {
  animation-delay: -0.8s;
}

.la-ball-running-dots > div:nth-child(4) {
  animation-delay: -1.2s;
}

.la-ball-running-dots > div:nth-child(5) {
  animation-delay: -1.6s;
}

.la-ball-running-dots > div:nth-child(6) {
  animation-delay: -2s;
}

.la-ball-running-dots > div:nth-child(7) {
  animation-delay: -2.4s;
}

.la-ball-running-dots > div:nth-child(8) {
  animation-delay: -2.8s;
}

.la-ball-running-dots > div:nth-child(9) {
  animation-delay: -3.2s;
}

.la-ball-running-dots > div:nth-child(10) {
  animation-delay: -3.6s;
}

.la-ball-running-dots.la-sm {
  width: 4px;
  height: 4px;
}

.la-ball-running-dots.la-sm > div {
  width: 4px;
  height: 4px;
  margin-left: -12px;
}

.la-ball-running-dots.la-2x {
  width: 20px;
  height: 20px;
}

.la-ball-running-dots.la-2x > div {
  width: 20px;
  height: 20px;
  margin-left: -50px;
}

.la-ball-running-dots.la-3x {
  width: 30px;
  height: 30px;
}

.la-ball-running-dots.la-3x > div {
  width: 30px;
  height: 30px;
  margin-left: -75px;
}

/*
 * Animation
 */

@keyframes ball-running-dots-animate {
  0%,
  100% {
    width: 100%;
    height: 100%;

    transform: translateY(0) translateX(500%);
  }
  80% {
    transform: translateY(0) translateX(0);
  }
  85% {
    width: 100%;
    height: 100%;

    transform: translateY(-125%) translateX(0);
  }
  90% {
    width: 200%;
    height: 75%;
  }
  95% {
    width: 100%;
    height: 100%;

    transform: translateY(-100%) translateX(500%);
  }
}
