* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

/* 🌊 Fundo com animação de ondas em tons de verde */
body {
  background: linear-gradient(270deg, #d9fdd3, #b8f0b0, #d9fdd3);
  background-size: 600% 600%;
  animation: waveBackground 12s ease-in-out infinite;
  color: #033;
  text-align: center;
  line-height: 1.6;
}

@keyframes waveBackground {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* HEADER */
.hero {
  position: relative;
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3em;
}

.hero p {
  font-size: 1.2em;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background: #43a047;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #2e7d32;
}

/* SECTIONS */
.section {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 80px;
}

.section h2 {
  color: #2e7d32;
  font-size: 2em;
  margin-bottom: 15px;
}

.section img {
  width: 100%;
  max-width: 700px;
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* LINHAS DIVISÓRIAS MAIS FORTES */
.section::after {
  content: "";
  display: block;
  height: 4px;
  width: 85%;
  background: linear-gradient(90deg, transparent, #66bb6a, #2e7d32, #66bb6a, transparent);
  margin: 70px auto 0 auto;
  border-radius: 3px;
}

/* LIST */
ul {
  list-style: none;
  text-align: left;
  margin: 20px auto;
  max-width: 600px;
}

li {
  background: #e8f5e9;
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
}

/* CARDS */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 260px;
  transition: transform 0.3s;
}

.card:hover {
  transform: scale(1.05);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3 {
  color: #2e7d32;
  margin-top: 10px;
}

.mensagem {
  margin-top: 25px;
  font-weight: bold;
  color: #1b5e20;
}

/* QUIZ */
#quiz-container {
  background: #ffffff;
  border: 2px solid #66bb6a;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  padding: 25px;
  width: 90%;
  max-width: 550px;
  margin: 30px auto;
  transition: transform 0.3s;
}

#quiz-container:hover {
  transform: scale(1.02);
}

/* JOGO RESPONSIVO PROPORÇÃO CORRETA */
#jogo .iframe-container {
  position: relative;
  width: 100%;
  max-width: 485px; /* largura máxima do iframe em desktop */
  aspect-ratio: 485 / 402; /* força a proporção correta */
  margin: 30px auto;
  background: #ffffff;
  border: 2px solid #66bb6a;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

#jogo .iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Divisor forte antes de QUIZ e JOGO */
#quiz::before,
#jogo::before {
  content: "";
  display: block;
  height: 5px;
  width: 70%;
  background: linear-gradient(90deg, transparent, #66bb6a, #2e7d32, #66bb6a, transparent);
  margin: 80px auto;
  border-radius: 3px;
}

/* PROGRESS BAR */
#progress-bar {
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  height: 15px;
  margin-bottom: 20px;
}

#progress {
  background: #43a047;
  height: 100%;
  width: 0;
  transition: width 0.4s ease;
}

#options button {
  display: block;
  background: #a5d6a7;
  border: none;
  margin: 8px auto;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  width: 80%;
  transition: 0.3s;
}

#options button:hover {
  background: #388e3c;
  color: white;
}

#next-btn {
  margin-top: 10px;
  padding: 8px 20px;
  border: none;
  background: #1b5e20;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  display: none;
}

/* Dica do JOGO */
.dica {
  margin-top: 10px;
  font-weight: bold;
  color: #2e7d32;
}

/* FOOTER */
footer {
  background: #2e7d32;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 0.9em;
  margin-top: 40px;
}

/* ANIMAÇÕES */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
