/* Resetting the Default Styles */
ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

input,
button {
  outline: none;
}

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

.heading {
  color: #333;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid #333;
  padding: 30px 0 10px;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.button {
  background: none;
  border: 0px;
  color: #888;
  font-size: 15px;
  width: 60px;
  font-family: Lato, sans-serif;
  cursor: pointer;

  &:hover {
    color: #3a3a3a;
  }
}

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

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

.header__img {
  width: 100%;
}

.header__link {
  font-family: fantasy, cursive;
}

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

.task-list__item {
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;

  &:not(:first-child) {
    padding-top: 20px;
  }
}

.task {
  display: flex;
  width: 100%;
}

.task_edit-mode_on,
.task_delete-mode_on {
  .task__label {
    display: none;
  }

  .task__input {
    display: inline;
  }
}

.task__wrapper {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.task__label {
  box-sizing: border-box;
  width: 226px;
  padding-left: 10px;
  font-size: 18px;
}

.task__label_line-through {
  text-decoration: line-through;
  color: #888;
}

.task__input {
  display: none;
  flex-grow: 1;
  height: 21px;
  padding: 0 9px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 18px;
  line-height: 18px;
  color: #888;
  background-color: #fff;

  &:focus {
    color: #333;
  }
}

.task__input_add {
  display: inline;
}

.task__checkbox {
  margin: 0 10px;
}

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

  &:hover {
    transform: rotateZ(0);
  }
}
