@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

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;
    flex-direction: column;
}

.container {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-7%);
    position: relative; /* Garante que o movimento não afete o layout */
}

.gif-container {
    border-radius: 15px;
}

h1 {
    font-size: 4em;
    font-weight: 700;
    margin-bottom: 40px;
}

/* Ajuste para dispositivos móveis */
@media (max-width: 768px) {
    h1 {
        font-size: 3em; /* Reduz o tamanho pela metade */
        transform: translateY(-7%);
    }
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.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;
}

.button:hover {
    transform: scale(1.1);
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 20px;
    padding-bottom: 70px;
    z-index: 1000;
    text-align: center;
    opacity: 0;
    transition: opacity 1.5s ease-out; /* Animação de fade-out */
}

.popup-active .popup {
    display: block;
    opacity: 1; /* Tornando o popup visível ao ser ativado */
}

.popup-media {
    width: 100%;
    max-width: 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;
    opacity: 0;
    transition: opacity 1.5s ease-out; /* Fade-out para o overlay */
}

.popup-active .popup-overlay {
    display: block;
    opacity: 1; /* Torna o overlay visível */
}

.emoji-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

@keyframes fall {
    0% {
        transform: translateY(-10%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0;
    }
}
