
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #f9f7f7;
  --accent-color: #ff8585;
  --dark-color: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #eef1f5 100%);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.background-hearts {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-heart {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.15;
  animation: float 15s linear infinite;
}

.container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 90%;
  width: 400px;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
}

.square {
  margin-bottom: 2rem;
  position: relative;
}

.title {
  font-size: 2rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.word-space {
  display: inline-block;
  width: 0.4em;
}

.char {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.char.animate {
  animation: charAnimation 0.5s ease forwards;
}

@keyframes charAnimation {
  0% {
    transform: translateY(0);
    color: var(--dark-color);
  }
  50% {
    transform: translateY(-10px);
    color: var(--primary-color);
  }
  100% {
    transform: translateY(0);
    color: var(--dark-color);
  }
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

button {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  outline: none;
}

.btnYes {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btnYes:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

.btnYes:active {
  transform: translateY(1px);
}

.btnNo {
  background-color: var(--secondary-color);
  color: var(--dark-color);
  border: 2px solid #eee;
}

.btnNo:hover {
  transform: scale(1.05);
}

.heart {
  position: fixed;
  font-size: 1.5rem;
  pointer-events: none;
  z-index: 100;
  animation: heartAnimation 3s ease-in-out forwards;
}

@keyframes heartAnimation {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0);
    opacity: 0;
  }
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0.2;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes explode {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.success-message {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.1);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.1);
  }
  70% {
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
    width: 90%;
  }

  .title {
    font-size: 1.7rem;
  }

  .buttons {
    flex-direction: column;
    gap: 1rem;
  }

  button {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 1rem;
  }

  .title {
    font-size: 1.5rem;
  }
}