* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #1f4037, #99f2c8);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main {
  background-color: #ffffff;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  color: #333;
  letter-spacing: 1px;
}

.second {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#task-input {
  padding: 12px 15px;
  font-size: 1rem;
  border: 2px solid #1f4037;
  border-radius: 8px;
  outline: none;
  transition: 0.3s ease;
}
#task-list li button {
  background-color: #1f4037;
  padding: 6px 10px;
  font-size: 0.9rem;
  /* margin-left: 6px;   */
  border: none;
  border-radius: 5px;
  cursor: pointer;
}


#task-input:focus {
  border-color: #99f2c8;
  box-shadow: 0 0 8px rgba(153, 242, 200, 0.5);
}

button {
  padding: 10px;
  background-color: #1f4037;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #14532d;
}

#task-list {
  list-style: none;
  margin-top: 20px;
}

#task-list li {
  background-color: #f1f1f1;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
}

#task-list li:hover {
  background-color: #e0ffe3;
}

#task-list button {
  background-color: #ff9800;
  margin-left: 10px;
}

#task-list button:hover {
  background-color: #000000;
}

#task-list button:last-child {
  background-color: #f44336;
}

#task-list button:last-child:hover {
  background-color: #000000;
}

@media (max-width: 600px) {
  .main {
    padding: 30px 20px;
  }

  h1 {
    font-size: 2rem;
  }

  #task-input, button {
    font-size: 0.9rem;
  }
}
