/* Header */

/*
font-family: 'Lato', sans-serif;
font-family: 'Montserrat', sans-serif;
*/

body, html {
  height: 100%;
}

.section {
	position: relative;
}


.parallax {
	/* Add more height to allow internal scrolling */
	height: 115vh;

	/* Create the parallax scrolling effect */
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	filter: grayscale(30%);
	transition: filter 0.5s ease;
	border-bottom: 5px solid #95b6c9;
}

.parallax:hover {
	filter: grayscale(10%);
	transition: filter 0.5s ease;
}

.text-section {
	font-family: 'Montserrat', serif;
	padding: 50px 30px;
	text-align: center;
	opacity: 1;
	position: absolute;
	background-color: rgba(255,255,255,.80);
	transition: 1s ease;
	max-height: 80vh;
	overflow-y: auto;
}

.text-section:hover {
	background-color: rgba(255,255,255,1);
}

.text-section a {
    color: hsla(202, 32%, 50%, 1) !important;
}

.text-section a:hover {
    color: hsla(202, 32%, 25%, 1) !important;
    text-decoration: none !important;
}


/* About/Home section */
#about-pic {
	background-image: url('../teachingpic2.jpg');
	background-position: left;
}

#about-text {
    z-index: 90;
    top: 30%;
    right: 2%;
    width: 50%;
}


/* Research section */
#research-pic {
	background-image: url('../research.jpg');
	background-position: top;
}

#research-text {
    z-index: 90;
    top: 30%;
    left: 2%;
    width: 60%;
}


/* Teaching section */
#teaching-pic {
	background-image: url('../teaching2.png');
	background-position: top left;	
}

#teaching-text {
    z-index: 90;
    top: 10%;
    right: 2%;
    width: 70%;
}


/* Outreach section */
#outreach-pic {
	height: 125vh;
	background-image: url('../outreach.jpg');
	background-position: top;	
}

#outreach-text {
    z-index: 90;
    top: 10%;
    left: 2%;
    width: 70%;
}

/* Contact section */
#contact-pic {
	background-image: url('../contact.jpg');
	background-position: center;	
}

#contact-text {
    z-index: 90;
    bottom: 15%;
    left: 30%;
    width: 40%;
}

h3:after {
	content: "";
	display: block;
	margin: 0 auto;
	width: 100px;
	height: 2px;
	left: 0;
	background-color: #95b6c9;
	transition: width 0.3s ease 0s, left 0.3s ease 0s;
}

h3:hover:after {
	width: 150px;
	left: 50%;
}

#navbar {
	overflow: hidden;
	font-family: 'Lato', sans-serif;
	background-color: rgba(255,255,255,1);
	padding: 30px 10px; /* Large padding which will shrink on scroll (using JS) */
	transition: 0.4s ease; /* Adds a transition effect when the padding is decreased */
	position: fixed; /* Sticky/fixed navbar */
	width: 100%;
	top: 0; /* At the top */
	z-index: 99;
}

/* Style the navbar links */
#navbar a {
	float: left;
	color: black;
	text-transform: Uppercase;
	text-align: center;
	padding: 6px;
	text-decoration: none;
	font-size: 18px;
	line-height: 25px;
	border-radius: 4px;
}

/* Style the namehdr */
#navbar #namehdr {
	font-size: 35px;
	font-weight: bold;
	text-align: center;
	transition: 0.6s ease;
	padding-left: 0;
}

/* Style the active/current link */
#navbar a.active {
	color: #95b6c9;
	underline: normal;
}

/* Display some links to the right */
#navbar-right {
	float: right;
}

/* Links on mouse-over */
#navbar-right a:hover {
	/* background-color: #ddd; */
	color: black;
}


/* TEST */
ul { 
	padding: 0; 
	list-style: none; 
	display: table;
	text-align: center;
}
li { 
	display: table-cell; 
	position: relative; 
	padding-left: 16px;
}
.nav-section {
	color: black;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 0.075em;

	display: inline-block;
	position: relative;
}
.nav-section:after {    
	background: none repeat scroll 0 0 transparent;
	bottom: 0;
	content: "";
	display: block;
	height: 2px;
	left: 50%;
	position: absolute;
	background: #95b6c9;
	transition: width 0.3s ease 0s, left 0.3s ease 0s;
	width: 0;
}
.nav-section:hover:after { 
	width: 100%; 
	left: 0; 
}
/* END TEST  */



/* Add responsiveness - on screens less than 580px wide, display the navbar vertically instead of horizontally */
@media only screen and (max-width: 768px) {
	#navbar {
		padding: 20px 10px !important; /* Use !important to make sure that JavaScript doesn't override the padding on small screens */
	}
  
	#navbar #namehdr {
		font-size: 25px;
		font-weight: bold;
		text-align: center;
		padding-left: 0;
		float: left;
		transition: 0.6s ease;
		letter-spacing: .05em;
		/* width: 100%; */
	}
	  
	#navbar a {
		float: none;
		color: black;
		text-align: center;
		padding: 6px;
		text-decoration: none;
		font-size: 16px;
		line-height: 20px;
		border-radius: 4px;
	}
	  
	#navbar li {
		float: none;
		display: inline-block;
		text-align: center;
	}

	#navbar-right {
		float: none;
	}

	.nav-section {
		color: black;
		text-transform: uppercase;
		text-decoration: none;
		letter-spacing: 0.1em;
		display: inline-block;
		position: relative;
	}
	.nav-section:after {    
		background: none repeat scroll 0 0 transparent;
		bottom: 0;
		content: "";
		display: block;
		height: 2px;
		left: 50%;
		position: absolute;
		background: #95b6c9;
		transition: width 1s ease 0s, left 1s ease 0s;
		width: 0;
	}
	.nav-section:hover:after { 
		width: 50%; 
		left: 25%; 
	}


	.text-section {
		font-family: 'Montserrat', serif;
		padding: 50px 30px;
		text-align: center;
		/* border-top: 5px solid #95b6c9; */
		border-bottom: 5px solid #95b6c9;
		position: inherit;
		max-height: unset;
		overflow-y: unset;
	}

	#about-text, #research-text, #teaching-text, #outreach-text, #contact-text {
		z-index: unset;
		top: unset;
		right: unset;
		left: unset;
		bottom: unset;
		width: 100%;
		background-color: white;
	}

	#research-pic, #teaching-pic, #outreach-pic, #contact-pic {
		background-size: contain;
		background-repeat: no-repeat;
		width: 100%;
		height: 0;
		padding-top: 66.64%; /* (img-height / img-width * container-width) */
		/* (853 / 1280 * 100) */
	}

	ul {
		width: 100%;
	}

	li {
		width: 100%;
	}

	.parallax {
		background-attachment: scroll;	
		height: 75vh;
	}

	#about {
		height: 100vh;
	}
  
}