/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Georgia", serif;
}

 a, a:hover, a:focus, a:active {
      color: inherit;
 }

/* BODY WITH FULL-SITE BACKGROUND IMAGE */
body {
  background: url("assets/bg10.png") no-repeat center center fixed;
  background-size: cover;
  color: #000; /* text color */
  text-align: center;
}

/* GLOBAL CONTAINER */
.container {
  width: 95%;          /* nearly full width on small screens */
  max-width: 1200px;   /* prevents stretching on large screens */
  margin: 0 auto;      /* center horizontally */
}

/* BANNERS */
.banner {
  padding: 2rem 0rem;        /* top/bottom 4rem, left/right 1rem */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;       /* center images horizontally */
}

/* Mobile / tablet adjustments */
@media (max-width: 768px) {
  .banner {
    padding: 2rem 0.5rem;    /* smaller top/bottom and sides */
  }
}

/* BANNER HEADINGS */
.banner h1,
.banner h2 {
  font-size: clamp(24px, 5vw, 48px); /* dynamic scaling */
  margin-bottom: 1rem;
}

/* HIGHLIGHT TEXT */
.highlight {
  font-size: clamp(14px, 2vw, 20px);
  max-width: 600px;
  margin: auto;
}

/* SECTIONS */
.section {
  padding: 1.5rem 1rem;
}

.section h2 {
  font-size: clamp(20px, 4vw, 36px);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: clamp(14px, 2.5vw, 18px);
  margin-bottom: 2rem;
  font-style: italic;
}

/* EVENT DETAILS */
.details-grid {
  display: grid;
  gap: 2rem;
  max-width: 600px;
  margin: auto;
}

.details-grid h4 {
  font-size: clamp(14px, 2vw, 18px);
  margin-bottom: 0.3rem;
}

/* GODPARENTS */
.names p {
  font-size: clamp(14px, 1.8vw, 18px);
  margin: 0.5rem 0;
}

/* DRESSCODE */
.colors {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: bold;
  margin-top: 1rem;
}

/* RSVP BUTTON */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: clamp(14px, 1.8vw, 18px);
}

/* GIFT */
.gift-note {
  margin-top: 1rem;
  font-style: italic;
  font-size: clamp(12px, 1.5vw, 16px);
}

/* FOOTER */
footer {
  padding: 2rem;
  font-size: clamp(12px, 1.5vw, 16px);
  color: #777;
}

/* GREETING BANNER IMAGE */
.greeting-img {
  width: 100%;       /* responsive */
  height: auto;
  margin: 0 auto 1rem; /* center and space below */
  display: block;
  border-radius: 12px; /* optional: rounded edges */
}

/* MAKE ALL IMAGES RESPONSIVE */
img {
  max-width: 100%;
  height: auto;
}

/* MOBILE / TABLET RESPONSIVENESS */
@media (max-width: 768px) {
  .greeting-img {
    width: 100vw; /* full viewport width */
    max-width: 100%; /* prevents overflow */  
  }

  .container {
    width: 100%;  /* optional: container fills screen */
  }

  .banner h1,
  .banner h2 {
    text-align: center; /* wrap nicely on small screens */
  }

  .details-grid {
    grid-template-columns: 1fr; /* stack event details on small screens */
  }

  .event-items-container {
    padding-left: 2rem; /* reduce left padding on small screens */
    gap: 2rem;          /* reduce gap between items */
  }
}

/* ULTRA-LARGE SCREENS */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* ==========================
   RSVP FORM STYLES
========================== */
.rsvp-form-container {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#rsvpForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#rsvpForm input,
#rsvpForm textarea,
#rsvpForm button[type="submit"],
.attending-btn {
  font-size: clamp(14px, 2vw, 18px); /* dynamic scaling for all form text */
}

#rsvpForm textarea {
  resize: vertical;
  min-height: 80px;
}

#rsvpForm label {
  font-weight: bold;
  margin-top: 0.5rem;
}

/* Submit RSVP button ONLY */
#rsvpForm button[type="submit"] {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  cursor: pointer;
}

#rsvpForm button[type="submit"]:hover {
  background-color: #555;
}

/* Confirmation message */
.confirmation-message {
  margin-top: 1rem;
  font-style: italic;
  color: green;
}

/* Yes/No attending buttons */
.attending-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.attending-btn {
  flex: 1;
  padding: 0.8rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.1s;
  background-color: inherit;
  color: inherit;
}

/* Hover effect */
.attending-btn:hover {
  transform: scale(1.05);
}

/* Specific colors */
.attending-btn.yes {
  background-color: #d8f5d8;
  color: #000;
}

.attending-btn.no {
  background-color: #f5d8d8;
  color: #000;
}

/* Selected button state */
.attending-btn.selected {
  border: 2px solid #333;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  font-weight: bold;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.attending-btn.yes.selected {
  background-color: #bff0bf;
}

.attending-btn.no.selected {
  background-color: #f0bfbf;
}

/* ==========================
   EVENT ITEMS
========================== */
.event-items-container {
  display: flex;
  justify-content: left;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 0 8rem 0 8rem; /* top right bottom left */
}

/* Mobile / tablet adjustments */
@media (max-width: 768px) {
  .event-items-container {
    padding: 0 1rem 0 1rem; /* remove left/right padding on small screens */
    gap: 2rem;  /* optional: reduce gap for smaller screens */
  }
}

.event-item {
  display: flex;
  align-items: center; /* ensures icon matches .event-text height */
  gap: 5rem;
}

@media (max-width: 768px) {
  .event-item {
    gap: 1rem;         /* smaller spacing on mobile */
  }
}

.event-icon {
  width: clamp(60px, 10vw, 500px); /* responsive icon size */
  height: auto;
  flex-shrink: 0;                 /* prevent shrinking */
}

.event-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.event-text p {
  margin: 0.2rem 0;
}

.event-text .line1 {
  margin: 0.1rem 0;
  font-style: normal;
  font-size: clamp(12px, 2vw + 4px, 24px);
}

.event-text .line2 {
  color: #f29a00;
  margin: 0.1rem 0;
  font-style: normal;
  font-size: clamp(12px, 2vw + 4px, 32px);
}

.event-text .line3 {
  margin: 0.1rem 0;
  font-style: normal;
  font-size: clamp(12px, 2vw + 4px, 32px);
}

.event-text .line2 a,
.event-text .line2 a:link,
.event-text .line2 a:visited,
.event-text .line2 a:active {
  color: #f29a00 !important;
  text-decoration: underline !important;
}

.event-text .line2 a:hover {
  color: #d97706 !important;
}

/* THANK YOU DIALOG */
.thank-you-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.thank-you-dialog.hidden {
  display: none;
}

.thank-you-box {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.thank-you-box h3 {
  margin-bottom: 0.5rem;
}

.thank-you-box p {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.thank-you-box button {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
  cursor: pointer;
}

