* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Josefin Sans", sans-serif;
}

:root {
  --body: rgb(241, 241, 241);
  --input: rgb(49, 62, 79);
  --plus: rgb(32, 210, 174);
}

ul {
  list-style: none;
}
.container {
  width: 90%;
  max-width: 450px;
  margin-inline: auto;
}

body {
  background-color: var(--body);
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sect1 {
  padding: 15px;
  background-color: white;
  width: 25rem;
  height: 60%;
}
.form {
  display: flex;
  /* align-items: center; */
  gap: 1rem;
  background-color: var(--input);
  padding: 0.5rem;
  border-radius: 0.2rem;
}
.form input {
  flex: 1;
  outline: none;
  border: none;
  background-color: transparent;
  font-size: 1.3rem;
  padding: 0.6rem 0.3rem;
  color: rgb(225, 207, 207);
}
.button {
  padding: 8px 20px;
  outline: none;
  border: none;
  background-color: var(--plus);
  letter-spacing: 1px;
  cursor: pointer;
  color: var(--input);
  font-size: 2rem;
}

/* .sect {
  background-color: var(--plus);
  position: relative;
  right: -10rem;
} */
.list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: 700;
}

.list li {
  padding: 1rem;

  /* padding-top: 0.5rem; */
  border-bottom: 1px solid hsl(233, 11%, 84%);
  display: flex;
  gap: 0.5rem;
  position: relative;
  /* align-items: center; */
  cursor: pointer;
}

ul li:hover {
  background-color: rgb(221, 221, 221);
}
.list .completed {
  text-decoration: line-through;
  font-weight: 400;
  color: hsl(233, 11%, 84%);
  background-color: hsl(0, 0%, 53%);
}
.list .completed::before {
  content: "";
  position: absolute;
  border-color: #fff;
  border-style: solid;
  border-width: 0 2px 2px 0;
  top: 13px;
  left: 6px;
  transform: rotate(45deg);
  height: 12px;
  width: 5px;
}
.close {
  position: absolute;
  cursor: pointer;
  padding: 12px 20px;
  top: 0;
  right: 0;
}
.close:hover {
  background-color: var(--plus);
  color: #fff;
}
