/* **************************************Main************************************ */

body {
	font-family: Baskerville;
}


/* *****************************Navigation Bar******************************* */

/* The Overlay (background) */
.overlay {   
  height: 0%;
  width: 100%;
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  background-color: rgb(255,255,255); 
  background-color: rgba(255,255,255, 0.95); 
  overflow-x: hidden; /* Disable horizontal scroll */
  transition: 0.5s; 
}

/* Position the content inside the overlay */
.overlay-content {
  position: relative;
  top: 33%; 
  width: 100%; 
  text-align: center; 
  margin-top: 30px; 
}

/* The navigation links inside the overlay */
.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #808080;
  display: block; 
  transition: 0.3s; 
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
  color: black;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
}

.overlaybutton {
	float: right;
}

.navbar {
	overflow: hidden;
	background-color: #FFFFFF;
	position: -webkit-sticky; 
    position: sticky;
    top: 0;
}

/* Style top navigation bar links */
.navbar a {
	float: left;
	display: block;
	color: #808080;
	text-align: center;
	padding: 20px 20px;
	text-decoration: none;
}

/* Right-aligned links */
.navbar a.right {
	float: right;
	font-family: Avenir Next;
    margin-top:10px;
    font-size:115%;
}

/* Hover for navigation */
.navbar a:hover {
	color: #33C173;
}


@media screen and (max-width: 400px) {
  .navbar a {
    float: none;
    width: 100%;
  }
}

/* ********************************Main**************************************** */
.title {
  margin-top:10%;
  padding: 15px; /* some padding */
  text-align: center; /* center the text */
  background: none; /* white background */
  color: black; /* white text color */
}

/* Increase the font size of the <h1> element */
.title a {
  text-align: center;
  font-size:395%;
}

main {
	
    margin: auto;
	position: absolute;
	max-width:100%;
	height:100%;
	overflow:hidden;
	text-align:center;
}

ul {
  height: 100%;
  max-width: 100%;
  
  
  padding:0;
  background: rgba(255,255,255,0); 
  background-size:cover;
  text-align: center; 
}

ul li {
	list-style:none;
}
	
ul li a{
	display:block;	
	text-decoration: none;
	
	padding:15px;
	top:0;
	left:0;
	text-align: center;
	line-height: 70px;
	color: #808080;
	cursor: pointer;
	transition: 0.5s;
	font-size: 140%;
	font-family: Avenir Next;
	font-weight: 300;
}

ul li a:hover{
	color:#33C173;	
	font-weight:400;
}

ul li a:nth-child(5) + img {
	opacity:1;
}

ul li img {
	position: absolute;
	text-align:center;
	top: 0;
	left:0;
	size: cover;
	width:100%;
	height:auto;
	z-index:-2;
	transition: 0.5s;
	opacity:0;	
}


ul li a:hover + img{
	opacity:1;
	z-index:-1;
	animation: animate 20s linear forwards;
}

@keyframes animate
{
	0%
	{
		transform: scale(1);
	}
	100%
	{
		transform: scale(1.2);
	}
}

@media screen and (max-height: 450px) {
  .ul li a {font-size: 20px}
    font-size: 40px;
    top: 15px;
    right: 35px;
  
}

/* *************************************Footer************************************ */


