/* Set viewport to be the full width of the 
device so the page doesn't scale up or down */

@viewport {
    width: device-width;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

body {
    padding: 2px;
    width: 100%;
    /*font-size: 62.5%;*/
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
em,
b,
u,
i,
ol,
ul,
li,
form,
label,
legend,
table,
tr,
th,
td,
article,
details,
section,
summary {
    margin: 0;
    padding: 0;
    border: 0;
    font: 1em HelveticaNeue, 'Helvetica Neue', HelveticaNeueRoman, HelveticaNeue-Roman, 'Helvetica Neue Roman', Helvetica, Tahoma, Geneva, Arial, sans-serif;
    vertical-align: baseline;
}

summary {
    display: inline;
	outline: none;
}

ul {
    list-style: disc;
    margin: 10px 0 10px 20px;
}

input,
select,
th,
td {
    font-size: 1em;
}

/* touch-friendly CSS for inputs */

input[type=text] {
    -webkit-appearance: none;
    -moz-appearance: none;
}

li li,
li p,
td p {
    font-size: 1em
}

/* End Reset */

/* General styles */

h1 {
    font-size: 1.8em;
    margin: 20px 0;
}

h2 {
    font-size: 1.7em;
    margin: 18px 0;
}

h3 {
    font-size: 1.2em;
    margin: 16px 0;
}

h4 {
    font-size: 1em;
    margin: 14px 0;
}

p {
    margin: 1em;
}

/* End General styles */

/* Search */
.redfamily {
	color: red;	
}

#search {
	padding: 10px 10px 10px 0;
	text-align: right;
}

.search-box,
.close-icon,
.search-wrapper {
	position: relative;
}
.search-box {
	position: relative;
	padding: 10px;
}
.search-wrapper {
	width: 100%;
    background:rgba(255,255,255,0.97);
	border-bottom: 1px solid #DDD;
    position: fixed;
}
.search-box {
	width: 80%;
	max-width: 250px;
	border: 1px solid #ccc;
	background-color: #EEE;
    outline: 0;
    border-radius: 5px;
}
.search-box:focus {
}
.ng-invalid .close-icon:after {
	color: #e1e1e1;
}

.close-icon {
	border:1px solid transparent;
	background-color: transparent;
	display: inline-block;
	vertical-align: top;
    outline: 0;
    cursor: pointer;
	padding: 0;
}
.close-icon:after {
	content: "×";
	display: block;
	position: absolute;
	z-index:1;
	left: 240px;
	top: 0;
	bottom: 0;
	margin: auto;
	padding: 1px;
	color: #bbb;
	font-size: 32px;
}

.notes {
	font-size: 14px;
}

.ingredients,
.instructions,
.ing {
    margin: 20px 10px 20px 24px;
}

.recipe {
    /*border-top: 2px solid #d8e2ff;*/
    overflow: hidden;
    padding: 1px 0 0;
}

.recipe summary {
    cursor: pointer;
    display: block;
    width: 100%;
    padding: .5em 0;
}

article {
	margin: 0 auto;
	padding: 0 8px;
    max-width: 700px;
}

/* Push down first recipe to account for sticky search/header */
article:first-of-type {
	padding-top: 60px;
}

/* border around instructions list numbers */

.recipe[open] summary:focus h2 {
    outline: none;
    border: none;
}

.recipe h3.subtitle {
  margin: 5px 0 0;
    font-size: 18px;
}

/* More optional summary styles */

summary::-webkit-details-marker {
    /*color: #820BBB;
	font-size: 125%;
	margin: .3em .1em .3em 0;
	vertical-align: middle;*/
    display: none;
}

.ingredients {
    padding: 0;
	margin-top: 20px;
    margin-bottom: 30px;
	list-style-type: none;
}

.ingredients li {
    border-bottom: 1px dashed #ddd3e0;
}

.ingredients,
.ing {
    margin-left: 0px;
}

/* Recipe Title */

.recipe summary h2 {
    color: #433247;
    width: 100%;
    display: inline;
    margin-bottom: 0;
    vertical-align: top;
    outline: none;
	font-weight:bold;
}

/* recipe intro */

.recipe p {
    margin: 1em 2px;
}

.recipe h4 {
    margin: 14px 0 5px;
    color: #333;
    font-size: 1.3em;
}

article hr {
	width: 90%;
    border-style: solid;
    color: #e5e5e5;
	margin: 1px auto;
}

.ing h4+ul {
    margin-top: 7px;
}

details li {
    font-size: 1.2em;
	padding: 6px 0 6px 0;
}

.recipe details.tips[open],
.recipe details.tips:hover,
.recipe details.tips[open] li {
    background-color: transparent;
}


/* content for screen readers, visually hidden Source - http://webaim.org/techniques/css/invisiblecontent/ */

.hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
