body {
  font-family: "Poppins", sans-serif;
  margin: 0 auto;
  padding: 20px;
  background-color: #ece8dd;
  color: #000;
}
main {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 10%;
}
body.dark {
  background-color: #1b2430;
  color: #ece8dd;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  border: none;
  border-radius: 5px 0 0 5px;
}

button[type="submit"] {
  padding: 10px 20px;
  border: none;
  border-radius: 0 5px 5px 0;
  background-color: #008080;
  color: #fff;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #005757;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

li input[type="checkbox"] {
  margin-right: 10px;
}

li span {
  flex-grow: 1;
  text-decoration: line-through;
}

li input[type="checkbox"]:checked + span {
  text-decoration: none;
}

button.delete-button {
  background-color: transparent;
  border: none;
  color: #ff0000;
  cursor: pointer;
  font-size: 18px;
  margin-left: 10px;
  outline: none;
}
#dark-mode-button {
    position: fixed;
  background-color: #008080;
  border: 1px solid #008080;
  padding: 10px 20px;
  transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  color: #fff;
}
#dark-mode-button:hover {
  background-color: #005757;
  border: 1px solid #005757;
}

button.delete-button:hover {
  color: #dc0000;
}

.crafted {
  text-align: center;
  font-size: 0.9rem;
  color: #008080;
  /* this element should always at bottom */
}
.crafted a
{
  color: #008080;
  text-decoration: none;
}
.last {
  display: flex;
  justify-content: center;
  align-items: center;
  /* sticky on the bottom */
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    


}
@media (max-width: 600px) {
  form {
    flex-direction: column;
  }

  input[type="text"] {
    margin-bottom: 10px;
  }
}
