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

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

.header-content img {
  width: 100%;
}

.more-info {
  font-family: fantasy, cursive;
}

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

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

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

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

ul {
  margin: 0;
  padding: 0;
}

li,
h3 {
  list-style: none;
}

input,
button {
  outline: none;
}

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

button:hover {
  color: #3a3a3a;
}

/* Heading */
h3,
label[for='new-task'] {
  color: #333;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid #333;
  padding: 30px 0 10px;
  margin: 0;
  text-transform: uppercase;
}

input[type="text"] {
  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;
}

input[type="text"]:focus {
  color: #333;
}

/* New Task */
label[for='new-task'] {
  display: block;
  margin: 0 0 20px;
}

input#new-task {
  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-item > input[type="checkbox"] {
  margin: 0 10px;
}

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

.task-edit {
  width: 226px;
}

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

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

/* Completed */
#completed-tasks .task-label {
  text-decoration: line-through;
  color: #888;
}

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

.task-item.edit-mode .task-edit {
  display: inline-block;
  width: 224px;
}

.task-item.edit-mode .task-label {
  display: none;
}