/* ===== RESET / BASE ===== */
body {
    font-family: Arial, sans-serif;
    background: url("../static/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    color: white;
}

/* ===== VARIABLES ===== */
:root {
    --verde-principal: #28a745;
    --verde-cursor: #218838;
    --verde-escuro: #16612d;
    --verde-whatsapp: #25d366;
    --verde-medio: #4caf50;
    --sombra-botao: 0 8px 15px rgba(0, 0, 0, 0.3);
    --sombra-botao-cursor: 0 3px 5px rgba(0, 0, 0, 0.2);
    --sombra-primaria: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/* ===== ANIMATIONS ===== */
@keyframes mudarCor {
    0% {text-decoration-color: red; }
    25% {text-decoration-color: blue; }
    50% {text-decoration-color: sienna; }
    75% {text-decoration-color: lawngreen; }
    100% {text-decoration-color: red; }
}

@keyframes piscar {
    0% {
        opacity: 1;
        color: firebrick;
    }
    50% {
        opacity: 1;
        color: rgb(119, 11, 11);
    }
    100% {
        opacity: 1;
        color: firebrick;
    }
}

@keyframes vai-e-vem {
    0% {
      transform: translateX(0); /* Posição inicial */
    }
    50% {
      transform: translateX(20px); /* Move para a direita */
    }
    100% {
      transform: translateX(0); /* Volta para a posição inicial */
    }
}

@keyframes pisca-seta {
    0% {
        opacity: 1;
        color: var(--verde-whatsapp); 
    }    
    50% {
        opacity: 0.8;
        color: red;
    }
    100% {
        opacity: 1;
        color: var(--verde-whatsapp);
    }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 750px;
    background: white;
    padding: 20px;
    border-radius: 1rem;
    box-shadow: var(--sombra-primaria);
    margin: auto;
    text-align: center;
    color: black;
    position: relative;
}

/* ===== INDEX HTML ===== */
h1 {
    margin-bottom: 10px;
}

h2:nth-of-type(1) {
    color: rgb(76, 76, 76);
    text-decoration: underline;
    animation: mudarCor 7s infinite alternate;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input {
    width: 90%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 500;
}

button {
    width: 95%;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    background-color: var(--verde-principal);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease-in-out;
}

button:hover {
    background-color: var(--verde-cursor);
}

.alert {
    background-color: #ffcccc;
    color: #d8000c;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #d8000c;
    border-radius: 5px;
    font-weight: bold;
}

.checkbox-container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 15px;
    margin: 10px 100px 0 0;
    text-align: left;
    font-size: 14px;
}

.checkbox-container input {
    margin: 17px;
    transform: scale(1.2)
}

.checkbox-container label{
    display: auto;
}

::placeholder {
    color: auto;
    font-weight: bold;
}

/* ===== SUCCESS HTML ===== */
.success-container {
    background: url("../static/background.jpg") no-repeat center center fixed;
    background-size: cover;
    text-align: center;
    padding: 20px;
    color: white;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-container h5 {
    margin: 10px 0 0 0;
    color: firebrick;
    font-weight: 700;
}

.success-container h5:nth-of-type(2) {
    font-size: 0.9rem;
}

.success-container h4 {
    margin: 10px 0 0 0;
}

.success-container a {
    color: #00004a;
}

.success-container .email,
.success-container .voltar {
    transition: all 0.2s ease-in-out;
}

.success-container .email:hover,
.success-container .voltar:hover {
    opacity: 0.5;
}

/* ===== INSCRITOS HTML ===== */
.inscritos-container {
    max-width: 90%; /* Aumentar a largura da caixa */
    width: 900px;  /* Definir uma largura maior apenas para essa página */
    overflow-x: auto; /* Evita que a tabela estoure a borda */
}

.inscritos-container table {
    width: 100%; /* A tabela ocupa toda a largura disponível */
    border-collapse: collapse;
    background: white;
    color: black;
}

.inscritos-container th, .inscritos-container td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: center;
}

.inscritos-container th {
    background: #f4f4f4;
    font-weight: bold;
}

.inscritos-container a {
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: var(--verde-principal);
    box-shadow: var(--sombra-primaria);
    margin: 15px;
    font-style: italic;
    display: inline-block;
    text-decoration-color: white;
    color: white;
}

.inscritos-container a:hover:not(.active) {
    background-color: var(--verde-cursor);
}

.botoes-acao {
    display: flex; /* Alinha os botões horizontalmente */
    flex-direction: column; /* Alinha os botões verticalmente */
    gap: 5px; /* Espaçamento entre os botões */
    margin: -6px -5px -6px -5px;    
}
  
.botoes-acao button {
    width: 80px; /* Largura dos botões */
    height: 30px; /* Altura dos botões */
    font-size: 14px; /* Tamanho da fonte dos botões */
    margin: auto;
    line-height: 5px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
    padding: 0 10px 10px 10px;
}

.pagination-container {
    max-height: 200px; /* Altura máxima antes de ativar a rolagem vertical */
    overflow-y: auto;
}

.pagination-anterior-proximo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 5px 0 -5px 0;
}

.pagination-anterior-proximo a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 15px;
    display: inline-block;
    text-align: center;
}

.pagination-anterior-proximo a:hover:not(.active) {
    background-color: #ddd;
    color: black;
}
  
.pagination a {
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 0 15px 0 15px;
    display: inline-block;
    text-align: center;
}
  
.pagination a.active {
    background-color: white;
    color: var(--verde-medio);
    border: 1px solid var(--verde-medio);
}
  
.pagination a:hover:not(.active) {
    background-color: #ddd;
    color: black;
}

/* ===== ENCERRAMENTO HTML ===== */
.encerramento-container {
    font-family: Arial, sans-serif;
    text-align: center;
    color: white;
    padding: 20px;
    background: url("../static/background.jpg") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.instagram {
    align-items: center;
    justify-content: center;
    transition: all 1.5s ease;
    margin-bottom: 20px;
}

.instagram-button img {
    width: 30px;
    height: auto;
    text-align: center;
    justify-content: center;
    transform: translateY(30%);
}

.instagram-button {
    text-decoration: none;
    color: #ffff;
    animation: piscar 5s ease infinite;
    font-size: 17px;
    font-weight: bold;
}

.instagram:hover {
    transform: scale(115%);
}

/* ===== FLOATING BUTTONS ===== */
.botao-flutuante {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #ffff;
    position: absolute;
    box-shadow: var(--sombra-botao);
    
    bottom: calc(10% - 70px);
    left: calc(10% - 200px);
    
    background-color: var(--verde-principal); /* Cor de fundo */
    padding: 0;
    border-radius: 50%;
    border-bottom: 10px solid var(--verde-escuro);
    cursor: pointer;
    width: 110px;
    height: 110px;
    font-weight: bold;
    font-size: 14px;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden; /* Esconde elementos extras */
}

.botao-flutuante:hover {
    background-color: #64a8f0;
    border: 1px solid var(--verde-escuro);
    transform: translateY(3px);
    box-shadow: var(--sombra-botao-cursor);
}

.logo {
    position: absolute;
    display: flex;
    bottom: calc(15%);
    left: calc(25%);
    opacity: 0.18;
}

.logo img {
    width: calc(70%);
    height: auto;
}

.bandeiras {
    position: absolute;
    display: flex;
    gap: 2px; 
    z-index: 101;
    bottom: calc(1% - 6px);
    right: calc(2% - 3px);
}

.bandeiras img {
    width: 20px !important;
    height: auto !important;
    padding: 1px;
    background-color: rgb(226, 226, 226);
}

.botao-tooltip {
    position: absolute;
    bottom: calc(10% - 30px);
    right: calc(10% - 150px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    color: #ffff;
    background-color: var(--verde-whatsapp);
    border-radius: 50%;
    border-bottom: 7px solid var(--verde-escuro);
    box-shadow: var(--sombra-botao);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: var(--verde-cursor);
    border: 1px solid var(--verde-escuro);
    transform: translateY(3px);
    box-shadow: var(--sombra-botao-cursor);
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  background-color: var(--verde-whatsapp);
  color: #ffff;
  text-align: center;
  font-weight: bold;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  font-size: 18px;
  bottom: calc(10% + 60px); /* aparece acima do botão */
  left: calc(50% - 30px);
  transition: opacity 0.5s;
  white-space: nowrap;
  z-index: 1001;
}

.botao-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.success-container .botao-tooltip{
    position: absolute;
    bottom: calc(20% - 10px);
    right: calc(10% - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-container .bandeiras {
    position: absolute;
    display: flex;
    gap: 2px; 
    z-index: 100;
    bottom: calc(10% - 20px);
    right: calc(10% - 40px);
}

.encerramento-container .botao-tooltip{
    position: absolute;
    bottom: calc(10% + 20px);
    right: calc(10% - 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.encerramento-container .bandeiras {
    position: absolute;
    display: flex;
    gap: 2px; 
    z-index: 100;
    bottom: calc(10% - 30px);
    right: calc(10% - 35px);
}

.seta {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: absolute;
    box-shadow: var(--sombra-primaria);
    bottom: calc(5% - 100px);
    left: calc(10% - 300px);
    font-size: 80px;
    color: red;
    background-color: none;
    border-color: none;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 5px;

    animation: vai-e-vem 1s linear infinite, pisca-seta 5s ease-in-out infinite;
}

/* ===== MEDIA QUERY ===== */
@media (min-width:1230px) and (max-width: 1600.99px) {
    .tooltip-text {
        font-size: 11px;
        bottom: calc(40% + 40px); /* aparece acima do botão */
        left: calc(50% - 50px);
    }
}

@media (min-width:1071px) and (max-width: 1229.99px) {
    .seta {
        left: calc(10% - 180px);
        bottom: calc(10% - 40px);
        color: var(--verde-whatsapp);
        transform: rotate(90deg);
        transform-origin: center;
        animation: pisca-seta 5s ease-in-out infinite;
    }

    .tooltip-text {
        font-size: 10px;
        bottom: calc(15% - 40px);
        left: calc(10% - 100px);
    }
}

@media (min-width:845px) and (max-width: 1070.99px) {
    .seta {
        left: calc(10% - 120px);
        bottom: calc(10% - 110px);
        color: var(--verde-whatsapp);
        transform: rotate(45deg);
        transform-origin: center;
        animation: pisca-seta 5s ease-in-out infinite;
    }

    .botao-flutuante {
        bottom: calc(1% - 10px);
        left: calc(5% - 10px);
        width: 100px;
        height: 100px;
        font-size: 12px;
    }

    .botao-tooltip {
        right: calc(5% - 20px);
        bottom: calc(5% - 20px);
    }

    .tooltip-text {
        font-size: 10px;
        bottom: calc(50% + 35px); /* aparece acima do botão */
        left: calc(10% - 140px);
    }

    button {
        width: 60%;
        padding: 12px 0;
    }
}

@media (min-width:621px) and (max-width:844.99px) {
    .seta {
        left: calc(10% - 120px);
        bottom: calc(10% - 95px);
        font-size: 80px;
        color: var(--verde-whatsapp);
        transform: rotate(45deg);
        transform-origin: center;
        animation: pisca-seta 5s ease-in-out infinite;
    }

    .botao-flutuante {
        bottom: calc(1% - 10px);
        left: calc(5% - 35px);
        width: 100px;
        height: 100px;
        font-size: 12px;
    }

    .botao-tooltip {
        right: calc(5% - 20px);
        bottom: calc(10% - 50px);
    }

    .success-container .botao-tooltip{
        right: calc(10% - 80px);
    }

    .encerramento-container .botao-tooltip{
        right: calc(10% - 80px);
        bottom: calc(10% + 50px);
    }

    .tooltip-text {
        font-size: 8px;
        bottom: calc(10% - 35px);
        left: calc(10% - 110px);
    }

    button {
        width: 60%;
        padding: 12px 0;
    }
}

@media (min-width:500px) and (max-width:620.99px) {
    body {
        overflow-x: hidden;
    }

    .seta {
        left: calc(10% - 95px);
        bottom: calc(10% - 115px);
        font-size: 80px;
        color: var(--verde-whatsapp);
        transform: rotate(45deg);
        transform-origin: center;
        animation: pisca-seta 5s ease-in-out infinite;
    }

    .botao-flutuante {
        bottom: calc(1% - 15px);
        left: 0; 
        width: 85px;
        height: 85px;
        font-size: 10px;
    }

    .botao-tooltip {
        right: calc(10% - 40px);
        bottom: calc(10% - 70px);
    }

    .tooltip-text {
        font-size: 8px;
        bottom: calc(10% - 35px);
        left: calc(10% - 110px);
    }

    .success-container .botao-tooltip{
        bottom: calc(10% - 55px);
        left: calc(10% + 300px);
    }

    .success-container .tooltip-text {
        bottom: calc(10% - 35px);
        left: calc(10% - 70px);
    }

    .encerramento-container .botao-tooltip{
        bottom: calc(10% - 70px);
        left: calc(50% + 80px);
    }

    .encerramento-container .tooltip-text {
        bottom: calc(10% - 35px);
        left: calc(10% - 70px);
    }

    .success-container .bandeiras {
        bottom: 0;
        right: calc(50% - 20px);
    }    

    .encerramento-container .bandeiras {
        bottom: 0;
        right: calc(50% - 20px)
    }    

    button {
        width: 60%;
        padding: 12px 0;
    }
}

@media (min-width:425px) and (max-width:499.99px) {
    body {
        overflow-x: hidden;
    }

    .seta {
        left: calc(10% - 90px);
        bottom: calc(10% - 140px);
        font-size: 80px;
        color: var(--verde-whatsapp);
        transform: rotate(45deg);
        transform-origin: center;
        animation: pisca-seta 5s ease-in-out infinite;
    }

    .botao-flutuante {
        bottom: calc(10% - 120px);
        left: 0; 
        width: 85px;
        height: 85px;
        font-size: 10px;
    }

    .botao-tooltip {
        right: calc(10% - 50px);
        bottom: calc(10% - 85px);
    }

    .tooltip-text {
        font-size: 8px;
        bottom: calc(10% - 35px);
        left: calc(10% - 120px);
    }

    .success-container .botao-tooltip{
        bottom: calc(10% - 55px);
        left: calc(10% + 200px);
    }

    .success-container .tooltip-text {
        bottom: calc(10% - 35px);
        left: calc(10% - 50px);
    }

    .encerramento-container .botao-tooltip{
        bottom: calc(10% - 80px);
        left: calc(50% + 80px);
    }

    .encerramento-container .tooltip-text {
        bottom: calc(10% - 35px);
        left: calc(10% - 70px);
    }

    .success-container .bandeiras {
        bottom: 0;
        right: calc(50% - 20px);
    }    

    .encerramento-container .bandeiras {
        bottom: 0;
        right: calc(50% - 20px);
    }    

    button {
        width: 40%;
        padding: 12px 0;
    }
}

@media (max-width:424.99px) {
    body {
        overflow-x: hidden;
    }

    .seta {
        left: calc(10% - 70px);
        bottom: calc(10% - 140px);
        font-size: 80px;
        color: var(--verde-whatsapp);
        transform: rotate(45deg);
        transform-origin: center;
        animation: pisca-seta 5s ease-in-out infinite;
    }

    .botao-flutuante {
        bottom: calc(10% - 130px);
        left:calc(10% - 40px); 
        width: 85px;
        height: 85px;
        font-size: 10px;
    }

    .botao-tooltip {
        right: calc(10% - 30px);
        bottom: calc(10% - 100px);
    }

    .tooltip-text {
        font-size: 8px;
        bottom: calc(10% - 35px);
        left: calc(10% - 100px);
    }

    .success-container .botao-tooltip{
        bottom: calc(10% - 55px);
        left: calc(10% + 150px);
    }

    .success-container .tooltip-text {
        bottom: calc(10% - 35px);
        left: calc(10% - 50px);
    }

    .encerramento-container .botao-tooltip{
        bottom: calc(10% - 80px);
        left: calc(50% + 30px);
    }

    .encerramento-container .tooltip-text {
        bottom: calc(10% - 35px);
        left: calc(10% - 70px);
    }

    .success-container .bandeiras {
        bottom: 0;
        right: calc(50% - 20px);
    }    

    .encerramento-container .bandeiras {
        bottom: 0;
        right: calc(50% - 20px);
    }    

    button {
        width: 40%;
        padding: 12px 0;
    }
}