/* Import Fonts */
@font-face {
    font-family: 'HomemadeApple';
    src: url('../fonts/HomemadeApple-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Aptos'; /* Replace with your chosen base font family name */
    src: url('../fonts/Aptos.ttf') format('truetype'); /* Replace with your base font file */
    /* Add other weights/styles if available */
  }
  
  /* Color Variables */
  :root {
    --accent-1: #9dae11;
    --accent-2: #6a760c;
    --heading-color: #273e06;
    --button-color: #aed6bd;
    --button-text-color: #273e06;
    --secondary-border-color: #6c6153;
    --text-color-on-dark: #ffffff;
    --right-panel-bg: white; /* white */
    --body-text-color: #333333; /* Dark grey for body text on light background */
  }
  
  /* Global Styles */
  html {
      scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: 'Courier', 'Courier New', monospace;
    color: var(--body-text-color);
    background-color: var(--right-panel-bg); /* Fallback for when right panel doesn't cover */
    line-height: 1.6;
  }
  
  /* Layout */
  #left-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 65vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden; 
  }
  
  img.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* For <img> tags, similar to background-size: cover */
    opacity: 0;
    transition: opacity 0.7s ease-in-out; /* Controls the fade speed */
    will-change: opacity; 
  }
  
  img.image-layer.active-image-layer {
      opacity: 1;
  }
  
  #right-content-container {
    margin-left: 65vw; /* Changed from 50vw */
    width: calc(100vw - 65vw); /* Changed from 50vw, now 35vw */
    overflow-y: auto;
    background-color: var(--right-panel-bg);
    z-index: 2; /* Ensure content is above default background */
    position: relative; /* For z-index to work as expected */
  }
  
  .page-section {
    min-height: auto;
    padding: 30px 80px; /* Reduced padding for tighter sections */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top instead of center */
  }
  
  .page-section:last-of-type {
  }
  
  .section-content {
      max-width: 700px; /* Max width for readability */
      width: 100%; /* Take full width up to max-width */
      margin: 0 auto; /* Center content within the section */
      box-sizing: border-box; /* Include padding and borders in width calculation */
      text-align: center;
  }
  
  /* Ensure all child elements within section-content stay within bounds */
  .section-content * {
      max-width: 100%;
      box-sizing: border-box;
  }
  
  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0.75em;
    font-family: 'Courier', 'Courier New', monospace;
    line-height: 1.2;
  }
  
  .couple-names {
    font-family: 'HomemadeApple', cursive;
    font-size: 4.5rem; /* Large and impactful */
    text-align: center;
    margin-bottom: 0.25em;
    color: var(--heading-color);
    line-height: 1.5; /* Keep original line height for couple names */
  }
  
  h2 {
    font-size: 2.2rem; /* 35.2px / 16px = 2.2rem for desktop */
    padding-bottom: 0.5em; /* Increased padding to make space for the line */
    display: inline-block; /* So border only spans text width */
    position: relative; /* For the pseudo-element */
  }
  
  h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* This makes the line shorter than the text */
    height: 2px;
    background-color: var(--accent-1);
  }
  
  p {
    margin-bottom: 1em;
  }
  
  a {
    color: var(--accent-1);
    text-decoration: none;
  }
  
  a:hover {
    color: var(--accent-2);
    text-decoration: underline;
  }
  
  /* Welcome Section Specifics */
  #welcome .section-content {
      text-align: center;
  }
  
  .wedding-date-time, .wedding-location {
      font-size: 1.2rem;
      color: var(--heading-color);
      margin-bottom: 0.5em;
  }
  
  .wedding-date-time {
      margin-bottom: 30px; /* Add same spacing as to RSVP button */
  }
  
  #countdown-timer p {
      font-size: 1.1rem;
      color: var(--accent-2);
      margin: 20px 0;
  }
  
  .rsvp-button {
      display: inline-block;
      background-color: var(--accent-1); /* Was var(--button-color) */
      color: var(--heading-color);       /* Was var(--button-text-color) */
      padding: 14px 35px; /* Slightly increased padding */
      font-size: 1.1rem;
      font-weight: bold;
      border-radius: 5px;
      text-decoration: none;
      transition: background-color 0.3s ease, color 0.3s ease;
      border: 1px solid var(--accent-2); /* Adjusted border for new default state */
  }
  
  .rsvp-button:hover {
      background-color: var(--heading-color); /* Was var(--accent-1) */
      color: var(--text-color-on-dark);    /* Was var(--text-color-on-dark) - unchanged but good */
      text-decoration: none;
      border-color: var(--heading-color);
  }
  
  /* Schedule Section */
  #schedule ul {
      list-style: none;
      padding-left: 0; /* Reset default padding */
  }
  
  #schedule li {
      font-size: 1.1rem;
      padding: 12px 0; /* Adjusted padding for better spacing */
      position: relative; /* For positioning the pseudo-element */
      display: flex;
      justify-content: center;
      align-items: center;
  }
  
  #schedule li:not(:last-child)::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 80%; /* Makes the line shorter than full width */
      border-bottom: 1px dotted var(--secondary-border-color);
  }
  
  #schedule li strong {
      color: var(--heading-color);
      margin-right: 10px;
  }
  
  /* RSVP Form Styling */
  #rsvp form label {
      display: block;
      margin-top: 15px;
      margin-bottom: 5px;
      font-weight: bold;
      color: var(--heading-color);
  }
  
  #rsvp form input[type="text"],
  #rsvp form input[type="email"],
  #rsvp form select,
  #rsvp form textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid var(--secondary-border-color);
      border-radius: 4px;
      box-sizing: border-box; /* So padding doesn't add to width */
      margin-bottom: 10px;
  }
  
  #rsvp form textarea {
      min-height: 100px;
      resize: vertical;
  }
  
  /* Style for the Google Map embed container */
  .google-map-embed {
      margin-top: 20px;
      border-radius: 12px;
      overflow: hidden; /* Ensures the iframe respects the border-radius */
      box-shadow: 0 4px 20px rgba(0,0,0,0.1);
      line-height: 0; /* Prevents extra space below iframe if it's treated as inline-block */
      max-width: 100%; /* Ensure it doesn't exceed container width */
      width: 100%; /* Full width within the section-content container */
  }
  
  .submit-button {
      display: inline-block;
      background-color: var(--accent-1); /* Was var(--button-color) */
      color: var(--heading-color);       /* Was var(--button-text-color) */
      padding: 14px 35px; /* Slightly increased padding */
      font-size: 1.1rem;
      font-weight: bold;
      border-radius: 5px;
      text-decoration: none;
      border: 1px solid var(--accent-2); /* Adjusted border for new default state */
      cursor: pointer;
      margin-top: 20px;
      transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .submit-button:hover {
      background-color: var(--heading-color); /* Was var(--accent-1) */
      color: var(--text-color-on-dark);    /* Was var(--text-color-on-dark) - unchanged but good*/
      border-color: var(--heading-color);
  }
  
  /* Mobile Photo Gallery */
  #mobile-photo-gallery {
      display: none; /* Hidden by default on desktop */
      margin-top: 50px;
      text-align: center;
  }
  
  #mobile-photo-gallery .gallery-title {
      font-size: 1.8rem;
      color: var(--heading-color);
      margin-bottom: 25px;
      border-bottom: none; 
      font-weight: normal;
  }
  
  .photo-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 10px;
  }
  
  .photo-grid img {
      width: 100%;
      height: auto;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      transition: transform 0.2s ease;
  }
  
  .photo-grid img:hover {
      transform: scale(1.05);
  }
  
  /* Footer */
  .page-footer {
      text-align: center;
      padding: 30px;
      background-color: var(--heading-color); /* Dark footer background */
      color: var(--text-color-on-dark);
      font-size: 0.9rem;
  }
  
  .page-footer p {
      margin: 0;
  }
  
  /* Responsive Adjustments (Basic Example) */
  @media (max-width: 768px) {
      #left-image-container {
          display: none; /* Hide image on small screens, content takes full width */
      }
  
      #right-content-container {
          margin-left: 0;
          width: 100%;
      }
  
      .page-section {
          padding: 40px 25px; /* Adjusted padding for mobile */
      }
  
      .couple-names {
          font-size: 3rem;
      }
  
      h2 {
          font-size: 1.8rem; /* 28.8px / 16px = 1.8rem for mobile */
      }
  
      #mobile-photo-gallery {
          display: block; /* Show the gallery on mobile */
      }
  } 