/* Reset básico */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #075ead;
    --secondary-color: #218838;
    --accent-color: #28a745;
    --white-color: #ffffff;
    --black-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    font-family: 'Nova Square', sans-serif; 
}

body.formulario {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    margin-bottom: 10px;
}

.logo-header {
    display: flex;
    flex-direction: row;
}

.logo-header img {
    height: 4rem;
}

.logo-content {
    display: flex;
    flex-direction: column;    
    justify-content: center;
    align-items: start;
    margin-left: 0.5rem;
    color: var(--white-color);
    font-size: 1.2rem;
}

.inscricao a {
    text-decoration: none;
    color: var(--white-color);
    font-family: 'Nova Square', sans-serif;  
    font-size: 1.2rem;
}

.inscricao button {
    background-color: #FF9900;
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;    
}

.inscricao button:hover {
    background-color: #ffad31;
}

/* Main */
main#home {
    background-image: url('../img/background2.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.container {
    text-align: center;
    margin-top: 100px; /* Para não ficar escondido atrás do header */
}

.logo-central {
    width: 18rem;
}

.container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--white-color);
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: 'Nova Square', sans-serif;  
}

.container p {
    color: var(--white-color);
    font-size: 1.2rem;
}

.container .event-heart,
.container .event-date {
    color: var(--white-color);
    font-size: 1.75rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

.container .event-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.cards .event-infor {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 0.7rem;
    margin-top: 30px;
    align-items: center;
    justify-content: center;
}

.cards .event-lote {
    font-size: 1.2rem;
}

.cards .event-infor .old {
    color: --black-color;
}

.cards .event-infor hr {
    margin: 2px auto;
    border-top: 1px dotted #218838;
    color: #218838;
    width: 50%;
}

.cards .event-tempo {
    font-size: 1.5rem;
}

/* Botão de rolagem */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    animation: bounce 2s infinite;
}

/* Contagem Regresiva */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--white-color);
    margin-bottom: 20px;
}

.countdown span {
    font-family: 'Squada One', sans-serif;
}

.time-box {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    width: 100px;
}

.time-box p {
    margin-top: 5px;
    font-size: 1rem;
}

.time-box span {
    font-size: 2rem;
    display: block;
    font-weight: bold;
    font-family: 'Squada One', sans-serif;
}

/* CARDS */
.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap; /* Permite que os cards se ajustem automaticamente */
}

.card {
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.card h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.card p.lote {
    font-size: 1rem;
}

.card p.valor {
    font-size: 3rem;
}

.card p.lotes {
    display: flex;
    flex-direction: row;
}

.card button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

.card button:hover {
    background-color: #218838;
}

section.cards,
section.cards-lote,
section.sobre {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section.cards h2,
section.cards-lote h2,
section.sobre h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #28a745;
}

section.sobre p {
    font-size: 1.2rem;
    text-align: justify;
    text-indent:4em;
    max-width: 700px;
}

.esgotado {
    opacity: 0.5;
    position: relative;
}
.card.esgotado .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0.5;
    z-index: 1;
}
  
.selo-esgotado {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    max-width: 80%;
}
.esgotado {
    opacity: 1 !important;
}

/* Seção de Cadastro */
section.cadastro {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section.cadastro h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-top: 50px;
    margin-bottom: 30px;
    color: #FF9900;
}

section.cadastro form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

section.cadastro form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

section.cadastro form input, form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

section.cadastro form input[type="date"] {
    appearance: none; /* Remove estilos padrão do navegador */
    -webkit-appearance: none; /* Para navegadores baseados em WebKit (Safari, Chrome) */
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 16px 16px;
    padding-right: 30px; /* Espaço para o ícone de calendário */
}

section.cadastro form button {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

section.cadastro form button:hover {
    background-color: #218838;
}

#pixContainer {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    border: 2px solid #28a745;
    border-radius: 10px;
    background-color: #f9f9f9;
    text-align: center;
    max-width: 400px;
    justify-content: center;    
}

#pixContainer h3 {
    color: #28a745;
}

#pixContainer a {
    cursor: pointer;
    position: relative;
    z-index: 10;
    /* background-color: #FF9900; */
}

#valorPix {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000000;
}

/* Rodapé */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--white-color);
    position: relative; 
    /* height: 10rem; */
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* Primeira linha do footer */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
}

/* Coluna da esquerda (Contatos e Redes Sociais) */
.footer-left {
    order: 1;
    text-align: left;
    /* width: 25%; */
}

.footer-left h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #28a745;
}

.footer-left p {
    display: flex;
    margin: 10px 0;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

/* Ícones de redes sociais */
.footer-top img {
    width: 1.2rem;
    transition: transform 0.3s;
}

.footer-left .instagram-icon img {
    width: 2rem;
    margin-right: 10px;
    transition: transform 0.3s;
}

.footer-left a img:hover {
    transform: scale(1.2);
}

.footer-top .footer-logo {
    display: flex;
    align-items: center;
    justify-self: center;
    order: 2;
    width: 14rem;
}

/* Coluna da direita (Portal ADM e Desenvolvedor) */
.footer-right {
    order: 3;
    display: flex;
    text-align: right;
    flex-direction: column;
    line-height: 2;   
    /* width: 25%;  */
}

.footer-right h3 {
    color: #28a745;
    font-size: 1.2rem;
}

.footer-right a {
    display:flex;
    justify-content: end;    
    color: white;
    text-decoration: none;
    text-align: center;
    gap: 5px;
    font-size: 1rem;
}

.footer-right a:hover {
    text-decoration: underline;
}

.footer-right .footer-dev {
    margin-top: 30px;
    line-height: 1.2;    
}

.footer-right .devapp {
    font-size: 1.5rem;
    padding: 5px;
    background-color: white;
    margin-top: 10px;
}

.footer-right p {
    font-size: 1rem;
}

.footer-right .footer-dev p {
    color:#FF9900;
}

.footer-right .footer-dev .devapp {
    color:black;
}

.footer-right .footer-dev p,
.footer-right .devapp span {
    color:#28a745;
    font-weight: bold;
}

/* Linha horizontal separando as seções */
footer hr {
    border: 0;
    height: 1px;
    background-color: white;
    margin: 10px 10%;
}

/* Segunda linha do footer */
.footer-bottom {
    padding: 10px;
    font-size: 12px;
}

.footer-bottom span {
    color:#FF9900;
}

footer #scrollToTopButton {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5rem;
    padding: 5px;
    background-color: #fff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer #scrollToTopButton:hover {
    background-color: #ffad31
}

footer p {
    font-size: 1rem;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .linha-header {
        height: 2px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
    }

    section.cadastro h2 {
        font-size: 2rem;
    }

    form {
        padding: 20px;
    }

    form input, form select, form button {
        font-size: 0.9rem;
    }

    .logo-central {
        width: 15rem;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .countdown {
        font-size: 1.5rem;
        margin-bottom: 50px;
    }

    header {
        padding: 10px;
    }

    .container .event-welcome {
        margin-bottom: 30px;
    }

    .container h2 {
        text-align: center;
        font-size: 1.5rem;
    }

    .container .event-heart,
    .container .event-date {
        font-size: 1.2rem;
    }

    .container .event-infor {
        gap: 0.5rem;
    }

    .container p {
        font-size: 0.8rem;
    }

    .container .event-lote {
        font-size: 0.8rem;
    }

    .break {
        display: block;
    }

    .time-box {
        padding: 10px;
        width: 70px;
    }

    .cards-container {
        flex-direction: column; /* Faz os cards ficarem um abaixo do outro */
        align-items: center; /* Centraliza os cards na tela */
    }

    .card {
        width: 90%; /* Deixa os cards mais largos no mobile */
        max-width: 350px; /* Define um tamanho máximo para não ficarem muito largos */
    }

    .cards .event-lote {
        font-size: 0.8rem;
    }
    
    .cards .event-tempo {
        font-size: 1.2rem;
    }

    .footer-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-left, .footer-right {
        text-align: center;        
        margin-bottom: 15px;
    }

    footer p {
        font-size: 0.75rem;
        justify-content: center;
    }

    .footer-top a {
        justify-content: center;
    }

    .footer-top .footer-logo {
        order: 1;
        align-items: center;
        justify-content: center;
    }

    .footer-left {
        order: 2;
    }

    .footer-right {
        order: 3;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    section.cadastro h2 {
        font-size: 1.5rem;
    }

    form {
        padding: 15px;
    }

    form input, form select, form button {
        font-size: 0.8rem;
    }

    .cards-container {
        flex-direction: column; /* Faz os cards ficarem um abaixo do outro */
        align-items: center; /* Centraliza os cards na tela */
    }

    .card {
        width: 90%; /* Deixa os cards mais largos no mobile */
        max-width: 350px; /* Define um tamanho máximo para não ficarem muito largos */
    }

    .cards .event-lote {
        font-size: 0.8rem;
    }
    
    .cards .event-tempo {
        font-size: 1rem;
    }

    footer p {
        font-size: 0.5rem;
    }
}
/* Botão Admin */
.admin-button {
    position: absolute;
    top: 20px;
    right: 20px;
}

.admin-button button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.admin-button button:hover {
    background-color: #218838;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-emoji {
    font-size: 60px;
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #218838;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.animated-pulse {
    display: inline-block;
    animation: pulse 2s infinite;
}

.animated-bounce {
    display: inline-block;
    animation: bounce 2s infinite;
}

.animated-rotate {
    display: inline-block;
    animation: rotate 2s infinite;
}