body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #fff;
}

.container {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 100px;
  margin-bottom: 1rem;
}

.subtitle {
  color: #bbb;
  margin-top: 0;
}

.card {
  background-color: #1e1e1e;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  text-align: left;
}

.card h2 {
  color: #ff7eb9;
}

.card ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}

footer {
  margin-top: 2rem;
  color: #888;
  font-size: 0.9rem;
  
}
.toggle-btn {
  white-space: nowrap;
  background-color: #ff69b4;
  color: #121212;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s ease;
  min-height: 48px;
  min-width: 120px;              /* ✅ force same button width */
}

.toggle-btn:hover {
  background-color: #ff569c;
  transform: scale(1.05);
}

@font-face {
  font-family: 'Nic';
  src: url('/assets/fonts/Nic-Regular.woff2') format('woff2'),
       url('/assets/fonts/Nic-Regular.woff')  format('woff'),
       url('/assets/fonts/Nic-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;   /* pull top of line box down   */
  descent-override: 20%;  /* pull bottom of line box up  */
  line-gap-override: 0%;  /* kill the extra leading      */
}


#messageText {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.6s ease;
  position: relative;
  font-family: 'Nic', cursive;
  font-size: x-large;
  letter-spacing: -0.6px; 
  line-height: 1; 
  margin: 0 0 1em;   
}



#messageText.expanded {
  max-height:none; 
  overflow:visible;
}

#moreText {
  opacity: 1;
  transition: opacity 0.5s ease;
  display: inline;
}

#messageText:not(.expanded) #moreText {
  opacity: 0;
  display: none;
}

/* Theme Toggle Button */
.theme-icon-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.theme-icon-toggle img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.theme-icon-toggle:hover img {
  transform: scale(1.2);
}

/* Light Mode Styles */
body.light-mode {
  background-color: #f2f2f2;
  color: #222;
}

body.light-mode .card {
  background-color: #ffffff;
  color: #222;
}

body.light-mode footer {
  color: #666;
}

body.light-mode .subtitle {
  color: #555;
}

body.light-mode .toggle-theme {
  background-color: #ddd;
  color: #000;
}

.unauth-container {
  max-width: 600px;
  margin: 10vh auto;
  padding: 2rem;
  background-color: #1e1e1e;
  color: white;
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  font-family: 'Poppins', sans-serif;
}

.unauth-container h1 {
  color: #ff7eb9;
  margin-bottom: 1rem;
}

.unauth-container p {
  color: #ccc;
}

.unauth-home {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background-color: #ff7eb9;
  color: #121212;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.unauth-home:hover {
  background-color: #ff569c;
}

.countdown-card {
  background: #f5f5f5;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s ease;
}

.countdown-card:hover {
  transform: scale(1.01);
}

.event-label {
  font-weight: 600;
  font-size: 1rem;
  color: #d63384;
}

.countdown-time {
  font-family: monospace;
  font-size: 1rem;
  color: #333;
}

.flip-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.flip-card {
  background: transparent;
  width: 200px;
  height: 200px;
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .5s ease-in-out;
  transform-style: preserve-3d;
}

.flip-front,
.flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 12px;
}

.flip-front img,
.flip-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-back {
  transform: rotateY(180deg);
}


.single-photo-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.single-photo-gallery img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#photoCaption {
  font-size: 1.1rem;
  text-align: center;
  font-style: italic;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease;
  
}

#photoCaption.photo-caption.visible {
  opacity: 1;
  visibility: visible;
}



.photo-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  flex-wrap: nowrap;           /* ❗ prevent wrapping entirely */
}

.photo-counter {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 4px;
  display: none; /* 🟢 starts hidden */
}

.gallery-photo {
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.auth-btn {
  background-color: #ff69b4;
  color: #121212;
  border: none; 
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.auth-btn:hover {
  background-color: #ff4392;
  transform: scale(1.05);
}

.auth-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}



.photo-caption {
  font-size: 1.1rem;
  margin-top: 0.5em;
 
}


  
.gallery-photo.visible {
  opacity: 1;
}

#loadingOverlay {
  position: fixed;
  inset: 0;
  background: #000000cc;
  color: white;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* 📱 Responsive styling for mobile */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
    width: 95%;
  }

  .logo {
    height: 70px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .card {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .toggle-btn {
  font-size: 0.85rem;
  padding: 8px 14px;
  min-width: 90px;
  min-height: 40px;
}


  footer {
    font-size: 0.8rem;
    padding-bottom: 1rem;
  }
}
