body { 
	margin: 0;
	background: linear-gradient(#341e24, #000);
}
h1, h2, h3 { font-family: 'Nunito', sans-serif; }

nav::after, #body-container::after {
	/*clear*/
	content: "";
	display: block;
	clear: both;
}

/*------------ NAVIGATION ------------*/

#master-container {
	position: relative;
	width: 100%;
	margin: 0;
	height: auto;
}

#body-bg-top {
	position: absolute;
	top: 0;
	width: 100%;
	min-width: 1040px;
	height: 800px;
	background-image: url(resource/bg-image.png);
	background-position: center top;
	background-repeat: no-repeat;
}

#content-container {
	position: relative;
	width: 1040px;
	height: auto;
	margin: 0 auto;
}

#logo {
	width: 320px;
	height: 240px;
	position: relative;
	margin: 0 auto;
	display: block;
	z-index: 2;
	overflow: visible;
}

#logo img {
	width: 320px;
	height: 320px;
}

#navigation {
	position: relative;
	width: 1040px;
	height: 160px;
	margin: 0 auto;
	background-image: url(resource/navigation.png);
	background-position: center;
	background-repeat: no-repeat;
	z-index: 3;
}

nav {
	padding: 0;
	margin: 0;
}

nav a {
	text-transform: uppercase;
	display: inline-block;
	width: 220px;
	height: 120px;
	padding: 30px 0;
	font-family: 'Loved by the King', sans-serif;
	font-size: 35px;
	font-weight: 300;
	text-align: center;
	text-decoration: none;
	color: #fff;
	float: left;
	vertical-align: middle;
	box-sizing: border-box;
	transition: background-color .5s;
}

nav a:hover {
	background-color: #9b2e34;
}

nav .mobile-nav {
	display: none;
}

nav img {
	width: 160px;
	height: 80px;
	float: left;
}

#body-container {
	position: relative;
	width: 960px;
	height: auto;
	margin: 0 auto;
	background-color: #dbdbdb;
	top: -40px;
	z-index: 1;
}

/*------------ BODY ------------*/

#page-header {
	position: relative;
	width: 960px;
	height: auto;
	background: linear-gradient(#05db93, #04d8c3);
	z-index: 3;
}

#page-header h1 {
	height: auto;
	margin: 0;
	font-weight: 700;
	font-size: 80px;
	text-shadow: 1px 1px 2px #000;
	color: #fff;
	padding: 28px;
	box-sizing: border-box;
}

#page-body {
	background-color: #fff;
	position: relative;
	width: 720px;
	height: auto;
	padding: 80px;
	float: left;
	box-sizing: border-box;
}

#page-body p {
	font-family: 'Nunito', sans-serif;
	font-weight: 300;
	font-size: 16px;
	line-height: 1.5;
}

#page-body p:nth-of-type(1) { margin-top: 0; }
#page-body p:last-of-type { margin-bottom: 0; }

#page-thumbnail {
	position: relative;
	float: left;
	width: 160px;
	height: 160px;
	margin-left: -40px;
	margin-top: -40px;
	padding: 0 20px 20px 0;
}

.quote {
	float: right;
	width: 240px;
	margin-right: -40px;
	padding: 20px;
	border-right: 1px solid #000;
}

.quote p {
	font-style: italic;
	font-size: 24px !important;
	text-align: right;
}

#page-sidebar {
	background-color: #dbdbdb;
	position: relative;
	width: 240px;
	height: auto;
	padding: 40px;
	float: left;
	box-sizing: border-box;
}

.advertisement {
	position: relative;
	width: 160px;
	height: 160px;
	background-color: #868686;
	margin-bottom: 40px;
}

.advertisement a {
	display: inline-block;
	width: 100%;
	height: 100%;
}

/*------------ FOOTER ------------*/

#footer {
	position: relative;
	width: 1040px;
	height: 200px;
	margin: 0 auto;
	background-image: url(resource/footer.png);
	background-position: center;
	background-repeat: no-repeat;
	z-index: 4;
	top: -120px;
}

footer {
	position: relative;
	width: 960px;
	height: 120px;
	top: 80px;
	margin: 0 auto;
	box-sizing: border-box;
}

footer a {
	display: inline-block;
	float: left;
	margin: 40px 0 40px 40px;
}

footer a img {
	width: 40px;
	height: 40px;
}

#copyright {
	font-family: 'Loved by the King', sans-serif;
	font-weight: 300;
	font-size: 25px;
	color: #fff;
	float: right;
	padding: 40px 40px 40px 0;
	height: 120px;
	box-sizing: border-box;
}

#body-bg-bottom {
	position: absolute;
	bottom: 0;
	width: 100%;
	min-width: 1040px;
	height: 400px;
	background: linear-gradient(rgba(0,0,0,0), #1d192c);
}

@media ( max-width: 1040px ) {
	#body-bg-top {
		min-width: 640px;
		height: 640px;
		background-image: url(resource/bg-image-mobile.png);
	}

	#content-container {
		width: 640px;
	}

	#logo {
		height: 240px;
		z-index: 7;
	}

	#navigation {
		width: 640px;
		height: 160px;
		background-image: url(resource/navigation-mobile.png);
		z-index: 6;
	}

	nav {
		padding: 0;
		margin: 0;
	}

	nav a {
		width: 160px;
		font-size: 35px;
		float: right;
		display: none;
	}
	
	nav .mobile-nav {
		display: inline-block;
	}

	nav img {
		display: none;
	}

	#body-container {
		width: 560px;
		background-color: #dbdbdb;
		top: -40px;
		z-index: 4;
	}

	#page-header {
		width: 560px;
		z-index: 3;
	}

	#page-header h1 {
		font-size: 60px;
		padding: 28px;
	}

	#page-body {
		width: 560px;
		padding: 40px;
		float: none;
	}

	#page-body p {
		font-size: 16px;
		line-height: 1.5;
	}

	#page-thumbnail {
		margin-left: 0;
		margin-top: 0;
		padding: 0 20px 20px 0;
	}

	.quote {
		margin-right: 0;
	}

	#page-sidebar {
		background-color: #dbdbdb;
		position: relative;
		width: 560px;
		height: auto;
		padding: 40px;
		box-sizing: border-box;
	}

	.advertisement {
		display: inline-block;
		float: left;
		margin: 0 40px 0 40px;
	}

	#footer {
		width: 640px;
		background-image: url(resource/footer-mobile.png);
		z-index: 5;
	}

	footer {
		width: 560px;
	}

	#body-bg-bottom {
		min-width: 640px;
	}
}

@media ( max-width: 640px ) {
	
}