@font-face {
    font-family: 'Alex Brush Local';
    src: url('Alex_Brush/AlexBrush-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    background-color: #f7f1eb;
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #6a5e55;
    z-index: 100;
    transition: opacity 0.5s ease;
}

#container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}


#animation-wrapper {
    position: fixed; /* Fixado no fundo */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 6s ease-in-out; /* Zoom slowly over 6 seconds */
}

#animation-wrapper.zoom-in {
    transform: scale(1.5); /* Zoom to 100% essentially based on design */
}

#invite-canvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

#petals-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    overflow: hidden;
    transition: opacity 1.5s ease-in-out;
}

#petals-container.fade-out {
    opacity: 0;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: #ffb6c1;
    border-radius: 50% 0 50% 50%;
    opacity: 0.8;
    animation: fall linear infinite, sway ease-in-out infinite alternate;
}

@keyframes fall {
    0% {
        top: -10%;
    }
    100% {
        top: 110%;
    }
}

@keyframes sway {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    100% {
        transform: translateX(30px) rotate(90deg);
    }
}

.hidden {
    display: none !important;
}

#scroll-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* Fica por cima do canvas fixo */
    width: 100%;
    margin-top: 0; /* Aparece logo em cima após a animação */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent; /* Fundo transparente */
}

/* Estilos do Convite Humma */
.banner-container {
    width: calc(100% - 40px);
    max-width: 420px;
    margin-inline: auto;
    background-color: transparent;
    text-align: center;
    padding: 44px 0 48px;
    color: #8C4A52;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slot da Logo Oficial */
.slot-logo {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slot-logo img {
    max-height: 55px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
}

.logo-fallback-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: #8C4A52;
    margin-top: 4px;
}

/* Título Caligráfico Florescer Imagem */
.titulo-florescer-img {
    width: 100%;
    max-width: 240px; /* Tamanho reduzido como pedido */
    height: auto;
    margin-top: 40px;
    margin-bottom: 12px;
    mix-blend-mode: multiply; /* Remove qualquer fundo branco que a imagem possa ter */
    filter: brightness(0.9) hue-rotate(-2deg); /* Ajuste fino da cor para #8C4A52 */
}

.subtitulo-boas-maos {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    font-weight: 500;
    color: #8C4A52;
    margin-top: -5px;
    margin-bottom: 24px;
}

/* Slot da Flor Central */
.slot-flor-central {
    width: 100%;
    margin: 16px 0 32px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centralizado como na referência */
    justify-content: center;
}

.slot-flor-central img {
    width: 140%; /* Aumentado para preencher mais as laterais como na referência */
    max-width: 500px; /* Permitir um tamanho maior */
    height: auto;
    max-height: none;
    object-fit: contain;
    transform: translateX(-4%); /* Ajuste fino para a imagem ficar centralizada organicamente */
    mix-blend-mode: multiply;
    opacity: 0.95;
}

/* Títulos Serifados */
.titulo-serifado {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 34px; /* Aumentado 2px */
    line-height: 1.2;
    font-weight: 600;
    color: #8C4A52;
    margin: 16px auto 12px;
    max-width: 360px;
}

/* Textos Corridos */
.texto-dm {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px; /* Aumentado entre 2px e 3px */
    line-height: 1.5; /* Line-height um pouco mais contínuo */
    color: #93525B;
    margin: 0 auto 16px;
    max-width: 360px;
}

/* Divisor Ornamental */
.divisor-floral {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Linhas mais próximas da flor */
    margin: 16px auto;
    max-width: 280px; /* Linhas levemente mais longas */
    color: #C99EA3;
    line-height: 1;
}

.divisor-floral::before,
.divisor-floral::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #DDBEC3);
}

.divisor-floral::after {
    background: linear-gradient(270deg, transparent, #DDBEC3);
}

/* Slot do Vídeo ou Áudio */
.slot-media {
    width: 100%;
    margin: 16px 0;
}

.slot-media video,
.slot-media audio {
    width: 100%;
    border-radius: 20px;
    outline: none;
}

/* Detalhes do Evento Estilo Convite Clássico */
.convite-detalhes {
    margin: 48px auto 24px; /* Mais espaço no topo */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detalhe-bloco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Mais próximo */
}

.detalhe-cursivo {
    font-family: 'Alex Brush Local', 'Alex Brush', cursive;
    font-size: 64px; /* Bem maior, como na referência */
    font-weight: normal;
    color: #8C4A52; /* Cor mais escura para bater com a referência */
    line-height: 0.7;
    margin: 0 0 4px 0; /* Ajuste para encostar mais no texto abaixo */
}

.detalhe-serifado {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px; /* Maior */
    font-weight: 500;
    color: #8C4A52;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.02em;
}

.divisor-ponto {
    width: 8px;
    height: 8px;
    background-color: #DDBEC3;
    border-radius: 50%;
    margin: 0 auto;
}

/* Botão Confirmar Presença */
.btn-rsvp {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    background-color: #93525B; /* Cor mais fiel à referência */
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Cormorant Garamond', Georgia, serif; /* Usando fonte serifada no botão também */
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 16px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(147, 82, 91, 0.2);
    transition: background-color 0.2s;
    margin-top: 12px;
    margin-bottom: 24px;
}

.btn-rsvp:hover {
    background-color: #8D444E;
}

/* Texto Serifado Final */
.texto-serifado-final {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 23px;
    line-height: 1.3;
    font-style: italic;
    color: #8C4A52;
    margin: 16px auto;
    max-width: 340px;
}
