a {
    color: #000;
    text-decoration: none;
}

a:visited {
    color: #000;
}

a:hover {
    color: #04a;
}

body {
    background-color: #eee;
    color: #111;
}

#main {
    padding-bottom: 8rem;
}

.lineitem {
    display: flex;
    align-items: center;
    width: 100%;
    flex-flow: wrap;
}

.lineitem p {
    flex-grow: 1;
}

.lineitem input {
    margin-left: auto;
    margin-right: 1rem;
}

.lineitem input[type=text] {
    margin-right: auto;
    margin-left: 1rem;
}

.lineitem hr {
    width: 100%;
}

.lineitem button {
    margin-left: 1rem;
    margin-right: 1rem;
}

.lineitem .fa-regular {
    margin-right: 1rem;
}

.listlink {
    display: block;
    width: 100%;
    height: 100%;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.modal {
    width: 100%;
    margin-left: 1rem;
}

#plus-btn {
    position: fixed;
    margin-right: 2rem;
    margin-bottom: 2rem;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.errormsg {
    background-color: #a22;
    color: #eee;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.errormsg p {
    text-align: center;
}

#share-list-form > button {
    margin: 1rem 0;
}

#main div.lineitem:nth-child(even){
    background-color: #f5f5f5;
}

#nav {
    background-color: #333;
}

#nav .nav-row {
    display: flex;
    align-items: center;
}

.lineitem.item-row {
    flex-wrap: nowrap;
    touch-action: pan-y;
}

.lineitem.item-row .item-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Override generic .lineitem input rules for item rows */
.lineitem.item-row input {
    margin-left: 0;
    margin-right: 0;
}

.item-body {
    flex: 1;
    margin: 0;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.lineitem.item-row .item-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.is-completed {
    text-decoration: line-through;
    text-decoration-thickness: 0.125rem;
}

#nav .nav-link,
#nav .icon {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

#nav .nav-left,
#nav .nav-right {
    display: flex;
    align-items: center;
    gap: 0;
}

#nav .nav-title {
    flex: 1;
    color: #f2f2f2;
    padding: 14px 16px;
    font-size: 17px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.is-completed {
    text-decoration: line-through;
    text-decoration-thickness: 0.125rem;
}

#nav .nav-menu {
    display: none;
}

#nav .icon {
    display: none;
}

.nav-toggle {
    display: none;
}

@media screen and (max-width: 600px) {
    /* Top row: title left, hamburger right */
    #nav .nav-row {
        justify-content: space-between;
    }

    /* Hide the desktop link groups */
    #nav .nav-left,
  #nav .nav-right {
      display: none;
  }

    /* Title shown and left-aligned */
    #nav .nav-title {
        flex: 1;
        text-align: left;
        padding: 14px 16px;        /* keep same hit-area as links */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hamburger shown, right-aligned */
    #nav .icon {
        display: block;
        margin-left: 0;            /* don't push it to a new line */
        cursor: pointer;
    }

    /* Dropdown menu styling */
    #nav .nav-menu {
        display: none;
    }

    #nav-toggle:checked ~ .nav-menu {
        display: block;
    }

    #nav .nav-menu .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    /* Hide the page H1 on mobile if you're using navbar title */
    .page-title {
        display: none;
    }
    
    .lineitem input[type=checkbox] {
        display: none;
    }

    .lineitem .fa-regular {
        font-size: 1.5rem;
        padding-left: 1rem;
    }

    .lineitem i:last-child {
        margin-left: auto;
    }
} 
