@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400;1,700&display=swap');

header {
    background: #756d5b;
    color: #f1efe2;
    height: 100px;
    margin: 0;
    padding: 15px 0;
    transition: background 1s;
}

header.reconnecting {
    background: #0e2dc5;
}

h1 {
    margin: 0;
    padding-left: 55px;
    padding-bottom: 5px;
    font-style: italic;
}

h3 {
    display: block;
    padding-left: 55px;
    color: #906128;
    font-weight: bold;
    font-style: italic;
    background: #f9e8d0;
    margin: 0;
    font-size: 20px;
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Lora";
    background: white;
}

html, body {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
    padding-left: 0px;
    margin: 0;
}

.row_with_side_buttons {
    overflow: hidden;
}

.row_with_side_buttons_content_wrapper {
    height: 50px;
    display: flex;
    transform: translateX(0px);
}

.row_with_side_buttons_content_wrapper.not_being_touched {
    transition: transform 0.25s ease-in-out;
}

.row_with_side_buttons_content_wrapper > .label {
    flex-grow: 1;
    flex-shrink: 0;
}

.row_with_side_buttons_content_wrapper {
    cursor: grab;
}
.row_with_side_buttons_content_wrapper > .label {
    display: flex;
    align-items: center;
}

@media (pointer: coarse) {
    .row_with_side_buttons_content_wrapper > .label {
        flex-basis: 100%;
    }
}

.side_buttons {
    display: flex;
}

.side_button {
    display: block;
    margin: 0;
    padding: 0;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
}

.product_button {
    background: #f7dbca;
}
.category_button {
    background: #fbc39b;
}

.row_with_side_buttons_content_wrapper h3 {
    line-height: 50px;
}

.side_buttons {
    align-self: center;
}

li {
    border-bottom: 1px dashed lightgray;
    font-size: 18px
}

.product {
    transition: background 0.4s ease-out;
}

.product.stocked {
    background: #f7f7f7;
}

.product.stocked span {
    text-decoration: line-through;
    font-style: italic;
    font-size: 18.5px;
    color: gray;
}

input[type="checkbox"] {
    display: block;
    width: 20px;
    height: 20px;
    appearance: none;
    border: 1px solid #b97b3f;
    margin: 0 15px 0 20px;
    transition: background 0.4s ease-in;
    background: white;
}

input[type="checkbox"]:checked {
    background: #fbf0da;
}

input[type="checkbox"]::after {
    display: block;
    content: "\2713";
    font-size: 16px;
    font-family: Fontello;
    color: #9e6936;
    position: relative;
    top: 1px;
    left: 0px;
    opacity: 0;
}

input[type="checkbox"]:checked::after {
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

input:focus, button:focus {
    outline: none;
}

.product > label, header label {
    display: flex;
    align-content: center;
    align-items: center;
}

@keyframes rotate {
    to {
        transform: rotate(1turn);
    }
}

.synchronizing_icon {
    display: block;
    position: absolute;
    top: 28px;
    left: 20px;
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

.synchronizing_icon.synchronizing {
    opacity: 1;
}

.add_category_button {
    display: block;
    margin: 40px auto 30px auto;
    padding: 10px 15px;
    border: none;
    font-family: Lora;
    font-size: 16px;
}

#filter_box {
    width: 100%;
    border: 1px solid #9e6936;
    padding: 10px;
    font-size: 16px;
    font-family: Lora;
}