@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
/*240124-1600  */
@font-face {
    font-family: 'body';
    src: url('../fonts/roboto-regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'bodybold';
    src: url('../fonts/roboto-bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    src: url(../fonts/roboto-regular.woff);
    font-family: headings;
}
:root {
    --neutralLight: #fff;
    --neutralDark: #000;
    --mainDark: #017260;
    --mainLight: #01726099;
    --comp: #fda90e;
}
* {
	box-sizing: border-box;
	font-family: body;
}
html {
    height: 100%; /*FOR DISPLAY GRID - FOOTER AT BOTTOM OF SHORT PAGES*/
    overflow-y: scroll;
}
body {
    min-height: 100%; /*FOR DISPLAY GRID - FOOTER AT BOTTOM OF SHORT PAGES*/
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
}
main {
    margin-bottom: 6em;
}
section {
    width: 80%;
    margin: 0 auto;
}
h1 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2em;
    color: var(--comp);
}
header ul,
nav ul,
footer ul {
	list-style-type: none;
	padding: 0;
    margin: 0;
}
header a,
nav a,
footer a {
	text-decoration: none;
	color: inherit;
}
.searchForm {
    margin-top: 1rem;
    text-align: center;
}
.searchForm+h2 {
    margin-left: 2rem;
}
.searchResults {
    list-style-type: none;
    padding: 0;
    margin-left: 2rem;
    display: flex;
    flex-wrap: wrap;
}
.searchResults li {
    margin: 0 1rem 1rem 0;
}
.searchResults li::after {
    content: " | ";
}
.searchResults a {
    color: inherit;
    text-decoration: none;
}
/*---------------RECIPE PAGES--------------------*/
h2 {
    font-weight: normal;
    font-size: 1.2em;
    margin-bottom: 0;
    line-height: 2.5rem; /*TO LINE THINGS UP WHEN THERE'S A FREEZER SYMBOL*/
}
.category {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--mainDark);
}
[data-rating]::after {
    margin-left: 1rem;
    color: var(--comp);
    font-size: 1.4rem;
}
[data-rating="1"]::after {
    content: "\2605\2606\2606\2606\2606";
}
[data-rating="2"]::after {
    content: "\2605\2605\2606\2606\2606";
}
[data-rating="3"]::after {
    content: "\2605\2605\2605\2606\2606";
}
[data-rating="4"]::after {
    content: "\2605\2605\2605\2605\2606";
}
[data-rating="5"]::after {
    content: "\2605\2605\2605\2605\2605";
}
[freezable="y" i]::after {
    content: "\2745";
    font-size: 2rem;
    color: dodgerblue;
    position: relative;
    top: 5px;
}
label {
    color: var(--mainDark);
    text-transform: capitalize;
    cursor: pointer;
}
p:has([src=""]) {
    display: none;
}
p:has(img) {
    float: right;
    max-width: 30vw;
    margin-top: 2rem;
}
img {
    width: 100%;
    height: auto;
    box-shadow: 3px 3px 10px 3px rgba(0, 0, 0, .5);
    margin-left: 2rem;
}
.emphasis {
    font-weight: bold;
    color: var(--mainDark);
}
.ingredients p {
    margin-bottom: .2em;
    margin-top: 0;
}
.ingredients p:not(p:empty)::before {
    content: "\25C6";
    padding-right: 1rem;
}
.ingredients ul {
    padding-left: 1.3rem;
    list-style-type: none;
    padding-left: 0;
}
.ingredients li {
    padding-bottom: .5rem;
}
html.noscroll {
    overflow: hidden;
}
section {
    columns: 2 20em;
}
section a {
    color: inherit;
    text-decoration: none;
}
.overlay a {
    text-decoration: underline;
}
.overlay {
    z-index: -1; /*ENSURES THE OVERLAY APPEARS ON TOP */
    color: transparent;
    transition: height, color .3s;
    height: 0;
    display: none;
}
.overlay:target {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    color: inherit;
    overflow: auto;
    background-color: var(--neutralLight);
    display: block;
    height: auto;
}
.overlay a.close,
button#saveShoppingList {
    background-color: var(--mainDark);
    z-index: 2;
    color: var(--neutralLight);
    position: absolute;
    top: .5em;
    right: 2%;
    font-size: .8em;
    line-height: 2.6;
    text-align: center;
    width: 6em;
    box-shadow: 3px 3px 10px 3px rgba(0, 0, 0, .5);
    text-decoration:none;
    display: none;
}
.overlay:target a.close,
.overlay:target button#saveShoppingList {
    display: block;
}
button#saveShoppingList {
    position: absolute;
    top: .5em;
    right: 11%;
    width: 10rem;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.overlay h2 {
    background-color: var(--comp);
    padding: 1.45rem 0;
    color: white;
    letter-spacing: .1rem;
    text-align: center;
    text-shadow: 1px 1px 1px rgb(0,0,0);
    font-size: 1.5rem;
    margin-top: 0;
    line-height: initial;
}
.recipeContainer {
    width: 60%;
    margin: 2rem auto;
}
.easyform {
    display: none!important;
}
.calorieCalculator:has(#totalCalories:empty) {
    display: none;
}
/*-------------------SEARCH--------------------------*/
input[value="Search"] {
    background-color: var(--comp);
    border: none;
    box-shadow: 1px 1px 8px 3px rgba(0, 0, 0, .5);
    cursor: pointer;
    color: var(--neutralLight);
    transition: .3s;
}
input[value="Search"]:hover {
    background-color: var(--main);
    box-shadow: 1px 1px 8px 3px rgba(255, 255, 255, .5);
}
@media only screen and (max-width: 1560px) {
    .easyform {
        margin-bottom: 1rem;
    }
}
@media only screen and (max-width: 900px) {
    button#saveShoppingList,
    .overlay a.close {
        position: initial;
    }
    .buttonContainer {
        display: flex;
        justify-content: space-around;
        margin-top: 1rem;
    }
}
@media only screen and (max-width: 885px) {
    .recipeContainer {
        width: 85%;
    }
}
@media only screen and (max-width: 800px) {
    section {
        width: 90%;
    }
    .overlay a.close {
        top: 4.5em;
    }
    .recipeContainer {
        width: 80%;
    }
}

@media only screen and (max-width: 500px) {
    p:has(img) {
        float: none;
        max-width: 100%;
    }
    .recipeContainer {
        width: 95%;
    }
}