.betaText{
    color: red;
    display: flex;
    align-items: center;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color, #333); /* Fallback to ensure text color works */
    background-color: var(--bg-color, #F6F7EC);
    margin: 0;
    padding: 20px;
    line-height: 1.8;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
}

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

.navBar {
    border-bottom: 2px solid var(--link-color);
    margin-bottom: 15px;
}

.navButtons {
    max-width: fit-content;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between buttons and toggle */
}

.celebrateText {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8em;
    color: #A88FAC;
}

/* Align image and toggle button vertically */
.image-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#carousel {
    position: relative;
    width: 820px; /* Match your banner width */
    height: 550px; /* Match your banner height */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 6px solid #f7e9ee;
}

#carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: brightness(95%) contrast(105%);
}

#carousel img.active {
    opacity: 1;
}

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;700&display=swap');
h1, h2, h3 {
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
}

.section h2::before {
    content: '❦';
    display: block;
    font-size: 1.8em;
    margin-bottom: 4px;
    color: var(--link-color);
}


/* Header Styling */
h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 5px;
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 5px;
}

h3 {
    font-size: 1.3em;
}

/* Section Styling */
.section {
    padding: 5px;
    margin-bottom: 20px;
    background: var(--section-bg, #F6F7EC); /* Ensure background changes */
    color: var(--text-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

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

/* Link Styling */
.links a {
    color: var(--link-color); /* Link color (sage green or lavender) */
    text-decoration: none;
    font-weight: 600;
    padding: 5px 10px;
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Smooth transition for hover effect */
}

/* Hover Effect in Light Mode */
body.light-mode .links a:hover {
    color: #859F84; /* Darker sage green for light mode hover */
    text-decoration: underline;
}

/* Hover Effect in Dark Mode */
body.dark-mode .links a:hover {
    color: #9b81bf; /* Darker lavender for dark mode hover */
    text-decoration: underline;
}

/* Contact Info */
p {
    font-size: 1.1em;
}

/* Header Container */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Banner Image Styling */
.banner {
    width: 350px;
    height: 280px;
    border-radius: 15%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.loginBanner{
    width: 800px;
    height: 580px;
    border-radius: 15%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* General button styles */
/* .home-button, .main-buttons, .download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 145px;
    height: 45px;
    background-color: var(--link-color);
    color: #F6F7EC;
    text-decoration: none;
    font-weight: bold;
    border-radius: 22px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
} */
.home-button, .main-buttons, .download-btn {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
    background-color: var(--link-color);
    color: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.home-button:hover, .main-buttons:hover, .download-btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* Hover Effect in Light Mode */
body.light-mode .home-button:hover,
body.light-mode .main-buttons:hover,
body.light-mode .download-btn:hover {
    background-color: #859F84; /* Darker green for light mode hover */
}

/* Hover Effect in Dark Mode */
body.dark-mode .home-button:hover,
body.dark-mode .main-buttons:hover,
body.dark-mode .download-btn:hover {
    background-color: #9b81bf; /* Darker lavender for dark mode hover */
}

/* Light Mode (Default) */
/* body.light-mode {
    --bg-color: #ffffffe5;
    --text-color: #333;
    --link-color: #B2C0B2; /* Sage Green
    --section-bg: #F6F7EC;
} */
body.light-mode {
    --bg-color: #FFF8F0;
    --text-color: #4B3B40;
    --link-color: #D9A5B3; /* Soft Rose */
    --section-bg: #FFF1F7;
}

/* Dark Mode */
/* body.dark-mode {
    --bg-color: #1a1a2e;
    --text-color: #f8f9fa;
    --link-color: #C7BFD9;  Lavender 
    --section-bg: #333; Darker background for sections
} */
body.dark-mode {
    --bg-color: #2D1B2E;
    --text-color: #F5E9F0;
    --link-color: #D9A5B3;
    --section-bg: #3B223F;
}

/* Fade-in and Fade-out animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.fade-out {
    opacity: 1;
    animation: fadeOut 1.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* Toggle Switch Styling */

#theme-toggle {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.2em;
}

.toggle-slider {
    width: 40px;
    height: 20px;
    background: #f7e9ee;
    border-radius: 10px;
    margin: 0 8px;
    position: relative;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: #B2C0B2;
    border-radius: 50%;
    transition: 0.3s;
    top: 1px;
    left: 1px;
}

#theme-toggle:checked + .toggle-label .toggle-slider {
    background: #3B223F;
}


#theme-toggle:checked + .toggle-label .toggle-slider {
    background: #333;
}

#theme-toggle:checked + .toggle-label .toggle-slider::before {
    transform: translateX(20px);
    background: #C7BFD9;
}

.download-btn {
    color: #F6F7EC;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 22px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 20px;
    max-width: fit-content;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-img {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

/* Location block */
.map {
    border: 0;
    width: 100%;
    max-width: 600px;
    height: 400px;
  }

.rsvpForm {
    border: 0;
    width: 100%;
    max-width: 600px;
    height: 800px;
  }

.party-img {
    height: 330px;
    width: 230px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  .modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: 300px;
  }
  
  .modal input {
    width: 100%;
    padding: 0.5rem;
    margin: 10px 0;
    font-size: 1em;
  }
  
  .modal button {
    padding: 0.5rem 1rem;
    font-size: 1em;
    background-color: #b2c0b2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  #error-message {
    color: red;
    margin-top: 10px;
    font-size: 0.9em;
  }
  
  #petalCanvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}
