html, body {
	margin: 0;
	padding: 0;
	background: #ffedcb;
}

#wrapper {
	width: 80%;
	padding: 0;
	margin: 0 auto;
	background: #285671 url(../images/bg_wrp.png) repeat center; 
}

h1, h2 {
	text-align: center;
	margin: 0; 
}

h1 {
	font-family: 'PT Serif', serif;
	text-align: center;
	padding-top: 30px;
	color: #ffedcb;
}

h2 {
	font-family: 'Source Sans Pro', sans-serif;
	font-weight: 100;
	padding-bottom: 30px;
	color: #fff;
	font-size: 1.1em;
}

.bordertop img {
	display: block;
	margin-left: auto;
    margin-right: auto;
	padding-bottom: 15px;
}

.borderbt img{
	margin-top: 15px;
	display: block;
	margin-left: auto;
    margin-right: auto;
}

nav {
	margin-left: -30px;
	text-align: center;
}

nav ul {
	margin: 0 auto;
}

nav ul li {
	list-style: none;
	display: inline;
	font-size: .9em;
	padding: 0 20px 0 20px;
}

nav a {
	font-family: 'Lato', sans-serif;
	text-decoration: none;
	color: #fff;
	display: inline-block;
	text-transform: uppercase;
	padding: 10px;
}

nav a:hover {
	color: #e3453b;
	padding: 5px 10px;
}

.selected {
	color: #e3453b;
}

.content{
	display: block;
	padding: 60px 30px;
}
.main_img {
	width: 100%;
	text-align: center;
}
.main_img img {
	 width: 55%;
    height: auto;
}

/* About Me */

.portrate img {
	float: left;
	margin-right:30px;
	border-radius: 2px;
	box-shadow: 5px -5px  #1C3C4F;
}

.portrate2 img {
	float: right;
	margin-left:30px;
	border-radius: 2px;
	width: 300px;
	height: 400px;
	box-shadow: 5px -5px  #1C3C4F;
}

.text1 h2 {
	text-align: left;
	padding-bottom: 5px;
	color: #e3453b;
	font-size: 1.5em;
}

.text1 {
	color: #c1c1c1;
	font-family: 'Old Standard TT', serif;
	font-weight: normal;
	font-size: 1.2em;
	
}

.text1 a {
	color: #fff;
	text-decoration: none;
}

.text1 a:hover {
	color: #e3453b;
}

/* Gallery */

.g_img {
	padding: 0 40px 0 35px;
}

.gallery {
	padding:5px;
	background: rgba(255,255,255, .8);
	border: 1px solid #e3453b;
	border-radius: 5px;
	-webkit-border-radius:5px;
	-moz-border-radius:5px;
	margin-right: 55px;
	margin-bottom: 30px;
}

img.gallery {
	width: 200px;
	height: 260px;
	
}

.img-wrapper {
	position: relative;
	display: inline-block;	
}

.title {
	background:rgba(40, 86, 113, .8);
	height: 40px;
	width: 150px;
	position: absolute;
	left: -10px;
	bottom: 50px;
	box-shadow: -2px 2px  5px #1C3C4F;
	padding-bottom: 20px;
	padding-left: 25px;

}

.title p {
	font-size: .8em;
	color:#e6e6e6;
	font-family: "Lucida Sans Unicode", sans-serif;
	font-weight: 300;
	text-align: left;

}

.mask {
	background: #000;
	opacity: 0;
	position: absolute;
	width: 80%;
	height: 88.9%;
	top: 0;
	left: 0;
	border-radius: 5px;
	-webkit-border-radius:5px;
	-moz-border-radius:5px;
	-webkit-transition: opacity 0.5s ease-in 0s;
	-moz-transition: opacity 0.5s ease-in 0s;
	-o-transition: opacity 0.5s ease-in 0s;
	transition: opacity 0.5s ease-in 0s;
}

.img-wrapper:hover .mask {
	opacity: .3;
}

footer {
	clear: both;
	background: #e3453b;
	margin: 0;
	
}

footer a {
	text-decoration: none;
	 color: #285671;
}

.copyright {
	color: #c1c1c1;
	text-align: center;
	padding: 20px;
}

/* Landscape phones and down */
@media (max-width: 480px) {
  #wrapper {
  	width: 100%;
	min-width: 0;
	margin: 0;
  }

  .bordertop, .borderbt {
  	display: none;
  }

  nav {
  	border-top: 1px solid #ffedcb;
  	border-bottom: 1px solid #ffedcb;
  }

  nav ul li {
  	padding: 0;
  	margin: 0;
  }

  .container, .content {
  	padding: 10px;
  }
  .portrate img {
  	float: none;
  	width:70%;
  	height: auto;
  }

  .copyright {
	color: #c1c1c1;
	text-align: center;	
	}


}

/* Landscape phone to portrait tablet */
@media (max-width: 767px) { 
	.bordertop, .borderbt {
  	display: none;
  }

	nav {
  	border-top: 1px solid #ffedcb;
  	border-bottom: 1px solid #ffedcb;
  }

  .portrate img {
  	float: none;
  	width: 90%;
  	display:block;
  	margin-left:auto;
  	margin-right:auto;
  }

  img.gallery {
	width: 140px;
	height: 190px;
	
	}

	.container, .content {
  	padding: 10px 0;
  }

  .g_img {
  	padding-right: 10px; 
  }

}

/* Portrait tablet to landscape and desktop */
@media (min-width: 768px) and (max-width: 979px) { 
	.bordertop, .borderbt {
  	display: none;
  }

	nav {
  	border-top: 1px solid #ffedcb;
  	border-bottom: 1px solid #ffedcb;
  }

  .portrate img {
  	float: none;
  	width: 90%;
  	display:block;
  	margin-left:auto;
  	margin-right:auto;
  }
  

  .container, .content {
  	padding: 10px;
  }

  .g_img {
  	padding-right: 10px;
  }
 
}

/* Large desktop */
@media (min-width: 1224px) { 

  .portrate img {
  	width:55%;
  	height: auto;

  }

  .g_img {
  	text-align: center;
  }
  .img-wrapper {
  	margin-right: 30px;
  	margin-left: 25px;
  }

 


}