* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111111;
}

body.login-page {
  overflow: hidden;
}

body.presentation-page {
  overflow: hidden;
  touch-action: pan-y;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.98);
}

.password-box {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 32px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.password-box h1 {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  margin-bottom: 12px;
}

.password-box p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
  color: rgba(0, 0, 0, 0.75);
}

.password-box input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 0 14px;
  font-size: 16px;
  outline: none;
  margin-bottom: 12px;
  appearance: none;
  border-radius: 0;
  background: #fff;
  color: #111;
}

.password-box button,
.rsvp-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.password-error {
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  color: #b00020;
}

#presentation {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100vh;
  overflow: hidden;
  background: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 2;
}

.slide-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-1 {
  background: #ffffff;
}

.save-the-date-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  max-width: 92vw;
  transform: translate(-50%, -50%);
}

.save-the-date-stage {
  position: relative;
  min-height: 420px;
}

.small-center-top {
  position: absolute;
  top: 6px;
  left: 182px;
  text-align: center;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 700;
  white-space: nowrap;
}

.word-save,
.date-big {
  position: absolute;
  font-weight: 900;
  line-height: 0.9;
  white-space: nowrap;
}

.word-save {
  top: 80px;
  left: 0;
  font-size: 120px;
}

.word-wtf {
  color: #A5BF13;
  font-family: "Shadows Into Light", cursive;
  font-weight: 900;
  font-size: 40px;
}

.feedback-until{
    color: #A5BF13;
    font-family: "Shadows Into Light", cursive;
    font-weight: 900;
    font-size: 20px;
}

.handwritten-text {
    font-family: "Shadows Into Light", cursive;
    font-size: 20px;
    font-weight: 500;
}

.date-big {
  top: 180px;
  left: 500px;
  font-size: 120px;
}

.left-info-1,
.left-info-2,
.left-info-3,
.right-info {
  position: absolute;
  font-size: 14px;
  line-height: 1.2;
}

.left-info-1 {
  top: 214px;
  left: 200px;
  font-weight: 700;
}

.left-info-2 {
  top: 236px;
  left: 200px;
}

.left-info-3 {
  top: 274px;
  left: 200px;
}

.vertical-line {
  position: absolute;
  top: 250px;
  left: 492px;
  width: 1px;
  height: 210px;
  background: #111111;
}

.right-info {
  top: 304px;
  left: 540px;
}

.map-preview {
  display: inline-block;
  margin-top: 10px;
}

.map-preview img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  filter: grayscale(1);
}

.map-preview:hover img {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  filter: grayscale(0);
}

.img-actionfigur {
  width: 130px;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.scroll-hint:hover {
    background-color:#f5f5f5;
}

.slide-generic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 80px;
  background: #f5f5f5;
  text-align: center;
}

.generic-content {
  width: 100%;
  max-width: 900px;
}

.generic-overline {
  margin-bottom: 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: rgba(0, 0, 0, 0.45);
}

.generic-title {
  margin-bottom: 16px;
  font-size: 78px;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.generic-subtitle {
  margin-bottom: 16px;
  font-size: 24px;
  color: rgba(0, 0, 0, 0.65);
}

.generic-text {
  max-width: 740px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.72);
}

.nav-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-dot.active {
  background: #111111;
  transform: scale(1.1);
}

.nav-dot-label {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.82;
}

.nav-dot.active .nav-dot-label,
.nav-dot:hover .nav-dot-label {
  color: rgba(0, 0, 0, 0.68);
  opacity: 1;
}

.logout-link {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 30;
  color: rgba(0, 0, 0, 0.35);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.logout-link:hover {
  color: rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.9);
}

.slide-rsvp {
  align-items: flex-start;
  padding-top: 7vh;
  overflow-y: auto;
}

.rsvp-form {
  max-width: 760px;
  margin: 24px auto 0;
  text-align: left;
}

.form-row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.form-row-2 {
  grid-template-columns: 2fr 1fr 1fr;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  border-radius: 0;
  appearance: none;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  margin-top: 8px;
}

.rsvp-submit {
  max-width: 240px;
}

.rsvp-message {
  max-width: 760px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}

.rsvp-message.success {
  border-color: rgba(165, 191, 19, 0.6);
  background: rgba(165, 191, 19, 0.09);
}

.rsvp-message.warning {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.12);
}

.rsvp-message.error {
  border-color: rgba(176, 0, 32, 0.25);
  background: rgba(176, 0, 32, 0.06);
}

@media (max-width: 1100px) {
  .save-the-date-wrap {
    transform: translate(-50%, -50%) scale(0.79);
    transform-origin: center center;
  }
}

@media (max-width: 900px) {
  .nav-dot-label {
    display: none;
  }
  .img-actionfigur{
    display: none;
  }

}

@media (max-width: 820px) {
  #presentation {
    height: 100dvh;
    height: 100svh;
  }

  .slide-1 .slide-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
  }

  .save-the-date-wrap {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 520px;
    transform: none;
  }

  .save-the-date-stage {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 28px;
    text-align: center;
  }

  .small-center-top,
  .word-save,
  .date-big,
  .left-info-1,
  .left-info-2,
  .left-info-3,
  .right-info,
  .vertical-line {
    position: static;
    left: auto;
    top: auto;

  }

  .small-center-top {
    white-space: normal;
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .word-save {
    font-size: clamp(41px, 12vw, 81px);
    line-height: 0.95;
    text-align: center;
  }

  .date-big {
    font-size: clamp(42px, 11vw, 64px);
    line-height: 1;
    margin-top: 6px;
  }

  .left-info-1,
  .left-info-2,
  .left-info-3,
  .right-info {
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
  }

  .left-info-1 {
    margin-top: 10px;
  }

  .vertical-line {
    display: none;
  }

  .right-info {
    margin-top: 8px;
  }

  .map-preview img {
    width: 120px;
    height: 120px;
  }

  .generic-title {
    font-size: 48px;
  }

  .generic-subtitle {
    font-size: 18px;
  }

  .generic-text {
    font-size: 16px;
  }

  .slide-generic {
    padding: max(32px, env(safe-area-inset-top)) 24px max(36px, env(safe-area-inset-bottom));
  }

  .scroll-hint {
    bottom: max(18px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 40px);
    text-align: center;
    letter-spacing: 0.12em;
    padding: 8px 12px;
    font-size: 10px;
  }



  .nav-dots {
    right: 14px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .rsvp-submit {
    max-width: none;
  }

  .logout-link {
    top: 12px;
    right: 12px;
    font-size: 11px;
  }
}

@media (max-width: 390px) {
  .word-wtf {
    font-size: 34px;
  }

  .small-center-top {
    font-size: 18px;
  }

  .word-save {
    font-size: clamp(35px, 11vw, 65px);
  }

  .date-big {
    font-size: clamp(36px, 10vw, 56px);
  }
}
.slide-closing {
  background: #f4efe6;
  padding: 40px 24px;
}

.closing-content {
  width: 100%;
  max-width: 980px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.closing-art {
  width: min(100%, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-image {
  width: min(100%, 760px);
  max-height: 78vh;
  object-fit: contain;
  display: block;
  filter: saturate(0.92) contrast(0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.closing-caption {
  font-size: 17px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.62);
  text-align: center;
}

@media (max-width: 820px) {
  .slide-closing {
    padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  }

  .closing-content {
    gap: 10px;
  }

  .closing-image {
    width: 100%;
    max-height: 72vh;
  }

  .closing-caption {
    font-size: 13px;
    letter-spacing: 0.18em;
  }
}