html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* shopping list item category */

.category-title {
    border-left: 1px solid #D4D4D4;
    border-right: 1px solid #D4D4D4;
    border-top: 1px solid #D4D4D4;
    margin-top: 2rem;
    margin-bottom: 0px;
    padding: 0.5rem;
    background-color: #D4D4D4;
}

/* Shopping-list list */
.listlist {
    font-size: 1.5rem;
}

.listlist .listlistitem {
    padding: 0.5rem;
    border-left: 1px solid #D4D4D4;
    border-right: 1px solid #D4D4D4;
    border-bottom: 1px solid #D4D4D4;
    display: flex;
    gap: 1rem;
    cursor: pointer;
}

.listlist .listlistitem a {
    color: #212529;
    text-decoration: none;
}

.listlist > .listlistitem:first-child {
    border-top: 1px solid #D4D4D4;
}

.listlist .listlistitem:hover {
    background-color: lightgray;
}

/* Shopping item list */

.shoplist {
    font-size: 1.5rem;
}

.shoplist .shoplistitem {
    padding: 0.5rem;
    border-left: 1px solid #D4D4D4;
    border-right: 1px solid #D4D4D4;
    border-bottom: 1px solid #D4D4D4;
    display: flex;
    gap: 1rem;
    /*justify-content: space-between;*/
}

.shoplist > .shoplistitem:first-child {
    border-top: 1px solid #D4D4D4;    
}

.shoplist .shoplistitem .item-name {
    flex-grow: 1;
    cursor: pointer;
}

.shoplist .shoplistitem .item-quantity {
}

.shoplist .shoplistitem .item-unit {
}

.shoplist .shoplistitem .btn {
    width: 2rem;
    /*height: 2rem;*/
    flex-shrink: 0;
    flex-grow: 0;
}

.shoplist .shoplistitem .itembtn {
    width: 2rem;
    /*height: 2rem;*/
    flex-shrink: 0;
    flex-grow: 0;
    text-align: center; 
    cursor: pointer;
}

/* Suggestion list */

.suggestionlist {
    font-size: 1rem;
}

.suggestionlist .suggestionitem {
    padding: 0.5rem;
    border-left: 1px solid #D4D4D4;
    border-right: 1px solid #D4D4D4;
    border-bottom: 1px solid #D4D4D4;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    /*justify-content: space-between;*/
}

.suggestionlist > .suggestionitem:first-child {
    border-top: 1px solid #D4D4D4;
}

.suggestionlist .suggestionitem:hover {
    background-color: lightgray;
}

/* Tabs */
.tablist {
    /*display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));*/
    position: sticky;
    top: -1px;
    display: flex;
    font-size: 1.5rem;
    justify-content: center;
    border-bottom: 1px solid black;
    margin-bottom: 1rem;
    padding: 0;
    background-color: white;
}

@media only screen and (min-width: 768px) {
    .tablist {
        padding: 0 1rem;
    }
}

.tablist .tabitem {
    background-color: #E6E6E6;
    position: relative;
    top: 1px;
    padding: 0.5rem;
    border: 1px solid black;
    cursor: pointer;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    text-align: center;
}

.tablist .tabitem:hover {
    background-color: #EDEDED;
}

.tablist .selected-tabitem {
    background-color: white;
    border-bottom: 1px solid white;
    cursor: default;
}

.tablist .selected-tabitem:hover {
    background-color: white;
}

/* list footer */

.listfooter {
    position: sticky;
    bottom: 0px;
    text-align: center;
}

.listfooter .additem-btn {
    /*border-radius: 50%;*/
    font-size: 3rem;
    color: #0a58ca;
    cursor: pointer;
    /*background-color: white;*/
}
