* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #153677, #4e085f);
  height: 100vh;
}

.to-doapp {
  background: white;
  width: 90%;
  max-width: 540px;
  border-radius: 10px;
  padding: 40px 35px 70px;
  /* margin: 0px auto 20px; */
}
h2 {
  color: #002765;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

h2 img {
  width: 30px;
  margin-left: 10px;
}
.task-input {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edeef0;
  border-radius: 30px;
  padding-left: 20px;
  margin-bottom: 25px;
}
.task-input input {
  flex: 1;
  width: 80%;
  font-size: 12px;
  padding: 10px 10px 10px 10px;
  border-radius: 20px;
  border: none;
  outline: none;
  background: transparent;
}

.task-input button {
  color: #fff;
  background: #ff5945;
  padding: 16px 50px 16px 50px;
  border-radius: 40px;
  border: none;
  outline: none;
  font-size: 16px;
  cursor: pointer;
}

ul li {
  font-size: 20px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 8px 12px 50px;
  user-select: none;
  cursor: pointer;
  position: relative;
  /* margin-bottom: 15px;  */
}
ul li::before {
  content: "";
  position: absolute;
  height: 25px;
  width: 25px;
  border-radius: 50%;
  background-image: url(images/unchecked.png);
  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(images/checked.png);
}

ul li span {
    position: absolute;
    right: 0;
    top: 5px;
    width: 40px;
    height: 40px;
    font-size: 22px;
    color: #555;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
}

ul li span:hover {
    background: #edeef0;
}

@media (max-width: 480px) {

  .to-doapp {
    padding: 25px 20px 40px;
  }

  h2 {
    font-size: 20px;
    text-align: center;
    justify-content: center;
  }

  .task-input {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 10px;
  }

  .task-input input {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }

  .task-input button {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    border-radius: 25px;
  }

  ul li {
    font-size: 16px;
    padding: 12px 8px 12px 45px;
  }

  ul li span {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}
