/* --------- Home page -------- */
*{
	box-sizing: border-box;
}
body{
	background-image: url("http://192.168.64.3/web202/webproject/images/IMG_8.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
	margin: 0px;
	font-family: Verdana;
	color: #3F6087;
	font-size: 12px;
}
.wrapper{
	margin: 0 auto;
	padding: 10px;
	width: 70%;
	background-color: #fff5ed;
	box-shadow: 0 0 10px rgba(12,3,15,0.8);
}
h1{
	height: 100px;
	padding: 20px 0 0 20px;
	margin: 0px;
	font-family: "Libre Baskerville";
	letter-spacing: 0.5px;
	text-align: center;
	font-size: 60px;
	color: #7D8CB4;
}
h2{
	font-size: 14px;
	margin: 0px;
	padding: 5px;
	color: #3F6087;
	letter-spacing: 0.5px;
}
h3{
	font-size: 16px;
	margin: 10px 0;
	padding: 0 0 0 20px;
	color: #3F6087;
	letter-spacing: 0.5px;
}
h4{
	margin: 20px 0 0 0;
}
h5{
	margin: 0;
	font-size: 12px;
}
p{
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: #3F6087;
}
p a{
	text-decoration: none;
	letter-spacing: 0.5px;
	font-weight: bold;
	font-size: 12px;
	color: #3F6087;
}
main{
	margin: 15px;
	padding: 16px;
}
aside{
	width: 30%;
	padding: 10px 4px 14px 10px;
	margin-left: 15px;
	float: left;
}
section{
	width: 65%;
	padding: 6px 4px 6px 8px;
	float: right;
}
.clear{
	clear: both;
}
nav ul ul{
	position: absolute;
	padding: 0;
	opacity: .9;
	z-index: 999;
}
nav ul li:hover ul, nav ul li ul li {
	display: block;
}
nav ul{
	list-style-type: none;
	background-color: #C5CCE0;
	padding: 0px;
}
nav ul li{
	display: inline-block;
	position: relative;
	padding: 30px 60px 15px 60px;
	vertical-align: top;
}
nav ul li ul{
	left: 0px;
	min-width: 100%;
	opacity: 0.9;
	display: none;
	position: absolute;
}
nav ul li a{
	text-decoration: none;
	font-weight: bold;
	color: #000;
	display: block;
}
nav ul li ul li a{
	text-align: center;
	padding: 8px;
	text-decoration: none;
}
nav ul li a:before{
	content: "";
	position: absolute;
	width: 100%;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: #f9fafc;
	visibility: hidden;
	-webkit-transform: scaleX(0);
	transform: scaleX(0);
	-webkit-transition: all 0.3s ease-in-out 0s;
	transform: all 0.3s ease-in-out;
}
nav ul li a:hover:before{
	visibility: visible;
	transform: scaleX(1);
}
nav ul li a:hover{
	color: #f9fafc;
	text-decoration: none;
	cursor: pointer;
}
footer{
	padding: 30px;
	text-align: center;
	color: #fff5ed;
}
.clear{
	clear: both;
}

/* --------- Image slider -------- */
.banner{
	width: 100%;
	height: 538px;
	position: relative;
}
#slider{
	width: 100%;
	position: absolute;
	overflow: hidden;
}
#next{
	text-align: center;
	line-height: 50px;
	color: #f9fafc;
	width: 50px;
	height: 50px;
	background-color: #061539;
	position: absolute;
	top: 205px;
	right: 0;
	z-index: 99;
	cursor: pointer;
	opacity: .4;
}
#pre{
	text-align: center;
	line-height: 50px;
	color: #f9fafc;
	width: 50px;
	height: 50px;
	background-color: #061539;
	position: absolute;
	top: 205px;
	left: 0;
	z-index: 99;
	cursor: pointer;
	opacity: .4;
}
.banner:hover #next{
	opacity:1;
	transition: all .5s ease-out;
	-webkit-transition: all .5s ease-out;
	-ms-transition: all .5s ease-out;
}
.banner:hover #pre{
	opacity:1;
	transition: all .5s ease-out;
	-webkit-transition: all .5s ease-out;
	-ms-transition: all .5s ease-out;
}

/* --------- Gallery page -------- */
.art{
	width: 20%;
	margin: 50px;
	display: inline-block;
	/*float: left;*/
	position: relative;
}
.art img{
	width: 100%;
	height: 100%;
	border-radius: 3px;
}
.art :not(img){
	width: 100%;
	color: #fff;
	text-align: center;
	position: absolute;
	opacity: 0;
	top: 30%;
	transition: .5s;
}
.art:hover img{
	filter: blur(2px) brightness(60%);
	cursor: pointer;
	box-shadow: 0 0 16px #ccc;
}
.art:hover :not(img){
	opacity: 1;
	transition: 0.2s;
}
#curtain{
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: fixed;
	background-color: rgba(0,0,0,0.4);
}
#light{
	max-width: 80%;
	max-height: 80%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	position: fixed;
	margin: auto;
}
/* --------- Contact page -------- */
input[type=submit]{
	width: 110px;
	padding: 13px;
	border: 0;
	cursor: pointer;
	background-color: #697e83;
	border-radius: 2px;
}
input[type=text], input[type=email]{
	padding: 10px;
	border-radius: 2px;
}
form{
	padding-top: 15px;
}
span{
	font-weight: bold;
}
#name, #email, #phone, #select, #textarea, #submit{
	margin: 10px;
}

/* --------- media query -------- */
@media only screen and (max-width: 1024px){
	body{
		margin: 0;
	}
	section, main, aside{
		width: 100%;
		float: none;
	}
	nav{
		width: auto;
		float: none;
	}
	nav li{
		display: inline-block;
		padding: 0.5em;
		width: 100%;
	}
	nav ul{
		text-align: center;
	}
	nav a{
		border-style: none;
	}
	.wrapper{
		width: auto;
		min-width: 0;
		margin: 0;
		padding: 0;
		box-shadow: none;
	}
	h1{
		font-size: 300%;
		text-align: center;
	}
	h2{
		font-size: 120%;
		text-align: center;
	}
	p{
		font-size: 90%;
	}
	img{
		display: none;
	}
	.picture{
		display: block;
		width: 100%;
	}
}