:root {
}

body {
    font-family: sans-serif;
    margin: 0;
}

.app-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr min-content;
    height: 100dvh;
}

.app-container .content {
    overflow: scroll;
}

.item-container {
    margin: .5rem .25rem;
}

.item-container .item {
    display: flex;
    align-items: center;
}

.item-container .item.checked {
    color: gray;
    text-decoration: line-through;
}

.item-container .title {
    user-select: none;
    max-width: calc(100dvw - 3em);
}

.item-container svg {
    width: 1.2rem;
    height: 1.2rem;
    padding: .3rem;
}

.item-container .controls {
    display: flex;
    justify-content: flex-end;
    font-variant-caps: all-small-caps;
    gap: 1rem;
    user-select: none;
}

.item-container .control {
    padding: .5rem;
}

.list hr {
    height: 1px;
    background-color: lightgray;
    border: none;
    margin: 0 .4rem;
}

.list .header {
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 0 .5rem gray;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.list h2 {
    font-weight: normal;
    text-align: center;
    margin: 0;
}

.menu {
    display: flex;
    justify-content: space-evenly;
    color: white;
    background-color: black;
    font-variant-caps: all-small-caps;
    font-size: smaller;
    padding: 0.75rem 0;
}

.menu .icon {
    width: 1.8rem;
    height: 1.8rem;
}

.menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.home-row {
    margin: 1rem;
    font-size: larger;
}

.progress-bar {
    display: grid;
    grid-template-areas: "bar";
    background-color: whitesmoke;
    margin: .5rem 0 0 0;
}

.progress-bar .completed {
    grid-area: bar;
}

.progress-bar .completed div {
    background-color: paleturquoise;
    height: 100%;
}

.progress-bar .completed div.done {
    background-color: palegreen;
}

.progress-bar .text {
    text-align: center;
    grid-area: bar;
    font-size: x-small;
    padding: .1rem;
}
