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

body {
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

header {
  font-size: 1.5rem;
}

header,
form {
  min-height: 20vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#errorMsg {
  position: fixed;
  width: 100vw;
  text-align: center;
  color: orangered;
}

.input-div {
  display: flex;
  flex-direction: row;
  justify-content: left;
}

input::placeholder {
  opacity: 0.3;
}

form input,
form button {
  padding: 0.5rem;
  font-size: 2rem;
  border: none;
  background: white;
}

form button {
  color: #0f2027;
  background: white;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

form button:hover {
  background: #0f2027;
  color: white;
}

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

.tasklist {
  min-width: 30%;
  list-style: none;
}

.task {
  margin: 0.5rem;
  background: white;
  color: black;
  font-size: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s ease-in-out;
}

.task li {
  flex: 1;
}

.trash-btn,
.complete-btn {
  background: #5f9eb9;
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1rem;
}

.trash-btn {
  background: #2c5364;
}

.task-item {
  padding: 0rem 0.5rem;
}

.fa-trash,
.fa-check {
  pointer-events: none;
}

.completed {
  text-decoration: line-through;
  opacity: 0.5;
}

.hidden {
  display: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  border: none;
  color: #0f2027;
  width: 10rem;
  cursor: pointer;
  padding: 1.1rem;
}

.select {
  margin: 1rem;
  position: relative;
  overflow: hidden;
}

.select::after {
  content: "\25BC";
  position: absolute;
  background: #0f2027;
  top: 0;
  right: 0;
  padding: 1rem;
  pointer-events: none;
}

.select:hover::after {
  background: white;
  color: #0f2027;
}

/*Media queries*/
@media screen and (max-width: 1060px) {
  .tasklist {
    width: 21em;
  }
}

@media screen and (max-width: 600px) {
  .tasklist {
    width: 100%;
  }
  form {
    min-height: 25vh;
    flex-direction: column;
    width: 100%;
  }
  .input-div,
  .select {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100vw;
  }
  .task-input,
  .filter-todo {
    flex-grow: 1;
  }
  .task-input {
    padding: 0.5em;
  }
}

@media screen and (max-width: 400px) {
  .task-input {
    padding: 0.5em;
    font-size: 0.8em;
  }
}
