/* Beautiful gradient background */
body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
  font-family: "Poppins", sans-serif;
  overflow: hidden;

  /* fade + blur intro */
  opacity: 0;
  filter: blur(10px);
  animation: fadeIn 5s ease-out forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* Main container */
.container {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  padding: 2rem 3rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 350px;
  color: #fff;
}

/* Title */
h1 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Input area */
.input-area {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

input {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
}

button {
  background-color: #ff85a2;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  background-color: #ff5f87;
  transform: scale(1.05);
}

/* To-do list */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: rgba(255, 255, 255, 0.3);
  margin: 0.5rem 0;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
}

li:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Fade-out when removing */
li.removing {
  opacity: 0;
  transform: translateX(20px);
  background: rgba(255, 255, 255, 0.2);
}

/* Falling hearts */
.heart {
  position: fixed;
  font-size: 1.2rem;
  pointer-events: none;
  animation: fall 2s linear forwards;
}

@keyframes fall {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(50px) scale(0.5);
  }
}
