/* RESET */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* BODY */
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #1b0b12, #050505);
  color: #fff;
  font-family: "Segoe UI", sans-serif;

  display: flex;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: none;
}

/* MAIN CONTAINER */
#container {
  width: 100%;
  max-width: 520px;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  margin-bottom: 80px;
}

/* TEXT */
#intro {
  font-size: 32px;
  font-weight: 600;
  color: #ffd6e7;
  text-shadow: 0 0 15px rgba(255,140,190,0.3);
}

#sub {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 24px;
}

/* BUTTON */
#chaosBtn {
  padding: 16px 44px;
  font-size: 18px;
  border-radius: 50px;
  border: none;
  background: linear-gradient(135deg,#ff8bb7,#ff5f9e);
  color: white;
  cursor: pointer;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* MEMORY */
#memory {
  margin-top: 28px;
}

#memory p {
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
}

/* =========================
   📸 SWIPE PHOTOS (FIXED)
========================= */

.swipe-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 12px;

  padding-left: 8%;
  padding-right: 8%;

  scroll-padding-left: 8%;
  scroll-padding-right: 8%;

  box-sizing: border-box;
  align-items: center;
}

.swipe-container::after {
  content: "";
  flex: 0 0 8%;
}




.swipe-container::-webkit-scrollbar {
  display: none;
}

.swipe-container img {
  flex: 0 0 100%;
  width: 100%;
  height: 70vh;
  max-height: 420px;

  object-fit: contain;     /* FULL image visible */
  background: #000;        /* clean padding */
  border-radius: 14px;

  scroll-snap-align: center;
}


/* =========================
   🎂 INTRO POPUP
========================= */

#birthdayModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#modalContent {
  position: relative;
  width: 90%;
  max-width: 420px;
}

#birthdayVideo {
  width: 100%;
  height: 50vh;
  max-height: 420px;
  border-radius: 18px;
  border: none;
  background: black;
}

/* PLAY OVERLAY */
#playOverlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 64px;
  background: rgba(0,0,0,0.45);
  border-radius: 18px;
  cursor: pointer;
  z-index: 5;
}

/* SKIP BUTTON */
#skipBtn {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   📱 MOBILE
========================= */

@media (max-width:480px) {
  #intro { font-size:26px; }
  #chaosBtn { font-size:16px; padding:14px 36px; }
  #birthdayVideo { height:42vh; }
}

/* =========================
   💻 DESKTOP
========================= */

@media (min-width:900px) {

  #container {
    max-width: 700px;
  }

  #intro {
    font-size: 40px;
  }

  #chaosBtn {
    font-size: 20px;
    padding: 18px 60px;
  }

  .swipe-container {
    justify-content: center;
  }

 .swipe-container img {
    flex: 0 0 auto;
    width: 360px;
    height: 420px;
    max-height: 420px;
  }
}
video {
  width: 100%;
  max-width: 420px;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 14px;
}
@media (min-width: 900px) {
  .swipe-container {
    padding-left: 60px;
    padding-right: 60px;
  }

  .swipe-container img {
    flex: 0 0 360px;
    width: 360px;
    height: 420px;
  }
}
