 /*CSS Pacific Trails Resort Chapter 10*/

* { box-sizing: border-box; }

body {
	
	background-color: #EAEAEA;
	color: #666666;
	font-family: Arial, Helvetica, sans-serif;
	
}

#wrapper {
	
	/*margin: auto;*/ 
	background-color: #90C7E3;
	background-image: linear-gradient(to bottom, #FFFFFF, #90C7E3);
	background-repeat: no-repeat;
	
}

header {
	
	/*Organizing by text only*/
	color: #FFFFFF;
	text-align: center;
	
	/*Organizing by background only*/
	background-color: #002171;

	
}

header a {
	
	text-decoration: none;
	color: #FFFFFF;
	
}

header a:link{
	
	color: #FFFFFF;
	
}

header a:visited{
	
	color: #FFFFFF;
	
}

header a:hover{
	
	color: #90C7E3;
	
}

h1 {
	
	margin-bottom: 0;
	font-family: Georgia, "Times New Roman", serif;
	margin-top: 0;
	letter-spacing: 0.25em;
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	
}

nav {
	
	font-size: 120%;
	font-weight: bold;
	padding: 0;
	text-align: center;
	
}

nav a {
	
	text-decoration: none;

}

nav ul {
	
	list-style-type: none;
	margin: 0;
	padding-left: 0;
	font-size: 1.2em;
	
}

nav li {
	
	border-bottom: 1px solid darkblue;
	
}

nav a:link{
	
	color: #5C7FA3;
	
}

nav a:visited{
	
	color: #344873;
	
}

nav a:hover{
	
	color: #A52A2A;
	
}

main{
	
	padding: 1px 20px 20px 30px;
	display: block;
	background-color: #FFFFFF;
	overflow: auto;
	
}

h2 {
	
	color: #1976D2;
	font-family: Georgia, "Times New Roman", serif;
	text-shadow: 1px 1px 1px #CCCCCC;
	
}

h3 {
	
	font-family: Georgia, "Times New Roman", serif;
	color: #000033;
	
}

form {

	display: flex;
	flex-flow: column nowrap;

}

input, textarea {

	margin-bottom: 0.5em;

}

main ul{
	
	list-style-image: url(images/marker.gif);
	
}

dt {
	
	color: #002171;
}

footer {
	
	background-color: #FFFFFF;
	font-size: 75%;
	font-style: italic;
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	padding: 2em;
	
}

.resort {
	
		color: #1976D2;
		font-weight: bold;
		
}


#contact {
	
	font-size: 90%;
	
}

#homehero {
	
	height: 300px;
	background-image: url(images/coast2.jpg);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	
}

#yurthero {
	
	height: 300px;
	background-image: url(images/yurt.jpg);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	
}

#trailhero {
	
	height: 300px;
	background-image: url(images/trail.jpg);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	
}

table{

	border-spacing: 0;
	border: solid 2px #3399CC;
	border-collapse: collapse;

}

td{

	padding: 0.5em;
	border: 2px solid #3399CC;
	text-align: center;

}

th {

	padding: 0.5em;
	border: 2px solid #3399CC;

}

.text{

	text-align: left;

}

tr:nth-of-type(odd) {

	background-color: #F5FAFC;

}

@media (min-width: 600px) {
	
	nav ul {
		
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		/*Not sure if instructions wanted space-between, but based on the books figure 8.5
		space-around looks like the best option for making a site nicer to look at */
		justify-content: space-around;
		
	}
	
	nav li {
		
		border-bottom: none;
		
	}
	
	section {
		
		margin-left: 2em;
		margin-right: 2em;
		
	}

	form {

		display: grid;
		width: 60%;
		grid-template-columns: 6em 1fr;
		grid-template-rows: auto;
		grid-gap: 1em;

	}

	#submit {

		grid-column: 2 / 3;
		width: 9em;

	}
	
	.content main{
		
		display: grid;
		grid-template-rows: auto;
		grid-template-columns: 1fr 1fr 1fr;
		
	}
	
	h2 {
		
		grid-row: 1 / 2; 
		grid-column: 1 / 5;
		
	}
	
	section{
		
		grid-row: 2 / 3; 
		grid-column: auto;
		
	}
	
	#special{
		
		grid-row: auto; 
		grid-column: 1 / 5;
		
	}
	
	footer{
		
		grid-row: auto; 
		grid-column: 1 / 5;
		
	}
	
}

@media (min-width: 1024px) {

	nav ul {
		
		
		display: flex;
		flex-direction: column;
		padding-top: 1em;

	}

	nav {

		text-align: left;
		padding-left: 1em;

	}
	
	#wrapper {
		
		margin: auto;
		width: 80%;
		border: 1px solid darkblue;
		box-shadow: 3px 3px darkblue;
		display: grid;
		grid-template-columns: 180px auto;
		grid-template-rows: auto;
		
	}
	
	header {
		
		grid-row: 1 / 2;
		grid-column: 1 / 3; 
		
	}
	
	nav {
		
		grid-row: 2 / 5;
		grid-column: 1 / 2;
		
	}
	
	div {
		
		grid-row: 2 / 3;
		grid-column: 2 / 3;
		
	}
	
	main {
		
		grid-row: 3 / 4;
		grid-column: 2 / 3;
		
	}
	
	footer {
		
		grid-row: 4 / 5;
		grid-column: 2 / 3;
		
	}
	
}