/* === Reset Styles === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
}

/* === App Styles === */
.wrapper {
    display: flex;
    align-items: center;
    min-height: 100%;
    padding: 2rem 1rem;
    background: linear-gradient(45deg, #da3, #25c);
}

.todo {
    margin: auto;
    max-width: 500px;
    min-width: 300px;
    background-color: #eee;
    box-shadow: 0 0.25rem 0.5rem #333;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}

.todo__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 1rem;
    background-color: #55f;
    color: #eee;
}

.todo__toggle {
    max-width: max-content;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 3rem;
    font-weight: bolder;
    transition: all 250ms;
    transform-origin: center;
}

.todo__toggle:hover {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0px 0px 5px #333;
}

.todo__add {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
    background-color: #ddd;
    border: none;
    color: #444;
}

.todo__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.todo__list-item {
    line-height: 2rem;
    background-color: #eee;
    cursor: pointer;
}

.todo__list-item:nth-child(even) {
    background-color: #ddd;
}

.todo__list-item-text {
    padding: .25rem 1rem;
    transition: all 250ms;
    overflow-wrap: break-word;
}

.todo__list-item-text--is-done {
    color: #999;
    text-decoration: line-through;
}

.todo__list-trash {
    width: 0rem; /* Will change to 2rem */
    height: 100%;
    display: inline-block;
    background-color: #e43;
    color: white;
    opacity: 0; /* Will change to 1 */
    text-align: center;
    transition: 250ms linear;
}

.todo__list-item:hover .todo__list-trash {
    width: 2rem;
    opacity: 1;
}
