/*
New Perspectives on HTML and CSS
Tutorial 7
Tutorial Case

Press Start Style Sheet
Author: Joshua Aguilar
Date:   1/2/2016
Filename:         ps.css
Supporting Files:

*/

/* Display HTML5 structural elements as blocks */

article, aside, figure, figcaption, footer, hgroup, header,
section, nav {
  display: block;
}


/* Set the default page element styles */

body * {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 100%;
  font-weight: inherit;
  line-height: 1.2em;
  list-style: none;
  margin: 0px;
  padding: 0px;
  text-decoration: none;
  vertical-align: baseline;
}

/* Body Styles */
body {
  background: url(stars.jpg);
  width: 95%;
  min-width: 1000px;
  max-width: 1400px;
  font-family: Verdana, Geneva, sans-serif;
  font-weight: normal;
}

/* Header Styles */

header {
  width: 100%;
}


header h1 {
  clear:  left;
  width: 100%;
  font-size: 1.4em;
  letter-spacing: 3px;
  font-weight: bold;
  margin-left: 30%;
  color: white;
}

/* Navigation Styles */

nav.horizontal {
   margin-top: -3px;
}

nav.horizontal ul {
   height: 40px;
   background-color: rgb(215, 0, 0);
}

nav.horizontal ul li {
   padding: 0px;
   float: left;
   width: 13%;
   line-height: 20px;
   height: 30px;
}

nav.horizontal ul li a {
   display:block;
   text-align: center;
   width: 100%;
   font-size: 14px;
   text-decoration: none;
   color: white;
}

nav.horizontal ul li:hover {
   background-color: rgb(171, 171, 231);
   background-color: rgba(255, 255, 255, 0.4);

}


/* Section Styles */
section {
  margin-top: 20px;
}

section article h2 {
  margin: 0px 0px 15px 0px;
  font-weight: normal;
  text-align: center;
  color:  white;
  background-color: rgb(255, 0, 0);

  -moz-border-radius-topleft: 30px;
  -webkit-border-top-left-radius: 30px;
  border-top-left-radius: 30px;

  -moz-border-radius-topright: 30px;
  -webkit-border-top-right-radius: 30px;
  border-top-right-radius: 30px;

  font-size: 1.2em;
  letter-spacing: 5px;
  line-height: 2em;
}

section article {
  background-color: white;
  border: 3px  solid rgb(255, 0 ,0);

  -moz-border-radius:  30px;
  -webkit-border-radius:  30px;
  border-radius: 30px;

  margin-bottom: 20px;
}

section article object {
  background-color: white;
  display: block;
  margin: auto;
  text-align: center;
  width: 95%;
}

section.middle article:first-of-type p:first-of-type {
  text-align: center;

}

/* Middle Section Styles */
section.middle {
  width:  30%;
  float: left;
  margin-left: 5px;
}

section.middle img {
  float: right;
  clear: right;
  margin: 0px 0px 0px 10px;
}

/* Right Section Styles */
section.right {
  width: 35%;
  float: left;
  margin-left: 15px;
}

/* Footer Styles */
footer {
  clear: left;
  margin-left: 20%;
  width: 65%;
  border-top: 1px solid white;
  padding-bottom: 20px;
}

footer nav ul li {
  display:  block;
  float:  left;
  width: 14%;
  text-align: center;
}

footer nav ul  li a {
  color: white;
  font-size: 0.7em;
}

/* Rotate styles*/

figure#smb {
  -o-transform: rotate(-30deg);
  -moz-transform: rotate(-30deg);
  -webkit-transform: rotate(-30deg);
  -ms-transform: rotate(-30deg);
  transform: rotate(-30deg);
}
