/* css reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* ===================================== my styles ============================== */

body {
	box-sizing: border-box;
	font-size: 18px;
	min-height: 100vh;
	position: relative;
}


header {
	background-image: url('../images/sunset.jpg');
	background-size: cover;
	background-position: center center;
	min-height: 126px;

	position: -webkit-sticky;
		position: -moz-sticky;
		position: -o-sticky;
		position: -ms-sticky;
		position: sticky;
		top: 0;
		z-index: 2;
}

.header-div {
	position: absolute;
	top:0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgba(0, 0, 0, .4);

	display: grid;
	grid-template-columns: 1fr 50px;
	align-content: center;
}

h1 {
	padding-left: 1rem;
	font-size: 2rem;
	color: #eee;
}

.header-quote {
	display: none;
	color: #ddd;
	text-align: center;
	line-height: 1.2;
	padding: 1rem;
	font-size: 1.2rem;
}

/* ======================= hamburger icon ============================= */

.hamburger-icon {
	height: 35px;
	width: 35px;
	background-color: transparent;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.hamburger-icon:hover .hamburger{
	border-top: 3px solid #166987;
}

.hamburger {
	border-top: 3px solid #eee;
}

/* =================== mobile navigation ============================= */
		/* MOBILE MENU */

.mobile-menu {
	display: none;
	position: relative;
	padding-top: 32px;
	width: 100%;
	background-color: rgba(22, 105, 135, .98);
}

/*
.mobile-menu li:hover > * {   alternative to javascript???? 
	display: block;
}
*/

#close-button {
	font-size: 2rem;
	position: absolute;
	left: 91%;
	top: -5px;
	color: #eee;
	padding: .5rem;
}

.mobile-menu li {
	border-bottom: 1px solid #2096c1;
	position: relative;
}

.mobile-menu a {
	display: block;
	text-decoration: none;
	color: #eee;
	font-size: 1.3rem;
	letter-spacing: .5px;
	padding: 1rem 1rem;
}

.mobile-menu a:hover {
	background-color: rgba(68, 183, 225, .8) !important;
}

   /* MOBILE SUBMENU */

.mobile-submenu {
	position: static; /* this will 'push down' any li's below, allowing them to 
	still be seen underneath this submenu. with position:absolute, this submenu
	blocks any remaining li's- making them difficult to get to. */
	width: 100%;
	background-color: #9cd9ef;
	z-index: 5;
}

.hidden {
	display: none;
}

.mobile-submenu a {
	display: block;
	text-decoration: none;
	color: #166987;
	font-size: 1.3rem;
	letter-spacing: .5px;
	padding: .5rem 1rem .5rem 2.5rem;
}

.mobile-submenu a:hover {
	color: #166987;
	background-color: #eee !important;
}

/* ============================ nav bar ================================ */

.standard-nav {
	display: none;
	background-color: #222130;

	max-width: 1100px;
	padding: 1rem 0;

	position: -webkit-sticky;
		position: -moz-sticky;
		position: -o-sticky;
		position: -ms-sticky;
		position: sticky;
		top: 0;
		z-index: 2;
}

nav a {
	font-size: 1.1rem;
	color: #eee;
	text-decoration: none;
	padding: 0 16px .5rem 16px;	
	text-align: center;
	float left;
}

.dropdown {
	overflow: hidden;	
	background-color: #222130;
	float left;
}

.dropdown-section {
	display: none;
	position: absolute;
	z-index: 1;
	background-color: #f9f9f9;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, .2);
}

.dropdown-button {
	font-size: 1.1rem;
	padding: 0 16px .5rem 16px;
	
	border: none;
	outline: none;
	margin: 0;
	background-color: inherit;
	font: inherit;
	color: #eee;
}

nav a:hover, .dropdown-button:hover {
	border-bottom: 2px solid #99302D;
}

.dropdown-section a {
	float: none;
	text-align: left;
	display: block;
	padding: 12px 16px;
	text-decoration: none;
	color: black;
	margin: 0;
	border: none;
}

.dropdown-section a:hover {
	background-color: #4d4b6c;
	color: #eee;
	border: none;
}

.dropdown:hover .dropdown-section {
	display: block;
	background-color: #dfdee8;
	border: none;
}


/* ============================ hero image =============================== */

.hero-figure {
	
	max-width: 1100px;
	margin: 1rem;
}

.hero-image {
	max-width: 100%;

}

/* ================================ section ============================= */

section {
	background-color: #f3f2f6;
	padding: 4rem 0;
}

.about {
	overflow: auto;
	max-width: 700px;
	margin: 0;
}

.sundance-p1 {
	float: left;
	padding: 0 1rem 1rem 1rem;
	font-size: 1.1rem;
	line-height: 1.2;
	margin: 0 auto;
}

.sundance-p2 {
	max-width: 500px;
	margin: .5rem 1rem 0 1rem;
	clear: both;
	font-size: 1.1rem;
	line-height: 1.2;
	padding: 1rem;
	background-color: #99302D;
	display: block;
	color: #eee;
	text-align: center;
}

.sundance {
	margin-right: 1rem;
	float: left;
	width: 250px;
	border: 1px solid black;
}

/* ======================= article ==================== */

.article {
	margin: 1rem;
}

.article-figure {
	max-width: 800px;
	margin-bottom: 1.5rem;
	margin: 2rem auto;
}

.article-image {
	display: block;
	max-width: 100%;
	margin: 0 auto;
}

.newsletter {
	text-align: center;
}

.newsletter h3 {
	font-size: 1.5rem;
	margin-bottom: .8rem;
}

.newsletter > p {
	margin-bottom: .5rem;
}

sup {
	font-size: .8rem;
}

/* ================================== footer ============================ */

footer {
	text-align: center;
	padding: 3rem 0 1.5rem 0;
	background-color: #222130;
}

.social-icons {
	margin-bottom: 1.8rem;
}

svg {
	color: #d5d4e2;
	margin-right: 1rem;
	transition: .2s ease;
}

svg:hover {
	color: #99302D;
}

address {
	color: #d5d4e2;
	padding-bottom: 2rem;
	line-height: 1.3;
}

address a {
	text-decoration: none;
	color: #d5d4e2;
}

address a:hover {
	color: #99302d;
}

.copyright {
	color: #7c7aa3;
}

.copyright a {
	text-decoration: none;
	color: #7c7aa3;
}

.copyright a:hover {
	color: #c1c0d4;
}

/* ============================= media queries ========================== */

@media screen and (min-width: 533px){
	.sundance-p2 {
		margin: 0 auto;
	}
}


@media screen and (min-width: 700px){

	header {
		position: relative;
	}

	.header-div {
		display: block;
	}

	h1 {
		font-size: 2.5rem;
		text-align: center;
		padding-left: 0;
		padding-top: 1rem;
	}

	.hamburger-icon {
		display: none;
	}

	.header-quote {
		font-size: 1.35rem;
		display: block;
	}

	.hero-figure {
		margin: 2rem;
	}

	.mobile-nav {
		display: none;
	}

	.standard-nav {
		display: flex;
		justify-content: space-around;
		align-items: center;	
	}

	.about {
		margin: 0 auto;
	}

}

@media screen and (min-width: 900px){
	.section-inner {
		padding: 0 1rem;
		max-width: 1100px;
		margin: 0 auto;
		display: grid;
		grid-template-columns: 2fr 1fr;
	}

	.sundance-p2 {
		display: flex;
		align-items: center;
		text-align: center;
	}
}

@media screen and (min-width: 1100px){
	nav {
		margin: 2rem auto;

	}

	.hero-figure {
		width: 100%;
		margin: 2rem auto;
	}
}




















