/* OVERLAY DAS AULAS – CORREÇÃO DEFINITIVA */
.overlay {
  position: fixed;            /* 🔥 ESSENCIAL */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;              /* 🔥 acima de tudo */
}

/* CONTEÚDO DO OVERLAY */
.overlay-content {
  width: 90%;
  max-width: 900px;
  height: 85vh;

  background: #ffffff;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

/* IFRAME */
.overlay iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* BOTÃO FECHAR */
.close {
  position: absolute;
  top: 12px;
  right: 12px;

  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}




body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  background: #f4f6f8;
  margin: 0;
  color: #1f2937;
}

/* TOPO */
.topo {
  text-align: center;
  padding: 25px 15px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

/* HOME GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 14px;
  padding: 25px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.container {
  background: white;
  padding: 25px;
  border-radius: 14px;
}

/* MGA BUTTON */
button {
  margin-top: 15px;
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: #2563eb;
  color: white;
  cursor: pointer;
}

.voltar {
  background: #6b7280;
}

/* OPÇÕES DO QUIZ – CONTRASTE CORRIGIDO */
.opcao {
  display: block;
  width: 100%;
  background: #f8fafc;          /* fundo bem claro */
  color: #111827;               /* texto escuro (quase preto) */
  margin: 10px 0;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid #d1d5db;    /* borda para definir o botão */
  transition: background 0.2s, border 0.2s;
}

/* HOVER */
.opcao:hover {
  background: #e0e7ff;          /* azul claro */
  border-color: #6366f1;
}

/* CORRETA */
.correta {
  background-color: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a;
}

/* ERRADA */
.errada {
  background-color: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626;
}


.hidden {
  display: none;
}



.lesson-card {
  background: #1e293b;
  color: #fff;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.lesson-card:hover {
  background: #334155;
}

/* BLOQUEADAS */
.lesson-card.locked {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto; /* ✅ permite clique */
}




/* 🔧 GARANTE INTERAÇÃO NAS AULAS */
.lesson-card {
  pointer-events: auto;
  user-select: none;
}



.lang-switch {
  position: absolute;
  top: 15px;
  right: 20px;

  text-decoration: none;
  font-weight: 600;
  font-size: 14px;

  background: #e5e7eb;
  color: #1f2937;
  padding: 6px 10px;
  border-radius: 8px;
}

.lang-switch:hover {
  background: #c7d2fe;
}


