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

html {
  font-size: 62.5%;
}

body {
  font-size: 2rem;
  background-color: #191919;
  overflow-x: hidden;
  color: #fff;
}

.main {
  max-width: 1440px;
  margin: 5rem auto;
}
.header {
  display: flex;
  justify-content: center;
}
.header h1 {
  text-align: center;
  font-size: 6rem;
  font-weight: 300;
  width: max-content;
  position: relative;
}
.header h1::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
}
.todo-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-height: 300px;
  width: 100%;
  overflow-y: auto;
  justify-content: flex-start;
}
#list::-webkit-scrollbar {
  display: none;
}

#list li {
  display: flex;
  gap: 1rem;
  width: 100%;
  padding-bottom: 1rem;
  border-bottom: 1px solid #fff;
}
#list li:first-child {
  border-bottom: none;
}
#list li label {
  cursor: pointer;
  display: flex;
  gap: 1rem;
}
#new-task-form {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem;
}
form input {
  padding: 1rem 2rem;
  border-radius: 10px;
  border: none;
  outline: none;
  padding-left: 10px;
}
form button {
  float: 1;
  padding: 10px 15px;
  font-size: 2rem;
  border-radius: 8px;
}
@media screen and (max-width: 500px) {
  .header h1 {
    text-align: center;
    font-size: 5rem;
  }
  .todo-container {
    max-width: 400px;
  }
}
