/* src/App.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  overflow: hidden;
  font-family:
    "Rancho",
    Georgia,
    serif;
}
#root {
  width: 100%;
  height: 100vh;
  position: relative;
}
.app {
  width: 100%;
  height: 100vh;
  background:
    linear-gradient(
      135deg,
      #ee6eec 0%,
      #e87bdc 50%,
      #e510d8 100%);
  position: relative;
  overflow: hidden;
}
.black-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 90px;
  opacity: 1;
  transition: transform 1.2s ease-in-out;
}
.black-screen.sliding {
  opacity: 0;
  transition: opacity 2s ease;
}
.puzzle-container {
  position: relative;
}
.puzzle-btn {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: default;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
  outline: none;
}
.puzzle-btn.active {
  background: rgba(255, 100, 130, 0.5);
  cursor: pointer;
  pointer-events: all;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.puzzle-btn.clicked {
  background: rgba(255, 100, 130, 0.5);
  pointer-events: none;
  cursor: default;
  animation: btn-fade-out 0.7s ease forwards;
}
@keyframes btn-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.puzzle-btn.ready {
  opacity: 0;
  animation: btn-fade-in 0.7s ease forwards, pulse-dot 1.8s ease-in-out infinite;
}
@keyframes btn-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 8px 3px rgba(255, 100, 130, 0.3), 0 0 16px 6px rgba(255, 100, 130, 0.15);
    background: rgba(255, 100, 130, 0.35);
  }
  50% {
    box-shadow: 0 0 14px 5px rgba(255, 100, 130, 0.6), 0 0 28px 10px rgba(255, 100, 130, 0.3);
    background: rgba(255, 100, 130, 0.65);
  }
}
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.floating-heart {
  position: absolute;
  bottom: -40px;
  color: rgba(255, 180, 200, 0.25);
  animation: float-up linear infinite;
  pointer-events: none;
  user-select: none;
}
@keyframes float-up {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg);
    opacity: 0;
  }
}
.main-heart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 1;
}
.heart-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.heart-svg {
  animation: superhero-glow 2.5s ease-in-out infinite alternate;
}
.heart-svg.pulsing {
  animation: superhero-glow 2.5s ease-in-out infinite alternate, heart-pulse 1s ease-in-out infinite;
}
@keyframes heart-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
@keyframes superhero-glow {
  from {
    filter: drop-shadow(0 0 15px rgba(255, 50, 80, 0.8)) drop-shadow(0 0 35px rgba(255, 80, 120, 0.6)) drop-shadow(0 0 70px rgba(255, 50, 80, 0.4)) drop-shadow(0 0 110px rgba(255, 120, 160, 0.25));
  }
  to {
    filter: drop-shadow(0 0 25px rgba(255, 50, 80, 1)) drop-shadow(0 0 55px rgba(255, 80, 120, 0.8)) drop-shadow(0 0 100px rgba(255, 50, 80, 0.55)) drop-shadow(0 0 160px rgba(255, 120, 160, 0.4));
  }
}
.heart-text {
  position: absolute;
  bottom: 45%;
  color: white;
  font-size: 2rem;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  max-width: 220px;
  line-height: 1.35;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.heart-text.fade-in {
  opacity: 1;
}
.heart-text.pulsing {
  animation: text-pulse 1s ease-in-out infinite;
}
@keyframes text-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
.response-buttons {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  opacity: 0;
  pointer-events: none;
}
.response-buttons.ready {
  animation: fade-in-up 0.6s ease 1.4s forwards;
  pointer-events: all;
}
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.response-btn {
  padding: 16px 30px;
  font-size: 1.4rem;
  font-family: Arial;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-width: 120px;
  text-align: center;
}
.response-btn.yes-style {
  background: #a81660;
  color: white;
  box-shadow: 0 4px 18px rgba(160, 0, 90, 0.45);
}
.response-btn.yes-style:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 24px rgba(160, 0, 90, 0.65);
}
.response-btn.no-style {
  background: #f0c4f5;
  color: #6b1578;
  box-shadow: 0 4px 12px rgba(120, 0, 150, 0.2);
}
.response-btn.no-style:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(120, 0, 150, 0.35);
}
.letter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background: rgba(0, 0, 0, 0.45);
  animation: overlay-in 0.4s ease;
}
.letter-overlay.fading {
  animation: overlay-out 0.8s ease forwards;
}
@keyframes overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes overlay-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.letter {
  background: #fdf8ef;
  padding: 48px 44px;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
  animation: letter-slide-in 0.55s ease;
  font-family:
    "Arial",
    Georgia,
    serif;
}
.letter-overlay.fading .letter {
  animation: letter-slide-out 0.8s ease forwards;
}
@keyframes letter-slide-in {
  from {
    transform: translateY(100vh);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes letter-slide-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(60px);
    opacity: 0;
  }
}
.letter h2 {
  font-size: 1.8rem;
  color: #c9425a;
  margin-bottom: 22px;
  text-align: center;
}
.letter p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 22px;
  max-height: 45vh;
  overflow-y: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.letter .date-prompt {
  text-align: center;
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 16px;
  font-weight: 700;
}
.date-buttons {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.date-btn {
  padding: 12px 28px;
  font-size: 1.05rem;
  font-family:
    "Arial",
    Georgia,
    serif;
  font-weight: 700;
  border: 2px solid #c9425a;
  border-radius: 50px;
  cursor: pointer;
  background: white;
  color: #c9425a;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.25s ease;
}
.date-btn:hover {
  background: #c9425a;
  color: white;
  transform: scale(1.05);
}
@media (max-width: 600px) {
  .heart-text {
    font-size: 1.2rem;
    max-width: 160px;
  }
  .response-btn {
    padding: 12px 30px;
    font-size: 1.15rem;
  }
  .letter {
    padding: 32px 24px;
  }
  .letter h2 {
    font-size: 1.4rem;
  }
  .letter p {
    font-size: 0.95rem;
  }
}
