/*@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');*/

@font-face {
    font-family: 'Great Vibes';
    src: url('fonts/GreatVibes-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dancing Script';
    src: url('fonts/DancingScript-VariableFont_wght.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* General Body Styling */
body {
    /*font-family: Arial, sans-serif;*/
    font-family: 'Dancing Script', cursive, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(to bottom right, white, rgb(174, 229, 248));
    height: 10%;
    position: relative;
    overflow-x: hidden;
}

/* Centered container */
h1 {
  font-size: 3rem;
  text-align: center;
  letter-spacing: 1px;
  font-family: 'Great Vibes', cursive; /* elegant cursive font */  
  margin-bottom: 0.1rem; /* brings closer to paragraph */
}

h2 {
    text-align: center;
    font-family: 'Great Vibes', cursive; /* elegant cursive font */  
}

h3 {
    text-align: center;
    font-size: 2.5rem;
    font-family: 'Great Vibes', cursive; /* elegant cursive font */
    margin-bottom: 0.1rem; /* brings closer to paragraph */

}

p {
  text-align: center;
  font-size: 1.5rem;
  word-spacing: 100%;
  max-width: 900px;
  margin: 0.1rem auto 4rem auto;
  font-family: 'Great Vibes', cursive; /* elegant cursive font */
}

.side-photo {
  width: clamp(60px, 10vw, 120px);
  height: auto;
}

.left-photo {
  transform: scaleX(1);
}

.right-photo {
  transform: scaleX(-1);
}

.moon {
    display: block;
    margin: 0 auto;
    width: 30%;
    max-width: 200px;
    height: auto;
    padding: 0%;
}

.wedding-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(24px, 6vw, 60px);
  color: black;
  margin: 10px 0;
max-width: none;       /* remove the 900px limit */
}

.event-details {
    text-align: center;                     /* Centers the text */
    font-size: clamp(14px, 2.5vw, 22px);   /* min 14px, responsive 2.5vw, max 24px */
    font-weight: normal;                    /* Normal weight */
    color: rgb(107, 107, 107);             /* Light gray color */
    margin: 1px 0;                         /* Adds spacing */
    font-family: 'Great Vibes', cursive; /* elegant cursive font */
}

/* RSVP Attending Buttons */
.attending-group {
    display: flex;
    justify-content: center; /* center the buttons */
    gap: 50px; /* default for desktop */
    margin: 10px 0 50px 0;
    font-family: 'Dancing Script', cursive;
    font-size: 25px;
}

.attending-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.attending-group input[type="radio"] {
    margin-right: 5px;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    .attending-group {
        gap: 10px; /* reduce gap on small screens */
        flex-wrap: wrap; /* allow wrapping if needed */
        font-size: 20px; /* optional smaller text */
    }
}




/* RSVP Text Inputs (Song request, Email, Phone) */
.rsvp-input,
#songrequest,
#email,
#phone {
    width: 80%;           /* same as email/phone */
    max-width: 600px;     /* same max-width */
    font-size: 18px;
    padding: 5px;
    border: none;
    border-bottom: 1px solid black;
    outline: none;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    display: block;
    margin: 0 auto 20px auto; /* center horizontally with spacing below */
}

/* Mobile fix for song request input */
@media (max-width: 480px) {
    #songrequest {
        width: 75%;           /* almost full width */
        max-width: none;      /* remove desktop max-width */
        font-size: 16px;      /* readable on small screens */
        padding: 8px;         /* more tappable */
        margin: 0 auto 20px;  /* center with spacing below */
    }
}

/* RSVP Plus One Buttons */
.plusone-group {
    display: flex;
    justify-content: center;
    margin: 10px 0 50px 0;
    font-family: 'Dancing Script', cursive;
    font-size: 25px;
    gap: 100px; /* reasonable spacing */
}

.plusone-group > div {
    text-align: center; /* center label and radio */
}


.form-group {
    font-family: 'Dancing Script', cursive;
    text-align: center; /* center label and input */
    margin: 2rem 0;
}

.form-group p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    margin-bottom: 0.5rem; /* space between text and line */
}

.form-group input {
    font-family: 'Dancing Script', cursive;
    font-size: 18px;
    text-align: center;
    width: 40%;                 /* adjust width as needed */
    border: none;
    border-bottom: 1px solid black; /* underline style */
    outline: none;
    display: block;
    margin: 0 auto;             /* center horizontally */
    padding: 5px 0;
}


/* Apply to email and phone too */
#email, #phone {
    width: 80%;           /* match other inputs */
    max-width: 600px;
    display: block;
    margin: 0.5rem auto;  /* center horizontally */
    font-size: 18px;
    text-align: center;
    border: none;
    border-bottom: 1px solid black;
    outline: none;
    padding: 5px 0;
}

/* RSVP Name Field */
.name-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* space between 'M' and input */
    margin: 2rem 0;
    font-family: 'Dancing Script', cursive;
}

.name-group label {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem; /* makes 'M' nice and readable */
    margin-left: 10%;
}


/* Make the input expand */
.name-group input {
    flex: 1; /* take up remaining space next to 'M' */
    min-width: 250px; /* optional: ensures it doesn't shrink too much */
    max-width: 500px; /* optional: caps width */
    font-family: 'Dancing Script', cursive;
    font-size: 18px;
    text-align: center; /* centers text and placeholder */
    border: none;
    border-bottom: 1px solid black;
    outline: none;
    padding: 5px;
    margin-right: 10%;
}

#message {
    font-size: 18px;
    width: clamp(250px, 80%, 400px); /* responsive width: min 250px, preferred 50%, max 400px */
    height: 100px;                   /* smaller height */
    font-family: 'Dancing Script', cursive;
    text-align: center;
    padding: 5px;
    border: none;
    border-bottom: 1px solid black; /* optional underline style */
    resize: none;                    /* prevent manual resizing */
    display: block;
    margin: 0 auto;                  /* centers the textarea */
}

.rsvp-label {
    font-family: 'Dancing Script', cursive;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* RSVP Submit Button */
button[type="submit"] {
    background-color: #f9c74f;     /* soft gold color */
    color: #000;                   /* black text */
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;             /* slightly bigger text */
    padding: 12px 30px;            /* top-bottom / left-right */
    border: none;
    border-radius: 12px;           /* rounded corners */
    cursor: pointer;
    transition: all 0.3s ease;     /* smooth hover effect */
    display: block;
    margin: 30px auto;             /* center horizontally */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); /* soft shadow */
}

/* Hover effect */
button[type="submit"]:hover {
    background-color: #f4a261;     /* darker gold on hover */
    transform: scale(1.05);        /* slight zoom */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); /* stronger shadow */
}

h2 {
    font-size: 40px;
}

/* Header Styling */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

header img {
    max-width: 100%;
    height: auto;
    display: block;
}


header {
    background-color: white;  /* Entire header white */
    width: 100%;              /* Full screen width */
    text-align: center;
    padding: 20px 0;          /* Add some spacing inside header */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* optional subtle shadow */
}

/* Navbar Container */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0.8rem 0.5rem; /* smaller horizontal padding */
    font-family: 'Great Vibes', cursive;
    gap: 0.7rem;

    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-bottom: 2px solid #ddd;

    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;       /* changed from 100vw */
    box-sizing: border-box; /* include padding in width */
    margin: 0;         /* remove default margin */

    overflow-x: hidden; /* prevents horizontal scroll */
    max-width: 100%;
}

/* Reduce spacing on smaller screens */
@media screen and (max-width: 600px) {
    nav {
        gap: 0.7rem; /* less space between links */
        padding: 1rem 1rem; /* optional: reduce padding too */
    }

    nav a {
        font-size: clamp(0.7rem, 2vw, 1rem); /* optional: slightly smaller font */
    }
}



/* Navbar Links */
nav a {
    color: #333;
    text-decoration: none;
    font-size: clamp(0.7rem, 2vw, 1rem); /* responsive text */
    white-space: nowrap;                    /* prevent wrapping */
    margin: 0;                              /* use gap for spacing */
    transition: all 0.3s ease;
}

/* Hover */
nav a:hover {
    color: #000;
}

/* Active Link */
nav a.selected {
    color: rgb(0, 0, 0);
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

/* Reduce spacing and padding for smaller screens */
@media (max-width: 800px) {
    nav {
        padding: 0.8rem 1rem;
        gap: 1rem;
    }

    nav a {
        font-size: clamp(0.7rem, 3vw, 1.1rem);
    }
}

@media (max-width: 500px) {
    nav {
        padding: 0.5rem 0.5rem;
        gap: 0.7rem;
    }

    nav a {
        font-size: clamp(0.65rem, 3.5vw, 1rem);
    }
}










/* Hover Effects */
nav a:hover {
    color: rgb(0, 0, 0);
    /*text-decoration: underline;
    text-decoration-thickness: 4px;
    text-decoration-color: rgb(0, 0, 0);
    /*-webkit-text-stroke: 0.3px rgb(0, 0, 0);*/
    transform: translateY(-2px); /* Lift effect */
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5); /* Shadow for the active link */
}




footer {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 1rem;
    background-color: #333;
    color: #fff;
    text-align: center;  /* ensure children are centered */
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center; /* center all child elements */
    justify-content: center;
    gap: 0.5rem;        /* space between footer lines */
}

footer p {
    margin: 0;
    word-wrap: break-word;
    text-align: center;  /* force center for paragraphs */
}

footer p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}



/* FAQs Styling */
.faq-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 25px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq {
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
}

.faq-header {
    padding: 25px;
    cursor: pointer;
    font-size: 25px;
    font-weight: bold;
    background-color: #f1f1f1;
    border-radius: 5px;
}

.faq-header:hover {
    background-color: #e0e0e0;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    padding: 0 25px;
    font-size: 25px;
}

.faq-content.open {
    max-height: 200px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.form-group p {
    margin-bottom: 0;
    margin-top: 0;
}

.rsvp-btn {
    transition: all 0.3s ease; /* Smooth transition for hover effect */
}

.rsvp-btn:hover {
    background-color: #ffcc00; /* Change background color when hovered */
    transform: scale(1.1); /* Slightly enlarge the button */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5); /* Increase shadow on hover */
}


/* Media Query for Mobile Devices */
@media (max-width: 600px) {
    nav {
        flex-direction: row;       /* keep links side by side */
        flex-wrap: nowrap;         /* prevent wrapping */
        justify-content: center;   /* keep centered */
        gap: 0.5rem;               /* tighter spacing */
        padding: 0.5rem 0.5rem;    /* reduce padding */
    }

    nav a {
        font-size: clamp(0.6rem, 3vw, 0.9rem); /* smaller text on phones */
        margin: 0;                             /* remove extra margins */
    }

    h3 {
        text-align: center;
        font-size: 2rem;
        font-family: 'Great Vibes', cursive; /* elegant cursive font */
        margin-bottom: 0.1rem; /* brings closer to paragraph */

    }

    p {
    text-align: center;
    font-size: 1.5rem;
    word-spacing: 100%;
    max-width: 900px;
    margin: 0.1rem auto 4rem auto;
    font-family: 'Great Vibes', cursive; /* elegant cursive font */
    padding-left: 10%;
    padding-right: 10%;
    }
}

.registry-photo {
    flex: 1;
    background-image: url('images/img43.jpg');
    background-size: cover;
    background-position: center 5%;
    min-height: 300px;
}

.registry-info {
    flex: 1;                        /* right half */
    display: flex;
    flex-direction: column;
    justify-content: center;        /* vertical centering */
    align-items: center;            /* horizontal centering */
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .contact-main {
        flex-direction: column;      /* stack photo and text */
        min-height: auto;
        padding: 0.5rem 1rem;
    }

    .contact-photo {
        width: 100%;
        min-height: 250px;
    }

    .contact-info {
        width: 100%;
        padding: 0.5rem;
    }
}

/* ---Contact Section--- */
.contact-main {
    display: flex;
    min-height: 60vh;               /* less vertical space */
    margin: 0;
    padding: 1rem 2rem;             /* smaller top/bottom padding */
}

.contact-photo {
    flex: 1;
    background-image: url('images/img26.jpg');
    background-size: cover;
    background-position: center 45%; /* horizontal center, vertical 30% from top */
    min-height: 400px;
}



.contact-info {
    flex: 1;                        /* right half */
    display: flex;
    flex-direction: column;
    justify-content: center;        /* vertical centering */
    align-items: center;            /* horizontal centering */
    text-align: center;
    padding: 1rem;
}

.contact-info h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(40px, 6vw, 80px);
    margin: 0.5rem 0;
}

.contact-info p {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(18px, 2vw, 25px);
    margin: 0.3rem 0;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-main {
        flex-direction: column;      /* stack photo and text */
        min-height: auto;
        padding: 0.5rem 1rem;
    }

    .contact-photo {
        width: 100%;
        min-height: 250px;
    }

    .contact-info {
        width: 100%;
        padding: 0.5rem;
    }
}

/* Transparent white box behind main content */
.content-box {
    background: rgba(255, 255, 255, 0.5); /* 50% transparent white */
    padding: 2rem 2rem 3rem 2rem; /* adjust as needed */
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15); /* optional subtle shadow */
    margin: 2rem auto;
    max-width: 900px;
}

/* Hide hamburger on desktop */
.mobile-menu-btn {
    display: none;
}

/* MOBILE ONLY */
@media (max-width: 800px) {

    /* Show hamburger */
    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        font-size: 2rem;
        background: rgba(255,255,255,0.8);
        padding: 8px 14px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        z-index: 2000;
        cursor: pointer;
    }



    /* Dropdown menu */
    .mobile-menu {
        position: fixed;
        top: 60px;
        left: 15px;
        background: rgba(255,255,255,0.95);
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        padding: 10px 0;
        width: 180px;
        display: none; /* hidden by default */
        flex-direction: column;
        z-index: 2000;
    }

    .mobile-menu a {
        padding: 12px 16px;
        text-decoration: none;
        color: black;
        font-size: 1.1rem;
        display: block;
        transition: background 0.3s;
        font-family: 'Great Vibes', cursive;
    }

    .mobile-menu a:hover {
        background: rgba(0,0,0,0.1);
    }
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
    .mobile-menu-container,
    .mobile-menu-button {
        display: none !important;
    }
}

/* Hide desktop menu on mobile */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
}

@media (min-width: 801px) {
    #mobileMenu {
        display: none !important;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}

footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem; /* increased spacing between links */
    padding: 0;
    margin-bottom: 1rem;
    box-shadow: none;
    border: none;
    background: none;
}

footer nav a {
    color: #aaa; /* light grey text */
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    text-decoration: none;
    letter-spacing: 2px;  /* optional: slightly space letters too */
    word-spacing: 1rem;   /* spreads words apart */
    transition: color 0.3s ease;
}

footer nav a.selected {
    color: #888; /* slightly darker light grey */
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

footer nav a:hover {
    color: #555; /* slightly darker on hover */
    transform: none;
    text-shadow: none;
}