/* Basic reset style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Lato, sans-serif;
}
input,
button {
  outline: none;
}
/* Basic Style */
.body {
  background-color: #f8f8f8;
  color: #333;
}
.header {
  width: 500px;
  margin: 0 auto;
  display: block;
  text-align: right;
}
.header__image {
  width: 100%;
}
.header__link {
  font-family: fantasy, cursive;
}
.content {
  display: block;
  width: 500px;
  margin: 0 auto;
}
.add-task__field {
  display: flex;
  margin-top: 16px;
}
.add-task__input {
  width: 56%;
  display: inline-block;
  flex-grow: 1;
}
[class*="__list"] {
  list-style: none;
}
/* button,  */
.button {
  background: none;
  border: 0px;
  color: #888;
  font-size: 15px;
  width: 60px;
  cursor: pointer;
  transition: color 300ms ease-in-out;
}
.button:hover {
  color: #3a3a3a;
}
/* Heading */
.title {
  color: #333;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid #333;
  padding: 30px 0 10px;
  text-transform: uppercase;
}
.input-text {
  font-size: 18px;
  line-height: 18px;
  height: 21px;
  padding: 0 9px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  color: #888;
  transition: color 300ms ease-in-out;
}
.input-text:focus {
  color: #333;
}
/* New Task */
.add-task__input {
  width: 318px;
}
/* Task list */
.item {
  overflow: hidden;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
[class*="__check"] {
  margin: 0 10px;
}
[class*="__task-name"] {
  padding-left: 10px;
  box-sizing: border-box;
  font-size: 18px;
  width: 226px;
}
[class*="__edit-task"] {
  width: 226px;
  display: none;
}
[class*="__icon-remove"] {
  height: 2em;
  transform: rotateZ(45deg);
  transition: transform 200ms ease-in;
}
[class*="__icon-remove"]:hover {
  transform: rotateZ(0);
}
/* Completed */
.completed-todos__task-name {
  text-decoration: line-through;
  color: #888;
}
/* Edit Task */
.item.editMode [class*="__edit-task"] {
  display: inline-block;
  width: 224px;
}
.item.editMode [class*="__task-name"] {
  display: none;
}

@media (max-width:768px) {

  .header {
    text-align: center;
  }
  
}