/* RESET */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

h1 {
    margin: 0;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* BACKGROUND */
.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* opacity: 0.8; */

    z-index: 0;
}

/* WRAPPER (THIS FIXES ALL LAYER ISSUES) */
.envelope-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 650px;

    z-index: 1;
}

/* ENVELOPE IMAGE */
.foreground-img {
    width: 100%;
    height: 75%;
    height: auto;
    display: block;

    box-shadow:
        0 45px 90px rgba(0, 0, 0, 0.35),
        0 15px 30px rgba(0, 0, 0, 0.2);
}

/* CONTENT OVERLAY (LOCKED TO ENVELOPE) */
.content {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    text-align: center;

    color: white;

    z-index: 2;

    padding: 6% 8% 9% 8%;
}

/* TOP TEXT */
.envelope_heading h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.5rem, 1.5vw, 0.65rem);
    font-weight: 400;
}

.cursive_heading h1 {
    font-family: 'Italianno', cursive;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
}

/* BOTTOM LINK */
.bottom-nav a {
    color: white;

    font-family: 'Cinzel', serif;
     font-size: clamp(0.4rem, 1.5vw, 0.65rem);

    padding-bottom: 4%;
}

.bottom-nav a:hover {
    opacity: 0.7;
}
/* RESET */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

h1 {
    margin: 0;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* BACKGROUND */
.bg {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    opacity: 0.85;

    z-index: -1;
}

/* WRAPPER (THIS FIXES ALL LAYER ISSUES) */
.envelope-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 90%;
    max-width: 650px;

    z-index: 1;
}

/* ENVELOPE IMAGE */
.foreground-img {
    width: 100%;
    
    height: auto;
    display: block;

    box-shadow:
        0 45px 90px rgba(0, 0, 0, 0.35),
        0 15px 30px rgba(0, 0, 0, 0.2);
}

/* CONTENT OVERLAY (LOCKED TO ENVELOPE) */
.content {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    text-align: center;

    color: white;

    z-index: 2;

    padding: 6% 8% 9% 8%;
}

/* TOP TEXT */
.envelope_heading h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.55rem, 1.7vw, 0.7rem);
    font-weight: 400;
}

.cursive_heading h1 {
    font-family: 'Italianno', cursive;
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 500; 
}

/* BOTTOM LINK */
.bottom-nav a {
    color: white;

    font-family: 'Cinzel', serif;
     font-size: clamp(0.4rem, 1.5vw, 0.65rem);

    padding-bottom: 4%;
}

.bottom-nav a:hover {
    opacity: 0.7;
}

main {
    position: relative;
    z-index: 1;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 2rem;
    box-sizing: border-box;
}

main h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.1rem, 3.5vw, 1.8rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    margin: 0;
}

main h2 {
    font-family: 'Italianno', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 400;
    margin: 0;
    padding-bottom: 0.5rem;
}

main p {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.75rem, 2.2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin: 0;
}

.wedding-date {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.75rem, 2.2vw, 1.1rem);
    font-weight: 500;
    
    margin: 0;
}

.ceremony-time {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.6rem, 1.8vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.08em;

    margin: 0;
}

.rsvp-close {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.6rem, 1.8vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.08em;

    margin: 0;
    padding-top: 0.5rem;
}

button {
    background-color: #7B8B78;
    color: white;

    font-family: 'Cinzel', serif;
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.08em;

    border: none;
    border-radius: 999px;

    padding: 0.9rem 2rem;
    margin-bottom: 2.5rem;

    cursor: pointer;
}

button:hover {
    background-color: #6D7D6A;
}

#countdown {
    font-family: 'Italianno', cursive;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 500;
    
    margin: 0;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;

    margin: 1.5rem 0;
}

#countdown div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#countdown span {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.4rem, 5vw, 2.5rem);
    font-weight: 500;
}

#countdown small {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.45rem, 1.5vw, 0.7rem);
    letter-spacing: 0.12em;
    margin-top: 0.3rem;
}

.details-foreground-img {
    width: 90%;
    max-width: 650px;
    height: auto;
    display: block;

    margin-bottom: 2.7rem;
}

/* LUXURY TEXT ANIMATION - HOME PAGE */

.top-text {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    filter: blur(6px);
}

.top-text.text-reveal {
    animation: luxuryTextReveal 3s ease forwards;
}

@keyframes luxuryTextReveal {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
        filter: blur(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}