* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, serif;
  color: #222;
  background: #f2f2f2;
  min-height: 200vh;
}

/* sticky container keeps the card in view while scrolling */
.sticky-shell {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.wrapper {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 1240 / 1748;
  position: relative;
  background: url("assets/background.PNG") no-repeat center;
  background-size: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border-radius: 10px;
  overflow: hidden;
  pointer-events: auto;
}

/* shared panel base */
.panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.55);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

/* invitation panel */
#panel-invite {
  opacity: 1;
  transform: translateY(0);
}
#panel-invite.hide {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}

/* map panel */
#panel-map {
  opacity: 0;
  transform: translateY(40px);
  pointer-events: none;
}
#panel-map.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* language switch */
.lang-switch-top {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 12px;
  opacity: 0.75;
  z-index: 10;
}
.lang-switch-top button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  padding: 4px 6px;
  color: #444;
}
.lang-switch-top button:hover { opacity: 0.6; }
.lang-switch-top span { margin: 0 4px; opacity: 0.5; }

/* invitation text */
.subtitle { letter-spacing: 2px; font-size: 14px; color: #6a7c96; margin-bottom: 20px; }
.names    { font-size: 44px; }
.amp      { font-size: 60px; color: #aab7c9; }
.date     { margin-top: 30px; font-size: 20px; }
.location { margin-top: 20px; font-size: 16px; color: #555; }

/* map panel contents */
.maps-row {
  display: flex;
  gap: 16px;
  width: 92%;
  justify-content: center;
  align-items: flex-start;
}
.map-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map-heading {
  font-size: 11px;
  letter-spacing: 2px;
  color: #6a7c96;
  margin-bottom: 10px;
  text-align: center;
}
.map-frame-wrap {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  line-height: 0;
}
.map-frame-wrap iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}
.map-address {
  margin-top: 10px;
  font-size: 11px;
  color: #555;
  font-style: italic;
  text-align: center;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* mobile */
@media (max-width: 600px) {
  .names  { font-size: 32px; }
  .amp    { font-size: 44px; }
  .date   { font-size: 18px; }
  .lang-switch-top { top: 10px; right: 10px; font-size: 11px; }
  .maps-row { flex-direction: column; gap: 12px; }
  .map-frame-wrap iframe { height: 160px; }
}