
body {
    background-color: #f8d8e7;
    font-family: Arial, sans-serif;
    text-align: center;
}

h1 {
    color: #d94f8a;
}

p {
    color: #885a70;
}

button {
    background-color: #e75a96;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
}


.cartao {
    background-color: white;
    padding: 40px 25px;
    border-radius: 25px;
    width: 85%;
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 10px 30px #00000020;
}


body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cartao {
    margin: 20px;
    box-sizing: border-box;
}



/* Área onde os corações vão aparecer */
#coracoes {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Mantém a caixinha na frente */
.cartao {
    position: relative;
    z-index: 1;
}

/* Aparência de cada coração */
.coracao {
    position: absolute;
    bottom: -40px;
    font-size: 25px;
    animation: subir 6s linear forwards;
}

/* Movimento dos corações */
@keyframes subir {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-110vh);
        opacity: 0;
    }
}



/* Esconde elementos que ainda não devem aparecer */
.escondido {
    display: none;
}

/* Papel da carta */
.papel {
    background-color: #fff2f7;
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
}

/* Texto da carta */
#textoCarta {
    line-height: 1.8;
    white-space: pre-line;
}

/* Animação para revelar a carta */
#areaCarta {
    animation: aparecer 1s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Animação da tela do pedido */
#areaPedido,
#areaResposta {
    animation: aparecer 1s ease;
}

/* Botão Sim */
#botaoSim {
    background-color: #e75a96;
    margin: 8px;
}

/* Botão Não */
#botaoNao {
    background-color: #d9a5ba;
    margin: 8px;
}

/* Efeito quando o mouse passa no botão */
#botaoSim:hover,
#botaoNao:hover {
    transform: scale(1.08);
    transition: transform 0.2s;
}



/* AJUSTES DO VISUAL */

/* Fundo e centralização */
body {
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;

    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(
        135deg,
        #ffd6e7,
        #ead8ff
    );

    font-family: Arial, sans-serif;
}

/* Cartão principal */
.cartao {
    width: 100%;
    max-width: 420px;
    margin: 0;
    padding: 35px 25px;
    box-sizing: border-box;

    background-color: white;
    border-radius: 25px;
    text-align: center;

    box-shadow: 0 15px 40px #00000020;

    position: relative;
    z-index: 1;
}

/* Títulos */
.cartao h1 {
    color: #d94f8a;
    font-size: 27px;
    line-height: 1.3;
}

/* Textos */
.cartao p {
    color: #885a70;
    font-size: 16px;
    line-height: 1.8;
}

/* Botões */
.cartao button {
    padding: 14px 22px;
    margin: 8px 5px;

    border: none;
    border-radius: 30px;

    background-color: #e75a96;
    color: white;
    font-size: 16px;

    cursor: pointer;
    transition: transform 0.2s;
}

/* Botão Não */
#botaoNao {
    background-color: #d9a5ba;
}

/* Efeito ao passar o mouse */
.cartao button:hover {
    transform: scale(1.05);
}

/* Papel da carta */
.papel {
    background-color: #fff2f7;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    text-align: left;
}

/* Animação de entrada */
#areaCarta,
#areaPedido,
#areaResposta {
    animation: aparecer 0.8s ease;
}

/* Esconder as telas */
.escondido,
#areaCarta.escondido,
#areaPedido.escondido,
#areaResposta.escondido,
#continuar.escondido {
    display: none;
}

/* Ajuste para celular */
@media (max-width: 480px) {
    .cartao {
        padding: 25px 18px;
    }

    .cartao h1 {
        font-size: 24px;
    }
}



/* CAMADA DA COMEMORAÇÃO */

#confetes {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

/* Cada pedacinho da comemoração */
.confete {
    position: absolute;
    top: -40px;
    animation: cair linear forwards;
}

/* Movimento de cima para baixo */
@keyframes cair {
    from {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Evita movimento para quem prefere animações reduzidas */
@media (prefers-reduced-motion: reduce) {
    .confete {
        animation: none;
        display: none;
    }
}



/* PLAYER DO SPOTIFY */

.player-spotify {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.player-spotify p {
    color: #d94f8a;
    font-size: 14px;
    margin-bottom: 10px;
}

.player-spotify iframe {
    display: block;
    width: 100%;
}


/* AJUSTES PARA CELULAR */

@media (max-width: 600px) {

    body {
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        padding: 20px 12px 85px;
        box-sizing: border-box;
    }

    .cartao {
        width: 100%;
        max-width: 420px;
        padding: 25px 18px;
        box-sizing: border-box;
    }

    h1 {
        font-size: 25px;
        line-height: 1.3;
    }

    p {
        overflow-wrap: break-word;
    }

    .papel {
        width: 100%;
        box-sizing: border-box;
    }

    .player-spotify {
        width: 100%;
        max-width: 100%;
    }

    .player-spotify iframe {
        width: 100%;
        max-width: 100%;
    }

    button {
        max-width: 100%;
    }
}


/* PARÁGRAFOS DA CARTINHA */

#textoCarta {
    white-space: pre-wrap;
    line-height: 1.8;
    text-align: left;
    overflow-wrap: break-word;
}


/* CARTINHA MAIS CONFORTÁVEL */

.papel {
    max-height: 55vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 20px;
    box-sizing: border-box;
}

#textoCarta {
    white-space: pre-wrap;
    line-height: 1.8;
    text-align: left;
}


/* VISUAL DO CARTÃO NO COMPUTADOR */

@media (min-width: 601px) {

    .cartao {
        width: 100%;
        max-width: 580px;

        padding: 40px 45px;

        background: #ffffff;

        border-radius: 25px;

        box-shadow: 0 15px 45px rgba(150, 50, 90, 0.18);

        border: 1px solid #f5d5e2;

        box-sizing: border-box;
    }

}


/* FONTES ROMÂNTICAS */

body {
    font-family: "Nunito", sans-serif;
}

h1 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    color: #c94d7d;
}

#textoCarta {
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #694a59;
}

button {
    font-family: "Nunito", sans-serif;
    font-weight: 700;
}



/* BOTÕES ROMÂNTICOS */

/* Botões principais */
#botaoAbrir,
#continuar,
#botaoSim {
    background: linear-gradient(135deg, #e75a96, #c94d7d);
    color: white;

    border: none;
    border-radius: 30px;

    padding: 13px 28px;

    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(201, 77, 125, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Efeito quando o mouse passa */
#botaoAbrir:hover,
#continuar:hover,
#botaoSim:hover {
    transform: translateY(-3px);

    box-shadow: 0 9px 22px rgba(201, 77, 125, 0.35);
}

/* Botão Não */
#botaoNao {
    background: white;
    color: #c94d7d;

    border: 2px solid #e9a4c1;
    border-radius: 30px;

    padding: 11px 26px;

    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

#botaoNao:hover {
    background: #fff0f6;
    box-shadow: 0 5px 15px rgba(201, 77, 125, 0.15);
}


/* FUNDO ROMÂNTICO PARA COMPUTADOR */

@media (min-width: 601px) {

    body {
        background: linear-gradient(
            135deg,
            #fff1f6 0%,
            #f8cddd 50%,
            #e9b5d9 100%
        );

        background-attachment: fixed;
    }

}


/* ANIMAÇÃO DE ENTRADA DO CARTÃO */

@keyframes entradaCartao {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cartao {
    animation: entradaCartao 1.2s ease-out both;
}

/* Acessibilidade: reduzir animações */
@media (prefers-reduced-motion: reduce) {
    .cartao {
        animation: none;
    }
}


/* MENSAGEM FINAL DO SIM */

#areaResposta h1 {
    color: #c94d7d;
    font-size: 34px;
    margin-bottom: 20px;
}

#areaResposta p {
    color: #765666;
    font-size: 18px;
    line-height: 1.9;
    max-width: 450px;
    margin: 0 auto;
}
