/* Reset to border box */
html {
   box-sizing: border-box;
}

*, *:before, *:after {
   box-sizing: inherit;
}

body{
	font-family:Arial, Helvetica, sans-serif;
	font-size:25px;
	line-height:1.5;
	padding:0;
	margin:0;
  	min-height: 100vh;
  	display: flex;
  	flex-flow: column;	
}

main {
  	flex-grow: 1;
}

ol, ul {
	list-style: none;
}

h1{
	font-size: 2em;
	line-height: 1em;
}
h2{
	font-size: 1.75em;
	line-height: 1em;
}
h3{
	font-size: 1.5em;
	line-height: 1em;
}
h4{
	font-size: 1.25em;
	line-height: 1em;
}
h5{
	font-size: .5em;
	line-height: 1em;
}

sub{
	font-size: .6em;
}

.horitzontal-center {
  	margin: 0;
	text-align: center;
}

.italic{
  font-style:italic;
}

/* Global */
.container{
	width:80%;
	margin:auto;
	overflow:hidden;
}

a:link {
	color:#EF453D;
	text-decoration:none;
}
a:visited {
	color:#EF453D;
	text-decoration:none;
}
a:hover {
	color:#E56565;
	text-decoration:none;
}
a:active {
	color:#EF453D;
	text-decoration:none;
}

.button {
  	background-color: #EF453D;
  	border: none;
  	color: white;
  	padding: 20px;
  	text-align: center;
  	text-decoration: none;
  	display: inline-block;
  	font-size: 1em;
	font-weight:bold;
	margin: 25px 2px;
  	cursor: pointer;
	border-radius:2px;
}

.button:hover{
	background-color:#FC7669;
}


ul{
	margin:0;
	padding:0;
}




/* Header */

header {
	background:#ffffff;
	color:#333333;
	padding-top:30px;
  	padding-bottom: 30px;
	min-height:70px;
}

header a:link {
	color:#333333;
	text-decoration:none;
	text-transform:uppercase;
	font-size:16px;
}

header li{
	float:left;
	display:inline;
	padding:0 0px 0 30px;
}

header h1{
	color:#222222;
}

header #branding{
	float:left;
}

header #branding h1{
	margin:0;
}

header nav{
	float:right;
	margin-top:10px;
}

header a:hover {
	color:#3D3F56;
}

header a:visited {
	color:#3D3F56;
}

header .current a{
	color:#EF453D;
}





/* Footer */

footer{
	padding:50px;
	margin-top:20px;
	color:#222;
	text-align:center;
}

footer img{
  margin-bottom: 50px;
}

footer h1, h2, h3, h4 {
	margin-bottom: 0px;
}






/* Portfolio Grid */
figure {
	margin: 0;
	padding: 0;
}

.thumbnail-grid img {
	max-width: 100%;
}

.thumbnail-grid ul {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
  padding-bottom: 2em;
}

.thumbnail-grid li {
	width: 50%;
}

.thumbnail-grid .thumbnail {
	position: relative;	/* Set the container for the images */
}

.thumbnail-grid img {
    display: block; /* Get rid of tiny space below images */
    margin-top: 0px;
    margin-bottom: 0px;
}

.overlay {
	/* Set up the overlay text and background */
	background-color: rgba( 255, 0, 0, .2);
	width: 100%;
	height: 100%;
	position: absolute;
	opacity: 0;

	color: rgba( 255, 255, 255, 0);
	font-weight: bold;
	font-size: 200%;
	padding-top: 40%;
	text-align: center;
}

.overlay:hover {
    opacity: 1;
}
.thumbnail-grid .overlay {
    transition: 1s all;
}





/* Media Queries */

@media(max-width: 768px){
	header #branding,
	header nav,
	header nav li,
	#gallery .thumbnail{
		float:none;
		text-align:center;
		width:100%;
	}

  	.resContainer h1{
  		font-size:2em;
  	}

  	.introduction{
    	font-size:3em;
    	line-height:1.2em;
    	margin-bottom:50px;
  	}

  	.introduction h1{
    	margin-bottom: 10px;
    	line-height:1em;
  	}

  	.button {
    	margin: 10px 0px;
  	}

  	.aboutTitle .button{
    	margin-bottom:10px;
  	}

	header{
    	margin-top:0px;
		padding-bottom:25px;
	}

  	.thumbnail-grid li {
  		width: 50%;
  	}
}
