/* --------------------------------------------------
   Tipografia e base
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background-color: #0d0d0d;
  color: #e6e6e6;
  line-height: 1.8;
  padding: 40px 20px;
}

/* --------------------------------------------------
   Container principal do conto
-------------------------------------------------- */
main {
  max-width: 800px;
  margin: auto;

  /* padding herdado das duas versões (mantém 40px) */
  padding: 40px;

  /* fundo e bordas finais */
  background-color: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(100, 255, 150, 0.3);
  border-radius: 8px;

  /* sombra final */
  box-shadow:
    0 0 20px rgba(100, 255, 150, 0.2),
    0 0 40px rgba(100, 255, 150, 0.1);

  /* efeito suave ao passar o mouse */
  transition: box-shadow 0.5s ease-in-out;
}

main:hover {
  box-shadow:
    0 0 30px rgba(120, 255, 170, 0.3),
    0 0 60px rgba(120, 255, 170, 0.15);
}

/* --------------------------------------------------
   Títulos e texto
-------------------------------------------------- */
h1 {
  text-align: center;
  font-size: 2.6rem;
  color: #00ff9d;
  letter-spacing: 1px;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(0, 255, 157, 0.4);
}

p {
  margin-bottom: 1.2em;
}

/* --------------------------------------------------
   Separador
-------------------------------------------------- */
hr {
  border: none;
  height: 1px;
  margin: 2em 0;
  background: linear-gradient(to right, transparent, #333, transparent);
}

/* --------------------------------------------------
   Rodapé
-------------------------------------------------- */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 40px;
}

/* --------------------------------------------------
   Botão “Voltar aos Contos”
-------------------------------------------------- */
.back-button {
  display: inline-block;
  margin-top: 30px;
  background-color: transparent;
  color: #00ff9d;
  border: 1px solid #00ff9d;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.4);
}

.back-button:hover {
  background-color: #00ff9d;
  color: #0d0d0d;
  box-shadow: 0 0 15px rgba(0, 255, 157, 0.7);
  transform: scale(1.05);
}

/* --------------------------------------------------
   Efeito de fade na entrada
-------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);   }
}

p, h1, hr, .back-button {
  animation: fadeIn 0.6s ease-in-out;
}

/* --------*/


/* --------------------------------------------------
   Destaque de texto — Verde Casa Fantasma
-------------------------------------------------- */
.texto-verde {
  color: #00ff9d;
  text-shadow: 0 0 8px rgba(0, 255, 157, 0.6);
  font-weight: 700;
}

/* --------------------------------------------------
   Botão de Play/Pause
-------------------------------------------------- */

/* base dos botões */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 rgba(0, 255, 157, 0.0);
  }
  30% {
    box-shadow: 
      0 0 14px rgba(0, 255, 157, 0.6),
      0 0 28px rgba(0, 255, 157, 0.3);
  }
  60% {
    box-shadow: 
      0 0 8px rgba(0, 255, 157, 0.3),
      0 0 16px rgba(0, 255, 157, 0.15);
  }
  100% {
    box-shadow: 0 0 0 rgba(0, 255, 157, 0.0);
  }
}

/* base dos botões */
.audio-btn {
  position: fixed;
  right: 16px;
  z-index: 999;

  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(0, 255, 157, 0.3);
  border-radius: 50%;
  width: 31px;
  height: 31px;

  font-size: 16px;
  cursor: pointer;

  backdrop-filter: blur(4px);
  transition: all 0.3s ease;

  /* ✨ efeito pulsante */
  animation: pulseGlow 3s infinite ease-in-out;
}

.audio-btn:hover {
  opacity: 0.9;
  transform: scale(1.08);
}

/* posições */
#audio-toggle {
  bottom: 16px;
}

#audio-next {
  bottom: 55px;
}

@media (max-width: 600px) {
  .audio-btn {
    right: 12px;
    width: 31px;
    height: 31px;
    font-size: 18px;
  }

  #audio-toggle {
    bottom: 12px;
  }

  #audio-next {
    bottom: 50px;
  }
}

