/* =========================
   ESTILO GERAL DO BODY
========================= */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  text-align: center;
  padding: 120px 20px 20px; /* desktop */
}

@media (max-width: 1024px) {
  body {
    padding: 140px 15px 20px; /* tablet */
  }
}

@media (max-width: 768px) {
  body {
    padding: 400px 15px 15px; /* celular */
  }
}

/* =========================
   CABEÇALHO FIXO
========================= */
#cabecalhoFixo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  padding: 20px 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 800;
  text-align: center;
  border-bottom: 2px solid #ddd;
}

/* Título e subtítulo centralizados */
#cabecalhoFixo h1,
#cabecalhoFixo p {
  margin: 0;
  padding: 5px 0;
  font-size: 1.2rem;
  color: #2c3e50;
}

/* Botões organizados em grid flexível */
.menu-opcoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Botões */
.menu-opcoes button {
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

/* Hover */
.menu-opcoes button:hover {
  background-color: #388E3C;
  transform: scale(1.05);
}

/* Responsivo para telas pequenas */
@media (max-width: 480px) {
  #cabecalhoFixo {
    padding: 30px 10px;
  }

  .menu-opcoes {
    flex-direction: column;
    align-items: center;
  }

  .menu-opcoes button {
    width: 100%;
    max-width: 280px;
    font-size: 0.95rem;
  }

  #cabecalhoFixo h1 {
    font-size: 1.4rem;
  }

  #cabecalhoFixo p {
    font-size: 1rem;
  }
}


/* =========================
   BOTÕES PADRÃO
========================= */
button {
  margin: 10px;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
button:hover {
  background-color: #388E3C;
  transform: scale(1.05);
}

/* =========================
   BOTÕES CENTRALIZADOS
========================= */
.menu-opcoes,
.navegacao,
.exibir-mais-wrapper,
#botoesDiscipulado {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* =========================
   BOTÕES DE LIÇÕES
========================= */
#licoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
#licoes button {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 6px;
  background-color: #4CAF50;
  white-space: nowrap;
}

/* =========================
   MÓDULOS DE CONTEÚDO
========================= */
.modulo {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.modulo h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 10px;
}
.introducao,
.consideracoes,
.pergunta p {
  text-align: left;
}
.pergunta strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
  text-align: center;
}
.pergunta {
  margin-bottom: 15px;
  background: #fff;
  padding: 10px;
  border-left: 4px solid #4CAF50;
  border-radius: 6px;
}

/* =========================
   BOTÃO DE CONCLUSÃO
========================= */
.concluir {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  margin-top: 20px;
  transition: transform 0.3s ease;
}
.concluir:hover {
  background-color: #388E3C;
  transform: scale(1.05);
}

/* =========================
   CARROSSEL DE IMAGENS
========================= */
.carrossel-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f4f6f8;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.carrossel-container {
  overflow: hidden;
  position: relative;
}
.carrossel {
  display: flex;
  transition: transform 0.6s ease-in-out;
}
.slide {
  min-width: 50%;
  padding: 10px;
}
.slide img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.slide img:hover {
  transform: scale(1.02);
}
@media (max-width: 768px) {
  .slide {
    min-width: 100%;
  }
  .slide img {
    max-height: 220px;
  }
}

/* Botões do carrossel */
.nav-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
  padding: 0 20px;
}
.nav-buttons button {
  pointer-events: all;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.3s;
}
.nav-buttons button:hover {
  background-color: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

/* =========================
   GRID DE POSTS
========================= */
.posts-site-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.posts-site-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.post-site {
  background-color: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease;
  max-width: 360px;
  flex: 1 1 calc(33.333% - 20px);
}
.post-site:hover {
  transform: scale(1.02);
}
.post-site img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
}
.post-site .resumo {
  padding: 18px;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .post-site {
    flex: 1 1 100% !important;
  }
}
/* =========================
   BARRA DE PROGRESSO + PLANO DE LEITURA CENTRALIZADO
========================= */
#estatisticasLeitura {
  margin: 20px auto;
  padding: 15px;
  background: #f9f9f9;
  border-left: 6px solid #0078D7;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 800px;
}
#estatisticasLeitura table {
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
}
#estatisticasLeitura th,
#estatisticasLeitura td {
  text-align: center;
  padding: 10px;
  border: 1px solid #ddd;
}

/* Barra de progresso */
.barra-progresso {
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
  height: 28px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
  margin: 10px auto;
  max-width: 600px;
}
.barra-preenchida {
  height: 100%;
  background: linear-gradient(90deg, #0078D7, #00BFFF);
  text-align: center;
  color: white;
  font-weight: bold;
  line-height: 28px;
  transition: width 0.4s ease;
}

/* =========================
   TABELA DE LEITURA BÍBLICA
========================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
th, td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}
th {
  background-color: #f0f0f0;
  font-weight: bold;
}

/* =========================
   CHECKBOX DE LEITURA
========================= */
input[type="checkbox"] {
  transform: scale(1.3);
  cursor: pointer;
}

/* =========================
   TEXTO BÍBLICO NO MODAL
========================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: auto;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: #fff;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* =========================
   RESPONSIVO FINAL
========================= */
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    padding: 20px;
    font-size: 16px;
  }
  table th, table td {
    font-size: 0.9rem;
    padding: 8px;
  }
  .barra-preenchida {
    font-size: 0.9rem;
  }
  .modal-texto p {
    font-size: 0.95rem;
  }
}

/* =========================
   ESTILO DOS MÓDULOS DE SERMÃO
========================= */
.sermao-container {
  background: #fff;
  padding: clamp(16px, 5vw, 40px);
  margin: 40px auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
}
.sermao-container h1 {
  font-size: 3rem;
  text-align: center;
  color: #0078D7;
  margin-bottom: 30px;
}
.sermao-container h2 {
  font-size: 3rem;
  text-align: center;
  color: #34495e;
  margin-top: 40px;
}
.sermao-container h3 {
  font-size: 2.8rem;
  text-align: center;
  color: #555;
  margin-top: 20px;
}
.sermao-container p,
.sermao-container div {
  font-size: 2.5rem;
  margin-top: 0;
  text-align: left;
}
.sermao-container blockquote {
  font-size: 1.4rem;
  font-style: italic;
  margin: 20px 0;
  padding-left: 20px;
  border-left: 3px solid #ccc;
  color: #666;
  text-align: center;
}
.sermao-container ul,
.sermao-container ol {
  margin-left: 20px;
  text-align: left;
}
.sermao-container strong {
  font-weight: bold;
}
.sermao-container em {
  font-style: italic;
}

/* =========================
   QUIZ E FEEDBACK
========================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-content {
  background: #1c1c1c;
  padding: 40px;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  font-family: 'Segoe UI', sans-serif;
  font-size: 18px;
  color: #f0f0f0;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.2s ease;
}
.close-btn:hover {
  color: #ff4d4d;
}
.hidden {
  display: none !important;
}
.quiz-nav {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.quiz-nav button {
  padding: 12px 24px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background-color: #00b4d8;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}
.quiz-nav button:hover {
  background-color: #0090b0;
}
.correct {
  color: #00ff99;
  font-weight: bold;
  font-size: 20px;
  margin-top: 15px;
}
.incorrect {
  color: #ff6666;
  font-weight: bold;
  font-size: 20px;
  margin-top: 15px;
}
ul {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 600px;
  margin: auto;
  font-size: 18px;
}
.quiz-box ul li {
  background: #2a2a2a;
  padding: 16px 20px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid #444;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
ul li.selecionada {
  background-color: #0077b6;
  color: #ffffff;
  border: 2px solid #00b4d8;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
  transform: scale(1.03);
}

#feedback .referencia {
  color: #f0ad4e;
  font-weight: bold;
  font-style: italic;
  margin-top: 8px;
}
/* =========================
   COMPARTILHAR
========================= */
.compartilhar-area {
  margin-top: 20px;
  text-align: center;
}
.compartilhar-btn {
  margin: 5px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
.compartilhar-btn:hover {
  background-color: #0056b3;
}
.referencia {
  font-style: italic;
  color: #555;
  margin-top: 5px;
}

/* =========================
   ANIMAÇÕES DE FEEDBACK
========================= */
.acerto-efeito {
  animation: brilho 1s ease-in-out;
}
.erro-efeito {
  animation: tremer 0.5s ease-in-out;
}
@keyframes brilho {
  0% { background-color: #d4edda; }
  100% { background-color: transparent; }
}
@keyframes tremer {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.emoji-animado {
  display: inline-block;
  animation: pular 0.6s ease-in-out 2;
}
@keyframes pular {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* =========================
   IMAGEM RESPONSIVA TELA INICIAL
========================= */
.imagem-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px; /* aplica em todos os lados */
  min-height: 50vh;
}

* 🌐 Estilo padrão para computadores */
.imagem-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  min-height: 90vh;
}

.imagem-responsiva {
  width: 800px; /* largura fixa para desktop */
  max-width: 10%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Imagem responsiva */
.imagem-responsiva {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 📱 Estilo para celulares e tablets */
@media (max-width: 768px) {
  .imagem-container {
    padding: 20px;
    min-height: 1vh;
  }

  .imagem-responsiva {
    border-radius: 8px;
  }
}
/* =========================
   RANKING DE PONTUAÇÃO
========================= */
#ranking {
  padding: 20px;
  background-color: #f0f8ff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 400px;
  margin: 20px auto;
  transition: padding 0.3s ease;
}
#ranking h2 {
  text-align: center;
  margin-bottom: 20px;
}
#ranking ol {
  padding-left: 20px;
  font-size: 18px;
}
#ranking ol li {
  font-size: 18px;
  margin-bottom: 8px;
}
#ranking ol li strong {
  color: #2c3e50;
}
/* =========================
   RESPONSIVO QUIZ E MODAL
========================= */
@media (max-width: 768px) {
  .quiz-nav {
    flex-direction: column;
    gap: 10px;
  }

  .quiz-nav button {
    width: 100%;
    font-size: 16px;
    padding: 10px;
  }

  ul {
    font-size: 16px;
  }

  .quiz-box ul li {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
    font-size: 15px;
  }

  .quiz-nav button {
    font-size: 15px;
    padding: 8px;
  }

  ul {
    font-size: 15px;
  }

  .quiz-box ul li {
    padding: 10px 14px;
  }
}
