html, body {
  height: 100%;
}

.bg1 {
  background: #BB01C1;
}

.bg2 {
  background: #6B09C5;
}

.bg3 {
  background: #E40064;
}

.demo-container {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;
  min-height: 500px;
  -webkit-align-items: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-justify-content: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.demo-container .demo-panel {
  -webkit-flex-grow: 1;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  height: 500px;
  min-width: 300px;
  /* border: 1px solid white; */
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}

@media screen and (max-width: 768px) {
  .demo-container {
    min-height: auto;
  }
  .demo-container .demo-panel {
    height: 400px;
    min-width: 250px;
  }
}

@media screen and (max-width: 640px) {
  .demo-container .demo-panel {
    height: 350px;
    width: 100%;
  }
}

.spinner {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  position: relative;
}

.planet {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 25px;
  position: absolute;
  top: 25px;
  left: 31px;
  -webkit-animation-name: occlude;
  animation-name: occlude;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  /* background-image: linear-gradient(#ffffff, #888); */
}

.bouncer {
  width: 30px;
  height: 10px;
  position: absolute;
  background: white;
  left: 35%;
  -webkit-animation-name: bounce;
  animation-name: bounce;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease;
  animation-timing-function: ease;
}

.orbiter {
  -webkit-animation-name: hover;
  animation-name: hover;
  -webkit-animation-duration: 10s;
  animation-duration: 10s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: cubic-bezier(0.31, 0.01, 0.71, 1);
  animation-timing-function: cubic-bezier(0.31, 0.01, 0.71, 1);
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  -ms-transform-origin: center center 50%;
  -webkit-transform-origin: center center 50%;
  transform-origin: center center 50%;
}
@-webkit-keyframes hover {
  from {
    /* transform: scale(1); */
    top: -25px;
    -webkit-transform: rotate(1deg);
            transform: rotate(1deg);
    /* @include animation-timing-function(cubic-bezier(.53,.01,1,.47)); */
    /* background-color: #ffffff; */
  }
  50% {
    /* transform: scale(2); */
    top: 25px;
    -webkit-transform: rotate(123deg);
            transform: rotate(123deg);
    /* background-color: #500693; */
  }
  to {
    /* transform: scale(1); */
    top: -25px;
    -webkit-transform: rotate(1deg);
            transform: rotate(1deg);
    /* background-color: #ffffff; */
  }
}
@keyframes hover {
  from {
    /* transform: scale(1); */
    top: -25px;
    -webkit-transform: rotate(1deg);
            transform: rotate(1deg);
    /* @include animation-timing-function(cubic-bezier(.53,.01,1,.47)); */
    /* background-color: #ffffff; */
  }
  50% {
    /* transform: scale(2); */
    top: 25px;
    -webkit-transform: rotate(123deg);
            transform: rotate(123deg);
    /* background-color: #500693; */
  }
  to {
    /* transform: scale(1); */
    top: -25px;
    -webkit-transform: rotate(1deg);
            transform: rotate(1deg);
    /* background-color: #ffffff; */
  }
}
.orbit-outer {
  position: absolute;
  z-index: 1;
  -webkit-animation-name: orbitY;
  animation-name: orbitY;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
}
.orbit-outer .orbit-inner {
  position: absolute;
  -webkit-animation-name: orbitX;
  animation-name: orbitX;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-delay: 0.25s;
  animation-delay: 0.25s;
}
.orbit-outer .orbit-inner .dot {
  -webkit-animation-name: dot;
  animation-name: dot;
  -webkit-animation-duration: 2s;
  animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  position: absolute;
  background-color: #500693;
  width: 12px;
  height: 12px;
  border-radius: 6px;
}
@-webkit-keyframes occlude {
  from {
    /* transform: scale(1); */
    z-index: 3;
    /* background-color: #ffffff; */
  }
  40% {
    /* transform: scale(2); */
    z-index: 1;
    /* background-color: #500693; */
  }
  to {
    /* transform: scale(1); */
    z-index: 3;
    /* background-color: #ffffff; */
  }
}
@keyframes occlude {
  from {
    /* transform: scale(1); */
    z-index: 3;
    /* background-color: #ffffff; */
  }
  40% {
    /* transform: scale(2); */
    z-index: 1;
    /* background-color: #500693; */
  }
  to {
    /* transform: scale(1); */
    z-index: 3;
    /* background-color: #ffffff; */
  }
}
@-webkit-keyframes dot {
  from {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
    /* background-color: #ffffff; */
  }
  50% {
    -webkit-transform: scale(2);
            transform: scale(2);
    opacity: 1;
    /* background-color: #500693; */
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
    /* background-color: #ffffff; */
  }
}
@keyframes dot {
  from {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
    /* background-color: #ffffff; */
  }
  50% {
    -webkit-transform: scale(2);
            transform: scale(2);
    opacity: 1;
    /* background-color: #500693; */
  }
  to {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 1;
    /* background-color: #ffffff; */
  }
}
@-webkit-keyframes orbitY {
  from {
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
  50% {
    -webkit-transform: translateY(70px);
            transform: translateY(70px);
  }
  to {
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
}
@keyframes orbitY {
  from {
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
  50% {
    -webkit-transform: translateY(70px);
            transform: translateY(70px);
  }
  to {
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
}
@-webkit-keyframes orbitX {
  from {
    -webkit-transform: translateX(0px);
            transform: translateX(0px);
  }
  50% {
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  to {
    -webkit-transform: translateX(0px);
            transform: translateX(0px);
  }
}
@keyframes orbitX {
  from {
    -webkit-transform: translateX(0px);
            transform: translateX(0px);
  }
  50% {
    -webkit-transform: translateX(100px);
            transform: translateX(100px);
  }
  to {
    -webkit-transform: translateX(0px);
            transform: translateX(0px);
  }
}
@-webkit-keyframes bounce {
  0% {
    -webkit-transform: rotate(0turn);
            transform: rotate(0turn);
    bottom: 0%;
    height: 20px;
  }
  4% {
    height: 5px;
  }
  5% {
    height: 30px;
    bottom: 0%;
    -webkit-animation-timing-function: cubic-bezier(0, 0.62, 0.42, 1);
    animation-timing-function: cubic-bezier(0, 0.62, 0.42, 1);
  }
  20% {
    height: 20px;
    bottom: 50%;
    -webkit-animation-timing-function: cubic-bezier(0.57, 0.01, 0.98, 0.47);
    animation-timing-function: cubic-bezier(0.57, 0.01, 0.98, 0.47);
  }
  45% {
    height: 20px;
    bottom: 0%;
  }
  49% {
    height: 5px;
  }
  50% {
    -webkit-transform: rotate(0turn);
            transform: rotate(0turn);
    /* height: $h + 60; */
    bottom: 0%;
    -webkit-animation-timing-function: cubic-bezier(0, 0.62, 0.42, 1);
    animation-timing-function: cubic-bezier(0, 0.62, 0.42, 1);
  }
  75% {
    height: 20px;
    bottom: 100%;
    -webkit-animation-timing-function: cubic-bezier(0.57, 0.01, 0.98, 0.47);
    animation-timing-function: cubic-bezier(0.57, 0.01, 0.98, 0.47);
  }
  100% {
    -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
    height: 20px;
    bottom: 0%;
  }
}
@keyframes bounce {
  0% {
    -webkit-transform: rotate(0turn);
            transform: rotate(0turn);
    bottom: 0%;
    height: 20px;
  }
  4% {
    height: 5px;
  }
  5% {
    height: 30px;
    bottom: 0%;
    -webkit-animation-timing-function: cubic-bezier(0, 0.62, 0.42, 1);
    animation-timing-function: cubic-bezier(0, 0.62, 0.42, 1);
  }
  20% {
    height: 20px;
    bottom: 50%;
    -webkit-animation-timing-function: cubic-bezier(0.57, 0.01, 0.98, 0.47);
    animation-timing-function: cubic-bezier(0.57, 0.01, 0.98, 0.47);
  }
  45% {
    height: 20px;
    bottom: 0%;
  }
  49% {
    height: 5px;
  }
  50% {
    -webkit-transform: rotate(0turn);
            transform: rotate(0turn);
    /* height: $h + 60; */
    bottom: 0%;
    -webkit-animation-timing-function: cubic-bezier(0, 0.62, 0.42, 1);
    animation-timing-function: cubic-bezier(0, 0.62, 0.42, 1);
  }
  75% {
    height: 20px;
    bottom: 100%;
    -webkit-animation-timing-function: cubic-bezier(0.57, 0.01, 0.98, 0.47);
    animation-timing-function: cubic-bezier(0.57, 0.01, 0.98, 0.47);
  }
  100% {
    -webkit-transform: rotate(1turn);
            transform: rotate(1turn);
    height: 20px;
    bottom: 0%;
  }
}