body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f4f4f4;
  color: #222;
  transition: background 0.3s, color 0.3s;
}

h1, h2 {
  text-align: center;
}

section {
  margin: 20px auto;
  padding: 20px;
  max-width: 600px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

input, button {
  padding: 10px;
  margin: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  cursor: pointer;
  background: #007bff;
  color: white;
  border: none;
}

button:hover {
  background: #0056b3;
}

/* Dark mode */
body.dark {
  background: #222;
  color: #f4f4f4;
}
body.dark section {
  background: #333;
}
body.dark button {
  background: #ff9800;
}
body.dark button:hover {
  background: #e68900;
}

/* Popup */
.popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #4caf50;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Gallery */
#gallery img {
  margin: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  max-width: 150px;
}

/* Remove button for tasks */
.task-remove {
  margin-left: 10px;
  background: red;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.task-remove:hover {
  background: darkred;
}

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
}
footer a {
  color: #007bff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
