/*─────────────────────────────────────────────────────────
  Variables: centralize your color palette & fonts here
─────────────────────────────────────────────────────────*/
:root {
  /* Backgrounds */
  --bg-page: #e0f7fa;       /* light cyan */
  --bg-table: #ffffff;      /* white */

  /* Text Colors */
  --text-primary: #006064;  /* deep teal */
  --text-secondary: #ff5722;/* orange-red */
  --text-heading: #ff5722;  /* for <h1> */
  --text-caption: #ff4081;  /* pink */
  --text-table-heading: #ffff00; /* yellow */
  --table-border: #444444;  /* dark gray */

  /* Accent Colors */
  --table-header-bg: #87cefa; /* sky blue */
  --table-text: #40e0d0;      /* turquoise */

  /* Font settings */
  --font-base: "Arial", sans-serif;
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
}

/*─────────────────────────────────────────────────────────
  Global Resets & Base Styles
─────────────────────────────────────────────────────────*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  text-align: center;
  padding: 20px;
  line-height: 1.5;
}

/* Visually hidden for screen-reader–only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*─────────────────────────────────────────────────────────
  Headings
─────────────────────────────────────────────────────────*/
header h1 {
  color: var(--text-heading);
  font-size: var(--font-size-xl);
  margin-bottom: 1rem;
}

.party-info h2 {
  font-size: var(--font-size-xl);
  color: var(--text-caption);
  margin-bottom: 0.5rem;
}

/*─────────────────────────────────────────────────────────
  Table Styles
─────────────────────────────────────────────────────────*/
table {
  width: 80%;
  max-width: 800px;
  margin: 1rem auto;
  border-collapse: collapse;
  background-color: var(--bg-table);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: bounceIn 1s ease;
}

th,
td {
  border: 2px dashed var(--table-border);
  padding: 0.75rem;
}

/* Table header row */
th {
  background-color: var(--table-header-bg);
  color: white;
  font-size: var(--font-size-lg);
}

/* Table body cells */
td {
  color: var(--text-primary);
  font-size: var(--font-size-base);
}

/*─────────────────────────────────────────────────────────
  Animations
─────────────────────────────────────────────────────────*/
@keyframes bounceIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/*─────────────────────────────────────────────────────────
  Images
─────────────────────────────────────────────────────────*/
.hero-image img,
.gallery-image img {
  width: 70%;
  max-width: 90vw;
  border-radius: 15px;
  margin-top: 1rem;
  transition: transform 0.3s ease;
}

.hero-image img:hover,
.gallery-image img:hover {
  transform: scale(1.05);
}

/*─────────────────────────────────────────────────────────
  Invitation Text
─────────────────────────────────────────────────────────*/
.invite-text p {
  font-size: var(--font-size-lg);
  margin-top: 1.5rem;
  color: var(--text-primary);
}

.emoji {
  font-size: 2rem;
}

/*─────────────────────────────────────────────────────────
  Spacer Utility
─────────────────────────────────────────────────────────*/
.spacer {
  height: 40px;
}

.countdown {
  font-size: 1.25rem;        /* slightly larger text */
  margin-bottom: 1rem;       /* space below the timer */
  color: var(--text-secondary); /* e.g. #ff5722 from earlier */
}

/*─────────────────────────────────────────────────────────
  RSVP Section
─────────────────────────────────────────────────────────*/
.rsvp-section {
  margin: 2rem auto;
  max-width: 600px;
  background-color: var(--bg-table);
  padding: 1.5rem;
  border: 2px dashed var(--table-border);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rsvp-section h2 {
  font-size: var(--font-size-xl);
  color: var(--text-heading);
  margin-bottom: 1rem;
}

/* Container that will be replaced by “Thank you” text on submit */
#rsvp-container {
  text-align: left;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Labels and inputs */
.rsvp-form label,
.rsvp-form legend {
  font-size: var(--font-size-base);
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.rsvp-form .required {
  color: red;
  margin-left: 2px;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
  padding: 0.5rem;
  font-size: var(--font-size-base);
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.rsvp-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.rsvp-form fieldset label {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  font-size: var(--font-size-base);
}

.rsvp-form fieldset input[type="radio"] {
  margin-right: 0.25rem;
}

/* Submit button */
.btn-submit {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  font-size: var(--font-size-base);
  background-color: var(--text-heading);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-submit:hover {
  transform: scale(1.05);
}

/* Thank-you message styling */
.thank-you {
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  text-align: center;
  line-height: 1.5;
}

/*─────────────────────────────────────────────────────────
  Countdown (optional tweaks)
─────────────────────────────────────────────────────────*/
.countdown {
  font-size: var(--font-size-lg);
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
