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

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

}

.header-image {
    width: 100%;
}

a.link {
    font-family: fantasy, cursive;

}


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

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

a.link {
    font-family: fantasy, cursive;
    position: relative;
    left: 850px;
}

.add-to-do__input,
.list-item__input,
.list-item__label {
    width: 56%;
    display: inline-block;
    flex-grow: 1;
}

.add-to-do {
    display: flex;
}

ul {
    margin: 0;
    padding: 0;
}

.list-item {
    list-style: none;
}

input,
button {
    outline: 0;
    border: 0;
    background: #fff;
    margin-top: 15px;
}

.add-to-do__button,
.list-item__remove,
.list-item__edit {
    background: none;
    border: none;
    color: #888;
    font-size: 15px;
    width: 60px;
    font-family: Lato, sans-serif;
    cursor: pointer;
}

.add-to-do__button,
.list-item__remove,
.list-item__edit {
    color: #3a3A3a;
}

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

#input.add-to-do__input {
    margin-top: 15px;
}



.add-to-do__input,
.list-item__input {
    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;
}

.list-item__input:focus {
    color: #333;
}

/* New Task */
#container>.title {
    display: block;
    margin: 0 0 20px;
}

#input {
    width: 318px;
}

/* Task list */
.list-item {
    overflow: hidden;
    padding: 20px 0;
    border-bottom: 1px solid #eee;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.list-item__checkbox {
    margin: 0 10px;
}

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

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

.list-item__remove:hover {
    transform: rotateZ(0);
}

/* Completed */
#completed-list>.list-item__label {
    text-decoration: line-through;
    color: #888;
}

/* Edit Task */
.list-item__input {
    display: none
}

.contribute .list-item__input {
    display: inline-block;
    width: 224px
}

.list-item.contribute label {
    display: none;
}