html, body {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    background-color: #EEF0F4;
    padding-top: 20px;
    color: var(--text-color);
    user-select: none;
}

:root {
    --element-background-colour: #DCE1EB;
    --text-color: #432000;
    --button-color: #AC485A; 
}

#container {
    display: flex;
    flex-direction: column; 
    max-width: 320px;
    margin: 0px auto 30px auto;
}

#big-container, #inner-container-el {
    max-width: 320px;
    display: block; 
    margin-left: auto; 
    margin-right: auto; 
}


input {
    color: var(--text-color);
    background-color: var(--element-background-colour);

    border: none;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 18px;
    font-family: 'Rubik', sans-serif;
    margin: 0;
    height: 30px;
}



button {
    color: #FDFDFD;
    background-color: var(--button-color);
    border: none;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-size: 20px;
    font-family: 'Rubik', sans-serif;
    height: 60px;
}

button:hover {
    cursor: pointer; 
}

@media (min-width: 780px) {
    button:hover {
        background-color: var(--text-color);
        cursor: pointer;
    }
}

.mainImg {
    width: 180px;
    margin: 0 auto;
    border-radius: 50%;
}

ul {
    list-style-type: none;
    padding: 0;
    display: flex; 
    flex-wrap: wrap;
    gap: 10px;
}

ul li {
    font-size: 20px;
    background-color: #FFFDF8;
    padding: 15px;
    border-radius: 8px;
    flex-grow: 1;
    text-align: center;
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.2);
    max-width: 290px;
    word-wrap: break-word;

    display: flex; 
    align-items: center; 
    justify-content: center; 
}

ul li:hover {
    background-color: #FFECC7;
    cursor: pointer;
}

#main-section, #section-list, .bottom-bar, #input-section {
    display: flex;
    flex-direction: column; 
    /* max-width: 320px; */
    margin: 15px 0;
}

.info-section-section {
    margin-top: -25px;
    margin-bottom: 120px;
    text-align: center;
}

.disappear {
    display: none; 
    width: 0; 
    height: 0; 
}

.image-bar {
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 30px;  
}

#info-img {
    width: 50px; 
    height: 50px; 
    cursor: pointer;
}

#regular-list-img, #shopping-list-img, #regular-actual-list-img, #shopping-actual-list-img {
    width: 38px; 
    height: 38px; 
    margin-top: 7px;
    cursor: pointer; 
}

#shopping-list-img {
    padding-right: 7px; 
}





/* scrollbar */

::-webkit-scrollbar {
    width: 8px;
    display: none;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px transparent; 
    border-radius: 10px;
}







/* ---------------------------------------------------------------- */



input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.row {
    display: flex; 
    justify-content: space-between;
    align-items: center;
    margin: 0; 
    gap: 10px;
}

.mb {
    margin-bottom: 10px; 
}

#input-quantity-field {
    width: 37px;
    font-size: 18px;
    text-align: center;
    text-decoration: none; 
    margin: 0;
    /* height: 15px; */
    height: 100%;
    height: 30px;
}














#clear-button {
    width: 80px;
}

.add-sect-btn {
    width: 80px;
    background-color: var(--element-background-colour); 
    margin: 0px;  
    font-size: 28px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

#add-button {
    width: 100%;
}






#shopping-title, #regular-title {
    text-align: center; 
}








/* ----------------------------------------------------- */


.bottom-bar {
    max-width: 420px;
    position: fixed;
    width: 100%; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    margin-inline: auto;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 1px;
    margin-bottom: 0; 
    background-color: var(--element-background-colour);
    border-radius: 8px;
    padding-top: 15px;
    padding-bottom: 20px;

    transition: transform 750ms ease-in-out 0s;
}


.item-line {
    margin: 0; 
    margin-top: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    max-width: 290px; 
    word-wrap: break-word;
    text-align: center; 
}

.quantity-line {
    display: flex; 
    gap: 10px;
    justify-content: center; 
}

.add-shopping-list {
    font-size: 14px;
    height: 20px;
    display: flex;
    align-items: center;
}

.quantity-adjuster {
    background-color: var(--element-background-colour); 
    color: var(--text-color); 
    height: 5px;
    display: flex; 
    align-items: center; 
    margin: 0; 
    margin-top: 10px;
}

.quantity-adjuster:hover {
    background-color: var(--element-background-colour);
}

#shopping-list, .a-shopping-list {
    padding-bottom: 10px;
    max-width: 320px;
}

.a-shopping-list {
    max-width: 290px;
    margin-left: 25px; 
    padding-bottom: 20px;
    /* margin-right: auto;  */
}

.indent-left {
    margin-left: 25px;
}

.make-space-bottom {
    padding-bottom: 200px;
}

.space-bottom {
    padding-bottom: 125px; 
}

.space-bottom-less {
    padding-bottom: 90px;
}

h3 {
    margin-bottom: 10px;
    margin-top: 10px;
    font-size: 20px;
}








/* ---------------------------------------------------------------- */



.notes-field {
    height: 70px;
    text-align: start;
    font-size: 16px;

    color: var(--text-color);
    background-color: var(--element-background-colour);

    border: none;
    padding: 15px;
    text-align: start;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    margin-bottom: 10px;
    resize: none;
}


.notes-btn {
    width: 35px;
    background-size: contain; 
    cursor: pointer; 
    position: absolute; 
    margin-top: 90px;
    margin-left: 10px;
}

#input-field {
    padding-left: 50px;
    text-indent: -35px;
    margin: 10px 0; 
    width: 100%; 
}

.note-line {
    margin-bottom: 0;
    margin-top: 10px;
}

.main-notes-section {
    margin-bottom: 8px;
    white-space: pre-wrap;
    max-width: 290px;
    word-wrap: break-word;
    text-align: center; 
}

.button-line {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 10px;
}

.update-quantity {
    font-size: 14px;
    height: 20px;
    display: flex; 
    align-items: center; 
    justify-content: center;
}








/* ------------------------------------------------------ */


.select-items {
    text-align: center; 
}


.section-adder {
    font-size: 18px;
    padding: 10px 15px;
    margin-bottom: 10px;
    height: 40px;
}

.select {
    width: 100%;
    position: relative; 
    width: 100%; 
}

.select select {
    display: none; 
    width: 0; 
    height: 0; 
}

.custom-selected {
    /* appearance: none;  */
    width: 100%; 
    color: var(--text-color);
    background-color: var(--element-background-colour);

    border: none;
    /* padding: 15px 15px; */
    text-align: center;

    display: flex; 
    justify-content: center; 
    align-items: center; 

    border-radius: 8px;
    font-size: 18px;
    font-family: 'Rubik', sans-serif;
    margin: 0;
    height: 60px;
    cursor: pointer; 

    box-sizing: border-box;
    text-align: center; 
}

.custom-dropdown {
    margin: 0; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    font-size: 18px;
    cursor: pointer; 
    overflow: visible; 
}

.custom-options {
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%;
    max-height: 200px; 
    overflow-y: auto; 
    background-color: var(--element-background-colour); 
    padding: 5px 0px;
    z-index: 100; 
    display: block; 
    margin-top: -5px; 
    border-radius: 0px 0px 8px 8px;
    list-style-type: none; 
}

.custom-options li {
    padding: 15px; 
    font-size: 16px; 
    cursor: pointer; 
    background-color: var(--element-background-colour); 
    box-shadow: none; 
    overflow-wrap: anywhere; 
    word-wrap: break-word;
    text-align: start;
    display: block; 
}