* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container {
  background: linear-gradient(120deg, #4a0a57, #45768d);
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.todo-list {
  width: 100%;
  max-width: 540px;
  background: #fff;
  margin: 100px auto 20px;
  padding: 40px 30px 70px;
  border-radius: 10px;
  
}
h2 {
  display: flex;
  align-items: center; 
  margin-left: 10px;
  margin-bottom: 10px;
  justify-content: center;
}
.todo-list img {
 width: 30px;
  margin-left: 10px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edeef0;
  border-radius: 30px;
  padding-left: 20px;
  margin-bottom: 25px;
}
input {
  flex: 1;
  padding: 2px 10px;
  width: 300px;
  display: flex;
  font-weight: 14px;
  border: none;
  outline: none;
  border-radius: 10px;
  background: transparent;
}
button {
  border: none;
  color: #fff;
  background-color: #ff5945;
  border-radius: 40px;
  padding: 16px 50px;
  font-size: 16px;
  cursor: pointer;
}
ul li {
  list-style: none;
  font-size: 17px;
  font-weight: 900;
  padding: 12px 8px 12px 50px;
  user-select: none;
  position: relative;
}
ul li::before {
  content: "";
  position: absolute;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  
  background-image: url("unchek.jpeg");
  background-size: cover;
 background-position: center;
  top: 12px;
  left: 8px;
}

ul li.checked {
  color: #555;

  text-decoration: line-through;
}
ul li.checked::before {
  background-image: url("check.webp");
}
ul li span{
  position: absolute;
  right: 0;
  top: 5px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: #555;
  line-height: 40px;
  text-align: center;
  
}
ul li span:hover{
  background-color: #a19c9c;
  border-radius: 40px;
}
p{
  font-weight: 400;
}
@media (max-width: 768px) {
  .todo-list {
    padding: 20px; 
    margin: 50px auto 10px;
  }
  button {
    padding: 12px 20px; 
  }
  input {
    font-size: 12px;
  }
}
@media (max-width: 540px) {
  .todo-list {
    width: 95%; 
    padding: 20px;
  }
  ul li {
    font-size: 14px; 
  }
  ul li::before {
    height: 20px; 
    width: 20px;
    top: 8px;
    left: 5px;
  }
  button {
    padding: 10px 15px; 
    font-size: 14px;
  }
}
