/*** Body ***
  Purpose:
  - Set default styles for body
  - Define font, background, margin, padding
***/
body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(to right, #fff6f0, #ffe6e6);
    color: #333;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/*** Text Styles ***
  Purpose:
  - Define heading and paragraph styles
***/
h1 { color: #b85c7b; font-size: 3rem; }
h2, h3 { color: #5a2a41; }

/*** Buttons ***
  Purpose:
  - Style all buttons
  - Hover effects for interactivity
***/
button {
    background-color: #e89cae;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 10px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

button:hover {
    background-color: #d47c95;
    transform: scale(1.05);
}

/*** Header Container ***
  Purpose:
  - Flexbox layout for logo/title and buttons
  - Gradient background with shadow
***/
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #FFD6E8,#FFD6E5);
    padding: 20px 40px;
    border-radius: 16px;
    border: 2px solid #F8BBD0;
    box-shadow: 0 6px 16px rgba(214,51,132,0.25);
}

/*** Header Image ***
  Purpose:
  - Style logo image
***/
#header-img {
    width: 60px;
    border-radius: 50%;
    border: 2px solid #D63384;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/*** Header Buttons ***
  Purpose:
  - Style the dark mode & reduce motion buttons
***/
.header-button {
    background-color: #D63384;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    border: 2px solid #D63384;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-button:hover {
    background-color: #FF69B4;
    transform: scale(1.05);
}

/*** RSVP Section ***
  Purpose:
  - Flexbox layout for RSVP info and participants
***/
.rsvp-container {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.rsvp-para { width: 55%; }
.rsvp-participants { width: 45%; }

/*** Form Container ***
  Purpose:
  - Style RSVP form inputs and labels
***/
.form-container { margin-top: 20px; text-align: center; }
.form-group { margin-bottom: 15px; }
.form-group input { padding: 8px; width: 250px; }

/*** Modal ***
  Purpose:
  - Display pop-up after RSVP submission
***/
.modal {
  display: none; 
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* semi-transparent overlay */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-container {
  background-color: #f7e8f1; /* soft princess color */
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#modal-image {
  width: 150px;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
}







.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background-color: lightsteelblue;
    color: black;
    text-align: center;
    font-family: monospace;
    padding: 50px;
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#success-modal img {
    width: 150px;
    height: auto;
}

/*** Success Modal Styling ***
  Purpose:
  - Style RSVP success modal and image
***/
.modal {
    display: none;               /* hidden by default */
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); /* dark overlay */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background-color: #FDEFF7;   /* light feminine color */
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.modal-item img {
    width: 200px;                 /* adjust size */
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease; /* smooth rotation animation */
}

/*** Footer ***
  Purpose:
  - Fix footer at bottom
  - Set background and text colors
***/
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #FFD6E8;
    color: #D63384;
    text-align: center;
    padding: 15px 0;
    border-top: 2px solid #F8BBD0;
}

/*** Dark Mode ***
  Purpose:
  - Toggle colors for dark mode
***/
/*** Dark Feminine Mode ***/
body.dark-mode {
    background-color: #1B0E1B; /* deep plum */
    color: #F3E6F9; /* soft light rose text */
}

/* Header */
body.dark-mode .header-container {
    background: linear-gradient(to right, #2A0D2E, #3A103E, #4A1450);
    border: 2px solid #B48EAD; /* muted gold border */
}

/* Navbar */
body.dark-mode .navbar {
    background-color: #2A0D2E;
}

body.dark-mode .navbar a {
    color: #F3E6F9;
}

body.dark-mode .navbar a:hover {
    color: #D9A7C7; /* muted blush hover */
}

/* Buttons */
body.dark-mode button,
body.dark-mode .nav-btn {
    background-color: #3A103E;
    color: #F3E6F9;
    border: 1px solid #B48EAD;
}

body.dark-mode button:hover,
body.dark-mode .nav-btn:hover {
    background-color: #4A1450;
}

/* Footer */
body.dark-mode .footer {
    background-color: #2A0D2E;
    color: #F3E6F9;
}

/* Cards & sections */
body.dark-mode .card,
body.dark-mode section {
    background-color: #2A0D2E;
    border: 1px solid #B48EAD;
    color: #F3E6F9;
}



/* Navbar container */
.navbar ul {
    list-style: none; /* remove bullets */
    display: flex; /* make items horizontal */
    justify-content: center; /* center them */
    align-items: center; /* vertical align */
    gap: 20px; /* space between buttons */
    padding: 0;
    margin: 0;
}

/* Links in navbar */
.navbar a {
    text-decoration: none; /* remove underline */
    color: #ff69b4; /* princess pink */
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #d63384; /* darker pink hover */
}

/* Dark mode button in navbar */
.navbar .nav-btn {
    background-color: #ff69b4;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.navbar .nav-btn:hover {
    background-color: #d63384;
}

/* Links Section */
#links {
    display: flex;
    flex-wrap: wrap;        /* Wrap on smaller screens */
    gap: 20px;              /* Space between cards */
    justify-content: center; 
    padding: 20px 0;
}

#links a.block {
    text-decoration: none;  /* Remove underline */
    color: #5C5470;         /* Default text color */
    width: 250px;           /* Card width */
    border-radius: 15px;    
    background: linear-gradient(135deg, #ffe6f0, #ffd6e8);
    box-shadow: 0 4px 10px rgba(214, 51, 132, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;         /* Make the entire card clickable */
}

#links a.block:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 14px rgba(214, 51, 132, 0.4);
}

#links a.block article {
    padding: 15px;
    text-align: center;
}

#links a.block h3 {
    margin: 0 0 10px;
    color: #D63384;        /* Princess pink accent */
    font-size: 1.2rem;
}

#links a.block p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #5C5470;
}

