/* === THEMA === verander alleen deze waarden om het thema aan te passen === */
:root {
  --kleur-primair: #f77f00;
  --kleur-accent: #e63946;
  --kleur-achtergrond: #fff8f0;
  --kleur-kaart: #ffffff;
  --kleur-tekst: #1a1a2e;
  --lettertype-titel: 'Bangers', cursive;
  --lettertype-tekst: 'Nunito', sans-serif;
  --rand-radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--lettertype-tekst);
  background-color: var(--kleur-achtergrond);
  color: var(--kleur-tekst);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === HEADER === */
header {
  background: linear-gradient(135deg, #e63946, #f77f00, #f4a261);
  color: white;
  text-align: center;
  padding: 2rem 1rem 4.5rem;
  clip-path: ellipse(100% 85% at 50% 0%);
}

.emoji-rij {
  font-size: 1.4rem;
  letter-spacing: 0.3rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

header h1 {
  font-family: var(--lettertype-titel);
  font-size: clamp(2.2rem, 9vw, 4.5rem);
  letter-spacing: 2px;
  text-shadow: 3px 5px 10px rgba(0,0,0,0.25);
  margin-bottom: 0.4rem;
}

.tagline {
  font-size: 1.05rem;
  opacity: 0.92;
  font-weight: 700;
}

/* === LAYOUT === */
main {
  max-width: 680px;
  width: 100%;
  margin: -2.5rem auto 2rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

/* === KAARTEN === */
.kaart {
  background: var(--kleur-kaart);
  border-radius: var(--rand-radius);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.kaart h2 {
  font-family: var(--lettertype-titel);
  font-size: 1.7rem;
  letter-spacing: 1px;
  color: var(--kleur-primair);
  margin-bottom: 1rem;
}

/* === PROFIEL === */
.profiel-kaart { display: flex; gap: 1.5rem; align-items: center; }

.profielfoto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--kleur-primair);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #f4a261, 0 4px 16px rgba(247,127,0,0.3);
}

.over-mij p { line-height: 1.6; font-size: 1rem; }

/* === SPEEL DE GAME === */
.game-kaart {
  background: linear-gradient(135deg, #fff0e0, #ffe0c0);
  border: 2px solid #ffc890;
  text-align: center;
}
.game-tekst {
  line-height: 1.6;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.game-knop {
  display: inline-block;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  font-family: var(--lettertype-titel);
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-decoration: none;
  background: linear-gradient(135deg, #e63946, #f77f00);
  color: white;
  box-shadow: 0 6px 18px rgba(230,57,70,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.game-knop:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 24px rgba(230,57,70,0.5); }
.game-knop:active { transform: scale(0.97); }
.game-link {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c25000;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.game-link:hover { opacity: 1; text-decoration: underline; }

/* === DINO VAN DE DAG === */
.dino-kaart {
  background: linear-gradient(135deg, #fff8f0, #fff0e0);
  border: 2px solid #ffd0a0;
}

.dino-kaart h2 { color: #c25000; }

.dino-naam-rij {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.dino-naam {
  font-family: var(--lettertype-titel);
  font-size: 1.7rem;
  letter-spacing: 1px;
  color: var(--kleur-tekst);
}

.spreek-knop {
  background: none;
  border: 2px solid var(--kleur-primair);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.spreek-knop:hover { background: var(--kleur-primair); transform: scale(1.1); }
.spreek-knop.aan-het-spreken { background: var(--kleur-primair); animation: pulsen 0.6s ease-in-out infinite alternate; }
@keyframes pulsen { from { transform: scale(1); } to { transform: scale(1.15); } }

.dieet-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.dieet-badge.carnivoor { background: #fde8e8; color: #c62828; }
.dieet-badge.herbivoor { background: #e8f5e9; color: #2e7d32; }
.dieet-badge.omnivoor  { background: #fff3e0; color: #e65100; }

.dino-afbeelding-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  margin-bottom: 1.25rem;
}

.dino-afbeelding {
  max-width: 100%;
  max-height: 220px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.dino-emoji-fallback {
  font-size: 6rem;
  animation: stuiteren 2s ease-in-out infinite;
}
@keyframes stuiteren { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.verborgen { display: none !important; }

.dino-feit {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.nog-een-knop {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 50px;
  font-family: var(--lettertype-tekst);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  background: var(--kleur-primair);
  color: white;
  box-shadow: 0 4px 14px rgba(247,127,0,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nog-een-knop:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 20px rgba(247,127,0,0.45); }
.nog-een-knop:active { transform: scale(0.97); }

/* === ELEMENTEN SECTIE === */
.elementen-kaart { text-align: center; }
.elementen-kaart h2 { color: #7b2d8b; }

.elementen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.element {
  border-radius: 16px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-weight: 900;
  font-size: 0.9rem;
  transition: transform 0.15s;
}
.element:hover { transform: scale(1.08); }

.element-emoji { font-size: 2.5rem; }
.element-naam { font-family: var(--lettertype-titel); font-size: 1.1rem; letter-spacing: 0.5px; }
.element-feit { font-size: 0.82rem; line-height: 1.4; margin-top: 0.5rem; opacity: 0.85; }

.element.vuur  { background: linear-gradient(135deg, #fff0e0, #ffd0a0); color: #c25000; }
.element.water { background: linear-gradient(135deg, #e0f4ff, #b0d8f5); color: #0077b6; }
.element.aarde { background: linear-gradient(135deg, #e8f5e0, #c5e0a0); color: #2d6a0f; }
.element.wind  { background: linear-gradient(135deg, #f0e8ff, #d8c0f5); color: #6a0fad; }

.elementen-tekst {
  font-size: 1rem;
  font-weight: 700;
  color: #7b2d8b;
}

/* === FAVORIETEN === */
.favorieten-lijst { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.favorieten-lijst li {
  background: var(--kleur-achtergrond);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

/* === FOOTER === */
footer { text-align: center; padding: 1.5rem; font-size: 0.85rem; color: #999; }

/* === MOBIEL === */
@media (max-width: 480px) {
  .profiel-kaart { flex-direction: column; text-align: center; }
  .profielfoto { width: 100px; height: 100px; }
  .elementen-grid { grid-template-columns: repeat(2, 1fr); }
  .dino-naam { font-size: 1.4rem; }
}

/* --- Film "De Niet-Pannenkoek" --- */
.film-kaart { text-align: center; }
.film-video {
  width: 100%;
  max-width: 640px;
  border-radius: var(--rand-radius, 16px);
  display: block;
  margin: 0.6rem auto 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  background: #000;
}
.film-tekst { margin: 0 auto 0.4rem; max-width: 640px; }
