@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #fff;
  overflow: hidden;
}

.background {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #f2f2f2, transparent 40%), radial-gradient(circle at 80% 30%, #ededed, transparent 45%), radial-gradient(circle at 50% 80%, #f7f7f7, transparent 50%);
  filter: blur(40px);
  z-index: -1;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.screen-hidden {
  display: none;
}

.screen-active {
  animation: fadeUp 1.2s ease forwards;
}

.screen-exit {
  animation: zoomOut 0.6s ease forwards;
}

.screen-enter {
  animation: zoomIn 0.8s ease forwards;
}

.container {
  max-width: 600px;
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #111;
}

.message {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 40px;
}

/* Buttons */
.action-btn {
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  border: 2px solid #111;
  background: transparent;
  color: #111;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Next button hover */
#nextBtn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Yes / No hover */
.yes-btn:hover {
  background: #4caf50;
  color: #fff;
  border-color: #4caf50;
}

.no-btn:hover {
  background: #f44336;
  color: #fff;
  border-color: #f44336;
}

.detail {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 40px;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.detail:hover {
  transform: scale(1.005);
}

.detail-text {
  max-width: 420px;
}

.detail-text h2 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}

.detail-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.detail-image img {
  width: 360px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.next-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.detail:hover .next-hint {
  opacity: 1;
}

.progress {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background: #111;
  transform: scale(1.4);
}

.valentine-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.button-group {
  display: flex;
  gap: 20px;
}

/* Floating hearts */
.heart-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.heart-container .heart {
  position: absolute;
  font-size: 2rem;
  color: #e25555;
  opacity: 0.8;
  animation: float 6s linear infinite;
}

.heart-container .heart:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.heart-container .heart:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
}

.heart-container .heart:nth-child(3) {
  left: 50%;
  animation-delay: 4s;
}

.heart-container .heart:nth-child(4) {
  left: 70%;
  animation-delay: 1s;
}

.heart-container .heart:nth-child(5) {
  left: 90%;
  animation-delay: 3s;
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(100vh) scale(0.8);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-20vh) scale(1.2);
    opacity: 0;
  }
}

/* JS-generated burst hearts */
.burst-heart {
  position: absolute;
  color: #e25555;
  opacity: 1;
  pointer-events: none;
  font-size: 18px;
  transition: transform 2.5s ease, opacity 2.5s ease;
}

/* Confetti */
.confetti {
  position: absolute;
  pointer-events: none;
  border-radius: 2px;
  transition: transform 2.5s ease, opacity 2.5s ease;
}

/* Animations for screens */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomOut {
  to {
    opacity: 0;
    transform: scale(0.92);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}