/* General page */
body {
  font-family: "Segoe UI", sans-serif;
  height: 100vh;
  margin: 0;
  padding: 0;
  text-align: center;
  background: linear-gradient(135deg, #89f7fe, #66a6ff);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 90%;
  max-width: 750px;
  background: #ffffffcc;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

h1, h2 {
  color: #2c3e50;
}

.todo-input {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  background: #3498db;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #2980b9;
}

.task-filters {
  margin: 15px 0;
}

.filter-btn {
  background: #bdc3c7;
  margin: 0 5px;
}

.filter-btn:hover {
  background: #95a5a6;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  background: #fdfdfd;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

li.completed span {
  text-decoration: line-through;
  color: gray;
}

.remove-btn { color: #e74c3c; cursor: pointer; margin-left: 10px; }
.remove-btn:hover { color: #c0392b; }

.restore-btn { color: #27ae60; cursor: pointer; margin-left: 10px; }
.restore-btn:hover { color: #1e8449; }

.clear-btn { margin-top: 10px; background: #e67e22; }
.clear-btn:hover { background: #d35400; }

/* Celebration popup */
#congratsMessage {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: #2ecc71;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  animation: fadeInOut 3s ease-in-out;
}

/* Reminder popup */
#reminderMessage {
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: #e74c3c;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  animation: fadeInOut 5s ease-in-out;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -20px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -20px); }
}

/* Balloons */
#balloonContainer {
  position: fixed;
  bottom: -150px;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 999;
}

.balloon {
  position: absolute;
  bottom: -100px;
  width: 40px;
  height: 60px;
  border-radius: 50%;
  background: red;
  animation: floatUp 5s linear forwards;
}

@keyframes floatUp {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-120vh); opacity: 0; }
}
