@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html, body {
  margin: 0px;
  min-height: 100%;
  background-image: url(BG.png);
  background-size: cover;
  background-position: 50% 50%;
}

button:focus-visible { outline: 2px solid #4a90e2 !important; }
a { text-decoration: none; }

/* ---------- FONTS ---------- */
@font-face { font-family: "Vividly-Regular"; src: url("./Vividly-Regular.ttf") format("truetype"); }
@font-face { font-family: "Rabbit-Regular"; src: url("./Rabbit-Regular.otf") format("truetype"); }
@font-face { font-family: "Winkle-Regular"; src: local("Winkle-Regular"); }
@font-face { font-family: "Peperrito Ornaments Regular"; src: url("./PeperritoOrnaments-Regular.ttf") format("truetype"); }

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.next {
  width: 100%;
  min-width: 390px;
  min-height: 644px;
  position: relative;
  overflow: visible;
  animation: pageFadeIn 0.8s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TYPING ANIMATION — "Where Should We Start?"
   ============================================================ */
.next .text-wrapper {
  position: absolute;
  top: calc(50.00% + 151px);
  left: calc(50.00% - 112px);
  font-family: "Vividly-Regular", Helvetica;
  font-weight: 400;
  color: #ff90c9;
  font-size: 20px;
  text-align: center;
  white-space: nowrap;
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid #ff90c9;
  width: 0;
  animation:
    typingTitle 2s steps(22, end) 0.3s forwards,
    blinkCaret 0.7s step-end 3,
    hideCaret 0s linear 2.4s forwards;
}
@keyframes typingTitle {
  from { width: 0; }
  to   { width: 224px; }
}
@keyframes blinkCaret {
  0%, 100% { border-color: transparent; }
  50%      { border-color: #ff90c9; }
}
@keyframes hideCaret {
  to { border-color: transparent; }
}

/* ============================================================
   LOG IN BUTTON (top left)
   ============================================================ */
.next .rectangle {
  top: 23px;
  width: 67px;
  height: 29px;
  position: absolute;
  left: calc(50.00% - 174px);
  background-color: #ffffff75;
  border-radius: 40px;
  border: 1px solid;
  border-color: #ff90c9;
  transition: all 0.3s ease;
}
.next .div {
  position: absolute;
  top: 33px;
  left: 38px;
  font-family: "Vividly-Regular", Helvetica;
  color: #ff90c9;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2;
}
.next .div:hover { color: #ff70b8; letter-spacing: 0.4px; }

/* ============================================================
   ABOUT ꕮ BUTTON
   ============================================================ */
.next .text-wrapper-2 {
  top: 24px;
  left: 341px;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 20px;
  position: absolute;
  color: #ff90c9;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.25s ease;
  z-index: 3;
}
.next .text-wrapper-2:hover { color: #ff70b8; }
.next .text-wrapper-2.active { transform: rotate(180deg); color: #ff70b8; }

/* ============================================================
   DECOR + CATEGORY ICONS
   ============================================================ */
.next .text-wrapper-3 {
  top: calc(50.00% - 229px);
  left: calc(50.00% - 37px);
  transform: rotate(6.37deg);
  position: absolute;
  width: 81px;
  filter: blur(6.5px);
  font-family: "Peperrito Ornaments Regular";
  color: #ffc4e2;
  font-size: 79px;
  text-align: center;
  white-space: nowrap;
}

.next .haii {
  top: 130px;
  left: calc(50.00% - 8px);
  width: 44px;
  height: 45px;
  position: absolute;
  aspect-ratio: 0.97;
  object-fit: cover;
  animation: floaty 3.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(-1deg); }
}

.next .text-wrapper-4 {
  top: 121px;
  left: calc(50.00% + 21px);
  font-family: "Vividly-Regular", Helvetica;
  font-size: 11px;
  position: absolute;
  color: #ff90c9;
  white-space: nowrap;
  transition: color 0.25s;
}
.next .text-wrapper-4:hover { color: #ff70b8; }

.next .text-wrapper-5 {
  top: calc(50.00% - 167px);
  left: calc(50.00% - 101px);
  transform: rotate(-14.03deg);
  position: absolute;
  width: 81px;
  filter: blur(6.5px);
  font-family: "Peperrito Ornaments Regular";
  color: #ffc4e2;
  font-size: 79px;
  text-align: center;
  white-space: nowrap;
}

.next .img {
  top: 194px;
  left: calc(50.00% - 87px);
  width: 41px;
  height: 42px;
  position: absolute;
  aspect-ratio: 0.97;
  object-fit: cover;
  animation: floaty 3.5s ease-in-out 0.4s infinite;
}

.next .text-wrapper-6 {
  top: 185px;
  left: calc(50.00% - 120px);
  font-family: "Vividly-Regular", Helvetica;
  font-size: 11px;
  position: absolute;
  color: #ff90c9;
  white-space: nowrap;
}

.next .text-wrapper-7 {
  top: calc(50.00% - 138px);
  left: calc(50.00% - 16px);
  transform: rotate(6.37deg);
  position: absolute;
  width: 81px;
  filter: blur(6.5px);
  font-family: "Peperrito Ornaments Regular";
  color: #ffc4e2;
  font-size: 79px;
  text-align: center;
  white-space: nowrap;
}

.next .haii-2 {
  top: 221px;
  left: calc(50.00% + 13px);
  width: 44px;
  height: 45px;
  position: absolute;
  aspect-ratio: 0.97;
  object-fit: cover;
  animation: floaty 3.5s ease-in-out 0.8s infinite;
}

.next .text-wrapper-8 {
  top: 212px;
  left: calc(50.00% + 45px);
  font-family: "Vividly-Regular", Helvetica;
  font-size: 11px;
  position: absolute;
  color: #ff90c9;
  white-space: nowrap;
}

.next .text-wrapper-9 {
  top: calc(50.00% - 76px);
  left: calc(50.00% - 80px);
  transform: rotate(-14.03deg);
  position: absolute;
  width: 81px;
  filter: blur(6.5px);
  font-family: "Peperrito Ornaments Regular";
  color: #ffc4e2;
  font-size: 79px;
  text-align: center;
  white-space: nowrap;
}

.next .haii-3 {
  top: 285px;
  left: calc(50.00% - 66px);
  width: 41px;
  height: 42px;
  position: absolute;
  aspect-ratio: 0.97;
  object-fit: cover;
  animation: floaty 3.5s ease-in-out 1.2s infinite;
}

.next .text-wrapper-10 {
  top: 276px;
  left: calc(50.00% - 114px);
  font-family: "Vividly-Regular", Helvetica;
  font-size: 11px;
  position: absolute;
  color: #ff90c9;
  white-space: nowrap;
}

.next .text-wrapper-11 {
  top: calc(50.00% - 52px);
  left: calc(50.00% + 5px);
  transform: rotate(6.37deg);
  position: absolute;
  width: 81px;
  filter: blur(6.5px);
  font-family: "Peperrito Ornaments Regular";
  color: #ffc4e2;
  font-size: 79px;
  text-align: center;
  white-space: nowrap;
}

.next .haii-4 {
  top: 307px;
  left: calc(50.00% + 34px);
  width: 44px;
  height: 45px;
  position: absolute;
  aspect-ratio: 0.97;
  object-fit: cover;
  animation: floaty 3.5s ease-in-out 1.6s infinite;
}

.next .text-wrapper-12 {
  top: 298px;
  left: calc(50.00% + 68px);
  font-family: "Vividly-Regular", Helvetica;
  font-size: 11px;
  position: absolute;
  color: #ff90c9;
  white-space: nowrap;
}

.next .text-wrapper-13 {
  top: calc(50.00% + 10px);
  left: calc(50.00% - 59px);
  transform: rotate(-14.03deg);
  position: absolute;
  width: 81px;
  filter: blur(6.5px);
  font-family: "Peperrito Ornaments Regular";
  color: #ffc4e2;
  font-size: 79px;
  text-align: center;
  white-space: nowrap;
}

.next .haii-5 {
  top: 371px;
  left: calc(50.00% - 45px);
  width: 41px;
  height: 42px;
  position: absolute;
  aspect-ratio: 0.97;
  object-fit: cover;
  animation: floaty 3.5s ease-in-out 2s infinite;
}

.next .text-wrapper-14 {
  top: 362px;
  left: calc(50.00% - 81px);
  font-family: "Vividly-Regular", Helvetica;
  font-size: 11px;
  position: absolute;
  color: #ff90c9;
  white-space: nowrap;
}

/* ============================================================
   INPUT BOX (ChatGPT-style, cute pink) 🎀
   ============================================================ */
.input-box {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  border: 1.5px solid #ff90c9;
  border-radius: 24px;
  padding: 10px 12px 8px;
  box-shadow: 0 6px 20px rgba(255, 144, 201, 0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s, box-shadow 0.25s;
  z-index: 6;
  animation: inputPulse 3s ease-in-out 3s infinite;
}
.input-box:focus-within {
  border-color: #ff70b8;
  box-shadow: 0 6px 24px rgba(255, 144, 201, 0.45);
}
@keyframes inputPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(255, 144, 201, 0.25); }
  50%      { box-shadow: 0 6px 26px rgba(255, 144, 201, 0.45); }
}

/* ---------- IMAGE PREVIEW ---------- */
.image-preview {
  display: none;
  max-height: 130px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #ffd6ea;
  box-shadow: 0 4px 12px rgba(255, 144, 201, 0.35);
  margin-bottom: 4px;
  align-self: flex-start;
  animation: bubbleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.image-preview.show { display: block; }

/* ---------- TEXTAREA ---------- */
.ask-input {
  width: 100%;
  min-height: 24px;
  max-height: 120px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 15px;
  line-height: 1.4;
  color: #ff70b8;
  padding: 4px 6px;
  overflow-y: auto;
  scrollbar-width: none;
}
.ask-input::-webkit-scrollbar { display: none; }
.ask-input::placeholder {
  color: #ffafd8;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 15px;
}

/* ---------- BOTTOM ACTION ROW ---------- */
.input-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
}

.plus-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffe4f1;
  color: #ff70b8;
  font-family: "Winkle-Regular", Helvetica;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.plus-btn:hover {
  background: #ffd6ea;
  transform: scale(1.08);
}
.plus-btn.active {
  transform: rotate(45deg) scale(1.08);
  background: #ff90c9;
  color: #fff;
}

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb3d9, #ff90c9);
  color: #ffffff;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 144, 201, 0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}
.send-btn:hover {
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 6px 18px rgba(255, 144, 201, 0.7);
}
.send-btn:active { transform: scale(0.94); }

/* ============================================================
   ABOUT DROPDOWN
   ============================================================ */
.about-dropdown {
  position: absolute;
  top: 56px;
  right: 14px;
  width: 200px;
  background: #fff5fa;
  border: 1.5px solid #ff90c9;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(255, 144, 201, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.95);
  transform-origin: top right;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 998;
}
.about-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.about-item {
  padding: 10px 14px;
  border-radius: 12px;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 13px;
  color: #ff70b8;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.about-item:hover {
  background: #ffe4f1;
  padding-left: 18px;
}

/* ============================================================
   PLUS BOTTOM SHEET
   ============================================================ */
.plus-sheet {
  position: absolute;
  bottom: 118px;
  left: 20px;
  width: 180px;
  background: #fff5fa;
  border: 1.5px solid #ff90c9;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 10px 28px rgba(255, 144, 201, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom left;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 998;
}
.plus-sheet.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.plus-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 13px;
  color: #ff70b8;
  cursor: pointer;
  transition: background 0.2s ease;
}
.plus-item:hover { background: #ffe4f1; }
.plus-icon { font-size: 16px; }

/* ============================================================
   LOGIN POPUP
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 220, 235, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1000;
}
.popup-overlay.show { opacity: 1; pointer-events: auto; }

.login-popup {
  position: relative;
  width: 300px;
  padding: 28px 24px 22px;
  background: #fff5fa;
  border: 2px solid #ff90c9;
  border-radius: 26px;
  box-shadow: 0 12px 40px rgba(255, 144, 201, 0.4);
  font-family: "Vividly-Regular", Helvetica;
  transform: translateY(20px) scale(0.94);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.popup-overlay.show .login-popup { transform: translateY(0) scale(1); }

.popup-decor {
  position: absolute;
  width: 26px;
  height: 27px;
  object-fit: cover;
  animation: gentleWiggle 4s ease-in-out infinite;
}
.popup-decor-1 { top: -14px; left: 18px; }
.popup-decor-2 { top: -14px; right: 18px; animation-delay: 0.5s; }

@keyframes gentleWiggle {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 16px;
  color: #ff90c9;
  cursor: pointer;
  transition: transform 0.2s;
}
.popup-close:hover { transform: rotate(90deg) scale(1.2); }

.popup-title {
  font-size: 20px;
  color: #ff70b8;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.popup-sub {
  font-size: 13px;
  color: #ffafd8;
  text-align: center;
  margin-bottom: 20px;
  font-family: "Single Day", cursive;
}

.input-group { margin-bottom: 14px; }
.input-group label {
  display: block;
  font-size: 13px;
  color: #ff90c9;
  margin-bottom: 5px;
  padding-left: 4px;
}
.input-group input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid #ffd6ea;
  background: #ffffff;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 14px;
  color: #ff70b8;
  outline: none;
  transition: all 0.25s ease;
}
.input-group input:focus {
  border-color: #ff90c9;
  box-shadow: 0 0 0 3px rgba(255, 144, 201, 0.2);
}
.input-group input::placeholder { color: #ffc4e2; }

.popup-btn {
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #ffb3d9, #ff90c9);
  color: #ffffff;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(255, 144, 201, 0.4);
}
.popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 144, 201, 0.6);
}

.popup-skip {
  width: 100%;
  background: none;
  border: none;
  color: #ffafd8;
  font-family: "Single Day", cursive;
  font-size: 13px;
  margin-top: 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.popup-skip:hover { color: #ff70b8; }

/* ============================================================
   BUBBLE-IN (for image preview)
   ============================================================ */
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}