/* --------------------------------------------------
   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;
}

/* --------*
