/* ============================================================== */
html {
	overflow-y: scroll;
	background-image: url(images/paper-bg.jpg);
	background-repeat: repeat;
	background-attachment:fixed;
	background-position:center top;
}
body {
	color: #000000;
	font-family: Arial, Helvetica, sans-serif;
	margin: 0px;
	padding: 0px;
	background-image: url(images/top-gradient.png);
	background-repeat: repeat-x;
	background-position: center top;
}

/* layout */
#container, .row {
	width: 980px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}

/* Header */
#masthead {
	height: 105px;
	margin-bottom: 0px;
	padding-bottom: 4px;
	position: relative;
	z-index: 99;
	background-repeat: no-repeat;
	background-position: left bottom;
}
#masthead #logo {
	position: absolute;
	top: 25px;
	left: 25px;
}
#masthead #search {
	position: absolute;
	top: 116px;
	right: 10px;
	width: 198px;
	z-index: 15;
}
#masthead .button-search {
	position: absolute;
	left: 0px;
	background: url('images/button-search.png') center center no-repeat;
	width: 28px;
	height: 24px;
	border-right: 1px solid #CCCCCC;
	cursor: pointer;
}
#masthead #search input {
	background: #FFF;
	padding: 1px 1px 1px 33px;
	width: 162px;
	height: 21px;
	border: 1px solid #CCCCCC;
	-webkit-border-radius: 3px 3px 3px 3px;
	-moz-border-radius: 3px 3px 3px 3px;
	-khtml-border-radius: 3px 3px 3px 3px;
	border-radius: 3px 3px 3px 3px;
}
#masthead .links {
	position: absolute;
	bottom: 10px;
	right: 0px;
	font-size: 10px;
	padding-right: 10px;
}
#masthead .links a {
	float: left;
	display: block;
	padding: 0px 0px 0px 7px;
	color: #38B0E3;
	text-decoration: none;
	font-size: 12px;
}
#masthead .links a + a {
	margin-left: 8px;
	border-left: 1px solid #CCC;
}

/* footer */
#footer-area {
	clear: both;
	background: url('images/footer-bg.png');
	border-top: 1px solid #DBDEE1;
	background-size: 100%;
}
#bottom {
	background: url('images/power-bg.png');
	border-top: 1px solid #DBDEE1;
}
#footer {
	clear: both;
	overflow: auto;
	min-height: 100px;
	padding: 20px;
	background-position:center bottom;
	background-repeat:no-repeat;
}
#footer h3 {
	color: #000000;
	font-size: 14px;
	margin-top: 0px;
	margin-bottom: 8px;
}
#footer .column {
	float: left;
	width: 25%;
	min-height: 100px;
}
#footer .column ul {
	margin-top: 0px;
	margin-left: 8px;
	padding-left: 12px;
}
#footer .column ul li {
	margin-bottom: 3px;
	list-style: disc;
}
#footer .column a {
	text-decoration: none;
	color: #000;
}
#footer .column a:hover {
	text-decoration: underline;
}
#copyright {
	clear: both;
	font-family:Verdana, Geneva, sans-serif;
	font-size:11px;
	padding: 25px 0px;
	width: 600px;
	float:left;
}
#socials {
	width:200px;
	padding-left: 0;
	padding-right: 0;
	text-align: right;
	float:right;
	margin-top: 25px;
}
#socials a {
   z-index:1;
   display:  inline-block;
   background-position: top center;
   background-repeat: no-repeat;
   height: 25px;
   width: 25px;
   cursor: pointer;
   text-indent:-9999px;
   background-size:25px;
}
.rss { background-image: url('images/icon-rss.png'); }
.twitter { background-image: url('images/icon-twiter.png'); }
.facebook { background-image: url('images/icon-facebook.png'); }
.googleplus { background-image: url('images/icon-googleplus.png'); }
.linkin { background-image: url('images/icon-linkin.png'); }
#socials a:hover { background-position: bottom center; }


/* ============================================================== */

/* Minimum width of 980 pixels. */
@media screen and (min-width: 980px) {
	body {
		/*background-color: #e6e6e6;*/
	}
	body .site {
		padding: 0 40px;
		padding: 0 2.857142857rem;
		margin-top: 0;
		margin-bottom: 48px;
		margin-bottom: 3.428571429rem;
	}
	body.custom-background-empty {
		background-color: #fff;
	}
	body.custom-background-empty .site,
	body.custom-background-white .site {
		padding: 0;
		margin-top: 0;
		margin-bottom: 0;
		box-shadow: none;
	}

}

@media (min-width: 640px) and (max-width: 980px) {
	html, body {
		min-width: 980px;
	}
}
@media only screen and (min-width : 640px) {
	/* menu */
	#menu {
		background: #304b98;
		height: 40px;
		margin-bottom: 15px;
		-webkit-border-radius: 8px 8px 8px 8px;
		-moz-border-radius: 8px 8px 8px 8px;
		-khtml-border-radius: 8px 8px 8px 8px;
		border-radius: 8px 8px 8px 8px;
		padding: 0px;
		background: url('images/menu.png');
	}
	#menu ul {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	#menu > ul > li {
		position: relative;
		float: left;
		z-index: 20;
		padding: 0px;
		background: url('images/menu-break.png');
		background-repeat:no-repeat;
		background-position: top right;
	}
	#menu > ul > li:hover
	{}
	#menu > ul > li > a {
		font-size: 16px;
		font-weight:bold;
		color: #FFF;
		line-height: 40px;
		text-decoration: none;
		display: block;
		padding: 0px 15px;
		margin-bottom: 5px;
		z-index: 6;
		position: relative;
	}
	#menu > ul > li:hover > a {
		background: #000000 url('images/menu-break.png');
		background-repeat:no-repeat;
		background-position: top right;
	}
	#menu > ul > li:hover:first-child > a {
		-webkit-border-radius: 8px 0px 0px 0px;
		-moz-border-radius: 8px 0px 0px 0px;
		-khtml-border-radius: 8px 0px 0px 0px;
		border-radius: 8px 0px 0px 0px;	
	}
	#menu > ul > li > div {
		display: none;
		background: #18254c;
		position: absolute;
		z-index: 5;
		padding: 5px;
		border: 1px solid #000000;
		-webkit-border-radius: 0px 0px 5px 5px;
		-moz-border-radius: 0px 0px 5px 5px;
		-khtml-border-radius: 0px 0px 5px 5px;
		border-radius: 0px 0px 5px 5px;
		top: 40px;
	}
	#menu > ul > li:hover > div {
		display: table;
	}
	#menu > ul > li > div > ul {
		display: table-cell;
	}
	#menu > ul > li ul + ul {
		padding-left: 20px;
	}
	#menu > ul > li ul > li > a {
		text-decoration: none;
		padding: 4px;
		color: #FFFFFF;
		display: block;
		white-space: nowrap;
		min-width: 120px;
	}
	#menu > ul > li ul > li > a:hover {
		background: #000000;
	}
	#menu > ul > li > div > ul > li > a {
		color: #FFFFFF;
	}




.menu-toggle {
	display: none;
}
}

@media only screen and (max-width : 640px) {
	html, body { overflow-x: hidden; width: 100%; }
  
	#container, #content, .row  { width: 100%; overflow-x: hidden; }
	
	/* Common and Misc */
	.hide {
		display: none !important;
	}
	
	.show {
		display: block !important;
	}
	input[type=text], input[type=tel], input[type=password], input[type=email] {
		width: 92% !important;
		padding: 0 4% !important;
		height: 35px;
		font-size: 16px;
		background: none repeat scroll 0 0 #F8F8F8;
		border: 1px solid #CCCCCC;
		margin-left: 0;
		margin-right: 0;
		box-shadow: none;
		-webkit-box-shadow: none;
	}
		
	.left, .right {
		width: 100% !important;
		float: none !important;
	}
	
	textarea {
		width: 97% !important;
		padding: 1%;
		margin: 0;
	}
	
	.scroll {
		font-style: italic;
		display: block !important;
		margin: 0 0 5px 10px;
		font-weight: bold;
	}
	
  	/* Header */
  	#masthead {
    	width: 100%;
    	height: 70px;
		background-size: 140px;
  	}

  	#masthead div {
    	display: none;
  	}

  	#masthead #logo {
    	display: block;
    	margin: 0 auto;
    	position: relative;
    	top: 12px;
    	left: 20px;
  	}
	
	#masthead #logo img {
		width:300px;
  	}


/* Navigation Menu 
.main-navigation {
	margin-top: 24px;
	margin-top: 1.714285714rem;
	text-align: center;
}
.main-navigation li {
	margin-top: 24px;
	margin-top: 1.714285714rem;
	font-size: 12px;
	font-size: 0.857142857rem;
	line-height: 1.42857143;
}
.main-navigation a {
	color: #5e5e5e;
}
.main-navigation a:hover,
.main-navigation a:focus {
	color: #21759b;
}*/
	.main-navigation {
		display: none;
	}
	#menu-mobile ul.nav-menu.toggled-on {
		display: inline-block;
	}

  	#menu-mobile,
	.menu-toggle {
    	display: block !important;
  	}
  	#menu-mobile > div {
    	color: #fff;
    	font-size: 12px;
    	font-weight: bolder;
    	text-shadow: 0 -1px 0 #000;
    	padding: 0 10px;
    	overflow: auto;
		
		cursor: pointer;
		background: #304b98;
		height: 40px;
		background: url('images/menu.png');			
  	}
  	#menu-mobile > div > span {
    	float: left;
   		height: 30px;
		line-height: 40px;		
  	}
  	#menu-mobile > div > span.select {
    	float: right;
    	width: 30px;
  	}
  	/*#menu-mobile > div > span.opened {
    	background: url("images/select-icons.png") 0 -45px no-repeat;
  	}
  	#menu-mobile > div > span.closed {
    	background: url("images/select-icons.png") 0 10px no-repeat;
  	}*/
  	#menu-mobile span.closed {
    	background: url("images/select-icons.png") 0 10px no-repeat;
  	}
	#menu-mobile.toggled-on span.closed {
    	background: url("images/select-icons.png") 0 -41px no-repeat;
  	}
	
	#menu-mobile ul {
		display:none;
		
	}
	
  	#menu-mobile ul.toggled-on {
    	width: 96%;
    	left: 2%;
		 
		/*position: absolute;*/

    	list-style-type: none;
    	background: #fff;
    	margin: 0 0 0 2%;;
    	padding: 0;
    	border: 1px #ccc solid;
    	border-top: none;
    	border-bottom: none;
		z-index: 100;
  	}
  	#menu-mobile ul li {
    	display: block;
  	}
  	#menu-mobile ul li a {
    	line-height: 30px;
    	text-decoration: none;
    	display: block;
    	padding: 0 10px;
    	color: #222;
   		border-bottom: #ccc 1px solid;
		font-size: 13px;
  	}

	/* Links */
	#links-mobile {
		display: block !important;
		text-align: center;
		background: #304b98;
	}
	
	#links-mobile a {
		display: inline-block;
		padding: 0 2%;
		line-height: 40px;
		font-weight: bold;
		text-decoration: none;
		color: #fff;
		font-size: 12px;
	}

	/* Search*/ 
	#search_mobile {
		display: block !important;
		box-sizing: border-box;
		position: relative;
		width: 100%;
		height: 35px;
		margin-bottom: 15px;
		font-size: 12px;
	}
	#search_mobile .button-search-mobile {
		display: inline-block;
		background-color: #18254c;
		background-image: none;
		border-right: none;
		line-height: 35px;
		height: 35px;
		text-align: center;
		color: #fff;
		font-weight: bold;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-ms-box-sizing: border-box;
		-o-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		width: 30% !important;
		float: right;
	}
	#search_mobile input {
		padding: 0 0 0 5px !important;
		box-shadow: none;
		display: inline-block;
		width: 70% !important;
		box-sizing: border-box;
		-moz-box-sizing: border-box;
		-ms-box-sizing: border-box;
		-o-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		height: 35px;
		line-height: 35px;
		border: none;
		font-size: 13px;
		float: left;
	}
  
  	/* Main */

  	/* Left Blocks and Right Blocks are hidden */
  	#column-left, #column-right {
    	display: none;
  	}  

  	/* Add content properties to make things look nice! */
  	#content {
    	width: 90%;
   		margin: 0 auto !important;
		min-height: 0;
  	}
	
	/* Footer */
	#footer {
		padding: 0;
		margin-top: 10px;
		border: none;
		overflow: auto;
		min-height: auto;
		clear: none;
		background: none;
	}
	
	#footer .column {
		float: none;
		min-height: 0;
		width: 100%;
	}
	
	#footer .column h3 {
		font-size: 18px;
		text-shadow: -1px -1px 0 #666666;
		color: #ffffff;
		padding: 5px 12px;
		background: #304b98;
		margin: 0;
		background: -moz-linear-gradient(top,  #304b98 0%, #18254c 100%);
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#304b98), color-stop(100%,#18254c));
		background: -webkit-linear-gradient(top,  #304b98 0%,#18254c 100%);
		background: -o-linear-gradient(top,  #304b98 0%,#18254c 100%);
		background: -ms-linear-gradient(top,  #304b98 0%,#18254c 100%);
		background: linear-gradient(to bottom,  #304b98 0%,#18254c 100%);
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#304b98', endColorstr='#18254c',GradientType=0 );
	}
	
	#footer .column ul {
		margin: 0;
		padding: 10px 0 10px 18px;
		list-style-type: none;
		/*display: none;*/
		min-height: 0;
		background-position: center bottom;
		background-repeat: no-repeat;
	}
	#footer .column ul li {
		list-style: none;
	}
	#footer .column ul a {
		font-size: 16px;
		margin: 8px 0;
		display: block;
	}
	#powered {
		background: #DBE1E5;
		margin: 0;
		padding: 6px 8px;
		text-align: left;
		display: block !important;
	}
	#bottom .row {
		text-align:center;
		overflow: hidden;
	}
	#copyright {
		width: 100%;
	}
	#socials {
		width: auto;
		padding-left: 0;
		padding-right: 0;
		text-align: center;
		float: none;
	}
	#socials a {
		height:44px;
		width:44px;	
		background-size:44px;
	}
}