@media (prefers-color-scheme: light) {
    :root {
        --md-sys-color-primary: rgb(109 94 15);
        --md-sys-color-surface-tint: rgb(109 94 15);
        --md-sys-color-on-primary: rgb(255 255 255);
        --md-sys-color-primary-container: rgb(248 226 135);
        --md-sys-color-on-primary-container: rgb(83 70 0);
        
        --md-sys-color-secondary: rgb(102 94 64);
        --md-sys-color-on-secondary: rgb(255 255 255);
        --md-sys-color-secondary-container: rgb(238 226 188);
        --md-sys-color-on-secondary-container: rgb(78 71 42);

        --md-sys-color-tertiary: rgb(67 102 78);
        --md-sys-color-on-tertiary: rgb(255 255 255);
        --md-sys-color-tertiary-container: rgb(197 236 206);
        --md-sys-color-on-tertiary-container: rgb(44 78 56);

        --md-sys-color-error: rgb(186 26 26);
        --md-sys-color-on-error: rgb(255 255 255);
        --md-sys-color-error-container: rgb(255 218 214);
        --md-sys-color-on-error-container: rgb(147 0 10);

        --md-sys-color-background: rgb(255 249 238);
        --md-sys-color-on-background: rgb(30 27 19);

        --md-sys-color-surface: rgb(255 249 238);
        --md-sys-color-on-surface: rgb(30 27 19);
        --md-sys-color-surface-variant: rgb(234 226 208);
        --md-sys-color-on-surface-variant: rgb(75 71 57);

        --md-sys-color-outline: rgb(124 119 103);
        --md-sys-color-outline-variant: rgb(205 198 180);

        --md-sys-color-shadow: rgb(0 0 0);
        --md-sys-color-scrim: rgb(0 0 0);

        --md-sys-color-inverse-surface: rgb(51 48 39);
        --md-sys-color-inverse-on-surface: rgb(247 240 226);
        --md-sys-color-inverse-primary: rgb(219 198 110);

        --md-sys-color-primary-fixed: rgb(248 226 135);
        --md-sys-color-on-primary-fixed: rgb(34 27 0);
        --md-sys-color-primary-fixed-dim: rgb(219 198 110);
        --md-sys-color-on-primary-fixed-variant: rgb(83 70 0);

        --md-sys-color-secondary-fixed: rgb(238 226 188);
        --md-sys-color-on-secondary-fixed: rgb(33 27 4);
        --md-sys-color-secondary-fixed-dim: rgb(209 198 161);
        --md-sys-color-on-secondary-fixed-variant: rgb(78 71 42);

        --md-sys-color-tertiary-fixed: rgb(197 236 206);
        --md-sys-color-on-tertiary-fixed: rgb(0 33 15);
        --md-sys-color-tertiary-fixed-dim: rgb(169 208 179);
        --md-sys-color-on-tertiary-fixed-variant: rgb(44 78 56);

        --md-sys-color-surface-dim: rgb(224 217 204);
        --md-sys-color-surface-bright: rgb(255 249 238);
        --md-sys-color-surface-container-lowest: rgb(255 255 255);
        --md-sys-color-surface-container-low: rgb(250 243 229);
        --md-sys-color-surface-container: rgb(244 237 223);
        --md-sys-color-surface-container-high: rgb(238 232 218);
        --md-sys-color-surface-container-highest: rgb(232 226 212);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --md-sys-color-primary: rgb(219 198 110);
        --md-sys-color-surface-tint: rgb(219 198 110);
        --md-sys-color-on-primary: rgb(58 48 0);
        --md-sys-color-primary-container: rgb(83 70 0);
        --md-sys-color-on-primary-container: rgb(248 226 135);
        --md-sys-color-secondary: rgb(209 198 161);
        --md-sys-color-on-secondary: rgb(54 48 22);
        --md-sys-color-secondary-container: rgb(78 71 42);
        --md-sys-color-on-secondary-container: rgb(238 226 188);
        --md-sys-color-tertiary: rgb(169 208 179);
        --md-sys-color-on-tertiary: rgb(20 55 35);
        --md-sys-color-tertiary-container: rgb(44 78 56);
        --md-sys-color-on-tertiary-container: rgb(197 236 206);
        --md-sys-color-error: rgb(255 180 171);
        --md-sys-color-on-error: rgb(105 0 5);
        --md-sys-color-error-container: rgb(147 0 10);
        --md-sys-color-on-error-container: rgb(255 218 214);
        --md-sys-color-background: rgb(21 19 11);
        --md-sys-color-on-background: rgb(232 226 212);
        --md-sys-color-surface: rgb(21 19 11);
        --md-sys-color-on-surface: rgb(232 226 212);
        --md-sys-color-surface-variant: rgb(75 71 57);
        --md-sys-color-on-surface-variant: rgb(205 198 180);
        --md-sys-color-outline: rgb(150 144 128);
        --md-sys-color-outline-variant: rgb(75 71 57);
        --md-sys-color-shadow: rgb(0 0 0);
        --md-sys-color-scrim: rgb(0 0 0);
        --md-sys-color-inverse-surface: rgb(232 226 212);
        --md-sys-color-inverse-on-surface: rgb(51 48 39);
        --md-sys-color-inverse-primary: rgb(109 94 15);
        --md-sys-color-primary-fixed: rgb(248 226 135);
        --md-sys-color-on-primary-fixed: rgb(34 27 0);
        --md-sys-color-primary-fixed-dim: rgb(219 198 110);
        --md-sys-color-on-primary-fixed-variant: rgb(83 70 0);
        --md-sys-color-secondary-fixed: rgb(238 226 188);
        --md-sys-color-on-secondary-fixed: rgb(33 27 4);
        --md-sys-color-secondary-fixed-dim: rgb(209 198 161);
        --md-sys-color-on-secondary-fixed-variant: rgb(78 71 42);
        --md-sys-color-tertiary-fixed: rgb(197 236 206);
        --md-sys-color-on-tertiary-fixed: rgb(0 33 15);
        --md-sys-color-tertiary-fixed-dim: rgb(169 208 179);
        --md-sys-color-on-tertiary-fixed-variant: rgb(44 78 56);
        --md-sys-color-surface-dim: rgb(21 19 11);
        --md-sys-color-surface-bright: rgb(60 57 48);
        --md-sys-color-surface-container-lowest: rgb(16 14 7);
        --md-sys-color-surface-container-low: rgb(30 27 19);
        --md-sys-color-surface-container: rgb(34 32 23);
        --md-sys-color-surface-container-high: rgb(45 42 33);
        --md-sys-color-surface-container-highest: rgb(56 53 43);
    }
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--md-sys-color-on-background);
    background-color: var(--md-sys-color-background);
    margin: 0;
    padding: 0;
    display: flex;
}

body .content {
    margin: auto;
    padding-bottom: 50px;
    flex-direction: column;
    align-items: center;
    
    max-width: 1000px;
}

.left {
    float: left;
}

.right {
    float: right;
}

h1 {
    text-align: center;
    color: var(--md-sys-color-on-background);
}

.addSection {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: 16px;
    border: none;
    margin: 50px 20px;
    /*  padding: 15px;*/
}

.input {
    margin: 16px;
    font-size: 1em;
    font-family: 'Nunito', sans-serif;
    border-radius: 8px;
    padding: 15px;
    outline: none;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    border: none;


}

#newItem {
    padding-left: 10px;
    width: 350px;

}

#newShop {
    /*color: var(--buttonColor);*/
}

#newItemButton {
    background-color: var(--md-sys-color-tertiary);
    color: var(--md-sys-color-on-tertiary);
    /*
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    */
    cursor: pointer;

}

.shopSorterBar {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: 16px;
    border: none;
    margin: 40px 20px 0 20px;

    display: flex;
    overflow-x: auto;
}

.shopSorterBar span {
    margin: 15px;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}


.list {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface-variant);
    border-radius: 16px;
    border: none;
    margin: 20px;
    width: calc(50% - 40px);
}

.item {
    margin: 15px;
    border-radius: 10px;
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    padding: 10px;
    cursor: pointer;
}

.crossed {
    color: dimgrey;
    text-decoration: line-through;
}

.deleteButton {
    height: 26px;
    width: 26px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 5px;
    float: right;
}

.deleteButton:hover {
    background-color: var(--md-sys-color-error-container);
    border-radius: 16px;
}

.shop {
    opacity: var(--opacity);
    min-width: 80px;
    text-align: center;
}

.grey {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.red {
    background-color: #D50000;
    color: white;

}

.blue {
    background-color: #2962FF;
    color: white;
}

.green {
    background-color: #00C853;
    color: white;
}

.yellow {
    background-color: #FFD600;
}

.orange {
    background-color: #FF6D00;
    color: white;
}

.white {
    background-color: white;
    color: #333;
}


@media screen and (max-width: 800px) {
    body {
        display: block;
    }

    .addSection {
        margin: 10px;
    }

    #newItem {
        width: calc(100% - 44px);
    }

    .input {
        width: calc(100% - 20px);
        margin: 10px;
    }

    .left, .right {
        float: none;
    }

    .list {
        float: left;
        margin: 10px;
        padding:  0;
        width: calc(100% - 20px);
    }

    .shopSorterBar {
        margin: 10px;
    }

    .shopSorterBar::-webkit-scrollbar {
        display: none;
    }

    .shop {
        width: 60px;
    }
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-button {
    width: 0;
    height: 0;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--md-sys-color-secondary);
    border: none;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-sys-color-on-secondary-fixed-variant);
}


