* {
    /*border: 1pt solid black;*/
    /*font-size: 16px;*/
    font-family: Arial;
    /*background: #348f07;*/

}


html, body {
    height: 100%;
    margin: 0;
}

body{
    /*background: #348f07;*/
}
/*.background {*/
    /*background: #348f07;*/
    /*padding: 0px;*/
    /*margin: 0px;*/
    /*!*position: fixed;*!*/
    /*!*height: 100%;*!*/
    /*top: 0;*/
    /*bottom: 0;*/
    /*left: 0;*/
    /*right: 0;*/
/*}*/

.main-body {
    /*background: aliceblue;*/
    width:50%;
    margin: auto;
    padding: 5%;
    /*height: 80%;*/
}

.main-body:after {
    clear:both;
    content: "";
    display: table;
}


.header-button-container{
    display:inline-block;
    cursor: pointer;
    padding-left: 7px;
    padding-bottom: 6px;
    border: solid 1px black;
    overflow: visible;
    width: 40px ;
    height: 40px;
    background: white;
    opacity: .7;
    position: fixed;
    border-radius: 5px;
}

.header-button-container:hover{
    opacity:0.5;
}

.header-button, .header-button:after, .header-button:before{
    background: black;
    height: 5px;
    width:30px;
    /* margin: 6px 0; */
    margin: 6px 0px;
    position:absolute;
    transition: 0.25s;
}

.header-button-container.opened>.header-button {
    background: #fff0;
}


.header-button-container.opened>.header-button:after {
    transform: translate(10%) rotate(-45deg);
    transform-origin: 00%;
}

.header-button-container.opened>.header-button:before {
    transform: translate(10%) rotate(45deg);
    transform-origin: 00%;
}

.header-button{
    top:15px;
}
.header-button:after, .header-button:before{
    display:block;
    content:"";
}

.header-button:after{
    top: 5px;
    background:black;
}

.header-button:before{
    top:-17px;
    background:black;
}



.nav-bar {
    display: block;
    height: auto;
    font-weight: bold;
    margin: 1em auto;
}

.nav-bar a {
    margin: auto 1em;
    text-decoration: none;
    color: rgb(21,54,7);
}

.nav-bar a:visited{
    text-decoration: none;
    color: rgb(21,54,7);
}

.nav-bar #search{
    cursor: pointer;
}

.header-nav-img-home{
    width: 8%;
}

/*div.search-wrapper{*/
    /*width:80%;*/
    /*position: absolute;*/
    /*margin: 0 auto;*/
    /*left: 10%;*/
    /*top: 8%;*/
/*}*/

input#search{
    width:100%;
}

.header-banner{
    margin: auto;
    text-align: center;
}

.header-banner, .nav-bar, .nav-bar>* {
    /*background: #3fbc08;*/
}

.footer-bar {
    width: 100%;
    margin: auto auto;
    text-align: center;
    padding-top: 1em;
    /*position: fixed;*/
    top: 95%;
}


/*
 *
 * Recipe Submission Stuff
 *
 */

.submission-row{
    max-width: 80%;
}

.submission-ingredients {
    max-width: 100%;
}

.sub-quant, .sub-unit, .sub-ing {
    width: 95%;
}

/*.sub-title, .sub-source, .sub-tags {*/
.sub-title, .sub-source, .sub-servingSize, div.submission-tag-wrapper {
    width: 100%;
    margin: 0.25em 0;
}

.sub-steps, .sub-notes, .sub-ingredients{
    width:100%;
}

select.sub-category{
    padding:0.3em;
    border-radius: 0.2em;
}

.sub-time{
    width: 5.5em;
}

div.submission-tag-wrapper {
    background: white;
    border: 1px solid gainsboro;
    display: flex;
    flex-wrap:wrap;
}
div.submission-tag-wrapper:focus-within{
    box-shadow: #e7d1a8;
}

input.sub-tags, input.sub-ingredients{
    padding-left: 0.2em;
    padding-right:0;
    margin-left:0;
    margin-right: 0;
    border: 0;
    background: none;
    width: 100%;
}

input.sub-tags:focus{
    box-shadow: none;
    outline: none;
 }

ul#tag-list {
    /* display: block; */
    /*background: green;*/
    width: auto;
    /*display: inline-flex;*/
    padding: 0;
    margin: 0;
}

li.tag-item, span.tag {
    width: max-content;
    /*height:max-content;*/
    background: #94A187;
    display: inline-flex;
    padding: 0.2em;
    margin: 0.2em 0.1em 0.1em auto;
    border: 0.1em solid black;
    text-decoration: none;

}

span.tag a {
    text-decoration: none;
    color:#153607;
    font-weight: bold;
}

li.tag-item:after{
    /*content: "  x";*/
    /*float: right;*/
    /*font-family: "Comic Sans MS";*/

}

/* reordering stuff */
.ing-handle{
    background:black;
    width: 1em;
    min-width:1em;
    touch-action: none;
}

.movingon{
    opacity:0.25;
    margin-left: 2em;
}

/*
 *
 * Autocomplet Stuff
 *
 */


.autocomlete-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

div#sub-tags-autocomplete {
    width: fit-content;
    flex-grow: 1;
    margin: auto 0;
}


.autocomplete-list{
    width:100%;
    /*height: 2em;*/
    border: solid 1px black;
    background: #D1D3C4;
    position: absolute;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0 0.5em; /* match parent input item*/
    margin: 0px;
}

.autocomplete-item{
    padding-left: 4px;
}

.autocomplete-item:hover{
    background: #94A187;
    padding: 0;
    border: 0px;
    /*width: 100%;*/
    /*position: absolute;*/
    /*top: 100%;*/
    /*left: 0;*/
    /*right: 0;*/
}

.autocomplete-selector {
    background: #697260;
    padding: 0;
    border: 0px;
}

.tag-item-closer {
    padding-left: 0.4em;
    position: relative;
    padding-right: 0;
}

/*span.tag-item-closer:before {*/
    /*position: absolute;*/
    /*!* display: inline-block; *!*/
    /*right: 0;*/
    /*content: "";*/
    /*!* border-right: 1em solid green; *!*/
    /*border-left: 1em solid green;*/
    /*border-top: 1em solid transparent;*/
    /*border-bottom: 1em solid transparent;*/
    /*bottom: -0.4em;*/
    /*height: 0;*/
    /*!* left: 1em; *!*/
    /*width: 0;*/
/*}*/

/*
 *
 * Registration / Login
 *
 */


/* todo: Static values are bad  for window resize*/
input{
    /*min-width: 13em;*/
    min-height: 2em;
}

input, textarea, div.submission-tag-wrapper{
    border-radius: 0.2em;
    border: solid 2px rgba(21, 54, 7, 0.3);
    padding: 0 0.5em;
    outline:none;
}

.registration, .login {
    display: block;
    margin: 5px auto;
}

.registration-form, .login-form{
    text-align: center;
}

input.invalid-input {
    border:1px solid red;
    box-shadow: 1px 1px 2px rgba(255, 0, 0, .5);
}

input.valid-input {
    border:1px solid rgb(0, 200, 0);
    box-shadow: 1px 1px 2px rgba(0, 200, 0, .5);
}

#emailinfo, #passwordinfo, #usernameinfo{
    font-family: arial;
    font-size: 8px;
    color: red;
    /*margin: 0, 0, auto;*/
}

/*
 *
 * Recipe Tile/Homepage Display
 *
 */

.home-body{
    text-align: center;
}

.recipe-tile {
    display: inline-block;
    width: 10em;
    height: 10em;
    border: #153607 solid 0.2em;
    margin: 0.2em;
    box-shadow: cadetblue;
    border-radius: 1.7em;
    background: #94A187;
    text-align: center;
}

.recipe-tile a{
    text-decoration: none;
    width:100%;
    height:100%;
    display:table;
    color: darkred;
}
.recipe-tile:hover {
    background: #94A18720;
    /*cursor: auto;*/
}

.recipe-tile-title {
    width: 100%;
    margin: 1em 0;
    height: 100%;
}


/*
 *
 * Recipe Page Display
 *
 */


.recipe-title{
    color: #153607;
    font-size:1.5em;
}

.recipe-ingredients{
    background: #D1D3C4;
    margin: auto;
    width: max-content;
    padding: 1em 3em;
    max-width:60%; /* force word-wrap on small screen*/
}

p.ingredient-header-section {
    font-weight: bold;
    text-indent:-2em !important;
    padding: 1em 0em 0em 0em;
}

span.recipe-multiplier input {
    min-height:0;
    width: 2.1em;
    padding: 0;
    margin: 0;
    border: 0;
    background-color: transparent;
    text-align: right;
    -moz-appearance:textfield;
    padding-right:0.2em;
}
span.recipe-multiplier input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

div.recipe-notes:before{
    content: "Notes:";
    color: #153607;
    font-weight:bold;
    display:block;
    padding-top: 1em;
}

div.recipe-notes{
    font-size: .8em;
    padding-bottom:1em;
}

div.recipe-source:before{
    content: "Adapted from: ";
    color: #153607;
    font-weight:bold;
    padding-top: 1em;
    display:inline-block;
    padding-right:.4em;
}

div.recipe-source{
    font-size: .8em;
    padding-bottom:1em;
}

/*
*
*
*   Densities page
*
*
*
 */

select.densityTableHeader {
    border: none;
    appearance: none;
    width: fit-content;
    text-align: right;
}

select.densityTableHeader.weight {
    direction: rtl;
    background:none;
}

select.densityTableHeader {
    background:none;
}

span.density-multiplier>input {
    background:none;
    text-align: right;
    border:none;
}

a.rmvIng {
    width:50px;
    height:1em;
    display:inline-block;
    float:right;
}

table.densityTbl {
    width:100%;
}

table.densityTbl td {
    padding:5px;
}

table.densityTbl tr:nth-child(even) {
    background-color: #D1D3C4;
}
table.densityTbl tr:nth-child(odd) {
    background-color: #fff;
}

tr.density-header {
    background: #94A187 !important;
}
/*
*
*
*   Coffee page
*
*
*
 */
div.fullCoffeeNotes {
}

div.coffeeHeaderRow > * {
    /*border: 1px solid black;*/
    /*border-collapse: collapse;*/
    /*display: inline-block;*/
    color:#ecefd9;
    margin: 0.3em;
}

div.coffeeHeaderRow {
    background: #697260;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    margin-top:1em;
    width:100%;
}


div.fullCoffeeNotes {
    width: 100%;
}

div.singleCoffeeNotes {
    display: grid;
    grid-template-rows: repeat(9, 1fr);
    grid-auto-flow: column;
    overflow: scroll;
    grid-auto-columns:minmax(7em, 1fr);
}

div.singleCoffeeNotes::-webkit-scrollbar {
    width: 0;
    height:0;
}

div.coffeeCell {
    display:grid;
    place-content: center;
}

div.coffeeCol0 {
    background:#D1D3C4;
}

div.coffeeCol1 {
    background:#94A187;
}
div.coffeeCol0, div.coffeeCol1 {
    border-top: solid black 0.5px;
}

div.singleCoffeeNote {
    border: 1px solid blue;
    border-collapse: collapse;
    display: grid;
    grid-template-columns: repeat(9, auto);
}

div.newCoffeeRow {
    border: 1px solid blue;
    display: grid;
    grid-template-columns: repeat(10, auto);
}

div.singleCoffeeNote > * {
    border: 1px solid blue;
    border-collapse: collapse;
    display: inline-block;
}

div.singleCoffeeNotes {
    width: 100%;
}

input[name="grindSize"] {
}

input[name="burrSize"] {
}

input[name="doseWeight"] {
    width:3em;
}

select[name="doseUnit"] {
    appearance: none;
    border: none;
}

div.singleCoffeeNotes input[name="comments"] {
    width:4em;
}

input[name="pullStart"], input[name="pullEnd"]{
    width:3em;
}

/*
*
*
*   Resizing specialties
*
*
*
 */
@media (min-width:320px)  {
    /* smartphones, iPhone, portrait 480x320 phones */
    *{
        font-size: 18px;
    }

    .recipe-ingredients{
        display: block;
        float: none;
    }
    .recipe-ingredients>*{
        /*margin:auto;*/
        /*width: 50%;*/
        list-style-type: none;
    }

    .recipe-ingredients>p{
        text-indent: -1em;
        margin: 0.3em 0.1em;
    }

    .recipe-timings>* {
        display:block;
    }

    .header-button-container{
        display: initial;
        z-index:100;
    }
    .header-banner{
        display:none;
    }

    .header-banner.opened{
        display:block;
        position:fixed;
        right: 0;
        bottom: 0;
        top:0;
        left:0;
        z-index: 99;
        background: #D1D3C4;
    }

    .header-banner.opened>.nav-bar>* {
        display: block;
        padding:5%;

    }

    #search-autocomplete {
        width: 90%;
    }

    .header-banner.opened>.nav-bar>*:before{
        content: "";
        border: solid black 1px;
        width: 100%;
        display: block;
        position: relative;
        top: -1em;
    }
    .header-banner.opened>.nav-bar>:first-child:before{
        border: solid red 1px;
        display:none;
    }

    div.search-wrapper{
        position:absolute;
        width:unset;
        height:100%;
        left:0;
        top:0;
        right:0;
        bottom:0;
        background:white;
        padding:2.3em 1em;
        z-index:101;
    }

    div.autocomplete-list>div.autocomplete-item{
        padding-top: 0.5em;
        padding-bottom:0.5em;
    }

    #idsub-tagsautocomplete-list {
        margin: 0.4em -0.5em;
    }

    input#search{
        width:100%;
    }

    .main-body{
        width:80%;
    }

    .header-banner-img{
        display: None;
    }


    .header-nav-home-mobile{
        display: unset;
    }
    .header-nav-img-home {
        display: none
    }

    .header-banner-img-mobile-home{
        display: unset;
        width:100%;
    }


}
@media (min-width:481px)  {
    /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */
    *{
        font-size: 24px;
    }
}
@media (min-width:641px)  {
    /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */
    *{
        font-size: 22px;
    }
    .header-button-container{
        display:none;
    }
    .header-banner {
        display: block;
    }
    div.search-wrapper{
        width:65%;
        position: relative;
        margin: 0 auto;
        left: 0%;
        top: 8%;
        background:none;
        height:min-content;
        padding: 0;
    }

    .header-banner-img{
        display: unset;
    }

    .header-nav-home-mobile{
        display: none;
    }
    .header-nav-img-home {
        display: unset
    }

    .header-banner-img-mobile-home{
        display: none;
    }

}
@media (min-width:961px)  {
    /* tablet, landscape iPad, lo-res laptops ands desktops */
    *{
        font-size: 20px;
    }

    .main-body{
        width:50%;
    }
}
@media (min-width:1025px) {
    /* big landscape tablets, laptops, and desktops */
    *{
        font-size: 20px;
    }
}
@media (min-width:1281px) {
    /* hi-res laptops and desktops */
    *{
        font-size: 20px;
    }
}

