html,
body,
#app {
  height: 100%;
  margin: 0;
  padding: 0;
}

@import url(//fonts.googleapis.com/css?family=Lato:300:400);

body {
  margin: 0;
}

h1 {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 48px;
}
p {
  font-family: 'Lato', sans-serif;
  letter-spacing: 1px;
  font-size: 14px;
  color: #333333;
}

.header {
  position: relative;
  text-align: center;
  background: linear-gradient(60deg, rgba(84, 58, 183, 1) 0%, rgba(0, 172, 193, 1) 100%);
  color: white;
}
.logo {
  width: 50px;
  fill: white;
  padding-right: 15px;
  display: inline-block;
  vertical-align: middle;
}

.inner-header {
  height: 65vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

.flex {
  /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.waves {
  position: relative;
  width: 100%;
  height: 15vh;
  margin-bottom: -7px; /*Fix for safari gap*/
  min-height: 100px;
  max-height: 150px;
}

.content {
  position: relative;
  height: 20vh;
  text-align: center;
  background-color: white;
}

/* Animation */

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
/*Shrinking for mobile*/
@media (max-width: 768px) {
  .waves {
    height: 40px;
    min-height: 40px;
  }
  .content {
    height: 30vh;
  }
  h1 {
    font-size: 24px;
  }
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  /* background-color: #FA8BFF; */
  /* background-image: linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BFF88 90%); */
  /* 背景渐变色 - 原理2 */
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  /* 背景尺寸 - 原理3 */
  background-size: 600% 600%;
  /* 循环动画 - 原理4 */
  animation: gradientBG 5s ease infinite;
}

/* 动画，控制背景 background-position */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.loader-box {
  position: fixed;
  left: calc(50% - 350px);
  top: calc(50% - 100px);
  margin: 0 auto;
  width: 700px;
  height: 200px;
  text-align: center;
  vertical-align: center;
  font-weight: bold;
  color: #fff;
  font-size: 45px;
}

.loader-box > span {
  /* opacity: 0.4; */
  display: inline-block;
  animation: bouncingLoader 1s infinite alternate;
}

.loader-box > span:nth-child(2) {
  animation-delay: 0.1s;
}

.loader-box > span:nth-child(3) {
  animation-delay: 0.2s;
}

.loader-box > span:nth-child(4) {
  animation-delay: 0.3s;
}

.loader-box > span:nth-child(5) {
  animation-delay: 0.4s;
}

.loader-box > span:nth-child(6) {
  animation-delay: 0.5s;
}

.loader-box > span:nth-child(7) {
  animation-delay: 0.6s;
}
.loader-box > span:nth-child(8) {
  animation-delay: 0.6s;
}
.loader-box > span:nth-child(9) {
  animation-delay: 0.6s;
}

.loader-box > span:nth-child(10) {
  animation-delay: 0.6s;
}

@keyframes bouncingLoader {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(25px);
  }
  100% {
    transform: translateY(0);
  }
}

.loader-title {
  font-weight: bold;
  z-index: 1002;
  position: absolute;
  top: 60%;
  margin-top: 15px;
  color: #fff;
  font-size: 18px;
  width: 100%;
  height: 30px;
  text-align: center;
  /* opacity: 0.4; */
  line-height: 30px;
}

.perspective {
  transform-style: preserve-3d;
  perspective: 520px;
  transform: rotateX(15deg);
}

.demo-cube {
  position: absolute;
  top: 60%;
  margin-top: 15px;
  width: 700px;
  height: 200px;
  margin: auto;
  margin-top: -30px;

  .cube {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 580px;
    height: 10px;
    transform-style: preserve-3d;
    transform-origin: 50px 50px;
    transform: translate(-50%, -50%) rotateX(-33.5deg);
    p{
      position: absolute;
      left:40%;
      color:#fff;
      font-size: 20px;
      top: -20px;
      transform: rotateX(40deg) translateZ(40px);

    }
    li {
      position: absolute;
      display: block;
      /* width: 500px; */
      height: 50px;
    }
    .top {
      width: 32.2rem;
      margin-left: 0.82rem;
      transform: rotateX(90deg) translateZ(40px);
    }
    .bottom {
      width: 32.2rem;
      margin-left: 0.82rem;
      transform: rotateX(-90deg) translateZ(6px);
    }
    .front {
      width: 34rem;

      transform: translateZ(4px);
    }
    .back {
      width: 34rem;
      transform: rotateX(-180deg) translateZ(50px);
    }
  }
}

.colorful {
  animation: hueRotate 10s infinite linear;
  .cube {
    .top,
    .front,
    .bottom,
    .back {
      background: linear-gradient(
        90deg,
        rgba(40, 101, 127, 0.9),
        rgba(133, 165, 181, 0.5) 85%,
        rgba(255, 255, 255, 0.6) 85%,
        rgba(255, 255, 255, 0.6)
      );
    }
  }
}

.pink .cube {
  .top,
  .front,
  .bottom,
  .back {
    background: linear-gradient(
      90deg,
      rgba(255, 217, 34, 0.6),
      rgba(255, 34, 109, 0.8) var(--per),
      rgba(255, 34, 109, 0.1) var(--per),
      rgba(255, 34, 109, 0.1)
    );
    animation: perChange 6s infinite;
  }
}

@property --per {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.demo-cube .cube {
  .top,
  .front,
  .bottom,
  .back {
    background: linear-gradient(
      90deg,
      rgba(255, 217, 34, 0.6),
      rgba(255, 34, 109, 0.8) var(--per),
      rgba(255, 34, 109, 0.1) var(--per),
      rgba(255, 34, 109, 0.1)
    );
    animation: perChange 6s infinite;
  }
}

@keyframes perChange {
  0% {
    --per: 0%;
  }
  90%,
  to {
    --per: 100%;
  }
}

@keyframes hueRotate {
  0% {
    filter: hue-rotate(0);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
