/*
   Hands-on Project 12-3
   Sung Kim | 8-2-26 | IST-239-W01

   Purpose:
   This project uses jQuery to add interactive visual effects to a dessert recipe page.
   Users can click the Ingredients and Directions headings to reveal or hide each list.
   The lists slide open and closed while each heading icon alternates between plus and minus symbols.

   This CSS file resets browser defaults and styles the project heading, recipe layout, images, headings, and lists.

   Filename: styles.css
   Related: project12-03.html, project12-03.js, halfstar.png, logo.png, minus.png, plus.png, star.png, torte.png
*/

/* Applies a natural box layout model to every element. */
* {
   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
}

/* Removes default spacing, borders, and typography from common page elements. */
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,
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;
}

/* Displays HTML5 structural elements as block elements in older browsers. */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
   display: block;
}

/* Sets the main page width, background, spacing, and font family. */
body {
   line-height: 1;
   width: 960px;
   background: white;
   margin: 0 auto;
   font-family: Verdana, Geneva, sans-serif;
}

/* Removes the default markers from ordered and unordered lists. */
ol, ul {
   list-style: none;
}

/* Styles the blue project heading across the top of the page. */
body > header {
   background: #5472B2;
   width: 100%;
   color: #FFFFFF;
   font-size: 48px;
   text-align: center;
   line-height: 1.5em;
   margin-bottom: 0;
}

/*-------------------- Project Styles ------------------*/

/* Creates the yellow content area surrounding the recipe. */
section {
   background-color: #FFDB70;
   margin-top: 0;
   padding-bottom: 70px;
}

/* Centers and sizes the Save your Fork logo. */
header > img {
   display: block;
   width: 50%;
   margin: 0 auto;
   padding: 10px 0;
}

/* Centers the recipe content and adds spacing below it. */
article {
   width: 80%;
   margin: 0 auto;
   padding-bottom: 20px;
}

/* Styles the Apple Bavarian Torte recipe title. */
article h1 {
   font-size: 2.2em;
   margin: 0 0 20px;
}

/* Sizes and aligns the star rating images beside the recipe title. */
article h1 img {
   display: inline-block;
   width: 30px;
}

/* Floats and styles the torte photograph on the right side of the recipe. */
article > img {
   float: right;
   width: 30%;
   box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.4);
}

/* Styles the recipe description paragraph. */
article > p {
   font-size: 1.1em;
   font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
   line-height: 1.3;
   margin: 0 0 15px;
}

/* Styles the clickable Ingredients and Directions headings. */
article > h2 {
   font-size: 1.2em;
   margin: 0 0 15px 0;
   cursor: pointer;
}

/* Sizes and spaces the plus and minus icons within each clickable heading. */
article > h2 > img {
   width: 20px;
   margin-right: 20px;
}

/* Styles the ingredients list and hides it until its heading is clicked. */
article > ul {
   margin: 0 0 15px 60px;
   list-style-type: square;
   font-size: 1.1em;
   font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
   line-height: 1.4em;
   display: none;
}

/* Styles the directions list and hides it until its heading is clicked. */
article > ol {
   margin: 0 0 15px 60px;
   list-style-type: decimal;
   font-size: 1.1em;
   font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
   line-height: 1.4em;
   display: none;
}

/* Adds spacing below every ingredient and direction item. */
article li {
   margin-bottom: 6px;
}
