/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', cursive;
}

body {
  height: 100vh;
  background: linear-gradient(135deg, #f6d1f5, #e6d9ff);
  overflow: hidden;
}

/* ---------- INTRO ---------- */
.intro {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
  background: transparent;
}

/* Flowers container */
.flowers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

/* Each flower */
.flowers span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}

/* Flower positions */
.flowers span:nth-child(1)  { top: 10%; left: 10%; animation-delay: 0s; }
.flowers span:nth-child(2)  { top: 15%; left: 70%; animation-delay: 1s; }
.flowers span:nth-child(3)  { top: 25%; left: 30%; animation-delay: 2s; }
.flowers span:nth-child(4)  { top: 30%; left: 60%; animation-delay: 3s; }
.flowers span:nth-child(5)  { top: 40%; left: 50%; animation-delay: 4s; }
.flowers span:nth-child(6)  { top: 50%; left: 20%; animation-delay: 5s; }
.flowers span:nth-child(7)  { top: 55%; left: 75%; animation-delay: 6s; }
.flowers span:nth-child(8)  { top: 60%; left: 40%; animation-delay: 7s; }
.flowers span:nth-child(9)  { top: 70%; left: 60%; animation-delay: 8s; }
.flowers span:nth-child(10) { top: 75%; left: 25%; animation-delay: 9s; }
.flowers span:nth-child(11) { top: 85%; left: 50%; animation-delay: 10s; }
.flowers span:nth-child(12) { top: 90%; left: 70%; animation-delay: 11s; }

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(20deg);
  }
}

/* ---------- NOTERA BOX ---------- */
.notera-box {
  background: rgba(215, 178, 252, 0.3);
  border: 2px solid #a785e9;
  border-radius: 20px;
  padding: 20px 40px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(167, 135, 233, 0.3);
  margin-bottom: 15px;
  user-select: none;
  display: inline-block;
}

.intro h1 {
  font-size: 3rem;
  color: #8b5fbf;
  user-select: none;
}

.subtitle {
  font-size: 0.9rem;
  color: #e851bd;
  font-style: italic;
  margin-top: 5px;
  user-select: none;
}

/* Arrow */
.arrow {
  font-size: 2rem;
  cursor: pointer;
  animation: bounce 1.5s infinite;
  z-index: 15;
}

@keyframes bounce {
  50% {
    transform: translateY(10px);
  }
}

/* ---------- NOTEPAD ---------- */
.notepad {
  position: fixed;
  inset: 0;
  background: rgba(255, 240, 248, 0.95);
  padding: 25px;
  overflow-y: auto;
  z-index: 30;
}

h2 {
  text-align: center;
  color: #8b5fbf;
  margin-bottom: 15px;
}

/* ---------- INPUT ---------- */
.input-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

input,
select,
textarea {
  padding: 8px;
  border-radius: 12px;
  border: none;
  background: #f3e8ff;
}

textarea {
  resize: vertical;
  min-height: 40px;
  max-height: 80px;
}

/* ---------- TABS ---------- */
.section-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-tabs button {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  background: #e6d9ff;
}

/* ---------- NOTES ---------- */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}

.note {
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 5px 15px rgba(180, 140, 200, 0.3);
}

.note small {
  font-size: 0.7rem;
  display: block;
  margin-top: 5px;
}

.note textarea {
  width: 100%;
  margin-top: 5px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #d0b8f5;
}

/* ---------- COLORS ---------- */
.pink      { background: #fbe7f2; }
.lavender { background: #efe3ff; }
.peach    { background: #ffe5d4; }
.mint     { background: #e6fff4; }

/* ---------- COMPLETION ---------- */
.completion {
  text-align: center;
  padding: 40px;
  animation: popIn 0.6s ease;
  color: #6f20cb;
}

.completion h2 {
  font-size: 2.6rem;
  margin-bottom: 10px;
  text-shadow: 0 4px 12px rgba(111, 32, 203, 0.4);
}

#progressText {
  font-size: 1.4rem;
  font-weight: 600;
  color: #e851bd;
}

/* Pop animation */
@keyframes popIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ---------- CONFETTI ---------- */
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.confetti span {
  position: fixed;
  top: -10px;
  font-size: 2.2rem;
  opacity: 1;
  animation: fall 2.2s ease-out forwards;
}

@keyframes fall {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) scale(1.4) rotate(360deg);
    opacity: 0;
  }
}

/* ---------- UTIL ---------- */
.hidden {
  display: none;
}
/* ---------- MOBILE RESPONSIVE FIXES ONLY ---------- */
@media (max-width: 600px) {

  body {
    overflow-x: hidden;
  }

  /* Intro */
  .intro h1 {
    font-size: 2.2rem;
  }

  .notera-box {
    padding: 16px 24px;
  }

  .subtitle {
    font-size: 0.8rem;
  }

  /* Arrow spacing */
  .arrow {
    margin-top: 12px;
  }

  /* Notepad padding */
  .notepad {
    padding: 16px;
  }

  /* Inputs full width */
  input,
  select,
  textarea {
    width: 100%;
    max-width: 100%;
  }

  .input-section {
    flex-direction: column;
    align-items: stretch;
  }

  /* Tabs wrap properly */
  .section-tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .section-tabs button {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* Notes grid mobile */
  .notes {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  /* Completion screen */
  .completion h2 {
    font-size: 2rem;
  }

  #progressText {
    font-size: 1.1rem;
  }
}
