@import url(https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900);
@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700);

* {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  font-size: 16px;
  background-color: #2a9d8f;
  font-family: "Roboto Condensed", Arial, sans-serif;
}

.todolist {
  width: 100%;
  max-width: 600px;
}

.todolist header {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  padding: 15px;
  background-color: #e76f51;
  color: #fff;
  font-size: 1.3em;
}

.wrapper-list ul.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wrapper-list ul.list li {
  position: relative;
  background-color: #264653;
  border-bottom: 1px solid #264653;
  color: #b1b2c9;
  display: flex;
  align-items: center;
  padding: 20px;
  transition: background-color 300ms ease;
}

.wrapper-list ul.list li.removed {
  animation: collapseItem 300ms ease;
}

.wrapper-list ul.list li.hidden {
  display: none;
}

.wrapper-list ul.list li:hover {
  background-color: #264653;
}

.wrapper-list ul.list li:hover button.remove {
  opacity: 1;
}

.wrapper-list ul.list .check {
  position: relative;
  background-color: #404a6e;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin-right: 20px;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.wrapper-list ul.list .check:hover,
.wrapper-list ul.list .done .check {
  background-color: #264653;
}

.wrapper-list ul.list .done .check:after {
  position: absolute;
  top: 5px;
  left: 5px;
  display: block;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: green;
}

.wrapper-list ul.list .done .task {
  text-decoration: line-through;
}

.wrapper-list button.remove {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  outline: none;
  background-color: red;
  border-radius: 100%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 300ms ease;
}

.wrapper-list button.remove:after {
  content: "x";
  color: white;
  display: block;
}

.todolist main {
  background-color: #264653;
}

.todolist main input {
  background-color: #264653;
  border: none;
  outline: none;
  width: 90%;
  padding: 20px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 1.2em;
  color: white;
}

footer {
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 0;
  padding: 1em;
  color: rgb(214, 206, 206);
  text-align: center;
}

footer img {
  padding-left: 0.5em;
  max-width: 1.5em;
}

@keyframes collapseItem {
  0% {
    transform: rotateX(0deg);
  }
  100% {
    transform: rotateX(-90deg);
  }
}

@media (max-width: 648px) {
  .todolist {
    max-width: 80vw;
  }

  #inputTask {
    font-size: 1em;
  }

  footer {
    font-size: 0.8em;
    max-width: 1em;
  }
}
