@import './mixins/no-taxes-defence';

.animated {
  .tax_on_plantations {
    #movable-leaf {
      animation-name: tree_leaf_animation;
      animation-duration: 20s;
      animation-timing-function: ease-in-out;
      animation-iteration-count: infinite;
      transform-origin: 5705px 2783px;
      display: block;
    }
  }

  &.circle-even {
    use.d-none.use-bird {
      display: block;
    }
  }
}

@keyframes tree_leaf_animation {
  0% {
    transform: matrix(0.05, 0, 0, 0.05, 0, 0);
    animation-timing-function: ease-in-out;
  }
  5% {
    transform: matrix(1, 0, 0, 1, 0, 0);
    animation-timing-function: ease-in-out;
  }
  10% {
    transform: matrix(1, 0.5, -0.3, 0.7, 0, 0);
    animation-timing-function: ease-in;
  }
  15% {
    transform: matrix(1, 0.3, -0.4, 0.6, 400, 400);
    animation-timing-function: ease-out;
  }
  20% {
    animation-timing-function: ease-in;
    transform: matrix(1, 0.1, 0, 0.5, 1000, 500);
  }
  25% {
    animation-timing-function: ease-out;
    transform: matrix(1, 0.2, 0, 0.2, 0, 700);
  }
  35% {
    animation-timing-function: ease-in;
    transform: matrix(1, 0.35, 0, -0.2, -1100, 800);
  }
  40% {
    animation-timing-function: ease-out;
    transform: matrix(1, -0.2, 0, -0.4, 0, 1300);
  }
  45% {
    animation-timing-function: ease-in;
    transform: matrix(1, -0.3, 0, -0.3, 800, 1500);
  }
  50% {
    animation-timing-function: ease-out;
    transform: matrix(1, -0.2, 0, -0.5, 0, 1600);
  }
  58% {
    animation-timing-function: ease-in;
    transform: matrix(1, 0.1, 0, -0.7, -900, 1700);
  }
  68% {
    animation-timing-function: ease-out;
    transform: matrix(1, -0.2, 0, -0.5, 0, 2200);
  }
  80% {
    animation-timing-function: ease-in;
    transform: matrix(1, -0.2, 0, -0.5, 0, 2200);
    opacity: 1;
  }
  90% {
    animation-timing-function: ease-out;
    transform: matrix(1, -0.2, 0, -0.5, 0, 2200);
    opacity: 0;
  }
  99% {
    animation-timing-function: ease-in;
    transform: matrix(0.05, 0, 0, 0.05, 0, 0);
    opacity: 0;
  }

  100% {
    transform: matrix(0.05, 0, 0, 0.05, 0, 0);
    opacity: 1;
  }
}

@include noTaxesDefenceMixin;
