﻿#wrapper {
	margin-right: auto;
	margin-left: auto;
	font-size: 16px;
	font-family: arial, sans-serif;
}


body {
	background-image: url('img/stdbg.jpg');
	background-size: cover;
	align-items: center;
	width: 98vw;
	height: 98vh;
	background-repeat: no-repeat;
	background-position: center;
}



header {
	padding-top: 10px;
	padding-bottom: 75px;
	height: 50px;
	text-align: left;
}


nav {
	text-align: left;
}

nav ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	position: relative;
}

nav li {
	margin: 0.5em;
	padding: 0;
	font-size: 1.5em;
	flex: 1 1 0%;
}

@media (min-width: 45em) {
	nav > ul {
		flex-direction: row;
		height: 3em;
	}
	nav li {
		flex: 1;
		font-size: 1em;
	}
}

nav a {
	display: block;
	padding: 0.4em;
	text-decoration: none;
	font-weight: bold;
	text-align: center;
	border: 1px solid #F5DA81;
	border-radius: 10px;
	box-shadow: 0 5px 10px white inset;
	color: #FFE740;
	background-color: #101016;
	transition: all .25s ease-in;
}

nav li[aria-current] a {
	background-color: firebrick;
	color: black;
}

nav a:focus,
nav a:hover,
nav li[aria-current] a:focus,
nav li[aria-current] a:hover {
	color: black;
	background-color: #FFE740;
}

nav b:focus,
nav b:hover,
nav li[aria-current] b:focus,
nav li[aria-current] b:hover {
	color: white;
	background-color: #003300;
}

/*     submenu navigation links      */

nav .submenu {
	visibility: hidden;
	height: 0;
	z-index: 1000;
}

nav .submenu li {
	display: block;
	/* width: 15em; */
}

/**     Show the submenu on hover, focus     **/

nav li:hover .submenu,
nav li:active .submenu,
nav li:focus .submenu {
	visibility: visible;
	height: auto;
}

nav li:focus-within .submenu {
	visibility: visible;
	height: auto;
}

#content {
	position: relative;
	height: auto;
	z-index: 100;
}


a {
	color: #FFFF00;
	text-decoration: none;
}


section {
	width: 650px;
	float: bottom;
	padding: 15px;
	margin-top: 25px;
	margin-right: 15px;
	background-color: #101016;
	margin-bottom: 10px;
	border: 1px solid #DEDCD9;
	border-radius: 5px;
	color: #FFFFFF;
}


.article {
	height: 120px;
	margin-top: 1px;
	margin-bottom: 40px;
}

.article img {
	float: left;
	padding: 5px;
	margin-right: 10px;
	margin-top: 2px;
	margin-bottom: 10px;
	border: 1px solid #DEDCD9;
}

.article a {
	font-size: 16px;
	color: #FFE740;
	text-decoration: underline;
}

aside {
	width: 375px;
	float: right;
	margin-right: 10px;
	padding: 25px;
	margin-top: 125px;
	background-color: #101016;
	border: 1px solid #DEDCD9;
	border-radius: 5px;
	margin-bottom: 20px;
	color: #FFFFFF;
}

.sidebar img {
	padding: 25px;
	margin-top: 15px;
	border: 1px solid #DEDCD9;
	border-radius: 5px;
}

.sidebar a {
	font-size: 18px;
	padding: 20px;
}

.sidebar p {
	padding: 5px;
}

main {
	padding: 0;
}

#gallery {
  width: 20em;
  height: 15em;
  margin: auto;
  overflow: hidden;
}

@media (min-width: 20em)  { 
#gallery {
  width: 20em;
  height: 15em;
}
}

@media (max-width: 60em)  { 
#gallery {
  width: 60em;
  height: 45em;
}
}
  
#gallery figure {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

#gallery figcaption {
  position: absolute;
  left: 1em;
  bottom: 1em;
  color: white;
}

#gallery img {
  width: 90%;
  margin: 0;
  padding: 0;  
}

/*Animation */

#gallery figure {
	height: 100%;
	animation: slide 18s infinite ease-in-out;
}

#gallery:hover figure {
	animation-play-state: paused;
}

@keyframes slide {
	0% {
		top: 0
	}
	12% {
		top: 0
	}
	16% {
		top: -100%
	}
	28% {
		top: -100%
	}
	32% {
		top: -200%
	}
	44% {
		top: -200%
	}
	48% {
		top: -300%
	}
	60% {
		top: -300%
	}
	65% {
		top: -400%
	}
	78% {
		top: -400%
	}
	83% {
		top: -500%
	}
	95% {
		top: -500%
	}
	100% {
		top: 0
	}
}

footer {
	clear: both;
	background-color: #101016;
	border: 1px solid #DEDCD9;
	border-radius: 5px;
	color: #FFFF00;
}

footer ul {
	float: left;
	list-style: none;
	padding: 0px;
	margin: 20px;
	
}

footer li {
	margin-right: 15px;
	display: inline;
	color: n;
}

footer p {
	text-align: right;
	margin-right: 20px;
	color: #777;
}
