/* 🌑 Estilo base */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0a0a;
  color: #d6d6d6;
  background-image: url('dark-texture.jpg'); /* Textura sombria */
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  line-height: 1.6;
}

/* 🩸 Cabeçalho */
header {
  background-color: #000;
  padding: 40px 20px;
  text-align: center;
  border-bottom: 2px solid #8b0000;
  box-shadow: 0 0 30px #8b0000;
}

header h1 {
  font-size: 3em;
  margin: 0;
  color: #8b0000;
  text-shadow: 2px 2px 8px #000;
}

header p {
  font-size: 1.2em;
  color: #ccc;
  margin-top: 10px;
  text-shadow: 1px 1px 3px #000;
}

/* 🧱 Seções */
section {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
  background-color: rgba(20, 20, 20, 0.85);
  border-radius: 10px;
  box-shadow: 0 0 20px #111;
  margin-bottom: 40px;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🔥 Títulos */
h2 {
  color: #ff3300;
  border-bottom: 1px solid #ff3300;
  padding-bottom: 10px;
  text-shadow: 1px 1px 3px #000;
}

/* 👻 Grade de personagens */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.character-grid img {
  width: 100%;
  border-radius: 8px;
  background-color: #1a1a1a;
  padding: 10px;
  box-shadow: 0 0 10px #ff3300;
  transition: transform 0.3s ease;
}

.character-grid img:hover {
  transform: scale(1.05);
}

/* 🕰️ Linha do tempo */
.timeline-item {
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 3px solid #ff3300;
  background-color: rgba(30, 30, 30, 0.6);
  padding: 10px;
  border-radius: 5px;
}

/* 📊 Tabela */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #444;
}

th {
  background-color: #8b0000;
  color: #fff;
}

td {
  background-color: #1a1a1a;
}

/* 📋 Lista ordenada */
ol {
  margin-top: 20px;
  padding-left: 20px;
}

ol li {
  margin-bottom: 10px;
}

/* 🧾 Formulário */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

input, textarea, select, button {
  padding: 12px;
  border: none;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #d6d6d6;
  font-size: 1em;
  box-shadow: 0 0 5px #ff3300;
  transition: box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 10px #ff3300;
}

button {
  background-color: #8b0000;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #ff3300;
  box-shadow: 0 0 10px #ff3300;
}

/* ✅ Mensagem de sucesso */
#mensagemEnviada {
  margin-top: 10px;
  color: #00ff99;
  font-weight: bold;
}

/* ⚰️ Rodapé */
footer {
  background-color: #000;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #666;
  border-top: 2px solid #8b0000;
  box-shadow: 0 -2px 10px #8b0000;
}

footer a {
  color: #ff3300;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 📱 Responsividade */
@media (max-width: 600px) {
  header h1 {
    font-size: 2em;
  }

  section {
    padding: 20px;
  }

  .character-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
