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

   Purpose:
   This project uses jQuery to create interactive dropdown menus for the Wildlife Sea Cruises website.
   The menu displays cruise, rate, and direction options when a visitor moves the pointer over a heading.
   The submenu closes when the pointer leaves the corresponding menu heading.

   This CSS file resets browser defaults and styles the page layout, navigation menus, content, and footer.

   Filename: styles.css
   Related: project12-01.html, project12-01.js, birds.jpg, dolphins.jpg, whale.jpg
*/

/* 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 flexible yellow content area for the cruise information. */
section {
   background-color: #FFDB70;
   margin-top: 0;
   display: flex;
   flex-flow: row wrap;
}

/* Styles the section header with the bird photograph as its background. */
section > header {
   margin: 0;
   padding: 10px 0;
   width: 100%;
   background: url("birds.jpg") center/cover no-repeat;
}

/* Styles the Wildlife Sea Cruises heading over the background photograph. */
section > header > h1 {
   text-align: center;
   font-size: 3em;
   color: white;
   text-shadow: 0 0 4px black, 0 0 12px gray, 5px 5px 20px white;
}

/* Centers the navigation menu beneath the cruise heading. */
section > header > nav {
   display: block;
   width: 60%;
   margin: 10px auto;
}

/* Styles the links displayed inside each dropdown menu. */
ul#mainmenu > li a {
   text-decoration: none;
   color: ivory;
}

/* Arranges and styles the three main dropdown menu headings. */
ul#mainmenu > li {
   display: block;
   width: 33.3%;
   float: left;
   text-align: center;
   background-color: rgba(90, 113, 127, 1);
   box-shadow: 8px 8px 20px;
   position: relative;
   cursor: pointer;
   padding: 5px 0;
   border: 1px solid black;
}

/* Positions and hides each submenu until jQuery displays it. */
ul#mainmenu > li > ul {
   padding: 5px;
   top: 25px;
   left: 0;
   width: 100%;
   box-shadow: 8px 8px 20px;
   text-align: left;
   display: none;
   position: absolute;
   background-color: rgba(90, 113, 127, 1);
}

/* Adds spacing and line height to the individual submenu items. */
ul#mainmenu > li ul li {
   padding: 6px 0;
   line-height: 1.2;
}

/* Changes a submenu item's background when the pointer moves over it. */
ul#mainmenu > li ul li:hover {
   background-color: rgba(84, 114, 178, 1);
   color: ivory;
}

/* Sets the flexible width of both sidebar areas. */
section > aside {
   flex: 1 2 100px;
}

/* Sets the flexible width of the main article. */
section > article {
   flex: 2 1 300px;
}

/* Styles the featured article heading. */
section > article h2 {
   font-size: 1.5em;
   text-align: center;
   margin: 20px 0 30px;
}

/* Makes the featured photograph fill the article width. */
section > article img {
   width: 100%;
}

/* Adds spacing around the seasonal wildlife calendar. */
section > aside.calendar {
   padding: 20px 20px 0;
}

/* Styles each seasonal heading in the wildlife calendar. */
section > aside.calendar h3 {
   font-size: 1.2em;
   margin: 6px 0;
   text-align: center;
   line-height: 1.2;
}

/* Adds spacing below each seasonal wildlife list. */
section > aside.calendar ul {
   margin-bottom: 24px;
}

/* Adds spacing between wildlife list entries. */
section > aside.calendar ul li {
   margin-bottom: 8px;
}

/* Adds spacing around the testimonial sidebar. */
section > aside.testimonials {
   padding: 20px 20px 0;
}

/* Styles the testimonial paragraphs with a serif font and readable spacing. */
section > aside.testimonials p {
   font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
   font-size: 1.1em;
   line-height: 1.3;
   margin: 20px 0;
}

/* Styles the company information displayed at the bottom of the page. */
footer {
   background-color: rgba(70, 91, 92, 1);
   padding: 15px 0;
   text-align: center;
   color: ivory;
   letter-spacing: 0.13em;
}
