@import url("https://fonts.googleapis.com/css?family=Dosis:800|Lobster|Pacifico");

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#canvas {
  background: #ff93a6;
  position: absolute;
  width: 100%;
  height: 100%;
}

.o_heart {
  fill: #ffb3c3;
}
.i_heart {
  fill: #fce3e9;
}

.text {
  z-index: 1000;
  position: absolute;
  font-size: 3.5em;
  letter-spacing: 3px;
  font-family: "Dosis";
  font-weight: bold;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffb3c3;
  background: white;
  padding: 10px 20px;
  border-radius: 5px;
  border: 3px solid #fce3e9;
  box-shadow: 0 5px 6px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.arrow_container {
  width: 100%;
  height: 100px;
  position: fixed;
  border: 1px solid black;
  z-index: 1000;
  bottom: 15px;
  left: 0px;
}
/* Hide original text from Pen #1 */
.text {
  opacity: 0;
  pointer-events: none;
}

/* Romantic centered layout */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.94);
  padding: 48px 60px;
  border-radius: 36px;
  text-align: center;
  z-index: 50;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  min-width: 320px;
  max-width: 420px;
}

/* Softer typography */
.overlay h1 {
  margin: 0;
  font-size: 34px;
  color: #ff3f8b;
  font-weight: 600;
  letter-spacing: 0.6px;
}

/*subtitle*/
.subtitle {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: #888;
  letter-spacing: 0.8px;
  font-style: italic;
}

/* Divider line */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff9acb, #ff3f8b);
  border-radius: 2px;
  margin: 22px auto;
}

.question {
  font-size: 22px;
  margin: 22px 0 32px;
  color: #444;
  line-height: 1.5;
}

/* Button row */
.buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

#yesBtn {
  background: #ff3f8b;
  color: white;
}

#noBtn {
  background: #e6e6e6;
  position: relative;
}

/* Mobile polish */
@media (max-width: 480px) {
  .overlay {
    width: 85%;
    padding: 35px;
  }

  .buttons {
    flex-direction: column;
  }
}
.confetti {
  position: absolute;
  font-size: 16px;
  animation: confetti-fall 1.6s ease-out forwards;
  z-index: 100;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(120px) scale(0.8);
    opacity: 0;
  }
}
button {
  padding: 14px 30px;
  font-size: 18px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#yesBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 63, 139, 0.4);
}

#noBtn:hover {
  transform: scale(0.98);
}

.overlay {
  animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
.tiny-note {
  font-size: 14px;
  color: #777;
  margin-top: -20px;
  margin-bottom: 30px;
  font-style: italic;
}

/* tiny playful wobble on load */
@keyframes gentleWiggle {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  30% {
    transform: translate(-50%, -50%) rotate(0.4deg);
  }
  60% {
    transform: translate(-50%, -50%) rotate(-0.4deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

.overlay {
  animation: fadeIn 1.2s ease forwards, gentleWiggle 1.4s ease 1.2s;
}
