/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
  color: #222;
  padding: 20px;
  line-height: 1.6;
}

/* Home (index.html) */
.container.home {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.logo-home {
  max-width: 160px;
  margin: 10px auto 10px;
  display: block;
}

.container.home h1 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.container.home p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 24px;
}

.dias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.dia {
  display: block;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  padding: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: bold;
}

.dia:hover {
  background-color: #0056b3;
  transform: scale(1.03);
}

@media (max-width: 600px) {
  .logo-home {
    max-width: 120px;
  }
  .container.home h1 {
    font-size: 1.6rem;
  }
}

/* Cartões (cards) */
.card {
  background: #fff;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.5s;
  max-width: 800px;
  margin: auto;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.card.flip {
  animation: flipCard 0.6s ease-in-out;
}

@keyframes flipCard {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(90deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

.pergunta {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.opcoes li {
  list-style: none;
  padding: 12px;
  margin: 8px 0;
  font-size: 1rem;
  background: #eee;
  border: 1px solid #aaa;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.opcoes li:hover {
  background: #ddd;
}

.opcoes li.certa {
  background-color: #2e7d32 !important;
  color: white !important;
  border-color: #1b5e20 !important;
  cursor: default !important;
}

.opcoes li.errada {
  background-color: #c62828 !important;
  color: white !important;
  border-color: #8e0000 !important;
  cursor: default !important;
}

.explicacao {
  margin-top: 10px;
  font-style: italic;
  display: block;
}

.botoes-navegacao {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.botoes-navegacao button {
  padding: 10px 20px;
  border: none;
  background: #444;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.botoes-navegacao button:hover {
  background: #000;
}

footer {
  text-align: center;
  margin-top: 30px;
}

#recomecar {
  padding: 10px 25px;
  margin-top: 10px;
  background-color: #d32f2f;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

#recomecar:hover {
  background-color: #b71c1c;
}

/* Confete */
.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}
