*{
	box-sizing: border-box;
}

body{
	width: 100%;
	display: flex;
	justify-content: center;
	background-image: url("../images/background.jpg");
	background-attachment: fixed;
	font-family: 'Lobster', cursive;
}

.container{
	width: 77%;
	height: 2340px;
	background-color: #f7f3f4;
	font-family: 'Lobster', cursive;
}

.home{
	height: 9.5%;
	justify-content: center;
	background-image: linear-gradient(rgba(180,142,147,1), rgb(247,243,244,1));
}

.home h2, .contacts h2{
	text-align: center;
	margin: 60px;
	font-size: 281%;
	color: #895d5f;
}

.fashion, .hairstyles, .vehicles{
	height: 27%;
	width: 100%;
	margin-bottom: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.contacts{
	height: 9.5%;
	justify-content: center;
	background-image: linear-gradient(rgba(247,243,244,1), rgb(180,142,147,1));
}

.contacts p{
	text-align: center;
	margin: 30px;
	font-size: 156%;
	color: #f9f6f7;
}

	/* HORIZONTAL MENU */

.nav{
	font-size: 156%;
	justify-content: center;
	padding: 15px;
}

.nav ul{
	list-style-type: none;
	text-align: center;
}

.nav li{
	display: inline-block;
	margin: 0 14px 0 14px;
}

.nav a:link{
	color: #f9f6f7;
	text-decoration: none;
}

.nav a:visited{
	color: #f9f6f7;
	text-decoration: none;
}

.nav a:hover{
	color: #895d5f;
	text-decoration: none;
}


	/* FLEXBOX MENU */
	
.img-box h4{
	background-color: rgba(137, 93, 95, 0.7);
	position: absolute;
	top: 80%;
	height: 60px;
	font-size: 50px;
	padding: 10px 15px 5px 100px;
	margin-left: 17%;
	border: 3px solid none;
	border-radius: 0 10px 10px 0;
	color: #f9f6f7;
	z-index: 0;
	opacity: 0;
}

.img-box:hover h4{
	z-index: 2;
	transition: 1s;
	opacity: 100%;
}

.img-cont{
	display: flex;
	justify-content: center;
	width: 66%;
	margin-left: 17%;
	overflow: hidden;
}

.img-cont img{
	height: 600px;
	width: 100%;
	z-index: 1;
}

.img-box{
	display: flex;
	align-items: center;
	overflow: hidden;
	position: relative;
}

.img-box:hover img{
	border-radius: 30px;
	transform: translateX(-120px);
	transition: 1s;
	transition-timing-function: linear;

}

.img-box ul{
	list-style-type: none;
	background: #d6c2c7;
	border: 3px solid #895d5f;
	border-radius: 0 10px 10px 0;
	margin-left: -114px;
	transform: translateX(-70px);
	transition: 1s;
	transition-timing-function: linear;
}

.img-box:hover ul{
	transform: translateX(-25px);
	transition-timing-function: linear;
}

.img-box a:link{
	color: #895d5f;
	text-decoration: none;
}

.img-box a:visited{
	color: #f7f3f4;
	text-decoration: none;
}

.img-box a:hover{
	color: #895d5f;
	text-decoration: none;
}

.img-box li{
	margin: 10px;
	margin-left: 30px;
	padding: 10px;
	text-align: left;
	font-size: 30px;
	border-bottom: 2px solid #895d5f;
	box-shadow: 0 2px 0 0 #f7f3f4;
	text-decoration: none;
}

.img-box li:last-child {
	border-bottom: none;
	box-shadow: none;
}
