* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Farsan", serif;
  font-weight: 700;
  font-style: normal;
}

body {
  background: linear-gradient(to top left, rgb(7, 25, 59), rgb(84, 95, 100));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  margin-top: 5rem;
  text-align: center;
  color: rgb(247, 199, 136);
  font-family: "League Script", serif;
  font-weight: 700;
  font-style: normal;
  font-size: 46pt;
  text-shadow: black 2px 2px 2px;
}

.lets-add {
  width: 40%;
  max-width: 30rem;
  margin: auto auto;
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 3px 10px 1px;
}

#add-todo {
  width: 80%;
  height: 2rem;
  border: none;
  padding-left: 0.5rem;
  font-size: 12pt;
}

textarea:focus,
#add-todo:focus {
  outline: none;
}

#addBtn {
  width: 25%;
  border: none;
  border-left: 0;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 14pt;
  background-color: rgb(207, 207, 207);
  color: rgb(180, 142, 69);
}

.main {
  width: 80%;
  margin: auto;
  flex-grow: 1;
}

.main2 {
  width: 70%;
  margin: auto;
  max-width: 45rem;
}

#my-todos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-grow: 1;
  width: 100%;
}

.li-item {
  margin: auto;
  width: 100%;
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style-type: none;
  padding: 1rem;
  background: linear-gradient(
    to top left,
    rgb(158, 157, 207),
    rgb(228, 228, 228)
  );
  border-radius: 10px;
  box-shadow: rgb(0, 0, 0) 0 1px 8px 0;
}

.checkbox {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid rgb(131, 131, 131);
  border-radius: 4px;
  background: white;
  cursor: pointer;
  position: relative;
}

.checkbox::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 8px;
  width: 6px;
  height: 12px;
  border: solid rgb(23, 184, 31);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}

.checkbox:checked::after {
  transform: rotate(45deg) scale(1);
}

.todo {
  font-size: 14pt;
  color: rgb(73, 71, 67);
}

.edit-delete {
  display: flex;
  gap: 0.5rem;
}

.edit-btn {
  width: 2rem;
}

.delete-btn {
  width: 2rem;
  filter: invert(19%) sepia(89%) saturate(7490%) hue-rotate(0deg)
    brightness(94%) contrast(104%);
}

#clear-all {
  display: none;
  width: 7rem;
  padding: 0.5rem 0.5rem;
  margin-left: auto;
  margin-top: 1rem;
  margin-bottom: 5rem;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: black 1px 1px 5px 0px;
  font-size: 16pt;
  background-color: rgb(255, 0, 0);
  color: rgb(216, 215, 214);
}

.btn {
  width: 2rem;
}

#modal {
  width: 100%;
  height: 100%;
  background-color: rgba(12, 12, 12, 0.9);
  position: fixed;
  top: 0;
  display: none;
  overflow-y: auto;
}

.modal-content {
  padding: 1rem;
  border-radius: 0.5rem;
  width: 50%;
  height: 20%;
  margin: auto;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to top left, rgb(7, 25, 59), rgb(84, 95, 100));
}

#edit-p {
  width: 80%;
  background-color: white;
  border: 1px solid black;
  box-shadow: white 0 0px 5px 0;
  margin: auto;
  padding: 0.5rem;
  color: rgb(180, 142, 69);
}

#save-btn {
  margin-left: auto;
  width: 5rem;
  font-size: 16pt;
  cursor: pointer;
  background-color: white;
  box-shadow: white 0 0px 3px 0;
}

footer {
  width: 80%;
  text-align: center;
  margin-left: 10%;
  color: rgb(247, 199, 136);
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to left,
    rgba(247, 199, 136, 0.2),
    rgb(247, 199, 136),
    rgba(247, 199, 136, 0.2)
  );
  border-radius: 50%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
