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

  box-sizing: border-box;
}

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

.la-ball-square-spin.la-dark {
  color: #333;
}

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

.la-ball-square-spin {
  width: 26px;
  height: 26px;
}

.la-ball-square-spin > div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
  border-radius: 100%;

  animation: ball-square-spin 1s infinite ease-in-out;
}

.la-ball-square-spin > div:nth-child(1) {
  top: 0;
  left: 0;

  animation-delay: -1.125s;
}

.la-ball-square-spin > div:nth-child(2) {
  top: 0;
  left: 50%;

  animation-delay: -1.25s;
}

.la-ball-square-spin > div:nth-child(3) {
  top: 0;
  left: 100%;

  animation-delay: -1.375s;
}

.la-ball-square-spin > div:nth-child(4) {
  top: 50%;
  left: 100%;

  animation-delay: -1.5s;
}

.la-ball-square-spin > div:nth-child(5) {
  top: 100%;
  left: 100%;

  animation-delay: -1.625s;
}

.la-ball-square-spin > div:nth-child(6) {
  top: 100%;
  left: 50%;

  animation-delay: -1.75s;
}

.la-ball-square-spin > div:nth-child(7) {
  top: 100%;
  left: 0;

  animation-delay: -1.875s;
}

.la-ball-square-spin > div:nth-child(8) {
  top: 50%;
  left: 0;

  animation-delay: -2s;
}

.la-ball-square-spin.la-sm {
  width: 12px;
  height: 12px;
}

.la-ball-square-spin.la-sm > div {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  margin-left: -3px;
}

.la-ball-square-spin.la-2x {
  width: 52px;
  height: 52px;
}

.la-ball-square-spin.la-2x > div {
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
}

.la-ball-square-spin.la-3x {
  width: 78px;
  height: 78px;
}

.la-ball-square-spin.la-3x > div {
  width: 36px;
  height: 36px;
  margin-top: -18px;
  margin-left: -18px;
}

/*
 * Animation
 */

@keyframes ball-square-spin {
  0%,
  40%,
  100% {
    transform: scale(0.4);
  }
  70% {
    transform: scale(1);
  }
}
