/* Section Appears Up */

.home-banner {
  animation: section-appears-up 1s ease;
}

@keyframes section-appears-up {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Jello */

.jello {
  animation: jello 1s ease;
}

@keyframes jello {
  0% {
    transform: scale3d(1, 1, 1);
  }

  30% {
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    transform: scale3d(1.05, 0.95, 1);
  }

  100% {
    transform: scale3d(1, 1, 1);
  }
}

/* Icon Shake */

.card:hover i {
  animation: icon-shake 0.5s ease;
}

@keyframes icon-shake {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(5deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Up rotate */

.left-side-decoration {
  animation: up-rotate 90s ease-in-out infinite;
}

@keyframes up-rotate {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20rem) rotate(360deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Down rotate */

.right-side-decoration {
  animation: down-rotate 120s ease-in-out infinite;
}

@keyframes down-rotate {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(20rem) rotate(360deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Mobile Panel */

.mobile-panel-open {
  animation: bounce-in-right 0.8s ease;
}


@keyframes bounce-in-right {
  0% {
    transform: translateX(600px);
    animation-timing-function: ease-in;
    opacity: 0;
  }

  38% {
    transform: translateX(0);
    animation-timing-function: ease-out;
    opacity: 1;
  }

  55% {
    transform: translateX(68px);
    animation-timing-function: ease-in;
  }

  72% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }

  81% {
    transform: translateX(32px);
    animation-timing-function: ease-in;
  }

  90% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }

  95% {
    transform: translateX(8px);
    animation-timing-function: ease-in;
  }

  100% {
    transform: translateX(0);
    animation-timing-function: ease-out;
  }
}

/* Close */

.mobile-panel-close {
  animation: slide-out 0.5s ease-in-out;
}

@keyframes slide-out {
  0% {
    transform: translateX(0);
    animation-timing-function: ease-in;
    opacity: 1;
  }

  100% {
    transform: translateX(600px);
    animation-timing-function: ease-out;
    opacity: 0;
  }
}

/* Toast */

.toast-show {
  opacity: 1;
  animation: toast-show 1s;
}

@keyframes toast-show {
  0% {
    top: -6rem;
  }

  100% {
    top: 2rem;
  }
}

.toast-hide {
  opacity: 0;
  animation: toast-hide 1s;
}

@keyframes toast-hide {
  0% {
    top: 2rem;
  }

  100% {
    top: -6rem;
  }
}