@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Great+Vibes&display=swap');

:root {
    --primary-color: #ff0000;
    --primary-hover: #cc0000;
    --secondary-color: #ffd700;
    --secondary-hover: #ffed4a;
    --background-gradient: linear-gradient(135deg, #ff0000, #8b0000);
    --text-color: #ffffff;
    --button-padding: 15px 30px;
    --button-radius: 10px;
    --button-font-size: 20px;
    --gold-gradient: linear-gradient(45deg, #EFCC64, #EFCC64);
}

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Great Vibes', cursive;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: 100vh;
    background: var(--background-gradient);
    overflow: hidden;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/amar.png'); /* Caminho para a sua imagem de coração */
    background-repeat: repeat; /* Repete a imagem */
    background-size: 50px 50px; /* Tamanho da imagem repetida, ajuste conforme necessário */
    opacity: 0.5; /* Transparência */
    pointer-events: none; /* Para não interferir com cliques */
    z-index: -2; /* Fica atrás do conteúdo e do overlay */
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.2); /* Overlay vermelho suave, ajuste a cor e a transparência */
    pointer-events: none; /* Para não interferir com cliques */
    z-index: -1; /* Fica entre o fundo de corações e o conteúdo */
}

.container {
    text-align: center;
    width: 100%;
    max-width: 800px;
    z-index: 1;
    position: relative;
}

h1 {
    margin-bottom: 30px;
    font-size: 3.5rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    align-items: center;
}

button {
    padding: var(--button-padding);
    font-size: var(--button-font-size);
    border: none;
    border-radius: var(--button-radius);
    cursor: pointer;
    -webkit-transition: all 0.9s ease;
    transition: all 0.9s ease;
    font-weight: bold;
    min-width: 120px;
    overflow: hidden;
    position: relative;
}

#sim {
    background: var(--gold-gradient);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    z-index: 2;
}

#sim:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

#nao {
    background: var(--gold-gradient);
    color: var(--primary-color);
    position: relative;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    z-index: 1;
    top: auto;
    left: auto;
    transform: none;
}

#nao:hover {
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

#resposta {
    margin-top: 30px;
}

#floks-img {
    width: 200px;
    height: auto;
    margin: 20px auto;
    -webkit-transition: 0.3s ease;
    transition: 0.3s ease;
    display: block;
}


#resposta p {
    color: var(--text-color);
    font-size: 2rem;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none;
}

.visible {
    display: block;
    -webkit-animation: fadeIn 0.5s ease;
    animation: fadeIn 0.5s ease;
}

@-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Estilo para as partículas de fogos */
.firework-particle {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: explode 1.5s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--end-x), var(--end-y));
        opacity: 0;
        width: 0;
        height: 0;
    }
}

/* Responsividade Melhorada */
@media (max-width: 768px) {
    :root {
        --button-padding: 12px 24px;
        --button-font-size: 18px;
    }

    h1 {
        font-size: 2.8rem;
    }

    #resposta p {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --button-padding: 10px 20px;
        --button-font-size: 16px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    #resposta p {
        font-size: 1.5rem;
    }
}


#tempo {
    font-size: 2em;
    margin-top: 20px;
    background: var(--gold-gradient);
    color: var(--primary-color);
    border-radius: 10px
}

/* Responsividade extra */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    #tempo {
        font-size: 1.2em;
    }
}
