#pageouter{
	display: table;
	margin: auto;
	height: 100%;
	width: 100%;
}

#pageinner{
	display: table-cell;
	vertical-align: middle;
	padding: 20px 0px;
	width: 100%;
}

#title{
	width: 80%;
	max-width: 700px;
	margin: auto;
	text-align: center;
	font-family: lato_hairline;
	font-size: 25px;
	position: relative;
	margin-bottom: 50px;
	margin-top: 50px;
}

#title img{
	position: relative;
}

#tleft{
	position: absolute;
	left: 0;
	background: url(../images/tleft.png) no-repeat right top;
	height: 78px;
	width: 40%;
	top:-30px;
}

#tright{
	position: absolute;
	right: 0;
	top: -37px;
	background: url(../images/tright.png) no-repeat left top;
	height: 80px;
	width: 40%;
}

@media screen and (max-width: 500px) {
	#tleft, #tright{
		display: none;
	}
}

p{
	padding-bottom: 15px !important;
}

/* ABOUT PAGE */

#about{
	font-family: avenir,sans-serif;
	color: #434343;
	line-height: 30px;
	text-align: justify;
	position: relative;
	width: 80%;
	max-width: 700px;
	padding:20px;
	margin: auto;
}

.link{
	color: black;
	font-weight: 500;
	text-decoration: none;
}

#backbutton{
	font-family: lato_hairline;
	position: absolute;
	bottom: -60px;
	left: 0;
	font-size: 30px;
	padding:  30px 0px 10px 0px;
	bottom: -90px;
	height: 65px;

}


#backbutton a{
	color: black;
	text-decoration: none;
}

#backbutton a:hover{
	color: gray;
}

#box{
	height: 20px;
	width: 20px;
	position: absolute;
	border-color:#8a8a8a;
}

.bleft{
	border-left: 1px solid;
	left: 0;
}

.bright{
	border-right: 1px solid;
	right: 0;
}

.bbottom{
	border-bottom: 1px solid;
	bottom: 10px;
}

.btop{
	border-top: 1px solid;
	top: 10px;
}

/* PORTFOLIO PAGE */

#portfolio{
	font-family: avenir,sans-serif;
	color: #434343;
	line-height: 35px;
	text-align: left;
	position: relative;
	width: 80%;
	max-width: 890px;
	padding:30px 2px 10px 12px;
	margin: auto;
	min-width: 230px;
}

#title.portfolio{
	margin-bottom:-3%;
	margin-top: 8%;
}


/*- FILTER -*/
#filtercontainer{
	margin: auto;
	position: relative;
	right: 7px;
	min-width: 230px;
	max-width: 890px;
	clear: both;
	padding-bottom: 25px;
}

ul#filter {
	margin: auto;
	margin-top: 15%;
	
}

ul#filter li {
 	float: left;
 	margin-right: 20px;
}

ul#filter li a {
	color: black;
	text-decoration: none;
	font-family: lato_light;
}

ul#filter li a:hover {
	color: grey;
}

ul#filterOptions li a:hover {

}
ul#filterOptions li.active a {

}
/*- -*/
/*- ITEMS -*/
ul#items {
	clear: both;
  overflow: auto;
  position: relative;
}



ul#items li.item {
  width: 200px;
  height: 133px;
  float: left;
  text-align: center;
  overflow: hidden;
  position: relative;
  margin: 0px 10px 20px 10px;
}

ul#items li.item img{
  width: 100%;
}

ul#items li.item h3 {
	position: absolute;
	font-size: 16px;
	font-weight: 100;
	color: #eaeaea;
	bottom: 0px;
	width: 100%;
	
	/* IE9 SVG, needs conditional override of 'filter' to 'none' */
	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
	background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1))); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* IE10+ */
	background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-8 */
}

ul#items li.item a {
 	text-decoration: none;
 	color: inherit;
}



@media screen and (min-width: 300px) {
	#portfolio {
		width: 230px;
	}
	#filtercontainer {
		width: 230px;
	}
}


@media screen and (min-width: 500px) {
	#portfolio {
		width: 450px;
	}
	#filtercontainer {
		width: 450px;
	}
}

@media screen and (min-width: 720px) {
  #portfolio {width: 670px;}
  #filtercontainer {width: 670px;}
}

@media screen and (min-width: 1010px) {
  #portfolio {width: 960px;}
  #filtercontainer {width: 960px;}
}



/* CONTACT PAGE */

#contact{
	font-family: avenir,sans-serif;
	color: #434343;
	line-height: 30px;
	text-align: left;
	position: relative;
	width: 80%;
	max-width: 700px;
	padding:20px;
	margin: auto; 
}

input, textarea{
	border: 1px solid #8a8a8a;
	background: none;
	font-size: 16px;
	padding: 1%;
	width: 98%;
	font-family: lato_light;
	margin-bottom: 5px;
}

input:hover, input:focus, textarea:hover, textarea:focus{
	background-color: rgba(255, 255, 255, 0.5);
}

@media screen and (min-width: 420px) {
  	#cname, #cemail{
		width: 100%;
		float: none;
	}
	#cname{
	margin-right: 3%;
	}
}

@media screen and (min-width: 500px) {
  	#cname, #cemail{
		width: 48%;
		float: left;
	}
}

.submitbutton{
	width: auto;
	margin: 10px 0px 10px 0px;
}

.submitbutton:active{
	background: white;
}

label{
	font-family: lato_light;
}

.errorm, .successm {
margin:-15px 0px 32px 0px;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
padding:1px;
position:relative;
}

.errorm p, .successm p {
display:block;
margin:0;
padding:8px 20px 7px 10px;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
}

.errorm {
background-color:#d29191;
background-image:-webkit-gradient(linear, left top, left bottom, from(#d29191), to(#bb5e5e));
background-image:-webkit-linear-gradient(top, #d29191, #bb5e5e);
background-image:-moz-linear-gradient(top, #d29191, #bb5e5e);
background-image:-ms-linear-gradient(top, #d29191, #bb5e5e);
background-image:-o-linear-gradient(top, #d29191, #bb5e5e);
background-image:linear-gradient(top, #d29191, #bb5e5e);
filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#d29191', EndColorStr='#bb5e5e');
-webkit-box-shadow:0px 0px 6px rgba(244,187,187,0.7);
-moz-box-shadow:0px 0px 6px rgba(244,187,187,0.7);
box-shadow:0px 0px 6px rgba(244,187,187,0.7);
}

.errorm p {
display:block;
margin:0;
background-color:#f4baba;
background-image:-webkit-gradient(linear, left top, left bottom, from(#f4baba), to(#db7f7f));
background-image:-webkit-linear-gradient(top, #f4baba, #db7f7f);
background-image:-moz-linear-gradient(top, #f4baba, #db7f7f);
background-image:-ms-linear-gradient(top, #f4baba, #db7f7f);
background-image:-o-linear-gradient(top, #f4baba, #db7f7f);
background-image:linear-gradient(top, #f4baba, #db7f7f);
filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#f4baba', EndColorStr='#db7f7f');
-webkit-box-shadow:inset 0px 1px 0px #f7d0d0;
-moz-box-shadow:inset 0px 1px 0px #f7d0d0;
box-shadow:inset 0px 1px 0px #f7d0d0;
color:#745050;
text-shadow:1px 1px 0px #eaadad;
}

.errorm p:after {
content:'\2718';
position:absolute;
top:10pxpx;
right:10px;
font-size:16px;
}

.successm {
background-color:#c6cdaa;
background-image:-webkit-gradient(linear, left top, left bottom, from(#c6cdaa), to(#a8ae8e));
background-image:-webkit-linear-gradient(top, #c6cdaa, #a8ae8e);
background-image:-moz-linear-gradient(top, #c6cdaa, #a8ae8e);
background-image:-ms-linear-gradient(top, #c6cdaa, #a8ae8e);
background-image:-o-linear-gradient(top, #c6cdaa, #a8ae8e);
background-image:linear-gradient(top, #c6cdaa, #a8ae8e);
filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#c6cdaa', EndColorStr='#a8ae8e');
-webkit-box-shadow:0px 0px 6px rgba(223,230,198,0.7);
-moz-box-shadow:0px 0px 6px rgba(223,230,198,0.7);
box-shadow:0px 0px 6px rgba(223,230,198,0.7);
}

.successm p {
background-color:#e2e8c9;
background-image:-webkit-gradient(linear, left top, left bottom, from(#e2e8c9), to(#c1c8a7));
background-image:-webkit-linear-gradient(top, #e2e8c9, #c1c8a7);
background-image:-moz-linear-gradient(top, #e2e8c9, #c1c8a7);
background-image:-ms-linear-gradient(top, #e2e8c9, #c1c8a7);
background-image:-o-linear-gradient(top, #e2e8c9, #c1c8a7);
background-image:linear-gradient(top, #e2e8c9, #c1c8a7);
filter:progid:DXImageTransform.Microsoft.gradient(startColorStr='#e2e8c9', EndColorStr='#c1c8a7');
-webkit-box-shadow:inset 0px 1px 0px #ebf0da;
-moz-box-shadow:inset 0px 1px 0px #ebf0da;
box-shadow:inset 0px 1px 0px #ebf0da;
color:#676b5b;
text-shadow:1px 1px 0px #d6dcc3;
}

.successm p:after {
content:'\2714';
position:absolute;
top:10pxpx;
right:10px;
font-size:16px;
}