:root {
    --mainColor: #e7662c;
    --secondMainColor: #f98424;
    --backgroundColor: #333;
    --white: whitesmoke;
}

* {
    padding: 0;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: var(--backgroundColor);
    color: var(--white);
    display: flex;
    flex-direction: column;
    flex: auto auto;
    min-height: 100vh;
    text-shadow: 2px 2px #000;
}

header {
    position: sticky;
    top: 0;
    text-align: center;
    padding: 1.5%;
    background-color: #444;
    color: var(--mainColor);

    margin: 0%;
}

header h1 {
    font-size: 1.9rem;
}
header > p {
    font-size: 1rem;
    color: var(--secondMainColor);
}

main {
    margin-top: 3%;
    overflow-y: visible;
    flex-grow: 1;
}

footer {
    position: sticky;
    bottom: 0;
    background-color: var(--backgroundColor);
    background-color: #666;
}

button {
    background-color: var(--backgroundColor);
    color: var(--white);
    border-radius: 2px;
    touch-action: manipulation;
}

.sectionHead {
    text-align: center;
}

.listContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    align-items: end;

    margin-bottom: 6%;
    overflow: scroll;
}

.listContainer h2 {
    text-align: center;
}

.foodName {
    font-size: 1rem;
    margin-top: 3%;
    margin-bottom: 2.5%;
}

.foodContainer {
    margin: 4%;
    height: max-content;
}

.subFood {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-sizing: content-box;
    vertical-align: middle;
}
.subFood p {
    flex-basis: 40%;
    justify-content: space-around;
    text-align: center;
    align-self: center;
}

.subFood button {
    /* position: relative; */
    flex-basis: 25%;
    height: 2rem;
    justify-content: space-around;
    border-color: var(--secondMainColor);
    font-size: 1.5rem;
    padding: 0;
}

.subFood input[type="button"] {
    background-color: var(--backgroundColor);
    color: var(--white);
    flex-basis: 25%;
    height: 2rem;
    justify-content: space-around;
    border-color: var(--secondMainColor);
    /* font-size: 2rem; */
}

/* footer */
#footerSum {
    text-align: right;
    margin: 2%;
    font-size: 1.5rem;
    background-color: #444;
    text-align: center;
    padding: 0.3rem;
}
#valChart {
    color: var(--secondMainColor);
}

#tinyCart {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 2%;
}

.cartItem {
    /* display: block; */
    flex-basis: 46%;
    text-align: center;
    margin: auto auto auto 2%;
    border-bottom: 1px var(--backgroundColor) solid;
    margin-bottom: 1.2%;
    padding-bottom: 2px;
}

#valChart {
    font-size: 2.3rem;
}

.button {
    font-size: 0.9rem;
    border: 1px var(--secondMainColor) solid;
    text-align: center;
    margin: 2%;
    padding: 0.2rem;
    color: var(--secondMainColor);
}

.hidden {
    display: none;
}

.rights {
    background-color: #333;
    font-size: 0.7rem;
    text-align: center;
}
