/* Basic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(120deg, #74ebd5, #acb6e5);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.todo-container {
  background: #fff;
  padding: 20px 30px;
  border-radius: 15px;
  width: 350px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.todo-container h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.input-section {
  display: flex;
  margin-bottom: 20px;

}

#task-input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#add-btn {
  margin-left: 10px;
  padding: 10px 15px;
  background: #4CAF50;
  border: none;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

#add-btn:hover {
  background: #45a049;
}

#task-list {
  list-style: none;
  margin-top: 20px;
}

#task-list li {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
#task-list li:nth-child(odd) {
  background: #e0f7fa;
}
#task-list li:nth-child(even) {
  background: #f1f8e9;
}
.edit-btn {
  background: #3498db;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  position: absolute;
  right: 670px;
}

.delete-btn {
  background: #e74c3c;
  border: none;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
   position: absolute;
  right: 630px;
}


.edit-btn img,
.delete-btn img {
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
}

.edit-btn:hover img,
.delete-btn:hover img {
  transform: scale(1.2);
  opacity: 0.7;
}