/*  JavaScript 7th Edition
    Chapter 12
    Hands-on Project 12-3

    Filename: styles.css
*/

/* apply a natural box layout model to all elements */
* {
   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
}

/* reset rules */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
   margin: 0;
   padding: 0;
   border: 0;
   font-size: 100%;
   font: inherit;
   vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
   display: block;
}

body {
   line-height: 1;
   width: 960px;
   background: white;
   margin: 0 auto;
   font-family: Verdana, Geneva, sans-serif; 
}

ol, ul {
   list-style: none;
}

/* page header */
body > header {
   background: #5472B2;
   width: 100%;
   color: #FFFFFF;
   font-size: 48px;
   text-align: center;
   line-height: 1.5em;
   border-bottom: 1px solid black;
   border-left: 1px solid black;
   border-right: 1px solid black;
}

/* main content */
section {
   width: 100%;
   background: #FFFEFA;
   padding-bottom: 20px;
   border-bottom: 1px solid black;
   border-left: 1px solid black;
   border-right: 1px solid black;
}

section > header {
   width: 100%;
   background: rgb(255, 224, 179);
   border-bottom: 1px solid black;
   padding: 10px 20px;
}

section > header > img {
   display: block;
   margin: 0 auto;
}

article {
   width: 85%;
   margin: 20px auto;
   border: 1px solid rgb(191, 134, 48);
   background: rgb(255, 249, 240);
   padding: 20px;
   border-radius: 15px;
   box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

article::after {
   content: "";
   display: table;
   clear: both;
}

article > h1 {
   font-size: 28px;
   font-weight: bold;
   color: rgb(153, 102, 26);
   margin-bottom: 15px;
}

article > h1 > img {
   vertical-align: middle;
}

article > img#dishimg {
   float: right;
   margin: 0 0 15px 20px;
   border: 1px solid rgb(191, 134, 48);
   border-radius: 10px;
   box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

article > p {
   font-size: 16px;
   line-height: 1.5em;
   margin-bottom: 20px;
   color: #333333;
}

article > h2 {
   font-size: 20px;
   font-weight: bold;
   color: rgb(153, 102, 26);
   background: rgb(255, 232, 198);
   padding: 8px 12px;
   margin-top: 15px;
   border: 1px solid rgb(191, 134, 48);
   border-radius: 6px;
   cursor: pointer;
   user-select: none;
}

article > h2 > img {
   vertical-align: middle;
   margin-right: 10px;
}

/* Initially hide the ingredient and direction lists so jQuery slideToggle() reveals them */
article > ul, article > ol {
   display: none;
   margin: 15px 0 15px 35px;
   font-size: 15px;
   line-height: 1.6em;
   color: #222222;
}

article > ul {
   list-style-type: disc;
}

article > ol {
   list-style-type: decimal;
}

article li {
   margin-bottom: 6px;
}