﻿/* 
   Pine Manor Estates 
   Filename: styles.css

   Author:  Charles Griffith, Jr.  
   Date:    10/17/2016 
   HTML5 and CSS3 Illustrated 
 */

/* reset styles */
html {
   font-size: 19px;
}
a, article, body, div, figcaption, figure, footer, header, h1, 
h2, h3, img, li, nav, ol, p, ul {
   border: 0;
   padding: 0;
   margin: 0;
}
img {
   max-width: 75%;
   height: auto;
   width: auto;
}
ol, ul {
   list-style-type: none;
}

/* body and container */
body {
   max-width: 960px;
   margin: 0 auto;
   background: white;
   font-family: Arial, Helvetica, sans-serif;
}
.container {
   background-color: #4169e1;
   position: relative;
   min-width: 600px;
   max-width: 900px;
   margin: 0 auto;
   padding: 0 3% 1em;
   overflow: auto;
   text-align: center;
}
p {
   line-height: 1.4em;
}
a:link {
   color: black;
}
a:visited {
   color: #888;
}
a:active {
   position: relative;
   top: 1px;
   left: 1px;
}

/* skip navigation link */
p.skipnavigation a {
   position: absolute;
   left: -10000px;
}
p.skipnavigation a:focus {
   color: #34180f;
   background-color: snow;
   top: 0.4em;
   left: auto;
   right: 0.4em;
   z-index: 2;
   font-weight: bold;
   text-decoration: none;
}

/* header section */
header {
   padding-bottom: 0.4em;
}
h1 {
   text-align: center;
   font-family: "Playfair Display", "Times New Roman", Times, serif;
   font-size: 2.5em;
   font-weight: 900;
   color: white;
}
p.decorative-image {
   width: 30%;
   padding-top: 1em;
   float: left;
}

/* site navigation */
nav.sitenavigation {
   background-color: rgb(0,0,0);
   text-align: center;
   overflow: auto;
}
nav.sitenavigation p {
   padding: 0.3em 0;
   display: inline-block;
}

nav.sitenavigation li {
   margin: 0.3em 0.5em;
   display: inline-block;
   font-size: 1.3em;
   line-height: 1.4em;
}

nav.sitenavigation p a {
   padding: 0.2em 0.6em;
   display: inline-block;
}
nav.sitenavigation a:link {
   text-decoration: none;
   color: snow;
}
nav.sitenavigation a:visited {
   color: #cccccc;
}
nav.sitenavigation a:hover, nav.sitenavigation a:focus {
   color: #ff0000;
   background-color: snow;
}

/* main content */
article {
   margin: 0 auto;
   padding: 1em 1em 2em;
   background-color: snow;
   position: relative;
   overflow: auto;
   text-align: center;
}
h2, h3 {
   padding-bottom: 0.25em;
   margin: 0;
   color: red;
   font-family: "Playfair Display", "Times New Roman", Times, serif;
   font-weight: 900;
}
h2 {
   font-size: 1.75em;
}
h3 {
   margin: 1.5em 0 0.5em;
   font-size: 1.25em;
   clear: both;
}
article p {
   margin-bottom: 0.5em;
}
article.narrative p {
   text-align: left;
}
article p#contentstart {
   color: red;
   font-family: "Playfair Display", "Times New Roman", Times, serif;
   font-weight: 900;
   font-size: 1.5em;
}
.publication {
   font-style: italic;
}
.accent {
   font-weight: bold;
}
article div.contrastbox {
   width: 30%;
   padding: 0.5em;
   margin: 0.5em auto;
   border: 1px solid rgb(119,119,119);
   text-align: center;
   font-weight: bold;
   background-color: rgb(221,221,221);
}
article div.contrastbox p {
   margin-bottom: 0;
   text-align: center;
}


/* footer section */
footer {
   margin-left: 30%;
   padding: 0.5em 5%;
   text-align: center;
   background-color: #4169e1;
   color: white;
}
footer p {
   margin: 0 auto;
   text-align: center;
}

/* print styles */
@media print {
   body, h2, article {
      color: rgb(0,0,0);
      background: rgb(255,255,255);
   }
   body {
      max-width: 100%;
   }
   nav {
      display: none;
   }
}
@page {
   margin: 0.75in;
}