html, body, .pagina-inicial {
  min-height: 100vh;
  width: 100%;
}
/* === BASE RESPONSIVA === */
html {
  font-size: clamp(16px, 4vw, 18px);
}

body {
  background: url('background.webp') no-repeat center center;
  background-size: cover;
  background-attachment: scroll;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  overflow-x: hidden;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  margin: 2rem 0;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 0.05rem;
}

.carousel-container {
  display: flex;
  align-items: flex-start;
  width: 100vw;
  min-height: 25rem;
  position: relative;
  overflow: hidden;
  padding-bottom: 0rem;
}

#anterior, #proximo {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#anterior:hover, #proximo:hover {
  color: white;
}

#anterior {
  left: 0;
}

#proximo {
  right: 0;
}

.carousel-wrapper {
  overflow: hidden;
  width: 100vw;
}

.carousel {
  display: flex;
  gap: 1.2rem;
  padding: 1.2rem;
  scroll-behavior: smooth;
}

.enquete {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid #fff;
  border-radius: 0.5rem;
  padding: 1.2rem;
  width: 18rem;
  flex-shrink: 0;
  box-shadow: 0 0 0.6rem rgba(255, 255, 255, 0.3);
  min-height: 22rem; /* ou até menos, como 16rem, para deixar bem compacto */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.25rem;
}

.enquete h2 {
  text-align: center;
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
  color: #fff;
}

.enquete p {
  margin: 0 0 0.6rem 0;
  text-align: center;
  color: #ccc;
}

.enquete button {
  width: 100%;
  margin: 0.25rem 0;
  padding: 0.8rem;
  background-color: #111;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0.4rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  min-height: 2.5rem;
  font-size: 1rem;
}

.enquete button:hover {
  background-color: #fff;
  color: black;
}

.mensagem {
  font-style: normal;
  font-size: 1rem;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  margin-top: 10px;
  transition: opacity 0.3s ease;
  max-width: 100%;
  word-wrap: break-word;
}

.mensagem-acertou {
  color: #87d96c;
  font-weight: bold;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.mensagem-errou {
  color: #e74c3c;
  font-weight: bold;
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.resultado {
  padding-left: 0;
  list-style: none;
  margin-top: 0.5rem;
  text-align: center;
}

.resultado li {
  margin: 0.25rem 0;
  color: #fff;
}

.resultado-header {
  margin-top: 1rem;
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  text-align: center;
}

.escudos-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 8rem; /* Isso elimina espaços verticais desnecessários */
}

.time-bloco {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.escudo-img {
  height: 4rem;
  margin-bottom: 0.4rem;
}

.placar {
  font-size: 1.6rem;
  color: white;
  font-weight: bold;
  line-height: 1.2;
  margin-top: 0.25rem;
}

.versus {
  font-weight: bold;
  font-size: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
}

.botoes-voto {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 8rem;
  justify-content: center;
}

.enquete.encerrado {
  border: 1px solid #888;
  opacity: 0.85;
}

.enquete.encerrado h2,
.enquete.encerrado .resultado-header,
.enquete.encerrado .resultado li {
  color: #888;
}

.enquete.encerrado .mensagem-acertou {
  color: #87d96c;
}

.enquete.encerrado .mensagem-errou {
  color: #e74c3c;
}
/* Novo bloco para corrigir posicionamento da mensagem dentro do card */
.enquete .mensagem {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: transparent;
  animation: none;
  color: inherit;
  text-align: center;
  min-height: 1.2rem; /* ⬅ garante espaço visível mesmo sem texto */
}

.botao-desativado {
  background-color: #222 !important;
  color: #888 !important;
  border-color: #555 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.botao-desativado:hover {
  background-color: #222 !important;
  color: #888 !important;
}

.tabela-estatisticas {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
  overflow-x: auto;
  padding: 0 0.5rem;
}

.tabela-estatisticas table {
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid #fff;
  color: #fff;
  font-weight: bold;
  min-width: 20rem;
  max-width: 90vw;
  text-align: center;
  border-radius: 0.5rem;
  box-shadow: 0 0 0.6rem rgba(255, 255, 255, 0.2);
  margin: 0 auto;

}

.tabela-estatisticas th,
.tabela-estatisticas td {
  border: 1px solid #fff;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
}

.tabela-estatisticas th {
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-container {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0 0.6rem rgba(255, 255, 255, 0.3);
  color: #fff;
}

.carousel-container .carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 0.6rem;
}

.carousel-container .carousel::-webkit-scrollbar {
  display: none;
}

.carousel-container .carousel .enquete {
  flex: 0 0 auto;
  width: 18rem;
}

.botoes-edicao {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.botoes-edicao button {
  flex: 1;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.6rem;
}

.checkbox-inline input[type="checkbox"] {
  transform: scale(1.2);
  margin: 0;
}

/* === Correção da centralização da mensagem === */
.mensagem-centralizada-externa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.mensagem-centralizada {
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  color: white;
}

/* === Responsividade para telas menores === */
@media (max-width: 700px) {
  .logo-site {
    position: static !important;
    display: block;
    margin: 1rem auto 0 auto;
    height: 50px;
  }

  .tabela-estatisticas {
    margin-top: 1rem;
  }
}
/* Para telas maiores que 700px, fixa em 700px */
@media (min-width: 700px) {
  .tabela-estatisticas table {
    width: 700px;
    max-width: 700px;
  }
}

  h1, h2 {
    font-size: 2rem;
    text-align: center;
  }

  .enquete {
    width: 100%;
    padding: 0.8rem; /* Reduz o espaço interno */
    font-size: 1.1rem;
  }

  .enquete h2 {
    font-size: 1.5rem;
  }

  .enquete button {
    font-size: 1.1rem;
  }

  .placar {
    font-size: 1.4rem;
  }

  .versus {
    font-size: 1.3rem;
  }

  input, select, button {
    font-size: 1.1rem;
  }
  
@media (max-width: 700px) {
  #anterior,
  #proximo {
    display: none;
  }
}
/* Botão de menu */
#menu-button {
  position: fixed;
  top: 0;
  right: 0;
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  transition: opacity 0.3s ease;
}

/* Menu lateral (inicialmente oculto) */
#menu-lateral {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Transparência similar à página */
  color: white;
  padding: 30px 20px;
  z-index: 1000;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px; /* espaçamento entre os elementos */
}

/* Quando aberto */
#menu-lateral.aberto {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Botão de fechar */
#fechar-menu {
  align-self: flex-end;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 20px;
  color: white;
  border: none;
  background: none;
}

/* Links do menu */
#menu-lateral a {
  color: white;
  text-decoration: none;
  margin: 10px 0;
  font-size: 1.1rem;
  padding-bottom: 5px;
}

.logo-topo {
  display: block;
  margin: 30px auto 10px;
  max-width: 120px;
  height: auto;
}
/* Botão de voltar centralizado */
.botao-voltar {
  display: inline-block;
  margin-top: 30px;
  padding: 10px 25px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
  border: 1px solid white;
  border-radius: 8px;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.botao-voltar:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.admin-container {
  max-width: 800px;
  margin: 20px auto; /* Reduzir o espaçamento externo */
  padding: 20px 20px; /* Reduzir o espaçamento interno */
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Troque de center para flex-start */
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
}

a {
  color: white;
  text-decoration: none;
}

a:hover {
  color: #ddd;
}
.tooltip-wrapper {
  display: inline-block;
  position: relative;
  cursor: pointer;
  margin-left: 6px;
}

.tooltip-icon {
  font-size: 1rem;
  cursor: pointer;
  user-select: none;
}

.tooltip-text-global {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.88);
  color: #fff;
  max-width: 90vw;
  padding: 10px 14px;
  font-size: 0.9rem;
  border-radius: 8px;
  z-index: 99999;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  display: none;
  white-space: normal;
  line-height: 1.4;
  transform: translateX(-50%);
  box-sizing: border-box;
}

/* Triângulo para baixo (tooltip acima do ícone) */
.tooltip-text-global.up::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.88) transparent transparent transparent;
}

/* Triângulo para cima (tooltip abaixo do ícone) */
.tooltip-text-global.down::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.88) transparent;
}
.carousel-instagram-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 25rem;
  position: relative;
  overflow: hidden;
  padding-bottom: 2rem;
}

.carousel-instagram-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100vw; /* Igual ao carrossel dos jogos */
}

.carousel-instagram {
  display: flex;
  gap: 2.5rem; /* 🔥 Aumenta a distância entre os posts */
  padding: 2rem; /* 🔥 Aumenta o respiro lateral */
}

.instagram-post {
  min-width: 326px; /* Tamanho mínimo que o Instagram exige */
  max-width: 350px;
}

#btn-instagram-anterior, #btn-instagram-proximo {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-instagram-anterior:hover, #btn-instagram-proximo:hover {
  color: white;
}

#btn-instagram-anterior {
  left: 0;
}

#btn-instagram-proximo {
  right: 0;
}

@media (max-width: 700px) {
  #btn-instagram-anterior,
  #btn-instagram-proximo {
    display: none;
  }
}
/* === Popup de Confirmação === */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.popup-conteudo {
  background-color: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-sizing: border-box; /* Evita que padding aumente o tamanho */
}

.popup-conteudo h2 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.popup-conteudo p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.popup-conteudo button {
  padding: 10px 20px;
  margin-top: 15px;
  border: none;
  border-radius: 5px;
  background-color: white;
  color: black;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}

.popup-conteudo button:hover {
  background-color: #ddd;
}
@keyframes transicaoCard {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animar-transicao {
  animation: transicaoCard 0.4s ease;
}

body {
  padding-top: 10px; /* Espaço global para o menu lateral */
  margin: 0; /* Remove qualquer margem padrão do navegador */
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}
.btn-meu-perfil {
  display: block;
  width: auto;              /* Ajusta ao tamanho do texto */
  margin: 1px auto 1px auto; /* Continua centralizado */
  padding: 6px 12px;        /* Aproxima do tamanho da letra */
  text-align: center;
  border: 1px solid white;
  border-radius: 5px;
  background-color: transparent;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-size: 0.9rem;        /* Tamanho de letra levemente menor */
}

.btn-meu-perfil:hover {
  background-color: white;
  color: black;
}

#usuarioLogado {
  text-align: center;
  align-self: center;
  margin-top: 0px;
  font-weight: bold;
}

.btn-meu-perfil:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loader Spinner */
.spinner {
  border: 6px solid #000000;
  border-top: 6px solid #8b8b8b;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: girar 1s linear infinite;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mini-spinner {
  border: 3px solid #000000;
  border-top: 3px solid #8b8b8b;
  border-radius: 50%;
  width: 14px;  /* Tamanho reduzido */
  height: 14px; /* Tamanho reduzido */
  animation: girar 1s linear infinite;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === Loader Pitacômetro === */
#percentual-acertos {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 30px;
}

#loader-pitacometro {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container do bloco do ranking */
.tabela-estatisticas.ranking-completo {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid white;
  border-radius: 0; /* bordas quadradas */
  padding: 1rem;
  margin: 2rem auto;
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  color: white;
}

/* Título centralizado */
.ranking-titulo-bloco {
  text-align: center;
  margin-bottom: 1rem;
}

.ranking-titulo-bloco h2 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
}

/* Botões do ranking */
.ranking-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ranking-tab {
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: bold;
  border: 1px solid white;
  border-radius: 0; /* bordas quadradas */
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.ranking-tab.active {
  background-color: white;
  color: black;
}

/* Tabelas */
.ranking-box {
  display: none;
}

.ranking-box.active {
  display: block;
}

.ranking-tabela {
  width: 100%;
  max-width: 700px;
  border-collapse: collapse;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid white;
  border-radius: 0; /* bordas quadradas */
  color: white;
  font-size: 0.95rem;
  margin: 0 auto;
}

.ranking-tabela th,
.ranking-tabela td {
  border: 1px solid white;
  padding: 0.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.carrossel-banner {
  position: relative;
  width: 100%;
  height: 100px; /* ajuste conforme altura da imagem */
  overflow: hidden;
  margin: 0;
}

.mensagem-2 {
  animation-delay: 4s;
}

.mensagem-carrossel img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(20%);
  }
  10% {
    opacity: 1;
    transform: translateY(0%);
  }
  40% {
    opacity: 1;
    transform: translateY(0%);
  }
  50% {
    opacity: 0;
    transform: translateY(-20%);
  }
  100% {
    opacity: 0;
    transform: translateY(-20%);
  }
}
.banner-carrossel-container {
  width: 100%;
  overflow: hidden;
  margin: 1.5rem auto;
  max-width: 700px;
  position: relative;
}

.banner-carrossel-faixa {
  display: flex;
  width: fit-content;
  animation: deslizar-banner 14s ease-in-out infinite;
}

.banner-carrossel-faixa a {
  flex: 0 0 100%;
  display: block;
}

.banner-carrossel-faixa img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes deslizar-banner {
  0%   { transform: translateX(0%); }
  42.85% { transform: translateX(0%); }        /* 6s do slide 1 */
  50%  { transform: translateX(-100%); }       /* 1s de transição */
  92.85% { transform: translateX(-100%); }     /* 6s do slide 2 */
  100% { transform: translateX(0%); }          /* 1s de transição de volta */
}
@media (max-width: 700px) {
  .carrossel-banner {
    height: 40px;
    margin-bottom: 4px;
  }
}
.mensagem-carrossel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(20%);
  animation-fill-mode: forwards;
}

.mensagem-1 {
  animation: slideUpFade 8s ease-in-out infinite;
}

.mensagem-2 {
  animation: slideUpFade 8s ease-in-out infinite;
  animation-delay: 4s; /* metade do tempo da animação para alternar */
}

.rss-carousel-container {
  max-width: 900px;
  margin: 0 auto 1rem auto;
  padding: 0.5rem 1rem;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255,255,255,0.2);
  color: white;
  text-align: center;
  overflow: hidden;
}

.rss-carousel-container h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.rss-carousel-wrapper {
  overflow: hidden;
  width: 100%;
}

.rss-carousel {
  display: flex;
  gap: 0.5rem;
  width: max-content;
  animation: scrollCarousel 80s linear infinite;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.rss-slide {
  flex: 0 0 auto;
  width: 150px;
  box-sizing: border-box;
}

.rss-image-wrapper {
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  position: relative;
}

.rss-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rss-slide a {
  color: white;
  text-decoration: none;
}

.rss-slide span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .rss-slide {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .rss-slide {
    width: 100px;
  }
}

[id^="monetag"] {
    position: fixed !important;
    bottom: 10px; /* Ou top: 10px */
    right: 10px; /* Ou left: 10px, se o menu lateral for na direita */
    z-index: 9999 !important;
    width: 300px !important;
    height: auto !important;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Opcional: ajuste para telas pequenas */
@media (max-width: 768px) {
  [id^="monetag"] {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}