/* GENERAL PAGE STYLE */
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #ffd6e8, #fff5f9);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* IMPORTANT: use auto so the timeline can scroll on phone */
  overflow-x: hidden;
  overflow-y: auto;
}

/* MAIN CARD */
.card {
  background: white;
  padding: 35px 25px;
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  width: 88%;
  max-width: 430px;
  position: relative;
  margin: 25px 0;
}

.heart {
  font-size: 48px;
  animation: pulse 1.2s infinite;
}

h1 {
  color: #ff4f8b;
  font-size: 34px;
  margin-bottom: 15px;
}

p {
  color: #555;
  font-size: 17px;
  line-height: 1.5;
}

/* YES / NO BUTTONS */
.buttons {
  margin-top: 30px;
  height: 90px;
  position: relative;
}

button {
  border: none;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.25s;
}

#yesBtn {
  background: #ff4f8b;
  color: white;
  margin-right: 20px;
}

#yesBtn:hover {
  transform: scale(1.1);
}

#noBtn {
  background: #eee;
  color: #333;
  position: absolute;
}

#message {
  display: none;
  color: #ff4f8b;
  font-weight: bold;
  font-size: 20px;
  margin-top: 20px;
}

/* OLD FORM STYLE */
.question {
  margin: 25px 0;
  text-align: left;
}

.question label {
  display: block;
  margin: 10px 0;
  color: #444;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  min-height: 90px;
}

.submit-btn {
  background: #ff4f8b;
  color: white;
  margin-top: 20px;
}

/* MULTIPLE CHOICE QUESTIONS PAGE */
.choice-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.choice-btn {
  background: #fff0f6;
  color: #ff4f8b;
  border: 2px solid #ffb6d2;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s ease;
  width: 100%;
}

.choice-btn:hover {
  background: #ff4f8b;
  color: white;
  transform: scale(1.03);
}

#progressText {
  margin-top: 20px;
  font-size: 14px;
  color: #999;
}

/* TIMELINE PAGE */
.timeline-card {
  max-width: 430px;
  margin: 25px 0;
}

.cute-line {
  border: none;
  height: 2px;
  background: #ffd1e3;
  margin: 25px 0;
}

.timeline {
  margin-top: 25px;
  position: relative;
}

.timeline-item {
  background: #fff7fb;
  border: 2px solid #ffd1e3;
  border-radius: 18px;
  padding: 10px;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  transition: 0.25s ease;
}

.timeline-item:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 18px rgba(255, 79, 139, 0.15);
}

.timeline-item img {
  width: 75px;
  height: 75px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid white;
  flex-shrink: 0;
}

.timeline-text h2 {
  color: #ff4f8b;
  margin: 0 0 5px;
  font-size: 17px;
}

.timeline-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.final-love-note {
  background: #ffeff6;
  border-radius: 18px;
  padding: 15px;
  color: #ff4f8b;
  font-weight: bold;
  margin-top: 25px;
  font-size: 15px;
}

/* HEART ANIMATION */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* PHONE STYLE */
@media (max-width: 600px) {
  body {
    align-items: flex-start;
    padding: 15px 0;
  }

  .card {
    width: 88%;
    padding: 28px 18px;
    border-radius: 24px;
  }

  h1 {
    font-size: 27px;
  }

  p {
    font-size: 15px;
  }

  .heart {
    font-size: 42px;
  }

  button {
    font-size: 16px;
    padding: 12px 24px;
  }

  .timeline-card {
    max-width: 390px;
  }

  .timeline-item {
    flex-direction: row;
    text-align: left;
    padding: 9px;
    gap: 9px;
  }

  .timeline-item img {
    width: 70px;
    height: 70px;
  }

  .timeline-text h2 {
    font-size: 16px;
  }

  .timeline-text p {
    font-size: 12.5px;
  }
}
/* FORCE TIMELINE PHOTOS TO STAY SMALL */
.timeline-item img {
  width: 75px !important;
  height: 75px !important;
  max-width: 75px !important;
  max-height: 75px !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  flex-shrink: 0 !important;
}

/* Phone size */
@media (max-width: 600px) {
  .timeline-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
  }

  .timeline-item img {
    width: 65px !important;
    height: 65px !important;
    max-width: 65px !important;
    max-height: 65px !important;
  }
}