* {
  margin: 0;
}
body {
  display: flex;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f2f2f2c7;
  user-select: none;
}
.container {
  margin: 10px;
}
search {
  border-radius: 10px;
  background: #ffffff;
  cursor: text;
  box-shadow: 5px 5px 10px solid rgb(0, 0, 0);
  border: 1px solid rgba(128, 128, 128, 0.356);
}
input[type="search"] {
  background: none;
  padding: 10px;
  border: none;
  outline: none;
  width: 400px;
  margin: 5px;
}
input::placeholder {
  color: black;
}
button {
  padding: 15px 30px;
  border-radius: 10px;
  border: none;
  background: rgb(255, 208, 0);
  font-size: large;
  font-weight: bold;
  color: white;
  cursor: pointer;
}
#list {
  list-style: none;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(128, 128, 128, 0.356);
  padding: 10px;
  margin-top: 10px;
}
#list li {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-items: center;
}
.deletebtn{
  float: right;
  cursor: pointer;
}
.item{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-transform: capitalize;
}
input[type="checkbox"]{
  accent-color: purple;
  border-radius: 10px;
}
input{
  appearance: none;
  -webkit-appearance: none;
}
/* Hide original checkbox */
input[type="checkbox"] {
  display: none;
}

/* Style the custom checkbox using the label */
.custom-label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  display: inline-block;
  user-select: none;
}

/* Checkbox box */
.custom-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #000000;
  border-radius: 50%;
  transition: all 0.2s ease;
}

/* Tick mark when checked */
input[type="checkbox"]:checked + .custom-label::before {
  border: 2px solid rgb(36, 224, 36);
}

input[type="checkbox"]:checked + .custom-label::after {
  content: "✔";
  position: absolute;
  font-size: 16px;
  left: 4px;
  color:rgb(36, 224, 36);
}

/* Strike through text if completed */
.completed .custom-label {
  text-decoration: line-through;
  opacity: 0.7;
}
h2{
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
}