@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;                 /* em vez de height: 100vh */
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;

    /* fundo animado */
    background-color: #ff9ad5;
    animation: bgCycle 30s ease-in-out infinite;
    background-position: center;
    background-attachment: fixed;

    padding: 20px;
    position: relative;
    font-family: 'Poppins', sans-serif;

    /* permite rolagem vertical, mas esconde barra horizontal */
    overflow-x: hidden;
    overflow-y: auto;
}


.title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 4vw;
    color: white;
    max-width: 70%;
    text-align: center;
    margin-top: 10vh;
    animation: slideDown 1s ease-out forwards;
}

/* Animações */
@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-200px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(90px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bgCycle {
    /* 0–20%: rosa */
    0%, 20% {
        background-color: #ff9ad5;  /* rosa */
    }

    /* 20–30%: transição rosa -> dourado */
    30%, 50% {
        background-color: #d4af37;  /* dourado */
    }

    /* 50–60%: transição dourado -> azul escuro */
    60%, 80% {
        background-color: #001f3f;  /* azul escuro */
    }

    /* 80–90%: transição azul escuro -> rosa */
    90%, 100% {
        background-color: #ff9ad5;  /* volta pro rosa */
    }
}



/* Logo */
.logo {
    position: absolute;
    top: 3%;
    right: 3%;
    width: 15vw;
    max-width: 200px;
    min-width: 100px;
    height: auto;
    animation: slideRight 1s ease-out forwards;
}

/* Botões */
.btn1, .btn2, .btn3 {
    opacity: 1; /* Mantém sempre visível */
    transition: transform 0.3s ease-in-out;
    position: relative;
    z-index: 5;
    will-change: transform;
   
}

/* Efeito de hover */
.btn1:hover, .btn2:hover, .btn3:hover {
    transform: translateY(-10px); /* Faz o botão subir um pouco */
}

/* Contêiner dos botões */
.buttons-container {
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1vh;
    position: relative;
    z-index: 5;
}

.button {
    width: 90%;
    height: auto;
    max-width: 750px;
    transition: transform 0.3s ease-in-out;
    z-index: 10;
    position: relative;
}

.button:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Botão sem borda, apenas texto */
.back-button {
    position: absolute;
    top: 30px;
    left: 20px;
    font-size: 16px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease-in-out;
    opacity: 0.8;
}


/* Ajuste para versão mobile */
@media (max-width: 768px) {
    .back-button {
        left: auto;
        right: 10px;
        font-size: 10px;
    }
}

/* Rodapé */
footer {
    margin-top: 40px;                  /* espaço depois dos cards */
    font-size: 12px;
    font-weight: 400;
    color: white;
    width: 100%;
    text-align: center;
    animation: slideUp 1s ease-out forwards;

    /* remove posição absoluta/fixa */
    position: static;
    transform: none;
}


/* Versão mobile */
@media (max-width: 768px) {
    body {
        background-color: #ff9ad5;
        animation: bgCycle 30s ease-in-out infinite;
        height: auto;
        width: 100vw;
        overflow: auto;
    }
    
    .title {
        font-size: 8vw;
        max-width: 90%;
        line-height: 1.2;
        margin-top: 12vh;
    }

    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 3%;
        left: 3%;
        transform: translateX(-20%);
    }

    .buttons-container {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 5px;
    }

    .button {
        width: 90%;
        max-width: 500px;
        margin-bottom: -100px;
    }
    
    footer {
        position: static;          /* entra no fluxo normal */
        transform: none;
        width: 100%;
        font-size: 10px;
        padding: 10px 0;
        background: transparent;   /* sem barra escura fixa */
        text-align: center;
        margin-top: 40px;
    }
}
