:root {
  --bg-gradient: linear-gradient(135deg, #e3d7c3, #f5eee6, #d7c6a3);
  --card-bg: rgba(255, 255, 255, 0.92);
  --accent: #b13e0f;
  --text: #222;
  --shadow: 0 3px 10px rgba(0,0,0,0.15);
  --radius: 12px;
  --transition: 0.3s ease;
  --font: "Segoe UI", sans-serif;
}

/* ===== Base ===== */
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-gradient);
  color: var(--text);
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
}



/* ===== Cabeçalho ===== */
header {
  text-align: center;
  background: var(--accent);
  color: white;
  padding: 20px;
  box-shadow: var(--shadow);
}

header h1 {
  margin: 0;
  font-size: 1.9em;
}

header p {
  font-size: 0.95em;
  margin-top: 4px;
  opacity: 0.9;
}

/* ===== Navegação ===== */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #222;
  box-shadow: inset 0 -2px 6px rgba(0,0,0,0.4);
}

.tab {
  background: none;
  color: white;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: bold;
  transition: var(--transition);
}

.tab:hover {
  background: rgba(255,255,255,0.1);
}

.tab[aria-selected="true"] {
  background: var(--accent);
}

/* ===== Estrutura principal ===== */
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  backdrop-filter: blur(6px);
  animation: fadeIn 0.4s ease;
}

/* ===== Apenas para Contexto Histórico e Ambientes de Batalha ===== */
.card.compacto {
  padding: 14px 18px;
  margin-top: -10px;
  margin-bottom: -10px;
}

/* ===== Imagens das abas ===== */
.image-slot {
  margin-top: 20px;
  text-align: center;
}

.image-slot img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-slot img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.hint {
  font-size: 0.85em;
  color: #555;
  margin-top: 6px;
}

/* ===== Lista lateral ===== */
.list-people {
  margin-top: 8px;
}

.person {
  background: #f8f8f8;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  margin: 6px 0;
  padding: 8px 10px;
  transition: var(--transition);
}

.person:hover {
  background: #fff5f0;
  transform: translateX(4px);
}

/* ===== Seção de artefatos ===== */
.artefatos {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.artefato-texto {
  flex: 2;
  font-size: 0.95rem;
  line-height: 1.5;
}

.artefato-texto ul {
  margin: 0.5rem 0 0 1rem;
}

.artefato-texto li {
  margin-bottom: 6px;
}

.artefato-imagem {
  flex: 1;
  text-align: center;
  animation: fadeInImage 1.2s ease forwards;
  opacity: 0;
}

.artefato-imagem img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.4s ease;
  filter: brightness(0.95);
}

.artefato-imagem img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  filter: brightness(1.05);
}

.artefato-imagem .hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 6px;
}

/* ===== Texto extra ===== */
.texto-extra {
  margin-top: 18px;
  font-size: 0.96rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.6);
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: fadeIn 0.6s ease;
}

/* ===== Rodapé ===== */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 0.9em;
  margin-top: 20px;
}

/* ===== Animações ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInImage {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
  nav {
    flex-direction: column;
  }
  .tab {
    width: 100%;
    text-align: left;
    padding-left: 16px;
  }
  .artefatos {
    flex-direction: column;
  }
}
/* === Questionário === */
#quizForm {
  background: #fdfdfd;
  border: 2px solid #d4af37; /* dourado suave */
  border-radius: 12px;
  padding: 1.5em 2em;
  margin-top: 2em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  font-family: "Georgia", serif;
}

#quizForm h2 {
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 1em;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 0.4em;
}

#quizForm ol {
  padding-left: 1.2em;
  color: #222;
  font-size: 1.05em;
}

#quizForm li {
  margin-bottom: 1em;
  font-weight: 600;
  color: #1c1c1c;
}

#quizForm label {
  display: block;
  margin: 6px 0;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  background: #f7f7f7;
  transition: all 0.2s ease;
}

#quizForm label:hover {
  background: #fff7e6;
  border-color: #d4af37;
}

#quizForm input[type="radio"] {
  accent-color: #d4af37;
  transform: scale(1.1);
  margin-right: 6px;
}

#submitQuiz {
  display: block;
  margin: 1.5em auto 0;
  background: linear-gradient(135deg, #d4af37, #c79810);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 10px 25px;
  cursor: pointer;
  transition: all 0.25s ease;
}

#submitQuiz:hover {
  background: linear-gradient(135deg, #f2c94c, #d4af37);
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

#quizResult {
  text-align: center;
  font-size: 1.2em;
  color: #333;
  margin-top: 1.5em;
  padding: 0.8em;
  border-radius: 8px;
  border: 2px solid #d4af37;
  background: #fffaf0;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


