/* 

	# Contents
	+ HTML Reset
	+ Float Clearfix
	+ General Rules
	+ Header
	+ Navigation
	+ Sidebar
	+ Main Content
	+ Footer
	+ Media Queries

*/

/* +HTML 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 {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* Clearfix */
.cf:before,
.cf:after {
	content: " "; /* 1 */
	display: table; /* 2 */
}
.cf:after {
	clear: both;
}
/**
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.cf {
	*zoom: 1;
}

/* +General Rules */
* {
	box-sizing: border-box;
}
html {
	background-color: #e0e0e0;
	font-size: 16px;
}
body {
	color: #424242;
	font-family: sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	background-color: #fff;
	box-shadow: 0 5px 7px rgba(0,0,0,0.15);
}
h1 {
	font-size: 36px;
	font-size: 2.25rem;
}
h2 {
	font-size: 30px;
	font-size: 1.875rem;
}
h3 {
	font-size: 24px;
	font-size: 1.5rem;
}
h4 {
	font-size: 18px;
	font-size: 1.125rem;
}
h5 {
	font-size: 14px;
	font-size: 0.875rem;
}
h6 {
	font-size: 12px;
	font-size: 0.75rem;
}
h1, 
h2, 
h3, 
h4, 
h5, 
h6 {
	font-weight: bold;
	line-height: 1.5;
}
p {
	font-size: 1rem;
	line-height: 1.5;
}
strong {
	font-weight: bold;
}
em {
	font-style: italic;
}
mark {
	background-color: #8BC34A;
	padding: 0 .25rem;
}
p, 
ul, 
ol, 
dl {
	margin-bottom: 1rem;
}
ul {
	list-style-type: circle;
}
ol {
	list-style-type: decimal;
}
li, 
dt, 
dd {
	margin-left: 2rem;
	margin-bottom: .25rem;
}
dt {
	font-weight: bold;
}
li li {
	list-style-type: disc;
}
a {
	color: #3A5598;
	text-decoration: underline;
}
code,
pre {
	margin-bottom: 1rem;
	padding: 1rem;
	border-left: 10px solid #8BC34A;
	background-color: #EAFFD1;
	color: #434343;
	font-size: 80%;
	font-family: monospace;
	overflow-x: auto;
}
.code {
	font-family: monospace;
	background-color: #EAFFD1;
	color: #434343;
	font-size: 80%;
	padding: 3px;
}
table {
	width: 100%;
}
table th,
table td {
	padding: 8px;
	border: 1px solid #a0a0a0;
	text-align: center;
}
table th {
	font-weight: bold;
}
.button {
	display: inline-block;
	margin: 1rem 0;
	padding: 12px 16px;
	border: 0 solid;
	border-radius: 4px;
	background-color: #8BC34A;
	color: #fff;
	font-size: 1rem;
	font-weight: bold;
	text-decoration: none;
	text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
	cursor: pointer;
}

/* +Header */
header {
	width: 100%;
	text-align: center;
	background: #8bc34a url('../img/lines2.png') no-repeat 50% -40px;
	padding: 60px 0 20px;
}
header h1 {
	color: #fff;
	font-size: 2.5rem;
	font-weight: 900;
	letter-spacing: -1px;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.25);
}

/* +Navigation */
nav li {
	margin-left: 0;
}
.nav-main {
	margin: 0 auto;
}
.nav-main ul {
	display: inline-block;
	list-style-type: none;
}
.nav-main ul li {
	float: left;
}
.nav-main ul li a {
	display: block;
	margin: 4px;
	padding: 8px 12px;
	border-radius: 4px;
	box-shadow: 0 10px 8px -10px rgba(0,0,0,0.2);
	background-color: #fff;
	color: #3A5598;
	font-size: 0.75rem;
	font-weight: bold;
	text-decoration: none;
}
.nav-main ul li a:hover {
	background-color: #3A5598;
	color: #fff;
}
.nav-sidebar {
	margin-bottom: 40px;
}
.nav-sidebar ul {
	list-style-type: none;
}
.nav-sidebar ul li a {
	display: block;
	margin: 5px 0;
	padding: 6px 12px;
	border-radius: 4px;
	color: #8BC34A;
	font-size: 0.925em;
	line-height: 1.5;
	font-weight: bold;
	text-transform: uppercase;
	text-decoration: none;
}
.nav-sidebar ul li a:hover {
	background-color: #3A9882;
	color: #fff;
}
.nav-sidebar ul li a:hover:after {
	content: " \203a";
	font-weight: bold;
}
.category-sub-menu li {
	margin: 0;
	border-bottom: 1px solid #e0e0e0;
	list-style-type: none;
}
.category-sub-menu li a {
	display: block;
	padding: 6px 0;
	text-decoration: none;
	font-size: 80%;
	font-weight: bold;
}

/* +Sidebar */
aside {
height: 100%
}
aside h3 {
	padding: 6px 12px;
	font-size: 0.925em;
	line-height: 1.5;
	text-transform: uppercase;
}
aside .search	{
	margin: 30px 0;
}
aside .search form {
	padding: 0 12px;
}
aside .search input {
	padding: 10px;
	border: 1px solid #d0d0d0;
	border-radius: 2px;
	background-color: #f0f0f0;
}
aside .search input[type="submit"] {
	background: url("../img/search-icon.png") no-repeat 50% 50%;
	text-indent: -9999px;
	width: 40px;
}
aside .search input[type="submit"]:hover {
	border-color: #3A5598;
}

aside .news, 
aside .news p {
	color: #3A5598;
	font-size: 0.75rem;
}
aside .news ul li {
	margin: 0;
	list-style-type: none;
}
aside .news article {
	margin: 1rem;
	padding: 1rem;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
}
aside .news article:hover {
	border-color: #3a5598;
}
aside .news article p a, 
aside .news article span.date {
	font-weight: bold;
}
aside .counter {
	padding: 30px;
}
aside .counter span {
	display: block;
}
aside .counter .counter-title {
	font-size: 80%;
	text-transform: uppercase;
}
aside .counter .counter-number {
	font-weight: bold;
}

/* +Main Content */
main {
	padding: 30px;
}
article {
	padding: 20px 0 30px;
}
article h1 {
	color: #3A5598;
	font-weight: 900;
}
img.left {
	float: left;
	padding: 4px;
	margin-right: 6px;
}
img.right {
	float: right;
	padding: 3px;
	margin-right: 6px;
}
video {
	margin: 0 auto;
	display: block;

	max-width: 100%;
	height: auto;

	min-width: 320px;
	min-height: 240px;

	width: 100%;
}
.guestbook li {
	margin-left: 0;
	margin-bottom: 0.5rem;
	padding: 1rem;
	border: 1px solid #d0d0d0;
    border-radius: 4px;
	list-style-type: none;
	background-color: #f0f0f0;
}
.guestbook .meta {
	display: block;
	margin-bottom: 1rem;
	font-size: 80%;
	font-weight: bold;
}
.message {
	margin-left: 1rem;
	padding: 0.5rem 1rem;
	border-left: 3px solid #3A5598;
}
.guestbook .answer {
	margin-left: 3rem;
	padding: 1rem;
	border-left: 3px solid #8BC34A;
	background-color: #e6e6e6;
	font-size: 90%;
}

.faq li {
	margin-left: 0;
	margin-bottom: 0.5rem;
	padding: 1rem 2rem;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	list-style-type: none;
	background-color: #f0f0f0;
}
.faq .title {
	font-size: 80%;
	font-weight: bold;
}
.faq .question {
}
.faq .answer {
	margin-left: 1rem;
	padding: 0.5rem 1rem;
	border-left: 3px solid #3A5598;
}

/* +Forms */
form.guestbook label, 
form.guestbook input[type="text"], 
form.guestbook input[type="email"], 
form.guestbook input[type="url"], 
form.guestbook textarea {
	display: block;
}
form.guestbook label {
	margin: 1rem 0 0;
	font-size: 80%;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
}
form.guestbook span.error {
	text-transform: none;
}
form.guestbook input[type="text"], 
form.guestbook input[type="email"], 
form.guestbook input[type="url"],  
form.guestbook textarea {
	width: 300px;
	padding: 8px;
	border: 1px solid #d0d0d0;
	background-color: #f6f6f6;
}
form.guestbook textarea {
	width: initial;
}
form p {
	margin: 2rem 0;
	font-size: 80%;
}
form.guestbook input[type="submit"] {
	margin: 1rem 0;
	padding: 12px 16px;
	border: 0 solid;
	border-radius: 4px;
	background-color: #8BC34A;
	color: #fff;
	font-size: 1rem;
	font-weight: bold;
	text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
	cursor: pointer;
}
form.search input[type="text"] {
	width: 300px;
	padding: 8px;
	border: 1px solid #d0d0d0;
	background-color: #f6f6f6;
}
form.search input[type="submit"] {
	margin: 1rem 0;
	padding: 12px 16px;
	border: 0 solid;
	border-radius: 4px;
	background-color: #8BC34A;
	color: #fff;
	font-size: 1rem;
	font-weight: bold;
	text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
	cursor: pointer;
}
.search li {
	margin-bottom: 0.5rem;
}
form input[type="submit"]:hover,
form input[type="button"]:hover {
	background-color: #3A5598;
}

/* +Footer */
footer {
	padding: 40px;
	border-bottom: 5px solid #3A5598;
	color: #9a9a9a;
	font-size: 0.825rem;
	text-align: center;
}

/* +Media Queries */
@media (max-width: 640px) {
	main {
		padding: 0 30px 30px;
	}
	main img {
		max-width: 100%;
	}
	aside .counter {
		padding: 0 30px;
		text-align: center;
	}
}
@media (min-width: 641px) {
	body {
		margin: 30px 30px 60px;
	}
	header {
		padding: 20px 0;
		background: #8bc34a url('../img/lines3.png') no-repeat 0 50%;
		background-size: contain;
	}
	header h1 {
		font-size: 3.5rem;
	}
	.nav-main ul li a {
		font-size: 1rem;
	}
	.category-sub-menu li {
		float: left;
		margin-right: 5%;
		width: 45%;
		min-width: 45%;
	}
	.category-sub-menu li:nth-child(even){
    	margin-right: 0;
	}
	main {
		width: 70%;
		padding: 40px 10% 80px 40px;
		margin-left: 20%;
		font-size: 1rem;
	}
	aside {
		float: left;
		width: 30%;
		max-width: 320px;
		padding: 40px;
	}
	aside .search input[type="text"] {
		width: 160px;
	}
	aside .news article {
		margin: 0 0 1rem;
	}
	aside
}
@media (min-width: 641px) and (max-width: 768px) {
	main {
		padding-left: 0;
	}
	aside {
		width: 40%;
	}
}
.support-box {
	max-width: 400px;
	float: right;
	padding: .5em;
	margin-left: 1em;
	margin-bottom: 1em;
	border-width: 1px;
	border-style: solid;
	border-color: rgb( 58,85, 152 );
	border-radius: 2px;
	display: none;
}

.support-box img {
	vertical-align: middle;
}
