header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  background: #ac44ac;
  position: fixed;
  box-shadow: 2px 2px 10px #000000;
  z-index: 9999;
}

body {
  background: #4d4949;
}

header img {
  width: 100px;
  height: 100px;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10rem;
}

main > h1 {
  margin-bottom: 2rem;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  animation: fadeIn 3s forwards;
}

.inputs-container {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
}

#editContainer {
  display: none;
  align-items: center;
  justify-content: center;
}

#result {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-align: center;
}

#result > p {
  padding: 1rem 0 2rem;
}

.to-do-list-container {
  height: auto;
  background: #c0baba;
  border-radius: 16px;
  width: auto;
  box-shadow: 2px 2px 6px #00000077;
  padding: 0.5rem;
  opacity: 0;
  animation: fadeIn 3s forwards;
}

label {
  font-size: 14px;
  width: auto;
  margin-right: 1rem;
}

#addBtn {
  margin: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid #000000;
  font-weight: 600;
  box-shadow: 3px 3px 10px #0000009c;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

#addBtn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

#addBtn:active {
  transform: scale(0.86);
  opacity: 0.7;
}

#editBtn {
  margin: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid #000000;
  font-weight: 600;
  box-shadow: 3px 3px 10px #0000009c;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

#editBtn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

#editBtn:active {
  transform: scale(0.86);
  opacity: 0.7;
}

#editInput {
  text-align: center;
  font-size: 18px;
  border-radius: 22px;
  border: 1px solid #000000;
  background: transparent;
  padding: 0.45rem 0;
  width: auto;
  transition: all 0.2s ease;
}

#editInput:focus {
  background: #ffffffa1;
  outline: none;
  border: 1px solid #3687ff;
}

#toDoInput {
  text-align: center;
  font-size: 18px;
  border-radius: 22px;
  border: 1px solid #000000;
  background: transparent;
  padding: 0.45rem 0;
  transition: all 0.2s ease;
}

#toDoInput:focus {
  background: #ffffffa1;
  outline: none;
  border: 1px solid #3687ff;
}

.task-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 3s forwards;
}

.task {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: #880988;
  height: 100px;
  color: #fff;
  text-transform: uppercase;
  border-radius: 18px 18px 2px 18px;
  box-shadow: 4px 4px 10px #000000;
  margin-bottom: 1rem;
  overflow: hidden;
}

.task > p {
  margin-left: 1rem;
}

.task > button {
  margin-right: 1rem;
}

.btns {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.65rem;
  gap: 1rem;
}

.removeBtn,
.doneBtn,
.editTaskBtn {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

.removeBtn > img,
.doneBtn > img,
.editTaskBtn > img {
  width: 28px;
  height: 28px;
}

.removeBtn:hover,
.doneBtn:hover,
.editTaskBtn:hover {
  transform: scale(1.05);
  filter: invert(1);
}

.removeBtn:active,
.doneBtn:active,
.editTaskBtn:active {
  transform: scale(0.85);
  opacity: 0.7;
}

.remove-all-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-all-btn {
  width: 150px;
  height: 65px;
  padding: 0.65rem;
  border: 1px solid #000;
  background: #ff0000;
  color: #fff;
  border-radius: 18px;
  font-weight: 600;
  box-shadow: 3px 3px 10px #0000009c;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

.remove-all-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.remove-all-btn:active {
  transform: scale(0.85);
  opacity: 0.7;
}

footer {
  display: flex;
  width: 100%;
  height: 30vh;
  margin-top: 1rem;
  align-items: center;
  justify-content: center;
  font-style: italic;
  text-align: center;
  font-weight: 600;
  color: #fff;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@media (min-width: 280px) and (max-width: 350px) {
  .to-do-list-container {
    width: 85%;
  }
  #addBtn {
    padding: 0.5rem;
    margin: 0;
    width: 120px;
    margin-top: 0.5rem;
  }

  .inputs-container {
    flex-direction: column;
  }

  #editContainer {
    flex-direction: column;
  }

  .removeBtn > img,
  .doneBtn > img,
  .editTaskBtn > img {
    width: 20px;
    height: 20px;
  }

  .btns {
    gap: 0.5rem;
  }

  footer > p {
    font-size: 14px;
  }
}

@media (min-width: 350px) and (max-width: 650px) {
  .to-do-list-container {
    width: 80%;
    padding: 0.5rem 2rem;
  }
  #addBtn {
    padding: 0.5rem;
    margin: 0;
    width: 120px;
    margin-top: 0.5rem;
  }

  .inputs-container > input {
    width: 75%;
  }

  .inputs-container {
    flex-direction: column;
  }

  #editContainer {
    flex-direction: column;
  }

  #editInput {
    width: 80%;
  }

  .removeBtn > img,
  .doneBtn > img,
  .editTaskBtn > img {
    width: 20px;
    height: 20px;
  }

  .btns {
    gap: 0.5rem;
  }

  footer > p {
    font-size: 14px;
  }
}

@media (min-width: 650px) and (max-width: 750px) {
  .to-do-list-container {
    width: 75%;
  }
  #addBtn {
    padding: 0.5rem;
  }
}
