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

.animated {
  .gold_mine {
    #main {
      animation-name: goldMineScaleAnimation;
      animation-duration: 20s;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
      transform-origin: 3800px 4800px;
    }

    #all {
      animation-name: brightnessAnimation;
      animation-duration: 20s;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
    }
  }
}

@keyframes goldMineScaleAnimation {
  0% {
    transform: scale(1);
  }
  80% {
    transform: scale(2);
  }
  90% {
    transform: scale(7);
  }
  91% {
    transform: scale(7);
  }
  92% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes brightnessAnimation {
  0% {
    filter: brightness(1);
  }
  90% {
    filter: brightness(1);
  }
  91% {
    filter: brightness(0);
  }
  92% {
    filter: brightness(0);
  }
  100% {
    filter: brightness(1);
  }
}
