@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box; /* Garante que padding e border não causem overflow */
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #d70808, #7c0808);
    color: #fff;
    text-align: center;
    overflow: hidden; /* Impede overflow */
    position: relative;
    flex-direction: column;
    width: 100%; /* Garantir que a largura seja 100% */
}

.container {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%; /* Garante que o conteúdo não ultrapasse os limites da tela */
    max-width: 100%; /* Impede que o conteúdo ultrapasse a largura da tela */
    max-height: 100%; /* Evita que o conteúdo ultrapasse a altura da tela */
    overflow: hidden; /* Evita qualquer overflow dentro da div */
}

/* Media query para dispositivos móveis */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5em; /* Ajusta o tamanho do título para telas menores */
    }

    .buttons {
        flex-direction: row; /* Coloca os botões lado a lado no mobile */
        gap: 15px; /* Ajusta o espaçamento entre os botões */
        align-items: center; /* Garante que os botões fiquem alinhados no centro */
        justify-content: center; /* Garante que os botões fiquem centralizados */
        flex-wrap: wrap; /* Permite que os botões se ajustem se a tela for muito pequena */
    }

    .button {
        font-size: 1.2em; /* Reduz o tamanho do botão para se ajustar melhor */
        padding: 10px 20px; /* Ajusta o tamanho do padding dos botões no mobile */
    }
}

h1 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 40px;
    margin-top: -100px;
}

/* Ajuste para dispositivos móveis */
@media (max-width: 768px) {
    h1 {
        font-size: 3em; /* Reduz o tamanho pela metade */
    }
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 100%; /* Garante que os botões não ultrapassem a largura */
}

/* Estilos para os botões */
.button {
    background-color: #fff;
    color: #7c0808;
    font-size: 1.2em;
    font-weight: 600;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
    max-width: 100%; /* Impede que o botão ultrapasse a largura da tela */
    position: relative; /* Necessário para o z-index */
}

/* Botão SIM fica acima do botão NÃO */
.button.yes {
    z-index: 1; /* Faz o botão NAO aparecer acima do botão SIM */
}

.button.no {
    z-index: 2; /* O botão SIM ficará abaixo do botão NAO */
}

/* Efeito de hover nos botões */
.button:hover {
    transform: scale(1.1);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    z-index: 1000;
    width: 90%;
    max-width: 800px;
}

.popup iframe {
    width: 100%;
    height: 500px;
    border-radius: 20px;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Mostrar o popup */
.popup-active .popup,
.popup-active .popup-overlay {
    display: block;
}

/* Chuva de emojis */
.emoji-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1; /* Emojis aparecem atrás do conteúdo */
}

/* Animação da queda dos emojis */
@keyframes fall {
    0% {
        transform: translateY(-10%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsividade para dispositivos menores */
@media (max-width: 600px) {
    .buttons {
        flex-direction: row; /* Garante que os botões fiquem lado a lado no mobile */
        gap: 15px;
        align-items: center;
        justify-content: center; /* Centraliza os botões */
    }

    .button {
        font-size: 1em; /* Ajusta o tamanho dos botões para telas menores */
    }
}

/* Alinha os botões em linha no desktop */
@media (min-width: 601px) {
    .buttons {
        flex-direction: row;
        gap: 20px;
    }

    .button {
        font-size: 1.2em;
    }
}

/* Estilos para o botão "NÃO" */
.button.no {
    position: relative; /* Ou absolute, dependendo do comportamento desejado */
    transition: transform 0.3s ease;
    max-width: 100%; /* Impede que o botão ultrapasse a largura da tela */
}

/* Controle de overflow: garante que o botão "NÃO" não saia da tela */
.container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #d70808;
    padding: 20px 30px;
    border-radius: 15px;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
}
