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

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

.welcome-section {
    text-align: right;
}

@media (max-width: 768px) {

    .welcome-section {
        text-align: center;
    }

}

.welcome-section__image {
    width: 100%;
}

.welcome-section__link {
    font-family: fantasy, cursive;
}

.main-section {
    margin-top: 16px;
}

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

.task__add {
    display: flex;
    flex-direction: row;
}

.task-item__wrap {
    margin: 0;
    padding: 0;
}

.task-item,
.title {
    list-style: none;
}

.button {
    background: none;
    border: 0;
    color: #888;
    font-size: 15px;
    width: 60px;
    cursor: pointer;
}

.button:hover {
    color: #3a3A3a;
}

/* Heading */

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

.add-item__title {
    display: block;
    margin: 0 0 20px;
}

.task__add-text {
    width: 226px;
    margin: 0;
    font-size: 18px;
    line-height: 18px;
    height: 21px;
    padding: 0 9px;
    border: 1px solid #dDd;
    background: #FFF;
    border-radius: 6px;
    color: #888;
}

.task__add-text:focus {
    color: #333;
}

/* New Task */

#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 .checkbox,
.task__label,
.task__add-text,
.button {
    vertical-align: middle;
}

.checkbox {
    margin: 0 10px;
}

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

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

.button__image:hover {
    transform: rotateZ(0);
}

/* Completed */

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

/* Edit Task */

.task-item .task__add-text {
    display: none;
}

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

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