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

body {
    font-family: 'Playfair Display', serif;
    background-image: url('imagens_extraidas/fundo_palmeiras.png'); /* Fundo de palmeiras */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    overflow: hidden; /* Evita scroll durante a transição */
}

.container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Mantém o tamanho do container principal */
    margin: 20px;
}

/* Estilos do envelope */
.envelope {
    position: relative;
    width: 100%;
    padding-bottom: 66%; /* Proporção 3:2 */
    transition: opacity 1s ease; /* Simple fade out */
    z-index: 10;
}

.envelope-front {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Fundo transparente para o envelope */
}

.envelope-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garante que a imagem se ajuste sem cortar */
    border-radius: 5px;
}

.envelope-seal {
    position: absolute;
    top: 25%; /* Ajuste para a ponta da aba superior */
    left: 50%; /* Centraliza horizontalmente */
    transform: translate(-50%, -50%); /* Centraliza o selo em relação ao seu próprio centro */
    width: 80px; /* Tamanho do selo */
    height: 80px; /* Tamanho do selo */
    background-color: transparent; /* Fundo transparente para o selo */
    border-radius: 50%; /* Para garantir que o clique seja circular */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s ease;
}

.envelope-seal .seal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.envelope-seal:hover {
    transform: translate(-50%, -50%) scale(1.1); /* Aumenta um pouco no hover */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Efeito de brilho no hover */
}

/* Estilos do convite */
.invitation {
    position: absolute;
    top: 50%; /* Centraliza verticalmente */
    left: 50%; /* Centraliza horizontalmente */
    transform: translate(-50%, -50%);
    width: 90%; /* Aumenta a largura para preencher mais a tela */
    max-width: 400px; /* Limite máximo para o convite */
    height: 90%; /* Aumenta a altura para preencher mais a tela */
    max-height: 600px; /* Limite máximo para a altura do convite */
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 1s ease; /* Simple fade in */
    z-index: 1;
    pointer-events: none; /* Impede interação com o convite enquanto estiver oculto */
    display: flex;
    justify-content: center;
    align-items: center;
}

.invitation-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Garante que a imagem se ajuste sem cortar */
    border-radius: 5px;
}

.invitation-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50; /* Acima da imagem do convite */
}

.invitation-links a {
    position: absolute;
    background-color: rgba(255, 0, 0, 0); /* Transparente */
    cursor: pointer;
}

/* Posições dos links (ajustar conforme a imagem page_2.png) */
.link-como-chegar {
    top: 60%; /* Ajuste */
    left: 10%; /* Ajuste */
    width: 30%; /* Ajuste */
    height: 10%; /* Ajuste */
}

.link-confirmar-presenca {
    top: 60%; /* Ajuste */
    left: 60%; /* Ajuste */
    width: 30%; /* Ajuste */
    height: 10%; /* Ajuste */
}

.link-site-noivos {
    top: 75%; /* Ajuste */
    left: 10%; /* Ajuste */
    width: 30%; /* Ajuste */
    height: 10%; /* Ajuste */
}

.link-lista-presentes {
    top: 75%; /* Ajuste */
    left: 60%; /* Ajuste */
    width: 30%; /* Ajuste */
    height: 10%; /* Ajuste */
}

/* Classes para animação */
.envelope.opened {
    opacity: 0;
    pointer-events: none; /* Desabilita cliques no envelope após aberto */
}

.envelope.opened ~ .invitation {
    opacity: 1;
    z-index: 40;
    pointer-events: auto; /* Permite interação com o convite quando visível */
}

/* Responsividade */
@media (max-width: 600px) {
    .container {
        width: 90%;
    }
    
    .envelope-seal {
        width: 50px;
        height: 50px;
    }
}


