body {
  background: linear-gradient(270deg, #e0cfff, #ffd6f6, #d6f0ff, #e0cfff);
  background-size: 600% 600%;
  animation: gradientBG 16s ease-in-out infinite;
  margin: 0;
  padding: 0;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  text-align: center;
}

h1 {
  color: #ff7eb9;
  font-size: 2.5em;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px #fff;
}

.timeline {
  position: relative;
  margin: 0 auto;
  padding: 20px 0;
  border-left: 4px solid #ffb3ec;
  max-width: 400px;
  text-align: left;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  font-weight: bold;
  color: #ff69b4;
  margin-bottom: 5px;
}

.timeline-content {
  background: #fff0fa;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.08);
  color: #a64ca6;
  font-size: 1.1em;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: #ffb3ec;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #ffb3ec;
}

@media (max-width: 600px) {
  .container {
    padding: 20px 5px 60px 5px;
  }
  .timeline {
    max-width: 98vw;
    padding: 10px 0;
  }
  h1 {
    font-size: 1.5em;
  }
  .timeline-content {
    font-size: 1em;
  }

  .timeline-item {
    margin-bottom: 30px;
    padding-left: 25px;
  }

  .timeline-item::before {
    left: -11px;
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px 5px 50px 5px;
  }

  h1 {
    font-size: 1.3em;
    margin-bottom: 30px;
  }

  .timeline-item {
    margin-bottom: 25px;
    padding-left: 20px;
  }

  .timeline-content {
    padding: 10px 15px;
    font-size: 0.95em;
  }
}

.love-letter {
  margin: 50px auto 0 auto;
  max-width: 500px;
  background: #fff0fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(255, 105, 180, 0.1);
  padding: 32px 24px;
  color: #a64ca6;
  text-align: left;
}

.love-letter h2 {
  color: #ff69b4;
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 1.6em;
  text-align: center;
  letter-spacing: 1px;
}

.love-letter p {
  font-size: 1.15em;
  line-height: 1.7;
  margin: 0;
  word-break: break-word;
}

.favourite-things-section {
  margin: 60px auto 0 auto;
  max-width: 600px;
  background: #fff0fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(255, 105, 180, 0.1);
  padding: 32px 24px 24px 24px;
  color: #a64ca6;
  text-align: center;
}

.favourite-things-section h2 {
  color: #ff69b4;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.4em;
  letter-spacing: 1px;
}

.favourite-things-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 18px;
  margin-bottom: 24px;
}

.fav-thing {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, #ffb3ec 60%, #fff0fa 100%);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 1em;
  padding: 0.8em 2em;
  font-size: 1.1em;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.08);
  min-height: 60px;
  word-break: break-word;
  overflow: hidden;
  text-align: center;
}

.fav-thing::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: rotate(25deg);
  animation: shimmer 2.5s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}

.fav-thing.revealed::before {
  display: none;
}

.fav-thing.revealed {
  background: #fff;
  color: #ff69b4;
  font-weight: bold;
  box-shadow: 0 2px 12px rgba(255, 105, 180, 0.15);
  cursor: default;
  border: 2px solid #ffb3ec;
}

.fav-thing.fading {
  animation: fadeOut 0.4s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.favourite-things-final {
  margin-top: 18px;
  color: #a64ca6;
  font-size: 1.1em;
  font-style: italic;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .favourite-things-section {
    padding: 18px 5px 14px 5px;
  }
  .favourite-things-grid {
    grid-template-columns: 1fr;
    gap: 12px 0;
  }
  .fav-thing {
    font-size: 1em;
    padding: 14px 6px;
    min-height: 48px;
  }
}

.affection-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 32px auto 0 auto;
  background: #fff0fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(255, 105, 180, 0.1);
  padding: 32px 24px 24px 24px;
  max-width: 400px;
}

.affection-box .kiss-button,
.affection-box .hug-button {
  width: 80%;
  min-width: 180px;
  max-width: 260px;
  background: linear-gradient(90deg, #ffb3ec 60%, #ff69b4 100%);
  color: #fff;
  border: none;
  border-radius: 2em;
  padding: 0.7em 2em;
  font-size: 1.2em;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.1);
  transition:
    background 0.2s,
    transform 0.2s;
  letter-spacing: 1px;
  position: relative;
  margin-bottom: 0;
}

.affection-box .kiss-button:hover,
.affection-box .hug-button:hover {
  background: linear-gradient(90deg, #ff69b4 60%, #ffb3ec 100%);
  transform: scale(1.05);
}

.affection-box .kiss-button.kissed,
.affection-box .hug-button.hugged {
  background: #fff0fa;
  color: #ff69b4;
  cursor: default;
  border: 2px solid #ffb3ec;
  transform: none;
}

.affection-box .hug-message {
  color: #ff69b4;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 10px;
  letter-spacing: 1px;
}

.virtual-hug-section {
  display: none;
}

.floating-bg-element {
  position: fixed;
  bottom: -40px;
  z-index: 0;
  pointer-events: none;
  animation: floatUp 7s linear forwards;
  user-select: none;
  filter: drop-shadow(0 2px 8px rgba(255, 105, 180, 0.15));
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-110vh) scale(1.2) rotate(20deg);
    opacity: 0;
  }
}

.quiz-section {
  margin: 60px auto 0 auto;
  max-width: 600px;
  background: #fff0fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(255, 105, 180, 0.1);
  padding: 32px 24px 24px 24px;
  color: #a64ca6;
  text-align: center;
}

.quiz-section h2 {
  color: #ff69b4;
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.4em;
  letter-spacing: 1px;
}

.quiz-question {
  margin-bottom: 22px;
  text-align: left;
}

.quiz-q {
  font-weight: bold;
  margin-bottom: 8px;
  color: #ff69b4;
}

.quiz-choice {
  display: block;
  margin: 6px 0 0 18px;
  font-size: 1.08em;
  cursor: pointer;
  border-radius: 6px;
  padding: 4px 8px;
  transition:
    background 0.2s,
    color 0.2s;
}

.quiz-choice input[type="radio"] {
  margin-right: 8px;
}

.quiz-choice.correct {
  background: #d6f0ff;
  color: #4a90e2;
  font-weight: bold;
}

.quiz-choice.wrong {
  background: #ffd6e0;
  color: #ff69b4;
}

.quiz-submit {
  margin-top: 18px;
  background: linear-gradient(90deg, #ffb3ec 60%, #ff69b4 100%);
  color: #fff;
  border: none;
  border-radius: 2em;
  padding: 0.7em 2em;
  font-size: 1.1em;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.1);
  transition:
    background 0.2s,
    transform 0.2s;
  letter-spacing: 1px;
}

.quiz-submit:hover {
  background: linear-gradient(90deg, #ff69b4 60%, #ffb3ec 100%);
  transform: scale(1.05);
}

.quiz-result {
  margin-top: 18px;
  font-size: 1.2em;
  color: #ff69b4;
  font-weight: bold;
}
