* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  max-height: 100vh;
  background-color: rgba(11, 0, 49, 1);
  display: flex;
  justify-content: center;
}

.main-container {
  backdrop-filter: blur(20px);
  width: 400px;
  max-height: 540px;
  box-sizing: content-box;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: transparent;
  border-radius: 10px;
  /* border: 2px solid #fff; */
  outline: none;
  box-shadow: 0 0 5px yellow;
  margin-top: 60px;
  overflow: hidden;
}

@media screen and (max-width: 400px) {
  .main-container {
    box-shadow: none;
  }
}

.heading {
  display: flex;
  justify-content: center;
  align-items: center;
}

.heading h1 {
  font-size: 24px;
  font-weight: bold;
  padding: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.to-do {
  width: 22px;
  height: 22px;
}

.app {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 10px 10px 10px 20px;
  max-height: 450px;
}

.input-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 45px;
  width: 100%;
}

.input-box div {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

#input-field {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 45px;
  border: 1px solid rgb(255, 255, 255, 0.5);
  background-color: rgb(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 2px 120px 2px 15px;
  font-size: 16px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
}

#input-field:focus {
  border: 1px solid gold;
  outline: none;
  box-shadow: 1px 1px 2px gold;
}

#addBtn {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 45px;
  background-color: rgb(255, 165, 0);
  border-radius: 99px;
  border: none;
  outline: none;
  font-weight: bold;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

#addBtn:hover {
  cursor: pointer;
  background-color: rgb(255, 165, 0, 0.6);
}

#error {
  padding: 2px;
  font-size: 20px;
  color: red;
}

#list-box {
  width: 100%;
  max-height: 100%;
  margin-top: 20px;
  padding: 20px 0;
  overflow: auto;
}

#list-box #list-items {
  width: 100%;
  max-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
}

#list-items li {
  font-size: 18px;
  min-height: 42px;
  display: flex;
  align-items: center;
  position: relative;
  max-width: 100%;
  background-color: rgb(255, 255, 255, 0.1);
  padding: 10px 65px 10px 30px;
  margin: 0 3 px;
  list-style: none;
  border-radius: 50px;
  gap: 5px;
  font-weight: bold;
  transition: all 0.2s ease;
  color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* border: #555 1px solid; */
}

#list-items li:hover {
  cursor: pointer;
  background-color: rgb(255, 255, 255, 0.2);
}

#list-items li::before {
  content: "";
  background-image: url("./assets/Uncheck.png");
  background-size: cover;
  background-position: center;
  position: absolute;
  left: 8px;
  width: 15px;
  height: 15px;
}

#list-items li.checked::before {
  content: "";
  background-image: url("./assets/check.png");
  background-size: cover;
  background-position: center;
  position: absolute;
  left: 8px;
  width: 16px;
  height: 16px;
}

#list-items li.checked {
  color: rgb(111, 107, 107);
  text-decoration: line-through;
}

/* #list-items li::after {
  content: "";
  background-image: url("./assets/delete.png");
  background-size: cover;
  background-position: center;
  position: absolute;
  right: 14px;
  width: 15px;
  height: 15px;
} */

#list-items li span {
  content: "";
  background-image: url("./assets/delete.png");
  padding: 8px;
  background-position: center;
  background-size: cover;
  width: 18px;
  height: 18px;
  position: absolute;
  right: 20px;
}

#list-items li img {
  content: "";
  background-image: url("./assets/edit.png");
  padding: 8px;
  background-position: center;
  background-size: cover;
  width: 19px;
  height: 19px;
  position: absolute;
  right: 50px;
}

/* #list-items li span:hover {
    width: 18px;
    height: 18px;
    background-color: #555;
} */

/* #update {
    content: 'UPDATE';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 45px;
    background-color: #e68a00;
    border-radius: 99px;
    border: none;
    outline: none;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
  } */
