/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  --official-background: #fdf9f5;
  --timeline-buttons: #cb6b4d;
  --footer: #24424b;
}

@font-face {
  font-family: 'The Seasons';
  font-style: normal;
  font-weight: normal;
  src: local('The Seasons'), url('theseasons.ttf') format('truetype');
}

@font-face {
  font-family: 'Avant Garde Gothic';
  font-style: normal;
  font-weight: normal;
  src: local('Avant Garde Gothic'), url('avantgarde.otf') format('truetype');
}

body {
    font-family: 'Avant Garde Gothic';
    background-color: var(--official-background);
    color: #333;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.parallax {
  background-image: url('images/image1.jpg');
  height: 100vh; /* Ensure it covers the full screen */
  background-attachment: fixed; /* Creates the parallax effect */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;

  display: flex;
}

/* Parallax Effect for Mobile Devices (Using transform instead) */
@media screen and (max-width: 768px) {
    header.parallax {
        background-attachment: scroll; /* Disable fixed background on mobile */
        background-position: center;
        background-size: cover;
        position: relative;
        display: flex;
        justify-content: flex-start;
    }
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-content p {
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Photo Gallery */
.photo-gallery {
    padding: 3rem 2rem;
    background-color: var(--official-background);
    text-align: center;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
}

.image-container {
    position: relative;
}

.thumbnail {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
}

.image-toggle {
    display: none;
}

.expanded {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.expanded-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-toggle:checked + label + .expanded {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Venue Information and Location Sections with Parallax Background Image Inside Blurb */
.church-info, .location {
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
}

.church-info-content, .location-content {
    max-width: 1200px;
    margin: 0 auto;
}

.blurb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for better contrast */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.blurb-overlay h3 {
    font-size: 2rem;
    margin-bottom: -0.5rem;
}

.blurb-overlay p {
    font-size: 1.2rem;
}

/* Parallax Background for Venue and Location */
/* General Parallax Effect for Desktop */
.parallax-bg {
    background-size: cover !important;
    background-position: center !important;
    padding: 3rem;
    position: relative;
    color: #fff;
    text-align: center;
    overflow: hidden;
    font-family: 'The Seasons';
    background-attachment: fixed !important; /* Desktop parallax effect */
    transition: background-position 0.1s ease-out; /* Optional: make the transition smoother */
}

/* Parallax Effect for Mobile Devices */
@media screen and (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll !important; /* Disable fixed background on mobile */
    }
}

/* Slideshow Section */
.slideshow {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
}

h2 {
    font-size: 3rem;
}

h2, h3 {
    font-family: 'The Seasons';
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--footer);
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
}

/* General styles for fade-in effect */
.fade-in {
    opacity: 0; /* Start off as invisible */
    /* transform: translateY(30px); /* Start with a slight downward motion */
    transition: opacity 1s ease-out, transform 1s ease-out; /* Smooth transition */
}

/* Class that will be added when the section enters the viewport */
.fade-in.visible {
    opacity: 1; /* Make the section visible */
    /* transform: translateY(0); /* Move the section to its normal position */
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        /* transform: translateY(30px); /* Optional: Add a slight vertical motion */
    }
    100% {
        opacity: 1;
        /* transform: translateY(0); /* Element reaches its normal position */
    }
}

/* Style for language buttons container */
#language-buttons {
    margin: 20px;
    text-align: center;
    display: flex; 
    flex-direction: row; 
}

/* Style for each button with glass effect */
#language-buttons button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4); /* Light border to mimic glass edge */
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
    color: white;
    border-radius: 30px; /* Rounded corners */
    cursor: pointer;
    transition: all 0.3s ease-in-out; /* Smooth transitions for hover, focus, etc. */
    margin: 0 10px; /* Space between buttons */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

@media (max-width: 768px) {
  #language-buttons {
      flex-direction: column;
      margin-left: 10vw;
  }

  #password-box {
    margin-left: 25vw;
  }

  #language-buttons button {
    margin-bottom: 10px;
  }
}
  
/* Hover effect for buttons */
#language-buttons button:hover {
    background: rgba(255, 255, 255, 0.4); /* Increase opacity on hover */
    transform: translateY(-4px); /* Lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

/* Active button state */
#language-buttons button:active {
    transform: translateY(2px); /* Pressed effect */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Softer shadow when pressed */
}

/* Focus state for accessibility */
#language-buttons button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5); /* Focus ring */
}

/* FAQ Section */
.faq-section {
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.faq-section.heading {
    background-image: url('images/venue-image2.jpg');
    padding: 60px 0;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 1rem;
    color: #555;
}

/* Colors Section */
.colors-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin-bottom: 3rem;
}

/* Color Item */
.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Color Swatch */
.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Hover Effect for Color Swatch */
.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Color Code Label */
.color-item p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin-top: 8px;
    text-transform: uppercase;
}

/* Tooltip */
.color-swatch::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.color-swatch:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 768px) {
    .colors-section {
        padding: 1.5rem;
        grid-template-columns: 1fr 1fr;
    }

    .color-item {
        flex-direction: row;
        text-align: left;
    }

    .color-swatch {
        margin-right: 1rem;
    }
}

/* Main section styles */
.schedule {
    padding: 60px 0;
    color: #333; /* Dark text for readability */
  }

.schedule .heading {
    color: white;
    padding: 120px 0;
    background-image: url('images/venue-image1.jpg');
}
  
  .schedule-content {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
  }
  
  /* Timeline line styles */
  .schedule-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    border-left: 2px solid #ddd; /* Subtle vertical line */
    transform: translateX(-50%);
  }
  
  /* Individual schedule items */
  .schedule-item {
    position: relative;
    display: flex;
    margin-bottom: 40px; /* Less space between items */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .schedule-item #time, .schedule-item #subheading {
    font-size: 1.5rem;
    font-family: 'The Seasons';
  }


  /* Hover effect for schedule item */
  .schedule-item:hover {
    transform: translateY(-5px); /* Lift the card on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Subtle shadow on hover */
  }
  
  .schedule-item:last-child {
    margin-bottom: 0; /* Remove margin on the last item */
  }
  
  .schedule-image {
    width: 70px;
    height: 70px;
    margin-right: 20px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f0f0f0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Slight shadow for image */
  }
  
  .schedule-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Modern card style for details */
  .schedule-details {
    flex: 1;
    padding: 20px 25px;
    background: #fff;
    border-radius: 12px; /* Rounded corners for a softer look */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Soft shadow around cards */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  /* Hover effect for details card */
  .schedule-details:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Deeper shadow on hover */
    transform: translateY(-5px); /* Slight lift for interaction */
  }
  
  /* Text styling */
  .schedule-details strong {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333; /* Darker text for strong elements */
    display: block;
    margin-bottom: 8px;
  }
  
  .schedule-details span {
    color: #777; /* Lighter color for regular text */
  }
  
  /* Circle dot at the start of each item */
  .schedule-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--timeline-buttons);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  
  /* Additional styles for the fade-in effect */
  .schedule.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  
  .password-protected {
    display: none;
  }

  .password-container {
      background-color: var(--official-background);
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      width: 300px;
  }

  h2 {
      text-align: center;
  }

  input[type="password"] {
      width: 100%;
      padding: 10px;
      margin: 10px 0;
      border-radius: 4px;
      border: 1px solid #ccc;
  }

  #passwordButton {
      width: 100%;
      padding: 10px;
      background-color: var(--official-background);
      color: black;
      border: none;
      border-radius: 4px;
      cursor: pointer;
  }

  #passwordButton:hover {
      background-color: var(--footer);
      color: white
  }

  .error {
      color: red;
      font-size: 12px;
      text-align: center;
  }

  @media (max-width: 768px) {
    .schedule-content {
        margin-left: 10px;
        margin-right: 10px;
    }

    .faq-section.heading {
        padding: 120px 0;
    }
  }