/*
   New Perspectives on HTML and CSS
   Final Project
      
   United States of America/ Presidents Style Sheet
   Author: Claudia Lindsay
   Date:   10/12/2015

   Filename:         uspresmobile.css (and tablet)
   Supporting Files: 

*/

/* Styles to be used with mobile devices */

/* Hide page elements that will not be displayed */
header h1 {
   display: none;
}

/* Block styles */
header, nav, article, footer {
   display: block;
}

/* Header styles */
header {
   background: rgb(255, 255, 255) url(usa-flag-graphics.jpg);
   -o-background-size: contain;
   -moz-background-size: contain;
   -webkit-background-size: contain;
   background-size: contain;
   height: 80px;
   width: 100%;
   
}

header nav {
   background-color: rgb(0, 0, 153);
   height: 20px;
   margin-left: 2px;
  
}

header nav.horizontal li a {
   float: left;
   padding: 5px;
   color: white;
   font-variant: small-caps;
   font-size: 12px;
   font-family: 'Trebuchet MS', Helvetica, sans-serif;
   text-decoration: none;
   display: block;
   text-align: center;
   width: 15%
}

/* Page, section, navigation, list - styles */
section#page nav.horizontal {
   width: 100%;
}

section#page nav.horizontal li {
   display: block;
   float: left;
   height: 30px;
   margin: 0px;
   width: 20%;
}

section#page nav.horizontal li a {
   display: block;
   border: 1px solid rgb(18, 15, 12);
   color:white;
   background-color: rgb(204, 0, 0);
   text-align: center;
   line-height: 20px;
   font-size: 12px;
   margin: 0px;
}

section#page article {
      display: block;
      margin: 0px auto;
      width: 90%;
   }


section#page article h1 {
      font-size: 18px;
      margin: 0px;
      text-align: center;
}

section#page #whitehouse {
      display: block;
      margin: 5px auto;
      width: 100%;
}
    
section#page article p {
      font-size: 12px;
      margin: 10px;
}


article#picture img {
      display: block;
	  margin: 5px auto;
      width: 100%;
}

nav#presidentsLinks li span {
      display: block;
      width: 90%;
      font-size: 8px;
      margin: 5px 0px;
      text-align: center;
}

nav#presidentsLinks li a {
      color: black;
}

nav#presidentsLinks li img {
      width: 100%;
}
   

/*
section#page article p:last-of-type {
      display: none;
   }
*/


/* Styles under portrait orientation */
@media screen and (orientation: portrait) {
   nav#presidentsLinks li {
      display: block;
      width: 40%;
      margin: 5px 5%;
      float: left;
}
}

/* Styles under landscape orientation */
@media screen and (orientation: landscape) {
   li.firstList {
      display: block;
      width: 100%;
      margin: 5px 2%;
      float: left;
}

   li.secondList {
      display: block;
      width: 13.8%;
      margin: 5px 0.2%;
      float: left;
}
}

/* Page footer styles */
footer {
   color: black;
   font-size: 8px;
   border-top: 1px solid rgb(18, 15, 22);
   word-spacing: 5px;
   text-align: center;
   margin-right: 10px;
   margin-bottom: 5px;
}