/* Copyright © 2024 Nate Cramer natecramer@gmail.com */

body, a, h1, h2, h3, h4, h5, h6, .doughbutton, .menu-button {
    font-family:Verdana, Geneva, Tahoma, sans-serif;
}

body {
    /* overflow: hidden; */
    background-color: bisque;
}

#page {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: bisque;
    align-items: center;
}

#main-sheet {
    display: grid;
    grid-template-columns: repeat(3, 33%);
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
}

#main-sheet > div:nth-of-type(6n+1),
#main-sheet > div:nth-of-type(6n+2),
#main-sheet > div:nth-of-type(6n+3) {
    background-color: rgb(248, 216, 173);
}

.sheet-header {
    /* background-color:; */
    border-bottom: 1px;
    border-color: black;
    font-weight: bold;
    font-size: .9em;
}

.screen-input {
    width: auto;
}

#doughbuttonscont {
    display: flex;
    flex: initial;
    justify-content: center;
    width: 85%;
    /* background-color: aqua; */
    padding-bottom: 10px; /*1em;*/
    /* position: absolute; */
    top: 5px;
    left: 2em;
}

#doughbuttons {
    display: flex;
    flex: 1;
    justify-content: center;
    width: 80%;
    gap: 2px; /*1em;*/
}

.doughbutton {
    background-color: lightcoral;
    border: none;
    color: black;
    text-align: center;
    font-weight: bold;
    /* font-size: 1em; */
    font-size: clamp(.9rem, 3vw, 2rem);
    transition-duration: 0.2s;
    border: 1px solid bisque;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.doughbutton.doughcurrent {
    background-color: khaki;
    border: 1px solid black;
}

.doughbutton:hover {
    background-color:khaki;
    /* border: 1px solid bisque; */
    border: 1px solid black;
}

.doughbutton:active {
    background-color: white;
    /* color: lightcoral; */
    border: 1px solid bisque;
}

#totals-cont {
    display: flex;
    /* flex-basis: max-content; */
    width: 80%;
    padding-left: 10%;
    padding-right: 10%;
    /* height: 8em; */
    height: max-content;
    justify-content: center;
    /* gap: 10px; */
    /* border: 1px solid blue; */
}

.total-cont-header {
    font-weight: bolder;
    font-size: .9em;
}

#totals-grid {
    display: flex;
    /* grid-template-columns: 1.5fr; */
    /* background-color: aqua; */
    /* border: 1px solid red; */
    /* gap: 0.5em; */
    border: 1px solid sienna;
    border-left: 0px;
}

.total-cont-left {
    border-left: 1px solid bisque;
    border-top: 1px solid bisque;
    border-bottom: 1px solid bisque;
    /* transition-duration: 0.2s; */
}

.total-cont-right {
    border-right: 1px solid bisque;
    border-top: 1px solid bisque;
    border-bottom: 1px solid bisque;
    /* transition-duration: 0.2s; */
}

.total-cont-left.alt,
.total-cont-right.alt {
    background-color: rgb(248, 216, 173);
}

.total-cont-left.doughcurrent {
    border-left: 1px solid sienna;
    border-top: 1px solid sienna;
    border-bottom: 1px solid sienna;
}

.total-cont-right.doughcurrent {
    border-right: 1px solid sienna;
    border-top: 1px solid sienna;
    border-bottom: 1px solid sienna;
}

.total-cont-left.doughcurrent,
.total-cont-right.doughcurrent {
    background-color: khaki;
}

.total-cont-left, .total-cont-right {
    /* border: 1px solid black;
    background-color: cyan; */
}

.total-cont-main {
    /* border: 1px solid sienna; */
    border-left: 1px solid sienna;
    /* border-left: 1px solid sienna; */
}

.total-cont-head {
    /* border: 1px solid cyan; */
    padding: 0.2em;
    /* justify-content: center;
    align-items: center; */
    /* font-size: 0.9em; */
    text-wrap: nowrap;

    text-align: center;
    cursor: default;
    border-bottom: 1px solid sienna;
    
}
.total-cont-head.doughcurrent {
    background-color: khaki;
}

.total-cont-body {
    display: flex;
    /* border: 1px solid green; */
    padding: 0.2em;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* border: 1px solid sienna; */
}
.total-cont-body.doughcurrent {
    background-color: khaki;
}

.total-day-cont {
    margin-top: 10px;
    font-weight: bold;
    /* height: 900px; */
    justify-content: center;
}

#total-for-the-day {
    justify-self: center;
    align-self: center;
}

#notes-cont {
    width: 90%;
}

#etc-cont {
    display: grid;
    grid-template-columns: .5fr 1fr;
    flex-shrink: 1;
    gap: 2px;
}

#bottom-buttons-cont {
    width: 90%;
    /* height: 90px; */
    /* border: 1px solid green; */
    /* display: flex; */
    /* flex: initial; */
    display: grid;
    grid-template-columns: 25% 25%;
    gap: 25%;
    justify-content: center;
    /* width: 100%;
    height: 100%; */
}

#btn-clear {
    background-color: tomato;
    color: whitesmoke;
}

#btn-submit {
    background-color: limegreen;
}

#uploading-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
    /* cursor: pointer; */
    align-items: center;
    justify-content: center;
}

#uploading-middle {
    display: grid;
    height: 30%;
    /* border: 1px solid cyan; */
    justify-content: center;
}

#uploading-text {
    font-weight: bold;
    font-size: 2em;
    color: white;
    text-shadow:    -2px -2px 0 black,
                    2px -2px 0 black,
                    -2px 2px 0 black,
                    2px 2px 0 black;
}

#uploading-prog-text {
    font-weight: bold;
    font-size: 1.4em;
    color: white;
}

#uploading-bar-outer {
    width: 100%;
    background-color: darkblue;
    border: 1px solid white;
    height: 30px;
    border-radius: 5px;
    display: none; /* hidden */
}

#uploading-bar-inner {
    width: 1px;
    height: 100%;
    background-color: aqua;
    border-radius: 5px;
    text-align: center;
    line-height: 30px;
    color: white;
    display: none; /* hidden */
}

#uploading-close-btn {
    font-weight: bold;
    font-size: 1.34em;
    height: 1.34em;
}

#version-text {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 5;
    font-size: 0.5em;
    color:burlywood;
}

#scrap-cont-main {
    /* border: 1px solid cyan; */
    /* width: 100%; */
    display: grid;
    grid-template-columns: 30% 20% 32%;
    flex-shrink: 1;
    gap: 0.5em;
    align-items: center;
    justify-content: center;
    /* text-wrap: nowrap; */
}

#extra-dozens-from-scrap {
    /* border: 1px solid red; */
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    /* text-wrap: nowrap; */
}

#menu-button-main-cont {
    position: fixed;
    z-index: 5;
    left: 0;
    top: 0;
    height: 2em;
    width: 2em;
}

#menu-button-main {
    position: fixed;
    z-index: 5;
    left: 0;
    top: 0;
    height: 2em;
    width: 2em;

    background-color: bisque;
    border: 0px;
    background-image: url("./icon-menu.png");
    /* width: 100%; */
    /* height: 100%; */
    background-size: 100% 100%;
}

#menu-button-main:hover {
    background-color: red;
}

#menu-main {
    display: none; /* sets to flex when activated (menu.js) */
    flex: 1 1 auto;
    background-color: antiquewhite;
    position: fixed;
    z-index: 6;
    left: 0;
    top: 0;
    height: auto;
    width: 50%;
    gap: 1rem;
    /* justify-content: center; */
    align-items: center;
    /* padding-top: .1rem;
    padding-left: .1rem; */
    padding-right: .5rem;
    padding-bottom: .5rem;
}

#menu-fade-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
}

.menu-button {
    display: flex;
    width: 100%;
    height: 2em;
    border: 0;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 2em;
    background-color: lightcoral;
    justify-content: center;
    align-items: center;
    cursor: default;
}
.menu-button:hover {
    background-color: yellow;
}

.menu-button-cont {
    width: 100%;
    height: 100%;
    /* border: 1px solid blue; */
}

#help-main {
    /* display: flex; */
    width: 80%;
    padding-top: 2em;
}