/*CSS Document */

body{
	margin: 0;
	font-family: 'Oswald', sans-serif;
	text-align: center;
	}
/*so that navigation bar stays at the top of the page as the user scrolls*/
.fixed-nav-bar{ 
	position: fixed; 
	top: 0; left: 0; z-index: 9999; width: 100%; height: 50px; 
	background-color: slategrey; 
	}
/*generic navigation bar*/
nav ul li a{
	/*changes font of navigation menu*/
	font-family: 'Oswald', sans-serif;	
	text-align: center;
	font-size: 1em;
	font-weight: bold;
	margin-top: 0;
	color: black;
	text-decoration: none;
	/*changes background behind words*/
	background-color: white;
	/*so that colour applies to entire block*/
	display: block;
	/*padding for top right bottom left*/
	padding: 10px 0 10px 0;
	margin-bottom: 5px
}
nav ul li a:hover{
	/*when mouse hovers over the words in navigation menu*/
	background-color: slategrey
}
nav ul{
	/*removes the indent and bullets*/
	list-style: none;
	padding-left: 0;
}
/*end of generic navigation bar*/


/*new section for dropdown within navbar*/
/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: center;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 1em;
  border: none;
  outline: none;
  color: black;
  padding: 10px 10px;
  background-color: slategrey;
  font-family: inherit;
  margin: 0;
}

/* Style the dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: slategrey;
  color: black;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}
/*end of new section for dropdown within navbar*/

/*all page banners are in this section*/
.banner-home{
	/*image behind the title of the page - the class was defined in html code*/
	background-image: url("../images/home-banner.jpg");
	height: 300px;
	background-size: cover;
	background-position: center;
	padding-top: 40px
}
.banner-home h1{
	/*chooses a google font for the title - code comes from google - applies to h1 font only*/
	font-family: 'Oswald', sans-serif;
	text-align: center;
	font-size: 3em;
	margin-top: 0;
	color: black;
}
.banner-about{
	/*image behind the title of the page - the class was defined in html code*/
	background-image: url("../images/about-banner.JPG");
	height: 300px;
	background-size: cover;
	background-position: center;
	padding-top: 20px;
}
.banner-about h1{
	/*chooses a google font for the title - code comes from google - applies to h1 font only*/
	font-family: 'Oswald', sans-serif;
	text-align: center;
	font-size: 3em;
	margin-top: 20px;
	color: black;
}
.banner-essays{
	/*image behind the title of the page - the class was defined in html code*/
	background-image: url("../images/essays-banner.jpg");
	height: 300px;
	background-size: cover;
	background-position: center;
	padding-top: 20px;
}
.banner-essays h1{
	/*chooses a google font for the title - code comes from google - applies to h1 font only*/
	font-family: 'Oswald', sans-serif;
	text-align: center;
	font-size: 3em;
	margin-top: 50px;
	color: white;
}
.banner-books{
	/*image behind the title of the page - the class was defined in html code*/
	background-image: url("../images/books-banner.jpg");
	height: 300px;
	background-size: cover;
	background-position: center;
	padding-top: 20px;
}
.banner-books h1{
	/*chooses a google font for the title - code comes from google - applies to h1 font only*/
	font-family: 'Oswald', sans-serif;
	text-align: center;
	font-size: 3em;
	margin-top: 50px;
	color: black;
	background: white
}
.banner-thirdperson{
	/*image behind the title of the page - the class was defined in html code*/
	background-image: url("../images/thirdperson-banner.JPG");
	height: 300px;
	background-size: cover;
	background-position: center;
	padding-top: 20px;
}
.banner-thirdperson h1{
	/*chooses a google font for the title - code comes from google - applies to h1 font only*/
	font-family: 'Oswald', sans-serif;
	text-align: center;
	font-size: 3em;
	margin-top: 10px;
	color: black;
	background: white
}
.banner-train2014{
	/*image behind the title of the page - the class was defined in html code*/
	background-image: url("../images/x-country-banner.JPG");
	height: 300px;
	background-size: cover;
	background-position: center;
	padding-top: 120px;
}
.banner-train2014 h1{
	/*chooses a google font for the title - code comes from google - applies to h1 font only*/
	font-family: 'Oswald', sans-serif;
	text-align: center;
	font-size: 3em;
	margin-top: 10px;
	color: black;
	background: white
}
/*end of banner section*/

/*style of titles of anchored sections*/
.anchor-title{
	margin-top: 100px;
}

/*style of images and text in body of page*/
.image-one{
	text-align: center;
	font-size: 2em;
	margin-top: 0;
	padding: 10px 10px 20px 10px;
}
.image-two{
	text-align: center;
	font-size: 1em;
	margin-top: 0;
	padding: 10px 0 20px 0;
	}
.body-text{	
   font-family: 'Open Sans', sans-serif;
	text-align: left;
	padding: 0px 20px 20px 20px;	
}

.side-by-side-img{
	width: 100%;
	height: 300px;
	background-image: url("../images/about-me.jpg");
	background-size: cover;
	background-position: center;
}
.side-by-side{
	background-color: white;
	padding: 0 20px 10px 20px
}
.side-by-side-text p{
	color: black;
}
.side-by-side-text h2{
	color: black;
}
.third-person-img{
	width: 100%;
	height: 300px;
	background-image: url("../images/ThirdPerson-book.png");
	background-size: cover;
	background-position: center;
}
.third-person{
	background-color: white;
	padding: 0 20px 10px 20px
}
.third-person-text p{
	color: black;
}
.third-person-text h2{
	color: black;
}
.essay-img{
	width: 50%;
	height: 300px;
	background-image: url("../images/Departure.jpg");
	background-size: cover;
	background-position: center;
}

/*end of images and text within body of page*/

footer{
	font-size: 0.75em
}

 



/*always put media queries at the end of CSS*/
/*whenever the screen is wider than 500 px, this applies*/
@media screen and (min-width:500px) {
	/*the menu goes from verticle to horizontal*/
	nav ul{
		display: flex;
	}
	nav ul li{
		/*to spread out each one evenly*/
		flex:1;
	}
	.side-by-side{
		display: flex;
	}
	.side-by-side-img{
		flex: 1;
	}
	.side-by-side-text{
		flex: 1;
	}
	.third-person{
		display: flex;
	}
	.third-person-img{
		flex: 1;
	}
	.third-person-text{
		flex: 1;
	}
}