/* CSS clear based on http://meyerweb.com/eric/tools/css/reset/ */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address,
big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl,
dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed,  figure, figcaption, footer, header, hgroup,  menu, nav, output, ruby, section, summary, time,
mark, audio, video {
	padding: 0; margin: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers and specific declarations */

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: ''; content: none;
}

table {
	border-spacing: 0; border-collapse: collapse;
}


/* Main definitions */

html {
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body {
	padding: 0; margin: 0;
	position: relative;
	background: #8ae6e1;
}

body, td, p  {
	color: #434343;
	font-family: "Lato", Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 13px; line-height: 1.6em; font-weight: 400;
 }

b, strong {
	font-weight: bold;
}

i, em {
	font-style: italic;
}

a {
	color: #ca2600;
	text-decoration: none;
	transition: all .3s;
}

a:hover, a:active {
	color: #434343;
	text-decoration: none;
	transition: all .3s;
}

p {
	margin-bottom: 1em;
	text-align: justify;
}

hr {
	height: 1px; display: block; clear: both;
	padding: 0; margin: 15px 0;
	background: #333; border: none;
}

h2 {
	font-family: "Lato", Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 26px; line-height: 28px; font-weight: 700; text-align: center;
}

.cf:before, .cf:after {
	display: table;
	content: " ";
}

.cf:after {
	clear: both;
}

.clear {
	clear: both;
}

.wrapper {
	width: 1200px; position: relative;
	margin: 0 auto;
}


/* header */

.topbar-wrapper {
	min-height: 12px;
	position: relative;
	background: #f23f15 url('../images/bgd-topbar.jpg');
	border-top-width: 2px;
	border-top-style: solid;
	border-top-color: #282828;
}

.logo {
	display: block;
	position: absolute; left: 0; top: 0;
}

.header {
	width: 100%; height: auto; display: block;
	margin: 15px 0 12px 0;
}


/* headings */

.contents-wrapper {
	padding: 10px; margin-bottom: 10px;
	background: #fff; border-radius: 4px;
}

.heading {
	width: 100%;
	padding: 10px;
	border-radius: 4px;
	color: #282828;
	text-align: center;
	background-color: #282828;
}

.heading h2 {
	position: relative;
	padding-top: 8px;
	color: #fff;
}

.heading h2:before {
	width: 80%; height: 1px; display: block;
	position: absolute; left: 10%; top: 0; content: '';
	background: #d22718;
}

.separator {
	width: 100%;
	height: 8px;
	margin-bottom: 10px;
	border-radius: 2px;
	background-color: #d22718;
}

.intro {
	margin: 4px 0;
	font-size: 15px; line-height: 24px; text-align: justify;
}

.intro a {
	font-size: 1.12em;font-weight: bold; text-decoration: underline;
}


/* contents */

.contents-thumbs {
	margin-bottom: -0.8%;
}

.contents-thumbs img {
	width: 19.2%; display: block; float: left; position: relative;
	margin-right: 1%; margin-bottom: 1%;
	border-radius: 4px;
}

.contents-thumbs img:hover {
	border-color: #c7c7c7;
}

.contents-thumbs a:nth-child(5n) img {
	margin-right: 0;
}
.fourThumbs img{width: 24.25%; display: block; float: left; position: relative; margin-right: 1%; margin-bottom: 1%; border-radius: 4px;}
.fourThumbs img:hover{border-color: #c7c7c7;}
.fourThumbs a:nth-child(5n) img{margin-right:1%;}
.fourThumbs a:nth-child(4n) img {margin-right:0;}
/* banners */

.banner {
	margin: 20px 0;
}

.banner img {
	max-width: 100%; height: auto; display: block;
	margin: 0 auto;
}

.only-desktop {
	display: block !important;
}

.only-mobile {
	display: none !important;
}

.button {
	display: block;
	padding: 20px 10px;
	margin-top: 0.8%;
	border-radius: 4px;
	color: #fff;
	font-size: 32px;
	line-height: 36px;
	font-weight: bold;
	text-align: center;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
	background-color: #282828;
}

.button:hover,
.button:active {
	color: #fff;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
	background-color: #d22718;
}


/* footer */

.footer {
	padding: 20px 0;
	color: #fff;
	font-size: 13px;
	line-height: 1.6em;
	text-align: center;
	border-bottom-width: 5px;
	border-bottom-style: solid;
	border-bottom-color: #d22718;
	background-color: #282828;
}

.footer a {
	color: #fff;
}


/* responsive */

@media (min-width: 990px) and (max-width: 1219px) {
	.wrapper {
		width: 970px;
	}

	.logo {
		max-width: 320px;
	}
}

@media (min-width: 768px) and (max-width: 989px) {
	.wrapper {
		width: 750px;
	}

	.logo {
		max-width: 250px;
	}

	.only-desktop {
		display: none !important;
	}

	.only-mobile {
		display: block !important;
	}
}

@media (min-width: 480px) and (max-width: 767px) {
	.wrapper {
		width: 460px;
	}

	.header {
		display: none;
	}

	.logo {
		max-width: 320px; display: block; position: relative;
		margin: 10px auto;
	}

	.intro {
		font-size: 14px; line-height: 22px;
	}

	.contents-thumbs img, .fourThumbs img {
		width: 49%;
		margin-right: 2%; margin-bottom: 2%;
	}

	.contents-thumbs a:nth-child(5n) img {
		margin-right: 2%;
	}
	.fourThumbs a:nth-child(5n) img{margin-right:2%;}
	.contents-thumbs a:nth-child(2n) img, .fourThumbs a:nth-child(2n) img {
		margin-right: 0;
	}

	.only-desktop {
		display: none !important;
	}

	.only-mobile {
		display: block !important;
	}

	.button {
		font-size: 28px; line-height: 30px;
	}
}

@media (max-width: 479px) {
	.wrapper {
		width: 300px;
	}

	h2 {
		font-size: 18px; line-height: 22px;
	}

	.header {
		display: none;
	}

	.logo {
		max-width: 240px; display: block; position: relative;
		margin: 10px auto;
	}

	.intro {
		font-size: 13px; line-height: 20px;
	}

	.contents-thumbs img, .fourThumbs img {
		width: 49%;
		margin-right: 2%; margin-bottom: 2%;
	}

	.contents-thumbs a:nth-child(5n) img {
		margin-right: 2%;
	}

	.contents-thumbs a:nth-child(2n) img {
		margin-right: 0;
	}

	.only-desktop {
		display: none !important;
	}

	.only-mobile {
		display: block !important;
	}

	.button {
		font-size: 28px; line-height: 30px;
	}
}
