body {
  font-family: 'Segoe UI', sans-serif;
  background-image: url('images/myback.PNG');
  background-size: cover;
  background-position: center;
  color: #fff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 500px;
  margin: 60px auto;
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

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

li {
  background: #222;
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;  /* 👈 This vertically aligns text and icons */
}

.task-text {
  flex: 1; /* 👈 Pushes text to fill space */
}

.task-text.completed {
  text-decoration: line-through;
  color: lightgreen;
}

.icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.icon:hover {
  transform: scale(1.1); /* Optional: Adds a smooth hover effect */
}

.input-area {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
}

input#newTaskInput {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
}

button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}
