#app {
    padding: 1rem;
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    background-color: lightgoldenrodyellow;
    border-radius: 5px;
    border: 1px solid rgb(224, 224, 188);
}

#toDoList {
    box-shadow: 0px 0px 3px 1px rgba(0,0,0,.4);
    display: flex;
    flex-flow: column nowrap;
}

.task {
    padding: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-flow: row nowrap;
    background-color: lightblue;
    transition: .3s box-shadow ease-in;
    position: relative;
}

.task:hover {
    box-shadow: inset 2px 2px 3px rgba(0,0,0,.4);
}

.task:nth-child(even) {
    background-color: azure;
}

#newTask {
    padding: 1rem;
    width: 100%;
    background-color: lightgrey;
    border: none;
    box-shadow: 0px 0px 3px 1px rgba(0, 100, 255, .4);
}

#newTask:is(:active, :focus) {
    border: none;
    outline: none;
}

.task-done {
    text-decoration-line: line-through;
    text-decoration-style: double;
}

.delete-button {
    align-self: baseline;
    margin-left: auto;
    cursor: pointer;
}

.favorite-button {
    color: black;
    display: block;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-size: 1.3rem;
    position: absolute;
    right: 40px;
}

.favorite-active {
    color: yellow !important;
    animation: pulsar .5s 2 linear;
}

@keyframes pulsar {
    from {
        transform: scale(1.5);
    } to {
        transform: scale(1);
    }
}

@media screen and (min-width: 768px) {
    #app {
        margin: 1rem auto 0 auto;
    }
}