/* General styles that apply to the entire page */

* {
	box-sizing: border-box;
}

body {
	background: url('../images/ricepaper2.png');
	font-size: 112.5%;
	line-height: 212.5%;
	font-family: 'Helvetica Neue', Helvetica, sans-serif;
	color: #777777;
}

.container {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	clear: both;
	overflow: hidden;
}

/* Styles for the Headings */

h1, h2, h3, p {
	margin-bottom: 20px;
}

p:last-child {
	margin-bottom: 0;
}

h1, h2, h3 {
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	color: #685040;
	text-transform: uppercase;
}

h1 {
	font-size: 30px;
	line-height: 49px;
	border-bottom: 3px solid #ddd;
	padding-bottom: 20px;
}

h2, h3 {
	font-size: 20px;
}


/* Styles that apply to the elements in the header */

#masthead {
	background-color: #fff;
	margin: 0 0 30px;
	z-index: 99;
	color: #fff;
	overflow: auto;
	border-bottom: 2px solid #ccc;
	position: fixed;
	width: 100%;
}

	/* Logo */
	#logo {
		width: 350px;
		height: 90px;
		background-color: #009F93;
		float: left;
		font-family: 'Lobster', cursive;
		text-align: center;
		line-height: 90px;
		color: #ffffff;
		font-size: 187.5%;
		text-decoration: none;
		letter-spacing: 1px;
	}

	#logo:hover {
		background-color: #FAA634;
	}

	/* Navigation Links */
	nav {
		float: right;
		margin-top: 25px;
	}

	nav a {
		color: #999999;
		text-decoration: none;
		text-transform: uppercase;
		margin-left: 15px;
		display: inline-block;
		border-left: 1px solid #efefef;
		padding-left: 15px;
		line-height: 18px
	}

	nav a:first-child {
		border-left: 0 none;
	}

	nav a:hover {
		color: #009F93;
	}

/* Main Sections in each page*/

#main-container {
	padding-top: 130px;
}

.main-section {
	background: #fff;
	padding:30px;
	margin: 0 0 40px 0;
	width: 100%;
	max-width: 650px;
	float: left;
	border: 1px solid #ddd;
	margin-bottom: 150px;
}

.auth-image {
	width: 200px;
	height: auto;
	margin-top: 10px;
	float: left;
	margin-right: 25px;
	border: 5px solid #FAA634;
	animation-name: borderChange;
	animation-duration: 3s;
	animation-iteration-count: infinite;
	animation-direction: alternate;
}

/* Adding a Cool CSS3 Animation for Bonus Points*/

@keyframes borderChange {
	from {border-color: #FAA634;}
	to {border-color: #009F93;}
}


.auth-image:hover {
	opacity: 0.5;
}

/* Sidebars in each page*/

.sidebar {
	background:	#fff;
	padding: 30px;
	width: 100%;
	max-width: 270px;
	float: right;
	border: 1px solid #ddd;
	margin-bottom: 20px;
}

h3, .sidebar, h2 {
	border-bottom: 2px solid #eee;
	padding-bottom: 20px;
	margin-bottom: 15px;
	line-height: 22px;
}

.social {
	width: 62px;
	height: 62px;
	margin-top: 8px;
	margin-right: 5px;
}

.social:last-child {
	margin-right: 0;
}

/* Hovers for social icons*/

#git, #linked, #stack {
	background-color: #FAA634;
}
#git:hover {
	background-color: #009F93;
}

#linked:hover {
	background-color: #009F93;
}

#stack:hover {
	background-color: #009F93;
}
/* Footer */

footer {
	background: #dddddd;  /* fallback for old browsers */
	background: -webkit-linear-gradient(to top, #c4c4c4, #1b1b1b);  /* Chrome 10-25, Safari 5.1-6 */
	background: linear-gradient(to top, #c4c4c4, #1b1b1b); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
	color: #fff;
	padding: 30px 0;
	clear: both;
	border-top: 8px solid #009F93;
	font-size: 12px;
	text-align: center;
	position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 98;
    overflow: auto;
}	

/* Portfolio Page */

.work {
	width: 274px;
	overflow: auto;
	position: relative;
	float: left;
	margin: 20px 0 25px;
}

.work:nth-child(even) {
	margin-right: 40px;
}

.work h3 {
	border-bottom: 0;
	background: #009F93;
	color: #fff;
	text-align: center;
	position: absolute;
	bottom: 20px;
	padding: 15px;
	width: 100%;
	line-height: 30px;
	margin-bottom: 0;
	font-weight: 300;
}

.port-image {
	width: 274px;
	height: auto;
	margin-top: 10px;
	float: left;
	margin-right: 25px;
}

.port-image:hover {
	opacity: 0.5;
}

/* Contact Page */

#contact-form ul {
	margin-bottom: 20px;
	list-style-type: none;
	list-style-position: inside;
	margin-left: -40px;
}

#contact-form li {
	margin-bottom: 10px;
}

label,
input[type=text],
input[type=email],
textarea {
	display: block;
	width: 100%;
}

input[type=text],
input[type=email],
textarea {
	height: 35px;
	border: 1px solid #ddd;
	padding: 0 10px;
	font-size: 14px;
}

textarea {
	height: 200px;
	padding: 10px;
}

input[type=submit] {
	background: #009F93;
	border: 0 none;
	color: #fff;
	font-size: 18px;
	padding: 10px 30px;
	cursor: pointer;
}

input[type=submit]:hover {
	background-color: #FAA634;
}

/* Begin Responsive Code */

/* Mobile First */

@media only screen and (max-width: 640px) {

	.container {
		width: 100%;
		max-width: 640px;
		margin: 0 auto;
	}

	#masthead {
		background: #fff;
		margin: 0 0 30px;
		z-index: 99;
		color: #fff;
		overflow: auto;
		border-bottom: 2px solid #ccc;
		position: static;
		width: 100%;
	}

 	#logo {
		width: 640px;
		height: 90px;
		background: #009F93;
		font-family: 'Lobster', cursive;
		text-align: center;
		line-height: 90px;
		color: #ffffff;
		font-size: 187.5%;
		text-decoration: none;
		letter-spacing: 1px;
	}

	nav {
			float: none;
			margin: auto;
			text-align: center;
		}

	nav a {
		color: #999999;
		text-decoration: none;
		text-transform: uppercase;
		text-align: center;
		margin: auto;
		display: inline-block;
		border-left: 1px solid #efefef;
		padding-left: 40px;
		padding-right: 40px;
		line-height: 18px
	}

	#main-container {
		padding-top: 0px;
	}

	.main-section {
		background: #fff;
		padding:30px;
		margin: auto;
		width: 100%;
		max-width: 600px;
		float: none;
		border: 1px solid #ddd;
		margin-bottom: 20px;
	}

	.auth-image {
		width: 100%;
		height: auto;
		margin-top: 10px;
		margin-bottom: 20px;
		float: left;
		margin-right: 25px;
	}

	h1, h2 {
		line-height: 10px;
	}

	p {
		font-size: 18px;
		line-height: 27px;
	}

	.sidebar {
		background:	#fff;
		padding: 30px;
		width: 100%;
		max-width: 600px;
		float: none;
		border: 1px solid #ddd;
		margin: auto;
		margin-bottom: 20px;
	}

	footer {
		position: static;
	    bottom: 0;
	    left: 0;
	    width: 100%;
	    z-index: 98;
	    overflow: auto;
	}	

	.work {
		width: 100%;
		max-width: 600px;
		float: none;
	}

	.port-image {
		width: 100%;
		max-width: 600px; 
	}
}

/* Tablet = 768px */

@media only screen and (max-width: 768px) {

	.container {
		width: 100%;
		max-width: 768px;
		margin: auto;
		clear: both;
	}

	nav {
		float: right;
		margin-top: 25px;
		padding-right: 40px;
	}

	.main-section {
		margin: 0 0 40px 0;
		width: 94.5%;
		max-width: 728px;
		float: none;
		border: 1px solid #ddd;
		margin: auto;
		margin-bottom: 20px;
		overflow: auto;

	}

	h1, h2 {
		line-height: 10px;
	}

	p {
		font-size: 18px;
		line-height: 27px;
	}

	.sidebar {
		width: 94.5%;
		max-width: 728px;
		float: none;
		margin: auto;
		margin-bottom: 20px;
	}

	footer {
		position: static;
	    bottom: 0;
	    left: 0;
	    width: 100%;
	    z-index: 98;
	    overflow: auto;
	}	

	.work {
		/*width: 313px;
		max-width: 313px;*/
		float: left;
		overflow: auto;

	}

	.port-image {
		/*width: 313px;
		max-width: 313px;*/
		overflow: auto;
	}
}





