body {
    font-family: sans-serif;
}

.mainGridContainer {
    display: grid;
    grid-template-columns: 1fr 12fr 1fr;
    grid-template-rows: 1fr 4fr 1fr;
    gap: 1px 1px;
    grid-template-areas: ". . ." ". . ." ". . .";
    background-color: #fff;
    color: #444;
    max-height: calc(100vh - 400px);
    min-height: calc(100vh - 400px);
    max-width: 100%;
}

.sideBorder {
    max-width: 20px;
    color: white !important;
    padding: 0px !important;
}

.cell {
    display: grid;
    grid-gap: 10px;
    color: black;
    padding: 20px
}

.cell .cell {
    background-color: #fff;
    color: #444
}

.cell .cell .cell {
    background-color: #444;
    color: #ccc;
    grid-gap: 5px
}

#titleCell {
    text-align: center;
    font-size: 400%;
    color: #000;
    background-color: #fff
}

.inputRow {}

#buttonRow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 3px 2px;
}

.macroLabel {
    text-align: right;
    display: box;
    box-pack: center
}

.sliderContainer {
    text-align: center;
    min-width: 80px;
}

.slider {
    margin: 0;
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: 0;
    opacity: 1;
    -webkit-transition: .2s;
    transition: opacity .2s;
    width: 100% !important;
}

#proteinrange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f7464a;
    cursor: pointer
}

#proteinrange::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f7464a;
    cursor: pointer
}

#carbrange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #46bfbd;
    cursor: pointer
}

#carbrange::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #46bfbd;
    cursor: pointer
}

#fatrange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fdb45c;
    cursor: pointer
}

#fatrange::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fdb45c;
    cursor: pointer
}

#calorieInput {
    padding: auto;
    width: 100%;
}

.activeButton {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 2.5ex;
    height: 5ex;
    vertical-align: middle;
    box-shadow: inset 0px 1px 3px 0px #91b8b3;
    background: linear-gradient(to bottom, #768d87 5%, #6c7c7c 100%);
    background-color: #768d87;
    border-radius: 5px;
    border: 1px solid #566963;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0px -1px 0px #2b665e;
}

.activeButton:hover {
    background: linear-gradient(to bottom, #6c7c7c 5%, #768d87 100%);
    background-color: #6c7c7c;
}

.activeButton:active {
    position: relative;
    top: 1px;
}

.button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 2.5ex;
    height: 5ex;
    vertical-align: middle;
    box-shadow: inset 0px 1px 3px 0px #91b8b3;
    background-color: #c4c4c4;
    border-radius: 5px;
    border: 1px solid #566963;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 0px -1px 0px #2b665e;
}

.button:hover {
    background-color: #95a6a6;
}

.button:active {
    position: relative;
    top: 1px;
}

#lower {
    display: grid;
    /*  grid-template-columns: 3fr 2fr; */
    grid-template-rows: 1fr;
}

.dietGridContainer {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 1px 0;
    grid-template-areas: ". . ." ". . ." ". . .";
    width: 100% !important;
}

.app {}

.graphCell {
    position: relative;
    width: 100%;
}

@media screen and (min-width: 800px) {
    #lower {
        display: grid;
        grid-template-columns: 3fr 2fr;
    }
    body {
        font-size: medium;
    }
    .sideBorder {
        width: 150px;
    }
    .app {
        max-height: calc(100vh - 350px);
        min-height: calc(100vh - 350px)
    }
    .mainGridContainer {
        display: grid;
        grid-template-columns: 1fr 4fr 1fr;
        grid-template-rows: 1fr 4fr 1fr;
        gap: 1px 1px;
        grid-template-areas: ". . ." ". . ." ". . .";
        background-color: #fff;
        color: #444;
        max-height: calc(100vh - 400px);
        min-height: calc(100vh - 400px);
        max-width: 100%;
    }
    .dietGridContainer {
        display: grid;
        grid-template-columns: 1fr auto-fit 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 1px 0;
        width: 50%;
    }
}