@font-face {
    font-family: 'Flemish';
    src: url('fonts/OPTIFlemish-Script.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'New Icon Script';
    src: url('fonts/new-icon-script_fontlot26ec.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/CormorantGaramond-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --cursive-font: 'New Icon Script';

    --not-cursive-font: 'Cormorant Garamond';

    --white: #fffcf5;

    --opaque-white: #fffcf59d;

    --dark-gray: #4b4b4b;

    --black: #202020;

    --registry-link-hover: #cc00ff: ;
}

/* Navigation buttons styling */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0rem 0rem 0rem;
    z-index: 100;
}

.nav-btn {
    background-color: transparent;
    color: var(--opaque-white);
    border: none;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    font-family: var(--not-cursive-font);
    letter-spacing: 5px;
    cursor: pointer;
    text-decoration: none;

    transition:
        color 0.3s ease-in-out,
        transform 0.3s ease,
        translate 0.3s ease,
        border-bottom 0.3s ease;

    animation: revealIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) both;
    opacity: 0;
}
.nav-btn:nth-child(1) {
    animation-delay: 0.1s;
}
.nav-btn:nth-child(2) {
    animation-delay: 0.2s;
}
.nav-btn:nth-child(3) {
    animation-delay: 0.3s;
}
.nav-btn:nth-child(4) {
    animation-delay: 0.4s;
}
.nav-btn:nth-child(5) {
    animation-delay: 0.5s;
}

@keyframes revealIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.home {
    min-height: 90vh;
    display: grid;
    place-items: center;
}

.nav-btn:hover {
    translate: 0 -5px;
    color: var(--white);
    background-color: transparent;
}

.nav-btn.active {
    color: var(--white);
    border-bottom: 1px solid var(--white);
}

/* Center and resize the wedding crest image */
.WeddingCrest {
    position: relative;
    display: block;
    margin-left: 1em;
    margin-right: 1em;
    width: 150px;
    height: auto;
    bottom: 20px;
    margin-bottom: 10px;
    opacity: 0.7;
}
.RegistryIcon {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    height: auto;
    margin-top: 5px;
}

.BottomCrest {
    position: relative;
    left: 5%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 150px;
    height: auto;
    margin-bottom: 10px;
}
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--not-cursive-font), 'Georgia', serif;
    background-color: var(--white);
    color: var(--white);
    line-height: 1.6;
    text-align: center;
    letter-spacing: 5px;
    display: grid;
    place-items: center;
}

.pinyon-script-regular {
    font-family: var(--cursive-font);
    font-weight: 400;
    font-style: normal;
    font-size: 18vh;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: revealIn 1.5s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: 1s;
    opacity: 0;
}

.and {
    font-family: var(--not-cursive-font);
    font-style: italic;
    font-size: 5vh;
    margin: 0;
    color: var(--opaque-white);
}

.white {
    color: var(--opaque-white);
    font-size: 2.5vh;
    font-family: var(--not-cursive-font);
}

.header {
    margin-top: 0vh;
    width: 100%;
}

#travel-pic {
    margin-top: 5vh;
    border-radius: 20px;
    width: 60%;
    height: auto;
}

h1 {
    font-size: 3rem;
    color: var(--white);
}

p {
    font-size: 1.2rem;
    color: var(--white);
}

footer {
    display: grid;
    place-items: center;
    margin: 5vh;
}

#footer-date {
    color: var(--black);
}

.main-content {
    background-color: var(--white);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 60px 8%;
    position: relative;
    top: 20vh;
    z-index: 5;
    margin: 50vh ;
    box-shadow: 0 10px 100px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-content.transparent-background {
    
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    width: 90%;
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 40px 8%;
}

.center {
    width: 60%;
}

.story-text {
    text-align: center;
    margin: 0 auto;
    color: var(--dark-gray);
    font-size: 1.5rem !important;
    line-height: 1.8 !important;
    font-family: var(--not-cursive-font);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.margin-top {
    margin-top: 10vh;
}

.story-text.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.italics {
    font-style: italic;
}

.standard {
    font-style: normal;
    letter-spacing: 5px;
}

.cursive {
    font-family: var(--cursive-font);
    font-size: 5rem !important;
    font-weight: 100;
    letter-spacing: 0;
}

.RSVP-image {
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;

    position: relative;
    bottom: 55em;
    animation:
        rsvpReveal linear both,
        rsvpParallax linear both;
    animation-timeline: view(), scroll();
    animation-range:
        entry 5% cover 60%,
        normal;
    transition:
        filter 0.5s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.envelope {
    z-index: 1000;
    position: relative;
    top: 50vh;
    width: 600px;
    aspect-ratio: 541 / 359;
    perspective: 1000px;
    cursor: pointer;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.envelope.open {
    transform: translateY(-5px);
}

@keyframes marqueeBlur {
    0% {
        filter: brightness(50%) blur(0px);
    }
    60% {
        filter: brightness(30%) blur(10px);
    }
    100% {
        filter: brightness(30%) blur(10px);
    }
}

section {
    background: var(--white);
    padding: 2.5rem 2rem;
    margin: 2rem auto;
    border-radius: 18px;
    max-width: 300px;
    box-shadow:
        0 4px 24px 0 rgba(0, 0, 0, 0.1),
        0 1.5px 6px 0 rgba(0, 0, 0, 0.08);
    border: 1.5px solid var(--white);
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}

section:hover {
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.16),
        0 3px 12px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-5px) scale(1.02);
}

.hero {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.marquee {
    width: 100%;
    height: 120vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
    background: var(--white);
    transform: translateY(0);
    animation:
        marqueeParallax linear both,
        marqueeBlur linear both;
    animation-timeline: scroll();
}

.noparallax {
    animation: marqueeBlur linear both;
    animation-timeline: scroll();

}

@keyframes marqueeBlur {
    0% {
        filter: brightness(50%) blur(0px);
    }
    60% {
        filter: brightness(30%) blur(10px);
    }
    100% {
        filter: brightness(30%) blur(10px);
    }
}

@keyframes rsvpReveal {
    0% {
        filter: brightness(100%) blur(30px) grayscale(0.9);
    }
    60% {
        filter: brightness(100%) blur(10px) grayscale(0.9);
    }
    100% {
        filter: brightness(100%) blur(0px) grayscale(0.9);
    }
}

@keyframes rsvpParallax {
    from {
        transform: translateY(0vh);
    }
    to {
        transform: translateY(100vh); /* matches marquee movement */
    }
}

@keyframes marqueeParallax {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100vh); /* smaller = slower movement */
    }
}

.marquee-content {
    display: flex;
    width: max-content;
    height: inherit;
    animation: scroll 60s linear infinite;
}

.marquee-image {
    height: inherit;
    width: auto;
    filter: grayscale(0.9);
    flex-shrink: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hidden {
    display: none;
}

.paragraph-gap {
    margin-top: 20vh;
}

.gap-short {
    margin-top: -30vh !important;
}

.registry-link-section {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.registry-link:hover {
    color: var(--registry-link-hover); /* subtle warm highlight on hover */
}

.registry-section {
    display: flex;
    justify-content: center; /* centers the entire section horizontally */
    align-items: center; /* aligns items vertically */
    gap: 2rem; /* space between image and text */
    margin: 2rem 0;
    flex-wrap: wrap; /* allows wrapping on small screens */
}

.registry-image {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    flex-shrink: 0; /* prevents image from shrinking too small */
    box-shadow:
        0 4px 24px 0 rgba(0, 0, 0, 0.1),
        0 1.5px 6px 0 rgba(0, 0, 0, 0.08);
}

.registry-section > div {
    max-width: 500px; /* keeps the text from being too wide */
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 10px;
}

img {
    max-width: 100%;
    display: block;
}

/* Square Thumbnails */
.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1; /* keeps thumbnails perfectly square */
    object-fit: cover; /* crops images without distortion */
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover effect */
.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Responsive: 2 columns on tablets */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on phones */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Lightbox modal */
.lightbox {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Close button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s;
}
.lightbox .close:hover {
    color: var(--white);
}

/* Navigation arrows */
.controls {
    position: absolute;
    width: 100%;
    top: 50%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
}

.prev,
.next {
    font-size: 50px;
    color: var(--white);
    opacity: 0;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: opacity 0.3s;
}
.prev:hover,
.next:hover {
    opacity: 1;
}
.pswp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: block;
}

.envelope img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 20px 20px;
}

.back,
.front,
.flap,
.card {
    position: absolute;
}
.back {
    width: 98%;
    margin: -2px auto;
}

.card img {
    border-radius: 20px;
}
.card {
    position: absolute;
    border-radius: 20px;
    width: 90%;
    height: 90%;
    left: 5%;
    bottom: 10%;
    z-index: 1;
    transform: translateY(0);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
}

.card img {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 90%;
    object-fit: fill;
    border-radius: 20px;

    transition: opacity 1s ease;
}

#card-back {
    z-index: -100;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.3);
}

.card.swapped #card-front {
    opacity: 0;
}

.card.swapped #card-back {
    opacity: 1;
}

.back {
    position: absolute;
    top: -0px;
    left: -0px;
    right: -0px;
    transform: translateY(1vh);
    z-index: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.front {
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.flap-container {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%; /* Give it height to prevent clipping on mobile */
    z-index: 4;
    transform-origin: top center;
    transition:
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s,
        z-index 0s 0.8s;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform: rotateX(0.1deg) translateZ(1px); /* Use 0.1deg to bypass some WebKit rendering bugs */
    -webkit-transform: rotateX(0.1deg) translateZ(1px);
    will-change: transform;
}

.flap,
.opened-flap {
    position: absolute;
    top: -10px;
    left: -0.5%;
    width: 101%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Force hardware acceleration and prevent flickering on mobile */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* Apply filter to individual faces to avoid flattening the 3D container */
    filter: drop-shadow(10px 0px 10px rgba(0, 0, 0, 0.2));
}

.flap img,
.opened-flap img {
    border-radius: 0 !important; /* Prevent the general envelope border-radius from clipping the flap */
}

.flap {
    top: -8px;
}
.opened-flap {
    filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0.2));
    transform: rotateX(180deg) translateZ(0.1px); /* Slight Z offset to prevent z-fighting */
    -webkit-transform: rotateX(180deg) translateZ(0.1px);
}

.stamp {
    position: absolute;
    top: 50%; /* Positioned near the bottom tip of the flap */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: inherit; /* Adjust size based on your stamp image */
    pointer-events: none;
    width: 100%;
    height: auto;
}

.envelope.open .flap-container {
    transform: rotateX(-180deg) translateZ(0px);
    -webkit-transform: rotateX(-180deg) translateZ(0px);
    z-index: 0;
    /* When opening: transform starts at 0s, z-index waits 0.6s to go behind */
    transition:
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0s,
        z-index 0s 0.6s;
}

.envelope.open .card {
    transform: translateY(-50%) rotate(5deg);
    transition-delay: 0.6s;
}

.envelope:hover {
    transform: translateY(-3vh) rotate(-2deg);
}

/**
Form
*/
.rsvp-form {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--not-cursive-font), serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0s;
    z-index: 5;
}

.card.swapped .rsvp-form {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 1s;
}

.form-group {
    width: 100%;
    position: relative;
}

.form-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.form-row .form-group {
    flex: 1;
}

.rsvp-form input,
.rsvp-form select {
    width: 100%;
    padding: 10px 5px;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    font-size: 0.85rem;
    text-align: center;
    color: #333;
    font-family: var(--not-cursive-font);
    letter-spacing: 2px;
    transition: border-color 0.3s ease;
    text-transform: uppercase;
}

.rsvp-form input::placeholder {
    color: #999;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.rsvp-form input:focus,
.rsvp-form select:focus {
    outline: none;
    border-bottom: 1px solid #000;
}

.rsvp-form .submit-btn {
    width: 60%;
    border-radius: 20px;
    align-self: center;
    padding: 12px;
    margin-top: 1.5rem;
    background: #121212;
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--not-cursive-font);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rsvp-form .submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.rsvp-form .submit-btn:active {
    transform: translateY(0);
}

.name-error {
    position: absolute;
    text-align: center;
    width: 100%;
    font-family: var(--not-cursive-font);
    font-size: 1rem;
    color: red;
    letter-spacing: 1px;
    bottom: 3rem;
}

.rsvp-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    font-family: var(--not-cursive-font);
    font-size: 2.5rem;
    color: #121212;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 6;
}

.rsvp-form.submitted {
    opacity: 0 !important;
    pointer-events: none !important;
}

.rsvp-form.submitted + iframe + .rsvp-status {
    opacity: 1;
    transition-delay: 1.8s;
}

/* Custom styling for the select arrow */
.rsvp-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 5px center;
    padding-right: 20px;
}

/* Timeline Styling */
.timeline {
    position: relative;
    max-width: 60vw;
    
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--dark-gray), var(--dark-gray));
    transform: translateX(-50%);
}

.timeline-event {
    margin-bottom: 50px;
    position: relative;
}

.timeline-event:nth-child(odd) .timeline-content {
    margin-left: -40%;
    margin-right: 52%;
    text-align: right;
}

.timeline-event:nth-child(even) .timeline-content {
    margin-left: 52%;
    margin-right: -40%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 3px solid var(--dark-gray);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--dark-gray);
    transition: all 0.3s ease;
}

.timeline-event:hover .timeline-marker {
    width: 28px;
    height: 28px;
    box-shadow: 0 0 0 4px var(--white), 0 0 0 9px var(--dark-gray);
    background: var(--dark-gray);
}

.timeline-content {
    padding: 20px 30px;
    background: rgba(75, 75, 75, 0.05);
    border: 1px solid rgba(75, 75, 75, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    
}

.timeline-event:hover .timeline-content {
    background: rgba(75, 75, 75, 0.1);
    border: 1px solid rgba(75, 75, 75, 0.3);
    box-shadow: 0 4px 20px rgba(75, 75, 75, 0.1);
}

.timeline-time {
    font-family: var(--not-cursive-font);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.timeline-title {
    font-family: var(--not-cursive-font);
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.timeline-description {
    font-family: var(--not-cursive-font);
    font-size: 0.95rem;
    color: var(--dark-gray);
    opacity: 0.8;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

/* Responsive Design for Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-event:nth-child(odd) .timeline-content,
    .timeline-event:nth-child(even) .timeline-content {
        margin-left: 70px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-event:hover .timeline-marker {
        width: 20px;
        height: 20px;
        box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--dark-gray);
    }
}

@media (max-width: 500px) {
    .rsvp-form {
        top: 12%;
        gap: 8px;
    }
    .rsvp-form input,
    .rsvp-form select {
        font-size: 0.7rem;
        padding: 6px 2px;
        letter-spacing: 1px;
    }
    .rsvp-form .submit-btn {
        padding: 10px;
        font-size: 0.8rem;
        margin-top: 5px;
    }
    .rsvp-status {
        font-size: 1.8rem;
    }
}

@media (max-width: 500px) {
    .pinyon-script-regular {
        font-size: 90px !important;
    }
    .title-text {
        font-size: 2rem !important;
    }
    .center {
        width: 90% !important;
    }
    .story-text {
        font-size: 1.4rem !important;
        padding: 0% 5% !important;
        margin: 0 !important;
    }
    .cursive {
        font-size: 3rem !important;
    }
    .nav-buttons {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.5rem !important;
        margin: 1rem 0 !important;
        height: auto !important;
    }
    .nav-btn {
        font-size: 1.2rem !important;
        padding: 0.5rem !important;
        letter-spacing: 2px !important;
    }
    .marquee {
        height: 120vh !important;
        width: 100vw !important;
    }
    .envelope {
        width: 90vw !important;
        max-width: 350px !important;
        top: 30vh !important;
    }
    .main-content {
        margin-left: 10px;
        margin-right: 10px;
        width: 90% !important;
        top: -20vh !important;
    }
    .transparent-background {
        background: none !important;
        box-shadow: none !important;
         background-color: var(--opaque-white) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);

    }
    .RSVP-image {
        height: 100vh !important;
        width: auto !important;
        top: -120vh !important;
    }
    .hero {
        height: auto !important;
        min-height: 50vh !important;
    }
    .WeddingCrest {
        width: 100px !important;
        margin: 1rem auto !important;
    }
    h1 {
        font-size: 2rem !important;
    }
    .paragraph-gap {
        
        z-index: 10000 !important;
    }




    .envelope.open .card {
        transform: translateY(-60%) rotate(5deg);
        transition-delay: 0.6s;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
    position: absolute;
    top: 20px;
    left: 20px;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Responsive Menu Styles */
@media (max-width: 500px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-buttons {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh !important;
        width: 100vw !important;
        background-color: rgba(18, 18, 18, 0.98);
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1500;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
    }

    .nav-buttons.open {
        transform: translateX(0);
    }

    .nav-btn {
        font-size: 1.5rem !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        color: var(--white) !important;
    }
}
