/* ===== CONFIGURAÇÕES GERAIS E FONTES ===== */
:root {
    --plyr-color-main: #706842;
}

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

body, html {
    font-family: 'Crimson Pro', serif;
    overflow-x: hidden;
    background-color: #f5f1e8;
    background-image: linear-gradient(to bottom, #f5f1e8, #d1c9a8)
}

@font-face {
    font-family: 'TSKaewpet';
    src: url(./fonte/TS-kaewpet-NP.ttf);
    font-style: normal;
    font-display: swap;
}

/* ===== TELA DE ENTRADA ===== */
#telaEntrada {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./images/background.jpeg);
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    transition: opacity 0.8s ease-in-out;
}

#botaoEntrar {
    padding: 15px 35px;
    font-size: 1.3rem;
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background-color: #706842;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 1);
    transition: transform 0.2s ease;
}

#botaoEntrar:hover {
    transform: scale(1.05);
}

/* ===== CONTAINER PRINCIPAL ===== */
.convite-container {
    width: 100vw;
    max-width: 900px;
    margin: 0 auto;
    height: 100vh;
    background-image: url('./images/background.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.conteudo {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 2rem;
    color: #5d553c;
    font-family: 'Crimson Pro', serif;
}

.frase {
    font-size: 150%;
    margin-bottom: 3rem;
    margin-top: -28%;
    font-weight: 700;
    line-height: 1;
    color: #4a4537;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    font-family: 'Crimson Pro', serif;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.nomes {
    font-family: 'TSKaewpet', cursive;
    font-size: 3vw;
    font-weight: normal;
    line-height: 0.5;
    color: #706842;
    margin-bottom: 2rem;
    text-shadow: 0px 0px 1px #e9e4d9, 0px 0px 1px #e9e4d9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.nomes .nome-fernando {
    margin-left: -60px;
}

.nomes .nome-rose {
    margin-right: -100px;
}

.convocacao {
    font-size: 1.1vw;
    font-weight: bold;
    margin-bottom: 1.5rem;
    letter-spacing: 0.6px;
    font-family: 'Crimson Pro', serif;
    text-transform: uppercase;
}

.info-data {
    display: flex;
    align-items: center;
    font-size: 1.5vw;
    font-weight: 700;
    gap: 1rem;
    font-family: 'Crimson Pro', serif;
}

.info-data .barra {
    font-size: 1vw;
    color: #a0977e;
}

.info-hora {
    font-size: 1.3vw;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
    font-family: 'Crimson Pro', serif;
}

.botoes-info {
    display: flex;
    gap: 28rem;
    margin-top: -17%;
}

.botoes-info a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-weight: bold;
    font-size: 0.9vw;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    font-family: 'Crimson Pro', serif;
}

.botoes-info img {
    height: 4vw;
    max-width: 60px;
    max-height: 60px;
}

/* ===== ELEMENTOS DECORATIVOS ===== */
.deco-img {
    position: absolute;
    pointer-events: none;
}

.ramo-topo {
    top: -0.2%;
    left: -1%;
    width: 19%;
    max-width: 1500px;
    z-index: 20;
}

.ramo-topo-2 {
    top: 0%;
    left: 82%;
    width: 19%;
    max-width: 1500px;
    z-index: 20;
    transform: scaleX(-1);
}

.borboleta-1 {
    top: 25%;
    left: 15%;
    width: 5vw;
    /* max-width: 60px; */
    z-index: 15;
    transform: scaleX(-1);
}

.borboleta-2 {
    bottom: 24%;
    left: 88%;
    width: 3.5vw;
    /* max-width: 40px; */
    z-index: 1;
}

.passaro {
    top: 15%;
    right: 15%;
    width: 19vw;
    /* max-width: 70px; */
    z-index: 15;
    transform: scaleX(-1);
}

.borboleta-3 {
    bottom: 13%;
    left: 15%;
    width: 3.5vw;
    /* max-width: 40px; */
    z-index: 1;
}

.coelho {
    bottom: 8%;
    left: 12%;
    width: 6vw;
    max-width: 90px;
    z-index: 10;
}

.pedra {
    bottom: 5%;
    right: 15%;
    width: 5vw;
    max-width: 80px;
    z-index: 10;
}

.arbusto {
    bottom: 1%;
    left: 4%;
    width: 10vw;
    max-width: 120px;
    z-index: 1;
}

.noivos-ilustracao {
    bottom: -2%;
    left: 50%;
    transform: translateX(-50%);
    width: 10.5vw;
    max-width: 350px;
    z-index: 100;
}

.flor-rodape-esquerda {
    bottom: -2%;
    left: -5%;
    width: 20vw;
    max-width: 250px;
    z-index: 110;
    transform: scaleX(-1);
}

.flor-rodape-direita {
    bottom: -2%;
    right: -5%;
    width: 20vw;
    max-width: 250px;
    z-index: 110;
}

.ramo-branco {
    bottom: -16%;
    left: 25%;
    width: 8vw;
    max-width: 100px;
    z-index: 1;
    transform: rotate(-20deg);
    display: none;
}

/* ===== PLAYER DE MÚSICA ===== */
.plyr--audio {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 150;
    height: 1.8rem;
    width: 90%;
    max-width: 500px;
    transform: translateX(-50%);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 1);
}

.plyr--audio .plyr__controls {
    background: linear-gradient(135deg, rgba(141, 132, 104, 0.3) 0%, rgba(112, 104, 66, 0.4) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1px 0 1px 0;
    height: 1.8rem;
}

.plyr__time {
    color: #ffffff;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* ========================== RESPONSIVIDADE ==================================== */
@media (min-width: 1200px) {
    .pedra, .coelho {
        display: none;
    }
}

@media (max-width: 768px) {
    .conteudo {
        padding: 18vh 1rem 30vh 1rem;
        justify-content: flex-start;
    }

    .frase {
        font-size: 95%;
        margin-top: -18%;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .nomes {
        font-size: 9vw;
        line-height: 0.7;
        margin-bottom: 30px;
        margin-top: 20px;
    }

    .nomes .nome-fernando {
        margin-left: -60px;
    }

    .nomes .nome-rose {
        margin-right: -100px;
    }

    .convocacao {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .info-data {
        font-size: 1.2rem;
        gap: 0.5rem;
    }

    .info-data .barra {
        font-size: 0.5rem;
        margin: 0 0.4rem;
    }

    .info-hora {
        font-size: 1rem;
        margin-top: 0.2rem;
        margin-bottom: 2.5rem;
        margin-left: -15px;
    }

    .botoes-info {
        padding: 0;
        gap: 4rem;
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: -17%;
    }

    .botoes-info a {
        font-size: 0.8rem;
    }

    .botoes-info img {
        width: 40px;
        height: 45px;
        max-width: initial;
        max-height: initial;
        margin-top: -50%;
    }

    .botoes-info a:nth-child(2) {
        height: 20px;
        margin-top: 4%;
    }

    .ramo-topo {
        top: 0%;
        left: -5%;
        width: 47%;
    }

    .ramo-topo-2 {
        top: 0%;
        left: 58%;
        width: 46%;
        max-width: 1500px;
        z-index: 20;
        transform: scaleX(-1);
    }

    .borboleta-1 {
        top: 29%;
        left: 5%;
        width: 12%;
    }

    .borboleta-2 {
        bottom: 34%;
        left: 84%;
        width: 7%;
    }

    .passaro {
        top: 16%;
        right: -2%;
        width: 55%;
    }

    .borboleta-3 {
        bottom: 26%;
        left: 16%;
        width: 7%;
    }

    .coelho {
        bottom: 17%;
        left: 13%;
        width: 9%;
    }

    .pedra {
        bottom: 15%;
        right: 10%;
        width: 7%;
    }

    .arbusto {
        bottom: 15%;
        left: -9%;
        width: 25%;
    }

    .noivos-ilustracao {
        bottom: -2%;
        width: 55%;
        margin-left: 6%;
    }

    .flor-rodape-esquerda {
        bottom: -1%;
        left: -8%;
        width: 35%;
    }

    .flor-rodape-direita {
        bottom: -1%;
        right: -8%;
        width: 35%;
    }

    .ramo-branco {
        bottom: -5%;
        left: 21%;
        width: 15%;
        transform: scaleX(-1);
    }
}



/* --------------------------------------------------------- */




@media (max-width: 431px) {
    .frase {
        font-size: 90%;
        margin-top: -16%;
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .nomes {
        font-size: 9vw;
        line-height: 0.7;
        margin-bottom: 30px;
        margin-top: 20px;
    }

    .nomes .nome-fernando {
        margin-left: -60px;
    }

    .nomes .nome-rose {
        margin-right: -100px;
    }

    .convocacao {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .info-data {
        font-size: 1rem;
        gap: 0.5rem;
    }

    .info-data .barra {
        font-size: 0.5rem;
        margin: 0 0.4rem;
    }

    .info-hora {
        font-size: 0.9rem;
        margin-top: 0.2rem;
        margin-bottom: 2.5rem;
        margin-left: -15px;
    }

    .botoes-info {
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-top: 5%;
    }

    .botoes-info a {
        font-size: 0.8rem;
    }

    .botoes-info img {
        width: 32px;
        height: 38px;
        max-width: initial;
        max-height: initial;
        margin-top: -50%;
    }

    .botoes-info a:nth-child(2) {
        height: 20px;
        margin-top: 4%;
    }

    .ramo-topo {
        top: 0%;
        left: -5%;
        width: 47%;
    }

    .ramo-topo-2 {
        top: 0%;
        left: 58%;
        width: 46%;
        transform: scaleX(-1);
    }

    .borboleta-1 {
        top: 32%;
        left: 5%;
        width: 13%;
    }

    .borboleta-2 {
        bottom: 38%;
        left: 65%;
        width: 7%;
    }

    .passaro {
        top: 15%;
        right: -2%;
        width: 55%;
    }

    .borboleta-3 {
        bottom: 27%;
        left: 21%;
        width: 7%;
    }

    .coelho {
        bottom: 17%;
        left: 12%;
        width: 9%;
    }

    .pedra {
        bottom: 15%;
        right: 10%;
        width: 7%;
    }

    .arbusto {
        bottom: 15%;
        left: -9%;
        width: 25%;
    }

    .noivos-ilustracao {
        bottom: -2%;
        width: 50%;
        margin-left: 4%;
    }

    .flor-rodape-esquerda {
        bottom: -1%;
        left: -8%;
        width: 35%;
    }

    .flor-rodape-direita {
        bottom: -1%;
        right: -8%;
        width: 35%;
    }

    .ramo-branco {
        bottom: -5%;
        left: 21%;
        width: 15%;
        transform: scaleX(-1);
    }
}

@media(max-width: 380px) {
    .noivos-ilustracao {
        bottom: -2%;
        width: 45%;
        margin-left: 4%;
    }

    .botoes-info {
        margin-top: -2%;
    }
}

@media(max-width: 350px) {
    .noivos-ilustracao {
        bottom: -2%;
        width: 50%;
        margin-left: 4%;
    }

    .botoes-info {
        margin-top: -20%;
    }
}

@media(max-width: 360px) {
    .noivos-ilustracao {
        bottom: -2%;
        width: 45%;
        margin-left: 4%;
    }

    .botoes-info {
        margin-top: 10%;
    }
}

@media(max-width: 345px) {
    .noivos-ilustracao {
        bottom: -2%;
        width: 60%;
        margin-left: 4%;
    }

    .botoes-info {
        margin-top: -2%;
    }
}

@media(max-width: 340px) {
    .botoes-info {
        margin-top: 10%;
    }
}

@media(max-width: 330px) {
    .noivos-ilustracao {
        bottom: -2%;
        width: 60%;
        margin-left: 4%;
    }

    .botoes-info {
        margin-top: 10%;
    }
}

@media(max-width: 320px) {
    .noivos-ilustracao {
        bottom: -2%;
        width: 60%;
        margin-left: 4%;
    }

    .botoes-info {
        margin-top: 10%;
    }
}

/* ===== ESTILOS PARA O CONTADOR REGRESSIVO ===== */
#contador {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-family: 'Crimson Pro', serif;
    font-weight: normal;
    text-transform: none;
}

.contador-bloco {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contador-numero {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.contador-texto {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    #contador {
        gap: 0.8rem;
    }

    .contador-numero {
        font-size: 1.5rem;
    }

    .contador-texto {
        font-size: 0.6rem;
    }
}

/* ======================================================= */
/* ===== ANIMAÇÃO DE FLUTUAÇÃO PARA ÍCONES ===== */
/* ======================================================= */
@keyframes flutuar {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.botoes-info a img {
    animation: flutuar 3s ease-in-out infinite;
}

.botoes-info a:nth-child(2) img {
    animation-delay: 0.5s;
}


/* ======================================================= */
/* ===== EFEITO DE FOLHAS CAINDO (NOVO) ===== */
/* ======================================================= */
#folhas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 120;
}

.folha {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    animation: cair-na-diagonal linear infinite;
}

/* Animação ATUALIZADA para trajetória diagonal COM ROTAÇÃO */
@keyframes cair-na-diagonal {
    from {
        /* O estado inicial (posição) é definido pelo JS */
        /* Inicia com uma rotação aleatória */
        transform: translateX(0) translateY(0) rotate(var(--random-rotate-start, 0deg));
        opacity: 1;
    }

    to {
        /* Move a folha através da tela inteira e finaliza com rotação aleatória */
        transform: translateX(100vw) translateY(100vh) rotate(calc(var(--random-rotate-start, 0deg) + 720deg));
        opacity: 0;
    }

}