/* General Reset */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #FDFBF7;
  color: #333;
  padding-top: 60px;
}

header, footer, main {
  width: 100%;
}

/* Header and Navbar Styles */
header {
  width: 100%;
  background-color: #FDFBF7;
  border-bottom: 1px solid #ddd;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  position: relative;
}

.navbar {
  display: flex;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 400;
  padding: 5px;
  transition: background 0.3s;
}

.navbar a:hover {
  background: #f0f0f0;
}

.navbar a.active {
  text-decoration: underline;
  text-decoration-color: #A7C7E7;
}

/* RSVP Button */
.rsvp-btn {
  background: #A7C7E7;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 20px;
  border-radius: 1.5rem;
  transition: background 0.3s;
  position: relative;
}

.rsvp-btn:hover {
  background: #BED9EA;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: #A7C7E7;
  border: none;
  cursor: pointer;
  color: white;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 4px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger:active,
.hamburger:focus {
  background: #92b9d7;
  outline: none;
}

.hamburger:hover {
  background: #92b9d7;
  transform: scale(1.05);
}

/* Hero Section */
@keyframes revealHero {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 200px);
  background: url('images/hero-image.png') no-repeat center center;
  background-size: cover;
  margin-top: 20px;
  animation: revealHero 1.5s ease-in-out forwards;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  height: auto;
  background: transparent;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #92b9d7;
  margin-bottom: 10px;
  line-height: 1;
  white-space: nowrap;
}

.hero-content p {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1rem, 5vw, 2rem);
  color: #333;
  margin: 0;
}

/* Countdown Section */
.countdown-container {
    text-align: center;
    padding: 6rem 1rem;
    background: linear-gradient(135deg, #85B0DA, #A7C7E7);
    position: relative;
    overflow: hidden;
}

.countdown-container h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.countdown-label {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Mobile Adjustments */
@media (max-width: 768px) {
  .countdown-container {
      padding: 4rem 1rem; /* Reduce padding on mobile */
  }

  .countdown-container h2 {
      font-size: 2.5rem; /* Smaller title on mobile */
  }

  .countdown-wrapper {
      gap: 1rem; /* Reduce gap between items */
  }

  .countdown-number {
      width: 60px;
      height: 60px;
      font-size: 1.5rem; /* Scale down numbers */
  }

  .countdown-label {
      font-size: 0.8rem; /* Scale down labels */
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  font-size: 10px;
  color: #333;
  border-top: 1px solid #ddd;
}

/* Responsive Layout for Small Screens */
@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
    z-index: 1000;
    gap: 15px; /* Increased spacing between items */
  }

  .navbar.active {
    display: flex;
    animation: slideDown 0.3s ease-out; /* Add animation */
  }

  .navbar a {
    padding: 12px 20px; /* Increased padding */
    border-radius: 8px; /* Rounded corners */
    transition: all 0.3s ease;
    font-weight: 500; /* Slightly bolder text */
    background: #f8f8f8; /* Light background for each item */
  }

  .navbar a:hover {
    background: #A7C7E7; /* Match your theme color */
    color: white;
    transform: translateX(5px); /* Slight movement on hover */
  }

  .navbar a.active {
    background: #A7C7E7;
    color: white;
    text-decoration: none; /* Remove underline for active state */
  }

  .hamburger {
    display: block;
    order: -1;
    z-index: 1001;
  }

  .rsvp-btn {
    order: 1;
    z-index: 1001;
  }
  
  .hero {
    height: calc(100vh - 300px);
  }
}

/* Add animation keyframes */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Overlay Styles */
.entry-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay-content {
  background: #fff;
  padding: 30px;
  border-radius: 5px;
  text-align: center;
}

.overlay-content h2 {
  margin-bottom: 20px;
  /* font-family: 'Work Sans', sans-serif; */
}

.overlay-content input {
  padding: 10px 20px;
  width: 250px;
  max-width: 50vw;
  border: 1px solid #ccc;
  border-radius: 3px;
  height: 41px;
  box-sizing: border-box;
  vertical-align: middle;
}

.overlay-content button {
  background: #A7C7E7;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 3px;
  color: #333;
  height: 41px;
  box-sizing: border-box;
  vertical-align: middle;
}

.overlay-content button:hover {
  background: #BED9EA;
}

.error-message {
  color: red;
  margin-top: 10px;
  font-size: 0.9rem;
}
.quiz-typeform {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quiz-typeform h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
  font-weight: 600;
}

.quiz-question {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #444;
}

.quiz-options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.quiz-option {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  padding: 15px 25px;
  border: none;
  border-radius: 12px;
  background: #A7C7E7;
  color: #333;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(167, 199, 231, 0.3);
}

.quiz-option:hover {
  background: #85B0DA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(167, 199, 231, 0.5);
}

.quiz-option:active {
  transform: translateY(0);
}

.quiz-progress {
  margin-top: 30px;
  font-size: 0.9rem;
  color: #666;
}

.quiz-score {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 20px 0;
}

.hidden {
  display: none;
}

button {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  padding: 10px 20px;
  margin: 10px 0;
  border: none;
  border-radius: 25px;
  background: #A7C7E7;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #85B0DA;
}

#leaderboard-container {
  text-align: center;
  max-width: 80%;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow-y: auto; /* Add scroll if content is too long */
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  margin: 8px 0;
  border-radius: 10px;
  transition: transform 0.2s;
  position: relative;
  background: white; /* Default background for all entries */
}

.position {
  min-width: 30px;
  text-align: left;
}

.name {
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  min-width: 60px;
  text-align: center;
}

.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.chat-widget.collapsed {
  height: 60px; /* Height of just the header */
  overflow: hidden;
}

.chat-widget.expanded {
  height: 400px;
}

.chat-header {
  padding: 15px;
  background: #92b9d7;
  color: white;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 20px;
}

#chat-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 20px;
  padding: 5px 10px;
}

.chat-widget.collapsed .minimize,
.chat-widget.expanded .maximize {
  display: none;
}

.chat-widget.collapsed .maximize,
.chat-widget.expanded .minimize {
  display: inline;
}

.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #FDFBF7;
}

.chat-input-container {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 10px;
  background: white;
}

#chat-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #A7C7E7;
  border-radius: 5px;
  font-size: 14px;
}

#chat-send {
  padding: 10px 20px;
  background: #92b9d7;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.chat-message {
  margin: 5px 0;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
}

.user-message {
  background: #E3F2FD;
  margin-left: auto;
}

.assistant-message {
  background: #F5F5F5;
  margin-right: auto;
}

/* Leaderboard Styles */
#leaderboard {
  background: white;
  padding: 20px;
  border-radius: 15px;
  max-width: 80%;
  margin: 20px auto;
}

#leaderboard h2 {
  font-family: 'Great Vibes', cursive;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  margin: 8px 0;
  border-radius: 10px;
  transition: transform 0.2s;
  position: relative;
}

/* First Place Styling */
.leaderboard-entry:first-child {
  background: linear-gradient(135deg, #FFD700, #FFEB3B); /* Bright gold to yellow */
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.leaderboard-entry:first-child::before {
  content: "👑";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

/* Second Place Styling */
.leaderboard-entry:nth-child(2) {
  background: linear-gradient(135deg, #FFF176, #FFF59D); /* Lighter yellow */
}

/* Third Place Styling */
.leaderboard-entry:nth-child(3) {
  background: linear-gradient(135deg, #FFF9C4, #FFFDE7); /* Very light yellow */
}

/* Other Places Styling */
.leaderboard-entry:nth-child(n+4) {
  background: #f5f5f5;
}

.position {
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 15px;
  min-width: 30px;
}

.name {
  flex-grow: 1;
  font-weight: 500;
}

.score {
  font-weight: bold;
  color: #333;
}

/* Animations */
.leaderboard-entry:hover {
  transform: translateX(5px);
}

.leaderboard-entry:first-child:hover {
  transform: scale(1.08);
}

/* Fun elements for first place */
.leaderboard-entry:first-child .score::after {
  content: " 🎉";
}

.leaderboard-entry:first-child .name::after {
  content: " ";
}

.quiz-complete {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.quiz-error {
    text-align: center;
    padding: 2rem;
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 8px;
}

.quiz-error button {
    margin-top: 1rem;
    background: #dc3545;
    color: white;
}

.quiz-error button:hover {
    background: #c82333;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 90%;
    width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

/* Leaderboard styles */
#leaderboard-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.leaderboard-grid {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    padding: 1rem;
    background: #f0f0f0;
    border-radius: 8px;
    font-weight: bold;
    text-align: left;
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    padding: 0.8rem;
    border-radius: 8px;
    align-items: center;
    transition: transform 0.2s;
}

.first-place {
    background: linear-gradient(135deg, #ffd700, #ffc800);
    transform: scale(1.02);
}

.second-place {
    background: linear-gradient(135deg, #C0C0C0, #E8E8E8);
}

.third-place {
    background: linear-gradient(135deg, #CD7F32, #DFA878);
}

.leaderboard-entry:not(.first-place):not(.second-place):not(.third-place) {
    background: #f5f5f5;
}

.position {
    font-weight: bold;
}

.name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 1rem;
}

.score {
    text-align: center;
    font-weight: bold;
}

/* Final score display */
.final-score {
    text-align: center;
    padding: 2rem;
}

.score-text {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #333;
}

.close-button {
    margin-top: 1rem;
    padding: 0.8rem 2rem;
    background: #A7C7E7;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.close-button:hover {
    background: #85B0DA;
}

/* Responsive design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .leaderboard-header,
    .leaderboard-entry {
        grid-template-columns: 60px 1fr 80px;
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    #leaderboard-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .name {
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .leaderboard-header,
    .leaderboard-entry {
        grid-template-columns: 30px 1fr 50px;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

/* Update leaderboard styles */
.leaderboard-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
}

.quiz-button {
    background: #A7C7E7;
    color: #333;
    font-size: 1.2rem;
    padding: 15px 30px;
    border-radius: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.quiz-button:hover {
    background: #85B0DA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 199, 231, 0.5);
}

.travel-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.option-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.option-card:hover {
    transform: translateY(-5px);
}

.option-card .icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 20px 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.step {
    margin-bottom: 30px;
    padding: 20px;
}

.step h2 {
    color: #A7C7E7;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 60px 20px;
  margin: 20px 0;
}

.section-header h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 3.5rem;
  color: #2c1810;
  margin: 0;
  text-align: center;
  position: relative;
}

.decorative-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #92b9d7, transparent);
  flex: 1;
  max-width: 150px;
}

@media (max-width: 768px) {
  .section-header {
    padding: 40px 15px;
  }
  
  .section-header h1 {
    font-size: 2.5rem;
  }
  
  .decorative-line {
    max-width: 80px;
  }
}

/* RSVP Modal Styles */
.rsvp-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.rsvp-modal.active {
    display: flex;
}

.rsvp-modal-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
}

.rsvp-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    z-index: 1;
    padding: 5px;
}

.rsvp-modal-close:hover {
    color: #666;
}

.rsvp-iframe-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: auto;
}

.rsvp-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.calendar-btn {
  background: white;
  color: #333;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
