html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: black;
  font-family: Georgia, serif;
}

.screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

#screen3 {
  transition: none;
}

#screen1 { z-index: 10; }
#screen2 { z-index: 20; }
#screen3 { z-index: 30; }
#transitionScreen { z-index: 40; }
#rsvpScreen { z-index: 50; }

.video-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-screen .bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  text-align: center;
  color: black;
  z-index: 2;
  opacity: 1 !important;
  transition: none !important;
}

.overlay h1 {
  margin: 0 0 12px;
  font-size: 6vw;
}

.overlay p {
  margin: 0;
  font-size: 20px;
}

.tap-text {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  color: black;
  font-size: 25px;
  letter-spacing: 1px;
  z-index: 3;
}

.hidden {
  display: none;
}



.bottom-nav {
  position: absolute;
  bottom: 5%;

  width: 80%;              /* leaves 10% left + 10% right */
  left: 10%;

  display: flex;
  justify-content: space-between;  /*spreads buttons*/
  gap: 5%;                         /* space between buttons */

  /* z-index: 3; */
}

.bottom-nav .nav-button {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-button {
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid black;
  background: transparent;
  color: black;
  font-size: 18px;
  font-family: Georgia, serif;
  cursor: pointer;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.82);
}

.card-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}

.card {
  width: min(90vw, 420px);
  background: white;
  color: black;
  border-radius: 24px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 32px;
}

.card p {
  margin-bottom: 22px;
  font-size: 18px;
}

.card-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.card-buttons:first-of-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-buttons:first-of-type .nav-button {
  width: 100%;
}

.back-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

@media (max-width: 480px) {
  .card {
    width: min(92vw, 420px);
  }

  .card-buttons:first-of-type {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .card-buttons:first-of-type .nav-button {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }
}

.rsvp-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rsvp-choice-row .nav-button {
  width: 100%;
}