/* from https://codepen.io/andywillekens/pen/VLbwvX */
/* line 4, app/assets/stylesheets/rotate-device-animation.css.scss */
#rotate-device-animation.overlay {
  display: none;
  position: absolute;
  top: 0;
  background-color: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  z-index: 10;
}

@media only screen and (max-width: 860px) and (orientation: portrait) {
  /* line 15, app/assets/stylesheets/rotate-device-animation.css.scss */
  #rotate-device-animation.overlay {
    display: block;
  }
  /* line 17, app/assets/stylesheets/rotate-device-animation.css.scss */
  #rotate-device-animation.overlay .iconContainer {
    background-color: white;
  }
}

/* line 23, app/assets/stylesheets/rotate-device-animation.css.scss */
#rotate-device-animation.overlay .phone {
  animation: sizeIncrease 0.5s forwards ease, borderIncrease 0.5s 0.5s forwards ease, rotateRight 0.7s 1s forwards ease;
}

/* line 28, app/assets/stylesheets/rotate-device-animation.css.scss */
#rotate-device-animation.overlay .phone i {
  animation: fadeIn 0.5s 0.8s forwards ease;
}

/* line 32, app/assets/stylesheets/rotate-device-animation.css.scss */
#rotate-device-animation.overlay .iconContainer p {
  animation: fadeIn 0.5s 1.3s forwards ease;
}

/* line 36, app/assets/stylesheets/rotate-device-animation.css.scss */
#rotate-device-animation {
  /* KEYFRAMES
  ------------------------------------------- */
  /* Animate width + height */
  /* Add borders */
  /* fade-in  */
  /* Rotate device */
}

/* line 37, app/assets/stylesheets/rotate-device-animation.css.scss */
#rotate-device-animation .iconContainer {
  width: 200px;
  height: 250px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -100px;
  margin-top: -100px;
  padding-top: 30px;
}

/* line 46, app/assets/stylesheets/rotate-device-animation.css.scss */
#rotate-device-animation .iconContainer p {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 18px;
  opacity: 0;
}

/* line 56, app/assets/stylesheets/rotate-device-animation.css.scss */
#rotate-device-animation .phone {
  position: relative;
  left: 50%;
  margin-left: -50px;
  width: 0;
  height: 0;
  border: 0 solid #000;
  background: #a9a9a9;
  border-radius: 10px;
  box-sizing: border-box;
}

/* line 66, app/assets/stylesheets/rotate-device-animation.css.scss */
#rotate-device-animation .phone i {
  text-align: center;
  width: 100%;
  line-height: 120px;
  font-size: 50px;
  color: #454545;
  opacity: 0;
}

@keyframes sizeIncrease {
  0% {
    width: 0;
    height: 10px;
  }
  50% {
    width: 100px;
    height: 10px;
  }
  100% {
    width: 100px;
    height: 160px;
  }
}

@keyframes borderIncrease {
  100% {
    border-width: 20px 10px;
  }
}

@keyframes fadeIn {
  100% {
    color: #000;
    opacity: 1;
  }
}

@keyframes rotateRight {
  100% {
    transform: rotate(90deg);
  }
}
