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

html,
body {
    width: 100%;
    height: 100%;
}

body {
    overflow: hidden;
    background: #050806;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    cursor: pointer;
}

#page,
.video-container {
    width: 100%;
    max-width: 500px;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    background: #06110b;
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.38);
}

.fullscreen-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.invitation-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    pointer-events: none;
    color: #f7d889;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.08) 45%, rgba(2, 8, 4, 0.32));
}

.shubh-vivah {
    margin-bottom: 14px;
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(18px, 5vw, 28px);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f5d477;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    animation: emeraldFadeUp 1.2s ease both;
}

.invited-text {
    margin-bottom: 12px;
    font-family: "Great Vibes", cursive;
    font-size: clamp(40px, 12vw, 72px);
    line-height: 1;
    color: #fff7d0;
    text-shadow: 0 3px 18px rgba(3, 7, 2, 0.85);
    animation: emeraldFadeUp 1.2s ease 0.25s both;
}

.couple-name {
    max-width: 92%;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 8vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    color: #f0c764;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
    animation: emeraldGlow 3.2s ease-in-out infinite, emeraldFadeUp 1.2s ease 0.45s both;
}

@keyframes emeraldFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes emeraldGlow {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(240, 199, 100, 0));
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(240, 199, 100, 0.35));
    }
}

/* Long couple names must wrap inside the cover's inset text panel. */
@media (max-width: 768px) {
    #page .invitation-content { padding: 20px 16px; }
    #page .couple-name {
        min-width: 0;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }
    #page .shubh-vivah { max-width: 100%; overflow-wrap: anywhere; }
}
