/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', Arial, sans-serif;
  font-weight: 500;
  background-color: #dcefe3;
  padding: 20px;
  padding-bottom: 120px;
  font-size: 1rem;
}

/* TOPO */
.topo {
  text-align: center;
  background-color: #4a7c59;
  background: linear-gradient(to right, #4a7c59, #61a075);
  color: white;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 0 0 20px 20px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 20px;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.15);
  animation: aparecerTopo 0.8s ease-out;
}

@keyframes aparecerTopo {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
  

.topo h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  font-weight: 700;
}

/* CARROSSEL */
.carrossel-topo {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px;
  overflow: hidden;
  background-color: #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carrossel-slides {
  display: flex;
  width: 200%;
  transition: transform 0.5s ease;
}

.carrossel-slides a {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carrossel-slides img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.carrossel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  display: none;
}

.carrossel-btn.prev {
  left: 10px;
}

.carrossel-btn.next {
  right: 10px;
}

.carrossel-btn:hover {
  background-color: rgba(0,0,0,0.6);
}

/* NAVEGAÇÃO + DATA */
.navegacao-data {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.navegacao-data button {
  background-color: white;
  color: #4a7c59;
  border: 2px solid #4a7c59;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.navegacao-data button:hover {
  background-color: #cfe7d8;
  transform: scale(1.05);
}

.navegacao-data button:active {
  transform: scale(0.95);
}

.navegacao-data input[type="date"] {
  padding: 6px 10px;
  font-size: 0.9rem;
  border: 2px solid #4a7c59;
  border-radius: 4px;
  color: #2e2e2e;
  background-color: white;
  cursor: pointer;
  margin-left: 6px;
}

.texto-instrucao {
  font-size: 0.9rem;
  color: #2e2e2e;
  margin-left: 8px;
  margin-right: 4px;
  font-weight: 500;
}

#data-atual {
  font-size: 1.1rem;
  font-weight: bold;
  color: #2e2e2e;
}

/* TABELAS */
#tabelas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  max-width: 1200px;
}

.tabela-bloco {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 0.85rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: aparecer 0.7s ease forwards;
  padding: 4px;
}

.tabela-bloco:hover,
.tabela-bloco:active {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.titulo-loteria {
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 8px;
  margin-top: 4px;
  background-color: #4a7c59;
  color: white;
  font-weight: bold;
  padding: 6px;
}

.nome-animal {
  display: block;
  text-align: center;
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 4px;
}


@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

caption {
  padding: 0;
  margin-bottom: 4px;
}

caption .imagem-container {
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

caption .animal-premio {
  box-shadow: none;
  border: none;
  background: transparent;
}


thead {
  background-color: #f0f0f0;
}

th {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

td {
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-size: 1.1rem;
}

/* WHATSAPP FIXO */
.whatsapp-fixo {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-fixo:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.whatsapp-fixo img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

/* RODAPÉ */
footer.rodape {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #4a7c59;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  z-index: 999;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

footer.rodape a {
  color: #e0f5e9;
  text-decoration: none;
  font-weight: bold;
}

footer.rodape a:hover {
  text-decoration: underline;
}

/* MENSAGEM ELEGANTE QUANDO NÃO HÁ RESULTADOS */
.mensagem-vazia {
  max-width: 800px;
  margin: 20px auto;
  padding: 14px 16px;
  background-color: #fff4cc;
  color: #4a7c59;
  font-size: 1.1rem;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  animation: aparecer 0.5s ease forwards;
}

/* MEDIA QUERIES */

/* TELAS MÉDIAS */
@media (max-width: 768px) {
  .tabela-bloco {
    width: calc(50% - 12px);
    font-size: 0.75rem;
  }

  th {
    padding: 6px;
    font-size: 0.8rem;
  }

  td {
    padding: 6px;
    font-size: 1.1rem;
  }

  caption {
    font-size: 1rem;
  }

  .tabela-bloco td:first-child,
  .tabela-bloco th:first-child {
    width: 50px;
    white-space: nowrap;
    text-align: center;
  }
}

/* TELAS GRANDES */
@media (min-width: 1024px) {
  .tabela-bloco {
    width: calc(20% - 14px);
  }
}

/* CELULAR */
@media (max-width: 600px) {
  .carrossel-topo {
    max-width: 100%;
  }

  .carrossel-slides {
    width: 100%;
  }

  .carrossel-slides a {
    width: 100%;
  }

  .carrossel-slides img {
    object-fit: contain;
  }

  .navegacao-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .navegacao-data-linha-superior,
  .navegacao-data-linha-inferior {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .navegacao-data button {
    font-size: 1rem;
    padding: 6px 8px;
    max-width: 44px;
  }

  #data-atual {
    font-size: 1rem;
    white-space: nowrap;
  }

  .texto-instrucao {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .navegacao-data input[type="date"] {
    font-size: 0.9rem;
    padding: 6px 8px;
    max-width: 150px;
  }
}

/* MUITO PEQUENAS */
@media (max-width: 480px) {
    
    .topo h1 {
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: center;
    word-break: keep-all;
  }
}
  .navegacao-data button {
    font-size: 1rem;
    padding: 6px 10px;
  }

  .navegacao-data input[type="date"] {
    font-size: 0.85rem;
    padding: 4px 8px;
  }

  .texto-instrucao {
    font-size: 0.8rem;
  }
}

@media (max-width: 400px) {
  .texto-instrucao {
    display: none;
  }
}

/* ESTILOS DE FUNDO DAS TABELAS */
.tabela-bloco.tabela-impar table {
  background-color: #dbf4dc;
}

.tabela-bloco.tabela-par table {
  background-color: #fff4cc;
}

/* BOTÃO DE COMPARTILHAMENTO */
.botao-compartilhar {
  background-color: #25d366;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  margin: 14px auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.botao-compartilhar img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.botao-compartilhar:hover {
  background-color: #1ebe5d;
  transform: scale(1.05);
}

/* 🎯 AJUSTE EXCLUSIVO PARA TELAS GRANDES */
@media (min-width: 601px) {
  .botao-compartilhar {
    margin: 16px auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
  }
}

.tabela-bloco img.animal-premio {
  display: block;
  margin: 0 auto;
  object-fit: contain;
  height: 180px;
  max-width: 180px;
}

.imagem-container {
  text-align: center;
  background: #fffde6;
  padding: 20px; /* padrão para desktop */
}

@media screen and (max-width: 480px) {
  .tabela-bloco img.animal-premio {
    height: 130px;
    max-width: 130px;
  }

  .tabela-bloco td.animal-nome strong {
    font-size: 1em;
  }
  .imagem-container {
    padding: 8px 0; /* bem mais compacto no celular */
  }
}



