/* Basic Style */
.page {
  background-color: #f8f8f8;
  color: #333;
  font-family: "Lato", sans-serif;
}

.page-header {
  width: 500px;
  margin: 0 auto;
  display: block;
  text-align: right;
}

.header-img {
  width: 100%;
}

.header-inf {
  font-family: "fantasy", cursive;
}

@media (max-width:768px) {
  .page-header {
    text-align: center;
  }
}

.page-main {
  display: block;
  width: 500px;
  margin: 0 auto 0;
}

.task {
  width: 56%;
  display: inline-block;
  flex-grow: 1;
}

.task-row-wrapper {
  display: flex;
}

.edit-task-items__wrapper,
.complete-task-items__wrapper {
  margin: 0;
  padding: 0px;
}

.task-item,
.main-edit__title {
  list-style: none;
}
.task-add,
.task-input__edit,
.class-btn_edit {
 outline: none;
}
.add-btn,
.task-btn__edit,
.task-btn__delete {
  background: none;
  border: 0px;
  color: #888;
  font-size: 15px;
  width: 60px;
  font-family: "Lato", sans-serif;
  cursor: pointer;
}

.task-btn__edit:hover {
  color: #3a3A3a;
}
.add-btn:hover {
  color: #3a3A3a;
}

/* Heading */
.main-edit__title,
.main-complete__title,
.task-input__title-new-task {
  color: #333;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid #333;
  padding: 30px 0 10px;
  margin: 0;
  text-transform: uppercase;
}

.task-add,
.task-input__edit {
  margin: 0;
  font-size: 18px;
  line-height: 18px;
  height: 21px;
  padding: 0 9px;
  border: 1px solid #dDd;
  background: #FFF;
  border-radius: 6px;
  font-family: "Lato", sans-serif;
  color: #888;
}

.task-add:focus {
  color: #333;
}
.task-input__edit:focus {
  color: #333;
}

/* New Task */
.task-input__title-new-task {
  display: block;
  margin: 0 0 20px;
}

.task-add {
  width: 318px;
}

/* Task list */
.task-item {
  overflow: hidden;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-item > * {
  vertical-align: middle;
}

.task-input__checkbox {
  margin: 0 10px;
}

.task-input__title {
  padding-left: 10px;
  box-sizing: border-box;
  font-size: 18px;
  width: 226px;
}
.task-add,
.task-input__edit {
  width: 226px;
}

.delete-img {
  height: 2em;
  transform: rotateZ(45deg);
  transition: transform 200ms ease-in;
}

.delete-img:hover {
  transform: rotateZ(0);
}

/* Completed */
.complite--title {
  text-decoration: line-through;
  color: #888;
}

/* Edit Task */
.edit-task-items__wrapper
.task-item 
.task-input__edit {
  display: none;
}

.task-input__edit {
  display: none;
  width: 224px;
}


.task-item.editMode 
.task-input__edit {
  display: inline-block;
}

.task-item.editMode 
.task-input__title {
  display: none;
}

.edit-task-items__wrapper 
.task-item.editMode 
.task-input__title {
  display: inline-block;
}
.main-add-elements {
  display: block;
  margin: 16px 0; 
}