/* General Animation */
.animation-text {
  position: relative;
  backface-visibility: hidden;
}

.section h2.animation-text {
  display: inline-block;
}

.show .background-opacity {
  animation: backgroundRedOpacity 0.3s ease 0.5s;
  animation-fill-mode: backwards;
}

.show .opacity-text {
  animation: opacityKey 0.3s ease 0.5s;
  animation-fill-mode: backwards;
}

.opacity-animated {
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
}

.show .opacity-animated {
  opacity: 1;
  /* transition-delay: 0.5s */
}

.right-animated {
  transform: translateX(30px);
  transition: transform 0.3s ease;
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
}

.left-animated {
  transform: translateX(-30px);
  transition: transform 0.3s ease;
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
}

.down-animated {
  transform: translateY(30px);
  transition: transform 0.3s ease;
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
}

.show .right-animated,
.show .left-animated,
.show .down-animated {
  transform: translateX(0);
  /* transition-delay: 0.5s */
}

.show .animation-text:after {
  content: "";
  background-color: rgb(204, 0, 34);
  display: inline-block;
  right: 0;
  height: 100%;
  width: 0;
  position: absolute;
  top: 0;
  animation: textRight 0.7s ease;
  animation-delay: 0.3s;
  -webkit-animation: textRight 0.7s ease;
  -webkit-animation-delay: 0.3s;
}

.show #profile .animation-text:after {
  background-color: white;
}

.show .animation-text--black:after {
  background-color: #000000;
}

/* .show #profile .animation-text{
animation: backgroundWhiteOpacity 0.3s ease 0.5s;
animation-fill-mode: backwards;
} */

.show .animation-text--delay {
  animation: backgroundRedOpacity 0.3s ease 0.7s;
  -webkit-animation: backgroundRedOpacity 0.3s ease 0.7s;
  animation-fill-mode: backwards;
}

.show #profile .animation-text--delay {
  -webkit-animation: backgroundWhiteOpacity 0.3s ease 0.7s;
  animation: backgroundWhiteOpacity 0.3s ease 0.7s;
  animation-fill-mode: backwards;
}

.show .animation-text--delay .opacity-text {
  -webkit-animation: opacityKey 0.3s ease 0.7s;
  animation: opacityKey 0.3s ease 0.7s;
  animation-fill-mode: backwards;
}

.show .animation-text--delay:after {
  -webkit-animation: textRight 0.7s ease 0.5s;
  animation: textRight 0.7s ease 0.5s;
}

.show h2.animation-text:after {
  -webkit-animation: textRight 0.7s ease;
  animation: textRight 0.7s ease;
}

h2.animation-text span {
  opacity: 0;
  transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -webkit-transition: opacity 0.3s ease;
}
.show h2.animation-text span {
  opacity: 1;
  transition-delay: 0.3s;
}

/* Table animation */

.animated-table h2 {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.show .animated-table h2 {
  opacity: 1;
}
.section .animated-table h2.time:before {
  right: 100%;
  width: 0%;
  left: 65px;
  transition:
    right,
    width 0.5s ease;
}

.section.show .animated-table h2.time:before {
  right: 0%;
  width: calc(100% - 3.9em);
  transition-delay: 0.3s;
}

.section .animated-table li.list-item:before {
  height: 0;
  transition: height 0.5s ease;
}

.section.show .animated-table li.list-item:before {
  height: calc(100% - 2em);
  transition-delay: 0.3s;
}

.section .animated-table p {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.section.show .animated-table p {
  opacity: 1;
  transition-delay: 0.4s;
}

@-webkit-keyframes textRight {
  0% {
    right: 100%;
    width: 0;
  }
  50% {
    right: 0%;
    width: 100%;
  }
  100% {
    right: 0%;
    width: 0%;
  }
}
@keyframes textRight {
  0% {
    right: 100%;
    width: 0;
  }
  50% {
    right: 0%;
    width: 100%;
  }
  100% {
    right: 0%;
    width: 0%;
  }
}

@-webkit-keyframes opacityKey {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes opacityKey {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@-webkit-keyframes backgroundRedOpacity {
  0% {
    background-color: rgba(204, 0, 34, 0);
  }
  100% {
    background-color: rgba(204, 0, 34, 0.9);
  }
}
@keyframes backgroundRedOpacity {
  0% {
    background-color: rgba(204, 0, 34, 0);
  }
  100% {
    background-color: rgba(204, 0, 34, 0.9);
  }
}

@-webkit-keyframes backgroundWhiteOpacity {
  0% {
    background-color: rgba(255, 255, 255, 0);
  }
  100% {
    background-color: rgba(255, 255, 255, 0.9);
  }
}
@keyframes backgroundWhiteOpacity {
  0% {
    background-color: rgba(255, 255, 255, 0);
  }
  100% {
    background-color: rgba(255, 255, 255, 0.9);
  }
}
