body {
    margin: 0;
    height: 100vh;
    background: #fefae0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.wrapper {
    text-align: center;
}

.prompt {
    color: #606c38;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* ENVELOPE */
.envelope {
    width: 560px;
    height: 360px;
    background: linear-gradient(145deg, #2f3e2e, #3a4a37);
    position: relative;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    overflow: visible;
    transition: transform 0.9s cubic-bezier(.22,1,.36,1);
}

/* design detail */
.envelope::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.08) 50%, transparent 50.5%);
}

.envelope::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(163,177,138,0.3);
    border-radius: 8px;
}

/* FLAP */
.flap {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #3a5a40;
    clip-path: polygon(0 0, 50% 70%, 100% 0);
    transform-origin: top;
    transition: 0.9s cubic-bezier(.22,1,.36,1);
    z-index: 5;
}

/* ========================= */
/* ✅ IMAGE SEAL */
/* ========================= */
.seal {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;

    /* 🔥 YOUR IMAGE */
    background: url("seal.jpg") center/cover no-repeat;

    box-shadow: 0 10px 20px rgba(0,0,0,0.35);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: all 0.4s ease;
}

/* click effect */
.seal:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* disappear animation */
.envelope.open .seal {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    pointer-events: none;
}

/* LETTER */
.letter {
    position: absolute;
    width: 420px;
    height: 300px;
    background: #ede0d4;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 40%);
    opacity: 0;
    transition: all 0.9s ease;
    z-index: 2;

    border: 2px solid #a3b18a;
    box-shadow:
        0 0 0 6px #fefae0,
        0 20px 40px rgba(0,0,0,0.25);

    border-radius: 8px;
}

.content {
    padding: 40px 20px;
}

.content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #2f3e2e;
}

.date {
    color: #606c38;
}

.divider {
    width: 70px;
    height: 2px;
    background: #a3b18a;
    margin: 20px auto;
}

.invite {
    font-size: 14px;
    color: #6b705c;
}

/* BUTTON */
.open-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    text-decoration: none;
    background: #2f3e2e;
    color: #fefae0;
    border-radius: 20px;
    font-size: 13px;
}

/* OPEN STATE */
.envelope.open {
    transform: translateY(70px);
}

.envelope.open .flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope.open .letter {
    transform: translate(-50%, -70%);
    opacity: 1;
    z-index: 10;
}