.darkMode {
  background-color: #1a1a1a;
  color: antiquewhite;
}

* {
  padding: 0;
  margin: 0;
  font-family: Shantell Sans, Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

header {
  color: #007bff;
  text-align: center;
  font-size: 36px;
  margin: 3rem;
}

#cerrarSesion a {
  text-decoration: none;
  color: #084c94;
  
}

#link:hover {
  color: #860606;
}

header button {
  width: fit-content;
  display: flex;
  position: fixed;
  cursor: pointer;
  right: 5%;
  top: 5%;
}

main {
  position: relative;
  margin: 5rem 10rem;
  max-width: 900px;
  left: 20%;
}

#form {
  text-align: center;
  margin: 3rem 1rem;
}

#form h2 {
  font-size: 32px;
  margin-bottom: 2rem;
}

hr {
  margin-bottom: 2rem;
}

.form-wrapper {
  display: inline;
  width: fit-content;
}

.form-wrapper input {
  height: 2rem;
  width: 10rem;
  font-size: 16px;
}

.form-wrapper button {
  height: 2rem;
  width: fit-content;
  cursor: pointer;
}

.todo-stats {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  position: relative;
  width: fit-content;
  margin: 3rem 3rem;
  font-size: 1.4rem;
  font-weight: bold;
  gap: 1.5rem;
  left: 8%;
}

.completed-tasks span {
  color: green;
}

.remaining-tasks span {
  color: orange;
}

.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 3rem 3rem;
  position: relative;
}

.todo-list [type="checkbox"]:checked ~ span {
  text-decoration: line-through;
  color: green;
}

.todo-list button {
  background: none;
  border: none;
  text-align: justify;
  cursor: pointer;
  position: absolute;
  right: 5%;
}

.todo-list button:hover {
  color: red;
  transform: scale(2);
}

.todo-list .remove-task {
  padding: 2px;
  display: inline-flex;
  flex-direction: column;
}

li {
  display: flex;
  gap: 10rem;
  font-size: 2rem;
  width: fit-content;
}

.todo-list [type="checkbox"] {
  cursor: pointer;
  width: 3rem;
}

footer {
  margin: 5rem 10rem;
  text-align: center;
}
