
:root { font-size: 62.5%; }

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: whitesmoke;
}

/* =====================================
   HEADER FIXO COM IMAGEM VIA HTML
===================================== */
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  color: white;
  /* height: 23vh;
  z-index: 1;
  background-color: whitesmoke;
  display: flex;
  justify-content: center;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 3); */
}

header {
  /* height: 2em;
  background-color: #111122;
  margin: 0 0 0 0;
  padding: auto;
  font-size: 2em;
  text-align: center;
  line-height: 2em;
  color: white; */
}


.header-banner-img {

  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 50%;
  border: 1px solid rgb(221, 226, 235);
}

.page-wrapper {
  position: relative; /* <- ESSENCIAL */
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  box-sizing: border-box;
}

.container {
  position: relative; 
  display: flex;
  flex-direction: column;
  /* min-height: 100vh; */
  padding-right: 0;
  padding-left: 0;
}



.logo-container {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo-container img {
  width: 100%; height: 100%;
  object-fit: cover;
}

main {
margin-top: 28vh;
margin-bottom: 12vh;
margin-left: 1rem;
margin-right: 1rem;
overflow-y: auto;
}

.botao-painel {
  font-size: 2.4rem;
  padding: 1rem;
  margin-bottom: 2rem;
  border-radius: 5.5rem;
  background-color: white;
  border-color: #ffffff47;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: -webkit-fill-available;
  cursor: pointer;
}

.botao-painel:disabled,
.botao-painel.loading {
  opacity: 0.6;
  cursor: not-allowed;
}

.is-hidden {
  display: none !important;
}

.disabled {
  background-color: #ffffff7a;
  color: #a2a2a2;
  cursor: not-allowed;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%; 
  max-width: 430px;
  /* margin: 0 auto; */
  height: 10vh;
  background-color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}


/* 
=====================================
Fundo fixo com compatibilidade total
=====================================
Este elemento <div class="background-fixa"></div> é posicionado fixamente 
atrás de todo o conteúdo, simulando um "background-attachment: fixed" 
de forma compatível com todos os navegadores, inclusive mobile.
*/
.background-fixa {
position: fixed;            /* Fica fixo na viewport, não rola */
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: -1;                /* Colocado atrás de todos os elementos */

/* background-image: url('/static/imagens/fundo.png'); 
background-size: cover;  
background-position: center;
background-repeat: space;
opacity: 1;  */

}

.background-fixa::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(255, 255, 255, 0.2); /* branco com transparência */
z-index: 1; /* abaixo de tudo, acima apenas da imagem */
pointer-events: none; /* para não interferir com cliques */
}


/* Modal fundo (overlay) */
.modal-qr-fundo {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Conteúdo do modal */
.modal-qr-conteudo {
  background: #fff;
  border-radius: 18px;
  max-width: 98vw;
  width: 420px;
  padding: 22px 10px 12px 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.25);
  position: relative;
  max-height: 94vh;
  overflow-y: auto;
}

/* Botão fechar */
.modal-qr-fechar {
  position: absolute;
  right: 22px;
  top: 10px;
  font-size: 2.2em;
  color: #888;
  cursor: pointer;
  z-index: 10;
}

.modal-qr-titulo {
  text-align: center;
  margin-bottom: 18px;
  font-size: 1.3em;
}

.modal-qr-label { display: block; margin-bottom: 8px; font-size: 1.07em; }
.modal-qr-input {
  width: 100%;
  padding: 10px;
  font-size: 1.13em;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-bottom: 12px;
}
.modal-qr-botao {
  width: 100%;
  padding: 12px 0;
  background: #27ae60;
  color: #fff;
  font-size: 1.08em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.modal-qr-resultados {
  margin-top: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cartão do QR */
.qr-item {
  margin: 20px;
  padding: 18px 0 18px 0;
  /* border-bottom: 1px solid #e7e7e8; */
  max-width: 300px;
  text-align: center;
  background: white !important;
  border-radius: 12px;
  /* box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07); */
  box-shadow: none !important;
}


.infocardContainer {
  display: flex;
  height: 170px;
  width: -webkit-fill-available;
  border-radius: 100px 0px 100px 100px;
  /* border-radius: 100px; */
  /* background: rgb(0, 159, 255); */
  /* background: linear-gradient(121deg, rgba(0, 0, 0, 1) 33%, rgba(0, 159, 255, 1) 100%); */
  transition: all 500ms ease-in;
  transition-delay: 1s;
  /* margin-top: 10px; */
}

.infocardContainer div {
  text-color: white;
  flex-shrink: 1;
  width: 100%;
  --background-color: green;
}

.infocardContainer #main, .infocardContainer #main img{
  /* --background-color: red; */
    /* height: 200px; */
    width: fit-content;
    /* padding-right: 10px; */
    /* border-radius: 100%; */
    border-top-right-radius: 100%;
    border-bottom-right-radius: 100%;
    border-top-left-radius: 100%;
    border-bottom-left-radius: 100%;
    /* flex-shrink: 0; */
    object-fit: cover;
}
.infocardContainer #main img{
  height: 150px;
    width: 150px;
    transition: none;
    display: float;
    position: relative;
    /* border: 10px solid white; */
    border-right: 10px solid white;
    border-top: 10px solid white;
    border-bottom: 10px solid white;
    margin: 0 0 0 0;
    margin-right: 10px;
}
#textbois {
  max-width: fit-content;   
  margin: 0 auto;           /* Centraliza se quiser */
  padding: 0.5rem 1rem;
}
  
.textbois-div {
  font-size: 2.3rem;           /* Tamanho moderado, responsivo */
  font-weight: 700;            /* Mais destaque */
  word-break: break-word;      /* Quebra palavras longas */
  overflow-wrap: break-word;   /* Compatibilidade extra */
  text-align: center;          /* Centraliza o nome */
  margin: 0;
  line-height: 1.2;
}

/* TEXto passando... */
#placar {
  position: relative;
  overflow: hidden;
  color: whitesmoke;
  background: linear-gradient(10deg, rgba(0, 0, 0, 1) 33%, rgba(0, 159, 255, 1) 100%);
  height: 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding: 0 10px;
}

/* .glowing-text {
  color: #fff;
  text-shadow:
    0 0 8px #00faff,
    0 0 16px #00c6ff,
    0 0 24px #00bfff,
    0 0 40px #0ff,
    0 0 60px #0ff;
} */

@keyframes glow {
  0%, 100% {
    text-shadow:
      0 0 8px #0ff, 0 0 16px #0ff, 0 0 32px #0ff;
  }
  50% {
    text-shadow:
      0 0 24px #fff, 0 0 48px #0ff, 0 0 64px #0ff;
  }
}

.glowing-text {
  color: #fff;
  animation: glow 3.7s infinite alternate;
  text-shadow:
    0 0 8px #00faff,
    0 0 16px #00c6ff,
    0 0 24px #00bfff,
    0 0 40px #0ff,
    0 0 60px #0ff;
}

.link-externo-feedback {
  font-size: 1.3rem;
  color: #1e5b8c;
  margin-top: 0.6rem;
  text-align: center;
}

.link-externo-feedback.erro {
  color: #c0392b;
}

.modal-link-externo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-link-conteudo {
  background: #fff;
  max-width: 90vw;
  width: 420px;
  border-radius: 1.8rem;
  padding: 2.4rem 2rem 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  font-size: 1.6rem;
  line-height: 1.4;
}

.modal-link-fechar {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #777;
  cursor: pointer;
}

.modal-link-url-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

#modal-link-url {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 1.2rem;
  padding: 0.9rem 1rem;
  font-size: 1.4rem;
  background: #f7f9fc;
  color: #1f2a37;
}

.btn-copiar-link {
  border: none;
  background: linear-gradient(135deg, #2974b0, #1e5b8c);
  color: #fff;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(30, 91, 140, 0.35);
  white-space: nowrap;
}

.btn-copiar-link:hover {
  background: linear-gradient(135deg, #2f82c6, #20679b);
}
