@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
#title{
  color:#edeef0;
  text-align: center;
  margin: 10px;
}

#heading{
  display: inline-block;
  content: url(https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR_ly2wNDz-JtvuG3ICM9S2qKYz4ud3ggJfsw&s);
  border-radius: 50%;
  height: 30px;
  width: 30px;margin-bottom: 0;
}
body {
  background: url(https://tse1.mm.bing.net/th?id=OIP.pdSQ4sCpdyWZwql_nXqjTQHaEK&pid=Api&P=0&h=180);
  background-size: cover;
}

.main {
  width: 95%; /* Reduce width for very small screens */
  max-width: 540px;
  background: #fff;
  margin: 30px auto 20px; /* Reduce top margin for narrow screens */
  padding: 15px 10px; /* Compact padding */
  border-radius: 10px;
}

h2 {
  color: #8b41ca;
  font-size: 1rem; /* Reduce font size */
  text-align: center;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px; /* Adjust for smaller design */
  background: #edeef0;
  padding-left: 5px; /* Reduce padding */
  margin-bottom: 10px; /* Adjust spacing */
  border: 2px solid #8b41ca;
}

input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 5px; /* Compact padding */
  font-size: 10px; /* Smaller font size */
}

button {
  padding: 8px 15px; /* Adjust button size */
  background: #d771b6;
  color: #fff;
  border: none;
  outline: none;
  font-size: 10px; /* Reduce button font size */
  cursor: pointer;
  border-radius: 30px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
}

.item {
  display: flex;
  height: auto; /* Auto height for flexibility */
  align-items: center;
  margin-bottom: 10px;
  background: #fff;
  padding: 5px 8px; /* Compact padding */
  border-radius: 30px; /* Adjust radius */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

span {
  margin-left: 5px;
  font-size: 10px; /* Reduce text size */
}

.checked {
  background: #edeef0;
}

.checked span {
  text-decoration: line-through;
}

.item::before {
  padding-left: 5px;
  font-family: "Font Awesome 5 Free";
  content: "\f111";
  text-decoration: none;
  margin-right: 5px; /* Reduce spacing */
  font-size: 10px; /* Icon size adjustment */
}

.checked::before {
  font-family: "Font Awesome 6 Free";
  content: "\f058";
  font-weight: 900;
  color: #8b41ca;
  text-decoration: none;
}

.item .del {
  margin-left: auto;
  background: none;
  border: none;
  color: #8b41ca;
  font-size: 12px; /* Adjust icon size */
}

.item {
  font-size: 10px; /* Smaller text size */
  flex-grow: 1;
  text-align: left;
  border: 1px solid #d771b6;
}

/* Media Query for 250px width Android */
@media (max-width: 250px) {
  .main {
    margin: 20px auto; /* Reduce margin further */
    padding: 10px; /* Compact padding */
  }

  h2 {
    font-size: 0.9rem; /* Smaller heading size */
  }

  .row {
    padding-left: 3px; /* Minimal padding */
    margin-bottom: 8px; /* Reduce spacing */
  }

  input {
    font-size: 9px; /* Further reduce input font size */
    padding: 4px; /* Minimal padding */
  }

  button {
    padding: 5px 10px; /* Compact button size */
    font-size: 9px; /* Smaller button font size */
  }

  .item {
    padding: 4px 6px; /* Adjust padding */
    font-size: 9px; /* Reduce text size */
    margin-bottom: 8px; /* Compact spacing */
  }

  span {
    font-size: 9px; /* Reduce span text size */
  }

  .item::before {
    margin-right: 4px; /* Compact icon spacing */
    font-size: 9px; /* Smaller icon size */
  }
}
