/* Base layout and theme */
body {
  font-family: 'Great Vibes', cursive;
  background: url('background-tiles.png');
  background-size: cover;
  background-attachment: fixed;
  color: #ffffff;
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
}

.dark-theme {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Header */
.topbar {
  background: rgba(0, 57, 91, 0.95);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ffffff;
  color: #ffffff;
}

.topbar h1 {
  margin: 0;
  font-size: 2.5rem;
  font-family: 'Great Vibes', cursive;
  color: #ffffff;
}

/* Profile section */
.profile-full {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Countdown style */
.countdown.card {
  background: rgba(255, 255, 255, 0.95);
  color: #003b5c;
  font-weight: bold;
  font-size: 1.5rem;
  border-left: 8px solid #005b96;
  padding: 2rem;
  text-align: center;
  border-radius: 18px;
  margin: 1rem;
  font-family: 'Great Vibes', cursive;
}

/* Generic card layout */
.card {
  background: rgba(0, 57, 91, 0.85);
  color: #ffffff;
  border-radius: 18px;
  margin: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, color 0.3s;
}

/* Event Details Highlight */
.event-details-highlight {
  margin: 2rem 1rem;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #004466, #006699);
  color: #ffffff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
  position: relative;
  overflow: hidden;
  font-family: 'Great Vibes', cursive;
}

.event-details-highlight h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.baby-title {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #ffddf4;
}

.event-info {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.event-note {
  margin-top: 1.5rem;
  font-style: italic;
  font-size: 1rem;
  color: #cceeff;
}

/* RSVP Form */
#rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

#rsvp-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
}

#rsvp-form label {
  margin-bottom: 0.2rem;
}

form input,
form textarea,
form button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  font-family: 'Great Vibes', cursive;
}

form input,
form textarea {
  background: #ffffff;
  color: #003b5c;
}

form button {
  background-color: #005b96;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
  max-width: 200px;
  align-self: center;
}

form button:hover {
  background-color: #003b5c;
}

/* Registry */
.registry-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.registry-item img {
  height: 90px;
  width: auto;
  transition: transform 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.registry-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(0, 57, 91, 0.9);
  font-size: 1rem;
  color: #ffffff;
  border-top: 2px solid #ffffff;
  font-family: 'Great Vibes', cursive;
}

/* Links */
a {
  color: #ffffff;
  text-decoration: underline;
}

a:hover {
  color: #cce6ff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Snap Feed */
.snap-feed {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

.snap-feed::-webkit-scrollbar {
  display: none;
}

.snap-story {
  position: relative;
  flex: 0 0 auto;
  width: 160px;
  height: 260px;
  background: #ccc;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.snap-story:hover {
  transform: scale(1.05);
}

.snap-story video,
.snap-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Modal popup (Snapchat-style full screen) */
.snap-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 0;
}

.snap-modal.show {
  display: flex;
}

.snap-modal video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: black;
}

/* Zelle Modal Styles */
.zelle-modal-content {
  background: white;
  color: #003b5c;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  font-family: 'Great Vibes', cursive;
}

.zelle-qr {
  width: 200px;
  margin-top: 1rem;
  border-radius: 12px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .event-details-highlight {
    padding: 1.5rem 1rem;
  }

  .event-details-highlight h2 {
    font-size: 1.6rem;
  }

  .baby-title {
    font-size: 1.3rem;
  }

  .event-info {
    font-size: 1rem;
  }

  .registry-item img {
    height: 50px;
  }

  #rsvp-form .form-group {
    max-width: 100%;
  }

  form button {
    width: 100%;
  }

  .story-card {
    width: 120px;
    aspect-ratio: 9 / 16;
  }

  .story-card .story-media p {
    padding: 8px;
    font-size: 12px;
  }
}

/* Stories Section */
.stories-section h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-family: 'Yeseva One', cursive;
  color: #fff;
  text-align: center;
}

.stories-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.story-card {
  flex: 0 0 auto;
  width: min(42vw, 200px);
  aspect-ratio: 10 / 16;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #000;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.story-card:hover {
  transform: scale(1.03);
}

.story-card .story-media {
  width: 100%;
  height: 100%;
  position: relative;
}

.story-card .story-media img,
.story-card .story-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  position: absolute;
  top: 0;
  left: 0;
}

.story-card .story-media p {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px;
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: white;
  font-size: clamp(12px, 3.5vw, 16px);
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
