*, ::before, ::after {
    box-sizing: border-box;
}

body {
    font-family: avenir;
}

#app {
    background: #eee;
    padding: 1rem;
    margin: 1rem;
    width: 35rem;
    border-radius: 8px;
}

h1 {
    margin: 0 0 1rem 0;
    font-family: futura;
    font-size: 3rem;
}

#todo-list {
    margin-bottom: 1rem;
}

#todo-input {
    width: 100%;
    padding: 0.5rem;
    font-size: 1.2rem;
}

#todo-input:focus {
    outline: none;
}

#todo-input::placeholder {
    font-style: italic;
    color: #777;
    font-weight: 100;
}

.todo {
    position: relative;
    background: #ccc;
    margin: 0.5rem 0;
    padding: 0.5rem;
    font-size: 0.85rem;
}

.todo:has(input:checked) .todo-label {
    text-decoration: line-through;
}

.todo-label {
    margin-left: 0.4rem;
}

.todo input[type="checkbox"] {
    position: relative;
    top: 0.1rem;
}

.todo-delete {
    cursor: pointer;
    display: none;
}

.todo:hover .todo-delete {
    display: inline;
}

.todo-delete:after {
    content: '\2717';
    position: absolute;
    right: 1rem;
    color: black;
}

footer {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

footer ul {
    margin: 0;
    padding-left: 0;
    display: flex;
    column-gap: 0.5rem;
    list-style: none;
}

footer ul li {
    padding: 0.5rem;
}

footer ul li a {
    color: #777;
    text-decoration: none;
}

footer ul li.selected {
    outline: 1px solid #bbb;
    border-radius: 4px;
}

footer #todo-clearCompleted {
    cursor: pointer;
}

footer #todo-clearCompleted:hover {
    text-decoration: underline;
}
