

.firefly {
  position: absolute;
 
  width: 0.3vw;
  height: 0.3vw;
  margin: -0.2vw 0 0 9.8vw;
  animation: ease 200s alternate infinite;
  pointer-events: none;
}

.firefly::before,
.firefly::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform-origin: -10vw;
}

.firefly::before {
  background:  #7fccd3;
  opacity: 0.6;
  animation: drift ease alternate infinite;
}

.firefly::after {
  background: #7fccd3;
  opacity: 0;
  box-shadow: 0 0 0vw 0vw  #7fccd3;
  animation: drift ease alternate infinite, flash ease infinite;
}

/* 
   Como o Sass gerava as animações dinamicamente, 
   abaixo estão as instâncias para 15 fireflies.
   Para manter o efeito visual, os tempos foram definidos 
   com valores padrão aleatórios.
*/

.firefly:nth-child(1) { animation-name: move1; }
.firefly:nth-child(2) { animation-name: move2; }
.firefly:nth-child(3) { animation-name: move3; }
.firefly:nth-child(4) { animation-name: move4; }
.firefly:nth-child(5) { animation-name: move5; }
.firefly:nth-child(6) { animation-name: move6; }
.firefly:nth-child(7) { animation-name: move7; }
.firefly:nth-child(8) { animation-name: move8; }
.firefly:nth-child(9) { animation-name: move9; }
.firefly:nth-child(10) { animation-name: move10; }
.firefly:nth-child(11) { animation-name: move11; }
.firefly:nth-child(12) { animation-name: move12; }
.firefly:nth-child(13) { animation-name: move13; }
.firefly:nth-child(14) { animation-name: move14; }
.firefly:nth-child(15) { animation-name: move15; }
.firefly:nth-child(16) { animation-name: move16; }
.firefly:nth-child(17) { animation-name: move17; }
.firefly:nth-child(18) { animation-name: move18; }
.firefly:nth-child(19) { animation-name: move19; }
.firefly:nth-child(20) { animation-name: move20; }

/* Animações de Drift e Flash */
@keyframes drift {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes flash {
  0%, 100% { opacity: 0; box-shadow: 0 0 0vw 0vw  #7fccd3; }
 40%, 60% { opacity: 1; box-shadow: 0 0 2vw 0.4vw #7fccd3 ; }
}

/* Nota: O CSS puro não suporta a função 'random()' do Sass. 
   Para que cada vagalume tenha um movimento único, 
   o ideal seria definir os keyframes 'moveN' manualmente 
   ou usar um pequeno script JavaScript para injetar os estilos. */


   /* Exemplo de movimento para uma das fireflies */
@keyframes move1 {
  0% { transform: translate(0, 0); }
  50% { transform: translate(50vw, 20vh); }
  100% { transform: translate(-20vw, 40vh); }
}

/* Você precisaria criar move2, move3... ou, melhor ainda, 
   usar o JS para sortear posições, como o script abaixo: */