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

#new-todo-form {
  display: flex;
  flex-direction: column;
  padding: 1em;
  min-width: 300px;
  font-size: inherit;
  font-family: inherit;
}

#new-todo-form > * {
  margin: 0.15rem;
  margin-top: 0.5em;
}

#new-todo-form > button {
  padding: 0.25em 0.5em;
}

#new-todo-form > input {
  padding: 0.25em 0.5em;
  border-radius: 3px;
  background-color: rgba(193, 191, 191, 0.351);
}

#list {
  padding: 0;
}

.list-item {
  list-style: none;
  margin-top: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(193, 191, 191, 0.351);
}

.list-item-label {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.list-item-label:hover,
[data-list-item-checkbox]:hover {
  cursor: pointer;
}

.list-item-label:hover > [data-list-item-text],
.list-item-label:hover > [data-list-item-date] {
  color: #333;
  text-decoration: line-through;
}

[data-list-item-checkbox] {
  margin-right: 1em;
}

[data-list-item-checkbox]:checked ~ [data-list-item-text],
[data-list-item-checkbox]:checked ~ [data-list-item-date] {
  text-decoration: line-through;
  color: #aaa;
}

[data-button-delete] {
  padding: 0.5em 1em;
  background-color: transparent;
  border: none;
}

#delete-icon {
  width: 1.5em;
  height: auto;
  pointer-events: none;
}

button {
  cursor: pointer;
}

#sortDateButton {
  display: block;
  width: max-content;
  padding: 1em 2em;
  margin: 1em auto;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;

  gap: 1em;
  justify-content: center;
  /* align-content: center; */
  font-family: "Poppins", sans-serif;
}

h1 {
  text-align: center;
  margin: 2em;
}

.list__container {
  min-width: max-content;
  max-width: 500px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1em;
  /* border: 1px solid; */
}

#list::first-line {
  color: red;
}
