* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  display: grid;
  justify-content: center;
  align-items: center;
  background-color: #ffe6e9;
  font-family: "Quicksand", sans-serif;
}

/* CONTAINER */
.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.2s;
}

/* SORU */
.question-container {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.2s;
  text-align: center;
  width: 100%;
}

.local-gif {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  display: block;
  margin: 0 auto 3rem auto;
  pointer-events: none;
}

.question {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* BUTON */
.btn {
  position: absolute;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ff6b81;
  color: white;
  transform: scale(1.05);
  box-shadow: 0px 4px 15px rgba(255, 107, 129, 0.5);
}

.btn:hover {
  background-color: #ffa4b1;
  transform: scale(1.1);
  box-shadow: 0px 6px 20px rgba(255, 107, 129, 0.7);
  text-shadow: 1px 1px 5px rgba(255, 182, 193, 0.8);
}

.yes-btn { right: 54%; }
.no-btn { left: 54%; }

/* RESULT */
.result-container {
  display: none;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.2s;
  text-align: center;
  width: 100%;
}

.gif-result {
  border-radius: 10px;
  margin-bottom: 2rem;
}

.result-container h2 {
  font-size: 3.2rem;
  text-align: center;
}

/* ❤️ HEART */
.cssload-main {
  display: none;
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transform-origin: center; /* 🔥 EKLENDİ */
}

/* 🔥 KALP */
.cssload-heart {
  position: relative;
  width: 80px;
  height: 80px;
  margin: auto;
  animation: spin 1.5s linear infinite;
}

.cssload-heartL,
.cssload-heartR {
  position: absolute;
  width: 40px;
  height: 40px;
  background: red;
  border-radius: 50%;
  top: 0;
}

.cssload-heartL { left: 0; }
.cssload-heartR { right: 0; }

.cssload-square {
  position: absolute;
  width: 40px;
  height: 40px;
  background: red;
  top: 20px;
  left: 20px;
  transform: rotate(45deg);
}

.cssload-shadow {
  width: 50px;
  height: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  margin: 12px auto;
}

/* animasyon */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 💖 KONTROLLÜ BÜYÜME (DÜZELTİLDİ) */
.big-heart {
  animation: growHeart 1.2s ease-out forwards !important;
}

@keyframes growHeart {
  0% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  60% {
    transform: translate(-50%, -50%) scale(3) rotate(180deg);
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2) rotate(360deg);
  }
}

/* 💥 PATLAMA */
.heart-piece {
  position: fixed;
  width: 20px;
  height: 20px;
  background: red;
  border-radius: 50%;
  z-index: 9999;
  animation: explode 1.2s ease-out forwards;
}

@keyframes explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) scale(0.2);
    opacity: 0;
  }
}
