/* Wedding invitation custom styles */

/* Font family variables */
:root {
  --font-dancing: 'Dancing Script', cursive;
  --font-cormorant: 'Cormorant Garamond', serif;
  --font-playfair: 'Playfair Display', serif;
  --font-montserrat: 'Montserrat', sans-serif;
  
  /* Custom colors */
  --gold: #d4af37;
  --gold-light: #e9d18b;
  --emerald-dark: #1e5245;
  --emerald-light: #2a7d68;
  --blush: #f8c8c8;
  --charcoal: #333333;
  --cream: #f8f5f0;
}

/* Global styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* Allow scrolling on mobile */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth; /* Add smooth scrolling */
}

/* Fix for safe area insets on modern mobile browsers */
@supports (padding-top: env(safe-area-inset-top)) {
  .content {
    padding-top: calc(1rem + env(safe-area-inset-top));
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

body {
  font-family: var(--font-montserrat);
  color: #ffffff;
  line-height: 1.6;
}

/* Invitation container */
.invitation-container {
  position: relative;
  min-height: 100vh;
  height: 100vh; /* Fixed height */
  width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Decorative elements */
.decorative-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto;
  width: 80%;
  min-height: 20px;
}

.decorative-divider::before,
.decorative-divider::after {
  content: "";
  flex-grow: 1;
  height: 2px;
  background-color: var(--gold-light);
  margin: 0 15px;
}

.decorative-divider span {
  color: var(--gold);
  font-size: 1.2rem;
  padding: 0 10px;
}

/* Typography classes */
.elegant-script {
  font-family: var(--font-dancing);
  font-weight: 600;
}

.elegant-heading {
  font-family: var(--font-playfair);
  letter-spacing: 0.5px;
}

.elegant-serif {
  font-family: var(--font-cormorant);
  font-weight: 500;
}

.elegant-sans {
  font-family: var(--font-montserrat);
  letter-spacing: 0.5px;
}

.verse {
  font-family: var(--font-cormorant);
  font-style: italic;
  font-weight: 500;
  line-height: 1.8;
  font-size: 1.25rem;
}

.verse-reference {
  font-family: var(--font-montserrat);
  font-weight: 500;
  letter-spacing: 2px;
}

.couple-name {
  font-family: var(--font-dancing);
  font-weight: 700;
  font-size: 3.5rem;
  color: #1bb103;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.ampersand {
  font-family: var(--font-dancing);
  font-size: 2.5rem;
  color: var(--gold);
  margin: 0.5rem 0;
  display: inline-block;
}

.parent-names {
  font-family: var(--font-montserrat);
  font-weight: 400;
  letter-spacing: 1px;
  font-size: 1rem;
  font-weight: 600;
}

.invitation-heading {
  font-family: var(--font-montserrat);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
  font-size: 0.9rem;
}

.event-title {
  font-family: var(--font-playfair);
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.event-date {
  font-family: var(--font-playfair);
  font-weight: 600;
  font-size: 1.3rem;
}

.event-location {
  font-family: var(--font-montserrat);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.event-address {
  font-family: var(--font-montserrat);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.5;
}
a.event-address {
  color: #ffffff; /* Use gold-light color for better visibility */
  text-decoration: underline; /* Add underline to indicate it's a link */
  display: inline-block; /* Better touch target on mobile */
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

a.event-address:hover {
  color: var(--gold); /* Slightly brighter gold on hover */
}

.contact-info {
  font-family: var(--font-montserrat);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Border styles */
.elegant-border {
  border: 1px solid var(--gold-light);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  background-color: rgba(0, 0, 0, 0.307); /* Semi-transparent background */
  backdrop-filter: blur(5px); /* Blur effect behind the content */
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.elegant-border::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  /* border: 1px solid var(--gold-light); */
  border-radius: 2px;
  pointer-events: none;
}

/* Event card styles */
.event-card {
  /* background-color: rgba(255, 255, 255, 0.9); */
  /* border-radius: 8px; */
  /* padding: 1.5rem; */
  margin-bottom: 1.5rem;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); */
  /* border-left: 3px solid var(--emerald-light); */
  transition: transform 0.3s ease;
}


.event-card:hover {
  transform: translateY(-2px);
}

/* Responsive styles */
@media screen and (max-width: 640px) {
  /* Fix for top being cut off on mobile */
  .p-8 {
    padding-top: 3rem !important;
  }
  
  .couple-name {
    font-size: 2.5rem;
  }
  
  .verse {
    font-size: 1rem;
  }
  
  .event-title {
    font-size: 1.2rem;
  }
  
  .event-date {
    font-size: 1.1rem;
  }
  
  .elegant-border {
    padding: 1rem;
    margin: 0.5rem;
  }
  
  .invitation-heading {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }
  
  /* Mobile-specific scrolling fixes */
  .content {
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
    height: 100%;
    padding-top: 2rem; /* Add padding to the top */
  }
  
  body, html {
    height: -webkit-fill-available;
  }
  
  .invitation-container {
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
  }
  
  /* Fix for top being cut off */
  .elegant-border {
    margin-top: 1rem;
  }
  
  /* iOS-specific fix */
  @supports (-webkit-touch-callout: none) {
    .content {
      padding-top: 4rem;
    }
  }
}

@media screen and (min-width: 641px) and (max-width: 1024px) {
  .couple-name {
    font-size: 3rem;
  }
  
  .elegant-border {
    padding: 1.5rem;
  }
}

/* RSVP Button styles */

.rsvp-button-container {
  margin: 1rem auto;
}

.rsvp-button {
  display: inline-block;
  background-color: var(--gold);
  color: white;
  font-family: var(--font-montserrat);
  font-weight: 400;
  padding: 5px 10px;
  border: 2px solid var(--gold-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.rsvp-button:hover {
  background-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}



/* Responsive button styles */
@media screen and (max-width: 640px) {
  .rsvp-button {
    padding: 5px 5px;
    font-size: 0.8rem;
  }
}



.filters {
  position: fixed; /* Fix the background image */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.content {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  max-height: 100vh;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  padding-bottom: 2rem;
  padding-top: 1rem; /* Add padding to the top */
  position: relative;
  z-index: 10;
  touch-action: pan-y; /* Enable vertical touch scrolling */
}

.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background-color: var(--gold);
  border-radius: 20px;
}
