* {
  margin: 0px;
  padding: 0px;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  background: radial-gradient(#022775, #151542);
}

.toDoList {
  margin: 0 auto;
  max-width: 600px;
  border-radius: 0px 0px 4px 4px;
  padding: 0px 10px;
}

.toDoList__header {
  padding: 20px 0px;
  text-align: center;
  background: hsl(204, 98%, 49%);
  border-radius: 0px 0px 20px 20px;
  position: relative;
  margin: 0px 0px 20px;
  border-top: none;
  color: #fff;
}

.toDoList__header::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: hsl(204, 98%, 49%);
  transform: translateX(-50%) rotate(45deg);
  border-top: none;
  border-left: none;
}

.input-wrapper {
  margin-top: 30px;
}

.input-wrapper__input {
  width: 100%;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #b7b7b7;
  padding: 0px 9px;
  background: #666;
  color: #fff;
}

.input-wrapper__input::placeholder {
  color: #fff;
}
.input-wrapper__input.error,
.input-wrapper__input.error:focus {
  border: 2px solid #e70404;
  box-shadow: 0px 0px 5px #e70404;
  padding: 0px 8px;
}

.input-wrapper__input:focus {
  outline: none;
  padding: 0px 8px;
  border: 2px solid hsl(204, 98%, 49%);
  box-shadow: 0px 0px 10px -1px hsl(204, 98%, 49%);
}

.input-wrapper__validation-output,
.remove-task-btn-validation {
  color: #e70404;
  font-size: 13px;
}

.input-wrapper__validation-output {
  margin-bottom: 10px;
}

.remove-task-btn-validation {
  text-align: left;
}

@media (min-width: 400px) {
  .remove-task-btn-validation {
    text-align: right;
  }
}
button {
  cursor: pointer;
}

button:hover {
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}

.submit-button {
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: hsl(154, 59%, 51%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.submit-button:before,
.remove-button:before,
.sort-button:before,
.remove-all-button:before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 0px -2px 2px rgba(0, 0, 0, 0.2);
}

.submit-button.disabled,
.remove-button.disabled {
  background: #94989c;
  color: rgba(16, 16, 16, 0.3);
}

.remove-button {
  margin-top: 10px;
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: hsl(355, 96%, 35%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.remove-all-button {
  margin: 0px 0px 10px;
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: hsl(355, 96%, 35%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.sort-button {
  margin: 10px 0px;
  width: 100%;
  height: 32px;
  border: none;
  border-radius: 4px;
  background: hsl(204, 98%, 49%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

@media (min-width: 400px) {
  .buttons-container {
    display: flex;
  }
  .remove-button {
    margin: 0px 0px 0px 10px;
  }
}

.remove-task-btn-validation {
  margin-bottom: 10px;
}

.task-list {
  list-style: none;
  border-radius: 4px;
  padding: 10px;
  background: #666;
  min-height: 94px;
  border: 1px solid #b7b7b7;
  height: 225px;
  overflow-y: scroll;
  color: #fff;
}

@media (min-width: 840px) {
  .task-list {
    max-height: none;
    overflow-y: auto;
  }
}

.task {
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 5px;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.task::before {
  content: "";
  position: absolute;
  left: 0px;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: #e2e2e2;
}

.checked {
  background: rgba(0, 0, 0, 0.3);
}
