@keyframes scaleUp {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes scaleDown {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}
/* Setting for the whole sheet */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

i {
  pointer-events: none;
}

body {
  background: linear-gradient(90deg, #c1dfc4 0%, #deecdd 100%);
}

header {
  height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
header h1 {
  color: #333;
  font-size: 3rem;
}

form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
    flex-wrap: wrap;
  /* Chrome, Safari, Edge, Opera */
}
form input,
form button {
  border: none;
  padding: 0.25rem 0.5rem;
  font-size: 1.75rem;
  margin: 0.1rem;
}
form input[type=number] {
  width: 50px;
  text-align: center;
  -moz-appearance: textfield;
}
form input::-webkit-outer-spin-button,
form input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
form button {
  cursor: pointer;
  background-color: rgb(0, 146, 114);
  padding: 5px 10px;
  border-radius: 8px;
  color: #fcfcfc;
  font-size: 1.5rem;
}

section {
  display: flex;
  align-items: center;
  flex-direction: column;
}
section .todo {
  width: 80vw;
  display: flex;
  align-items: center;
  margin: 0.2rem 0rem;
  transition: all 0.1s ease;
  background-color: #fcfcfc;
}
section .todo p {
  color: #262626;
  padding: 0.5rem;
}
section .todo .todo-text {
  width: 80%;
}
section .todo .todo-time {
  width: 50%;
  text-align: center;
}
section .todo button {
  padding: 0.5rem;
  font-size: 1.75rem;
  border: none;
  cursor: pointer;
  color: #fcfcfc;
}
section .todo .complete {
  background-color: green;
}
section .todo .trash {
  background-color: red;
}
section .done {
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-thickness: 0.2rem;
}

.sort,
.clear {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}
.sort button,
.clear button {
  background-color: rgb(0, 146, 114);
  cursor: pointer;
  color: #fcfcfc;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
}

.clear button {
  background-color: red;
}
