@import './mixins/nth-child-variable';
@import './mixins/letter-scale-animation';

.animated {
  .crisis_of_confidence {
    #title {
      animation-name: title_animation;
      animation-duration: 20s;
      animation-timing-function: ease-in-out;
      animation-iteration-count: infinite;
      animation-direction: alternate;
      transform-origin: center center;

      [id^='letter'] {
        animation-name: letterScaleAnimation;
        animation-duration: 5s;
        animation-timing-function: ease-in-out;
        animation-iteration-count: infinite;
        transform-origin: center center;
        animation-delay: calc(var(--nth-child) * 0.3s);

        @include nth_child_variable(20);
      }
    }
  }
}

@keyframes title_animation {
  0% {
    scale: 0.9;
  }
  100% {
    scale: 1.1;
  }
}

@include letterScaleAnimation;
