/*
Theme Name: Reduce the Risk
Description: Custom WordPress theme based baa website.
Author: Bettle and Associates
Author URI: http://www.bettle.co.nz
*/

@font-face {
  font-family: 'DIN';
  font-weight: bold;
  font-style: normal;
  text-rendering: optimizeLegibility;
  src: url('fonts/DIN-Bold.eot'); /* IE9 Compat Modes */
  src: url('fonts/DIN-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('fonts/DIN-Bold.woff') format('woff'), /* Modern Browsers */
  url('fonts/DIN-Bold.ttf') format('truetype'), /* Safari, Android, iOS */
  url('fonts/DIN-Bold.svg#DIN-Bold') format('svg'); /* Legacy iOS */
}
@font-face {
  font-family: 'DIN';
  font-weight: normal;
  font-style: normal;
  text-rendering: optimizeLegibility;
  src: url('fonts/DIN-Regular.eot'); /* IE9 Compat Modes */
  src: url('fonts/DIN-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('fonts/DIN-Regular.woff') format('woff'), /* Modern Browsers */
  url('fonts/DIN-Regular.ttf') format('truetype'), /* Safari, Android, iOS */
  url('fonts/DIN-Regular.svg#DIN-Regular') format('svg'); /* Legacy iOS */
}
@font-face {
  font-family: 'DIN';
  font-weight: 300;
  font-style: normal;
  text-rendering: optimizeLegibility;
  src: url('fonts/DIN-Light.eot'); /* IE9 Compat Modes */
  src: url('fonts/DIN-Light.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('fonts/DIN-Light.woff') format('woff'), /* Modern Browsers */
  url('fonts/DIN-Light.ttf') format('truetype'), /* Safari, Android, iOS */
  url('fonts/DIN-Light.svg#DIN-Light') format('svg'); /* Legacy iOS */
}

body {
	background-color:black;
	background-image: url('images/bg-body.jpg');
	background-repeat: no-repeat;
	background-attachment: fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size:cover;
	background-size: cover;
	background-position: center top;
	font-family: 'DIN', "Helvetica", "Arial", sans-serif;
	line-height: 1.4em;
	color: #383838;
	}
h1, h2, h3 { 
	font-weight: normal; 
	margin: 0 0 10px 0; 
	}
h1 a, h2 a, h3 a, h4 a, h5 a {
	text-decoration: none;
	}
h1 { 
}
h2 { 
	font-weight:bold;
}
h3 { 
	color:#000000;
	font-weight:bold;
	font-size: 14px;
	text-transform: uppercase;
}
h4 { 
	background-color: #94019d;
	padding: 10px 10px;
	width: 200px;
	color: #ffffff;
	font-weight: bold;
	margin: 0;
	font-size: 15px;
	}
p { 
	margin: 0 0 10px 0; 
	}
a { 
	color:#000000;
	text-decoration: none;
	}
a:hover { 
	} 
ul, ol { 
	margin: 0 0 20px 0; 
}
img {
	max-width: 100%;
	height: auto;
}
nav li {
	display: inline;
}
.uppercase {
	text-transform: uppercase;	
	font-weight: bold;
	margin: 0px;
}
#contentwsidebar .nav-previous a,
#contentwsidebar .nav-next a {
	text-decoration: none;
}
#headerwrap {
	background: url('images/bg-body.jpg') repeat;
	width:100%;
	position: fixed;
	top:0;
	z-index: 2;
}
header {
	padding:25px 0 0;
}
header.header-mini {
	padding:10px;	
}
header a {
	text-decoration: none;
}
header #navwrap {
	float:right;
	width:100%;
	text-align: center;
}
header nav {
	font-size: 1.1em;
}
header #mininav {
	font-size:0.9em;
}
header #mininav ul {
	margin-bottom: 0;
	padding-left: 0;
}
header #mininav li {
	margin-left:1.5em;
}
header #mininav a {
	color:#ffffff;
	font-size:14px;
	text-transform: uppercase;
	font-weight:bold;
}
header #mininav #search {
	padding:10px;
	display: block;
}
header #mininav a:hover {
	color:#ffec02;
}
header #mininav #searchform {
	display: inline-block;
	margin-left: 15px;
}
header #mininav #searchform input[type="text"] {
	background-image: url('images/search_btn-1.png');
	background-position: right center;
	background-repeat: no-repeat;
	height:30px;
	margin-right: 15px;
}
header #mininav #searchform input[type="submit"] {
	height:30px;
	background: #FFEC02;
	color: black;
	padding: 5px 8px 3px;
	font-size: 0.9em;
	text-transform: uppercase;
	border: none;
}
header nav.nav-primary {
	font-weight: bold;
}
header nav.nav-primary .caret {
	display: none;
}
header ul.nav > li > a:focus, 
header ul.nav > li > a:hover,
header nav.nav-primary .open > a,
header nav.nav-primary .open>a:focus, 
header nav.nav-primary .open>a:hover {
	background:none;
}
header nav.nav-primary li > a {
	padding:10px;
}
header ul#menu-main-nav {
  background: #ffec02; /* $yellow */
  text-align: center;
}
header ul#menu-main-nav li {
	overflow: hidden;
}
header ul#menu-main-nav > li > a {
  text-transform: uppercase;
  font-size: 0.8em;
}
header nav.nav-primary .dropdown-menu {
	background: #ffec02;	
	border-radius: 0;
	box-shadow: none;
	border:none;
	padding-top: 0;
	padding-bottom:0;
	position: relative;
}
header .navbar-toggle {
	margin-top:0;
	border-color: white;
	padding:7px;	
	margin-bottom: 0;
	float: none;
  top: 5px;
  position: static;
  margin-bottom: 10px;
  margin-right: 0;
}
header .navbar-toggle:hover {
	background: rgba(255,255,255,0.1);
}
header .navbar-toggle .icon-bar {
	background:white;
}
header nav.nav-primary {
	margin-top:0px;
}
header nav.nav-primary ul.dropdown-menu {
	width:100%;
	text-align: center;
}
header nav.nav-primary .dropdown-menu li {
	border-bottom:1px solid #CCB900;
}
header nav.nav-primary .dropdown-menu > li > a:focus,
header nav.nav-primary .dropdown-menu > li > a:hover {
	background: #94019e;
	color:white;
}
header nav.nav-primary .dropdown-menu > li > a {
	padding: 10px 20px;
    display: block;
    position: static;
}
header > .container {
	text-align: center;
}
header .nav-more {
	width: 0; 
	height: 0; 
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #f00;
}
header h1#logo {
	width:285px;
	height: 60px;
	float: none;
	margin: 0 auto 10px;
}
header h1#logo a {
	width:285px;
	height: 60px;
	overflow: hidden;
	text-indent: -999px;
	background: url('images/logo.png');
	background-size: 100%;
	float:none;
}
.bodywrap {
	padding:240px 20px 20px;
}
.bodywrap p a:hover {
	color: #94019e;
	text-decoration: none;
}
body.home .bodywrap {
	padding:20px 15px;
}
body.home .bodywrap > .row {
	background: white;
	padding:15px 0;
	margin:0;
}
body.home .home-slider-wrap {
	padding-top:200px;
	padding-left:0;
	padding-right:0;
}
body.home .home-slider {
	background: black;
	position: relative; overflow: auto;
	color:white;
}
body.home .home-slider li {
	list-style: none;
}
body.home .home-slider ul {
	padding-left:0;
}
body.home .home-slider ul li {
	float: left;
}
body.home #content {
	padding:0px;
	background: none;
	width: 100%;
}
body.home .bodywrap > .row h2 {
	font-size: 1em;
}
body.home .home-posts h2 .date {
	text-transform: inherit;
	color: #999;
	font-weight: normal;
}
.posts-small {
	overflow: hidden;
}

body.home .home-posts .contentwrap,
.posts-small p {
	color: #666;
}
.posts-small .attachment-thumbnail {
	float: left;
	margin: 0 10px 10px 0;
}
body.home #post-thumbnail {
	margin-bottom:15px;
/* 	min-height: 220px; */
}
body.blog #post-thumbnail {
	float: right;
}
body.blog hr {
	width: 100%;
}
body.blog .contentwrap {
	overflow: hidden;
}
body #latestnews h2{
	color: #000000;
	font-size: 15px;
	background-color: #FFEC02;
	padding: 15px 100px 15px 10px;
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: 0;
}
section#content {
	background: white;
}
body.home .bodywrap > .homepage_three_boxes_wrap {
	display: none;
  background: none;
  margin-top: 15px;
  text-align: center;
  color: white;
}
body.home .bodywrap > .homepage_three_boxes_wrap > div > div {
	background: #000000;
	min-height: 100px;
}
body.home .bodywrap > .homepage_three_boxes_wrap h4 {
	text-align: left;
	background: #FFEC02;
	color: black;
	text-transform: uppercase;
}
body.page-template-drivesober-php #content {
	padding:0px;
}
body.page-template-drivesober-php .photo-gallery {
	text-align: center;
	margin-top:20px;
}
body.page-template-drivesober-php .photo-gallery div {
	margin-bottom:15px;
}
.alignright{
	float: right;
	margin-left: 10px;
	margin-bottom: 10px;
}

#content .home-posts {
	padding:20px;
	float:left;
	margin-bottom: 20px;
	background-color: white;
	}
body.page #content .home-posts {
	width:900px;
	}
#nextpage {
	float:right;
	}
#prevpage {
	float:left;
	}
#nextpage a, #prevpage a {
	background: #ffec02;
	border-radius: 3px;
	padding:7px;
	display: inline-block;
	color:#000000;
	text-decoration: none;
	font-size:1.2em;
	}
body #content h2 {
	margin:-20px -20px 20px -20px;
	padding:10px 100px 10px 20px;
	background: #ffec02;
}

body #content a{
/*
	text-decoration: underline;
	text-decoration-color: #94019e;
*/
}

.ai1ec-event-details {
	padding-bottom: 20px!important;
	margin-bottom: 40px!important;
	border-bottom:1px solid #ccc;
}
img.polaroid {
	padding:5px;
	margin:5px;
	box-shadow: 0 0 5px #ccc;
}
h2.ai1ec-calendar-title {
	color:white!important;
}
#content h2 a {
	color:#000000;
	text-decoration: none;
	font-size:20px;
	text-transform: uppercase;
}
#content h2 {
	color:#000000;
	text-decoration: none;
	font-size:22px;
	text-transform: uppercase;
}
#content,
#contentwsidebar {
	background:white;
	padding-top:15px;
	padding-bottom:15px;
	margin-top:45px;
}	
h2.popout {
	padding:10px 100px 0px 20px;
	background: #ffec02;
	display: inline-block;
	position: absolute;
  left: 0;
  height:45px;
  top:-45px;
}
#contentwsidebar a {
	text-decoration: underline;
}
#contentwsidebar h2 a {
	color:#000000;
	text-decoration: none;
	font-size:20px;
	text-transform: uppercase;
}
#contentwsidebar h2 {
	color:#000000;
	text-decoration: none;
	font-size:20px;
	text-transform: uppercase;
}
.usefullinks{
	background-color: #ffec02;
	padding: 20px;
}
.usefullinks a{
	text-decoration: underline;
	text-decoration-color: #94019e;	
}
.usefullinks ul{
 	list-style-type: none;
 	line-height: 2.5em;
 	padding: 0;
 	overflow: hidden;
 	margin-bottom: 0;
}
.usefullinks ul li {
	width: 100%;
	float: none;
}
#sidebar h3{
	padding: 10px 80px 10px 10px;
	background-color: #ffec02;
	color: #000000;
	font-size:15px;
  margin-bottom: 10px;
  clear:both;
  text-transform: uppercase;
  display: inline-block;
}    
body.page-template-drivesober-php #sidebar h3 {
	background: #94019e; /* $purple */
	color:white;
}
/*
#sidebar .textwidget{
	margin-bottom: 20px;
	margin-top: 10px;
}
*/
#sidebar #magic_sidebar_nav_widget-2 h3,
#sidebar #magic_sidebar_nav_widget-3 h3 {
	margin-bottom: 0;
}
#sidebar #magic_sidebar_nav_widget-2 > div,
#sidebar #magic_sidebar_nav_widget-3 > div {
	padding:10px;
	background: white;
}
.video-wrapper{
	z-index: 1;
}
.prefooter_full_width_area {
	margin-top:30px;
	padding:60px 30px 40px;
	background: #FFEC02;
	overflow: hidden;
	float: left;
	width: 100%;
	text-align: center;	
}
.prefooter_full_width_area h3 {
	font-size:2em;
	display: block;
	color: #222;
	text-transform: uppercase;
}
.prefooter_full_width_area em {
	display: inline-block;
	font-style: normal;
	color:white;
	background: black;
	font-size:26px;
  line-height: 36px;
  padding:15px 10px 10px;
  margin-right:5px;
  font-weight: bold;
}
footer#page-footer {
	padding: 80px 40px;
	background-color: #000000;
	margin: auto;
	background-image: url("images/footer_image.jpg");
	background-repeat: repeat-x;
	margin-top: 40px;
}

footer #menu-footer-nav .dropdown-menu>li>a:focus, 
footer #menu-footer-nav .dropdown-menu>li>a:hover {
	background:none;
}
footer #menu-footer-nav .caret {
	display: none;
}
footer #menu-footer-nav .dropdown-menu {
  display: inline-block;
  position: static;
  background: none;
  text-align: center;
}
footer #menu-footer-nav > li:first-child a {
  color: #ffec02!important; /* $yellow */
}
footer #menu-footer-nav .dropdown-menu > li >a {
	padding:5px 0;
	background: none;
	color: #ccc;
}
footer .menu-footer-nav-container {
	width: 100%;
	overflow: hidden;
}
footer ul#menu-footer-nav > li {
	width:100%;
	float: left;
}
footer #menu-item-343 a,
footer ul#menu-footer-nav > li > a {
	font-weight: bold;
}
footer ul {
	width:100%;
	display: inline;
	padding:0;
	list-style: none;
	text-align: center;
}
footer ul li a {
	display: block;
	font-size: 0.9em;
	line-height: 2.0em;
	color: #ffffff;
}
footer .copyright {
	width: 100%;
	color:#656565;
	text-align:center;
	padding:30px 0;
	font-size: 0.85em;
	}
footer .copyright a {
	color:#656565;
	text-decoration: none;
}
#pageNav {
	width:580px;
}
	
::-moz-selection { background: #ffec02; color: #000; text-shadow: none; }
::selection { background: #ffec02; color: #000; text-shadow: none; }

/* Buttons and Labels */

form#searchform label.screen-reader-text { display: none;}
input[type="text"] { height: 35px; font-size: 14px; }

.readmore a{
	color: #666;
	text-transform: uppercase;
	font-weight: bold;
	padding-top:8px;
	font-size:0.9em;
	display: inline-block;
}
#counternum{
	background-image: url('images/fatalities.gif');
	background-repeat: no-repeat;
	padding: 8px;
	height:35px;
	color: #fff;
	letter-spacing: 13px;
	float: left;
	width: 100px;
}

aside#sidebar #countertext{
	color: #fff;
	float: right;
	width:180px;	
	color: #fff;
	font-size:12px;
	font-family: Georgia,serif;
	font-weight: bold;
	letter-spacing: 1px;
	margin: 0;
	padding: 10px 0px;  
}
aside#sidebar > a {
	display: block;
}
aside#sidebar > div,
aside#sidebar > a,
aside#sidebar > img {
	margin-bottom:25px;
	overflow: hidden;
}
body.single .home-posts{
	min-height: 500px;	
}
body.single .date {
	float: none;
    text-align: right;
    margin-bottom: 10px;	
}
body.single section#content {
	min-height: 500px;
}
body.single #post-thumbnail {
	float: right;
	margin-left:10px;
	margin-bottom: 10px;
}
body.page-template-default #content h2,
body.single #content h2 {
	margin: 0px -20px 20px 0px;
}
.slickQuizWrapper ul.answers li label {
	margin-left:0.5em;
}
.slickQuizWrapper .quizResults h3 {
display: none;
}

.slickQuizWrapper ol.questions {
	padding-left:0;
}
.slickQuizWrapper ul.answers {
	margin-left:0;
}
.slickQuizWrapper ul.responses > li {
	padding:0.5em;
	margin:0 0 30px 0;
	}
.slickQuizWrapper .incorrect {
	background:#fbcbc1;
	border:1px solid #ee6956;
}
.slickQuizWrapper .correct {
	background:#effeb9;
	border:1px solid #99c71d;
}
.quiz{
	background-color: black;
	border-radius: 10px;
	border: 1px solid #ffec02;
}
.quizmid{
	background-color: grey;
	margin: 10px 0px;
	padding: 10px;
	color: white;
	font-size: 18px;
	font-family: Georgia,serif;
    font-weight: bold;
	text-align: center;
	line-height: 22px;
	letter-spacing: 0.5px;
	text-shadow: 0px 0px 2px #333;
}
.quiz h2{
	background-color: #ffec02;
	padding: 10px;
	margin: 10px 0px;
	color: white;
	font-size:18px;
    font-family: Georgia,serif;
    font-weight: bold;
    text-shadow: 0px 0px 2px #333;
    text-align: center;
    letter-spacing: 1px;
}
.button{
	background-image: url('images/button.gif');
	width:126px;
	height:19px;
	background-repeat: no-repeat;
	margin: auto;
	padding: 5px;
	text-align: center;
	margin-bottom: 10px;
}
.button a{
	color: white;
}
.date{
	float: right;
	color: #464700;
	font-size: 12px;
	font-weight:600;
	text-decoration: none;
}

/* drivesober */

body.page-template-drivesober-php .quiz{
	background-color: black;
	border-radius: 10px;
	border: 1px solid #ffec02;
}
body.page-template-drivesober-php .quizmid{
	background-color: grey;
	margin: 10px 0px;
	padding: 10px;
	color: white;
	font-size: 18px;
	font-family: Georgia,serif;
    font-weight: bold;
	text-align: center;
	line-height: 22px;
	letter-spacing: 0.5px;
	text-shadow: 0px 0px 2px #333
}
body.page-template-drivesober-php .quiz h2{
	background-color: #ffec02;
	padding: 10px;
	margin: 10px 0px;
	color: white;
	font-size:18px;
    font-family: Georgia,serif;
    font-weight: bold;
    text-shadow: 0px 0px 2px #333;
    text-align: center;
    letter-spacing: 1px;
}
body.page-template-drivesober-php .slickQuizWrapper .correct{
	background-color: #f7ddc6;
	border: 1px solid #E4701B;
}
body.page-template-drivesober-php .slickQuizWrapper .incorrect{
	background-color: #d4c2da;
	border: 1px solid #711872;
}
body.page-template-drivesober-php .slickQuizWrapper h2 {
background-color: red;
}
body.page-template-drivesober-php h3 {
	color:#000000;
	}
body.page-template-drivesober-php #content { width:100%; background:white; }
body.page-template-drivesober-php #content .home-posts { width:60%; }
body.page-template-drivesober-php #content h2 { margin:0; }
body.page-template-drivesober-php #content .home-posts a { color:#e4701b; }


body.page-template-drivesober-php #sidebar h2{
	background-color:#711872;
	margin:-10px -10px 5px;
	font-family: 'DIN', "Helvetica", "Arial", sans-serif;
	padding: 10px;
	color: #ffffff;
	font-size: 14px;
	text-transform: uppercase;
}	
body.page-template-drivesober-php #sidebar .textwidget p a{
	background-color: #e4701b;
	padding: 5px 10px;
	color: #ffffff;	
	margin-bottom: 10px;
	text-transform: uppercase;
}
body.page-template-drivesober-php #slickQuiz2 h2{
	display: none !important;
}
body.page-template-drivesober-php #slickQuiz2 .button 	{
	background-image: url('images/button_quiz.gif');
	cursor: pointer;
}
body.page-template-drivesober-php .wpcf7-list-item label{
	display: block;
}
body .tablepress thead th, 
body .tablepress tfoot th,
body .tablepress .sorting:hover, 
body .tablepress .sorting_asc, 
body .tablepress .sorting_desc {
	background: #94019e; /* $purple */
	color:white;
}
body .tablepress-id-N .column-3 {
	width: 160px!important;
}
body .tablepress-id-N .column-4 {
	width: 115px!important;
}
.profileimg{
	float: left;
	height: 250px;
	width: 126px;		
}
.profileimg h3{
	text-transform: uppercase;
	font-size: 15px;	
}
.flashbanner{
	width:940px;
	height: 120px;
	text-align: center;
	margin: auto;
	margin-bottom: 30px;
}
#text-11{
	border: none;
	margin: 0;
	padding: 0;
}
nav#mobile {
	display: none;
	background: #348ac0;
	width:80%;
	margin:0 5%;
	padding:2% 5% 3%;
	text-align: left;
	overflow: hidden;
}
nav#mobile li {
	width: 43%;
	margin-right: 2%;
	display: block;
	float: left;
	padding:0.4em 2%;
}
nav#mobile a {
	color:white;
}
@media screen and (min-width:480px) {

header h1#logo {
	width:380px;
	height:80px;
	margin-bottom: 0;
}
header h1#logo a {
	background-size: 100%;
	width:380px;
	height:80px;
}
body.home .home-slider-wrap {
	padding-top:210px;
}
.usefullinks ul li {
	width: 50%;
	float: left;
}
footer ul {
	text-align: left;
}
footer #menu-footer-nav .dropdown-menu {
	text-align: left;
}
footer ul#menu-footer-nav > li {
	width:33.33%;
	float: left;
}

}
@media screen and (min-width:768px) {

header {
	padding-top: 45px;
	background-image: url('images/nav_repeat.jpg');
	background-repeat: repeat-x;
	background-position: left bottom;	
}
header ul#menu-main-nav {
  background: none;
}
header ul#menu-main-nav > li:hover ul.dropdown-menu {
	display: block;
}
header #mininav #search {
	padding:0;
	display: inline;
}
header nav.nav-primary .dropdown-menu {
	position: absolute;
	margin-top:0;
}
header nav.nav-primary ul.dropdown-menu {
	width: auto;
	text-align: left;
}
header nav.nav-primary li > a {
	text-align: left;
}
header ul#menu-main-nav {
  text-align: left;
}
header ul#menu-main-nav li {
	overflow: visible;
}
header nav.nav-primary {
  padding-top: 6px;
  height: 47px;	
	font-weight: bold;
  margin-top:17px;
}
body.home .home-slider-wrap {
	padding-top:190px;
}
aside#sidebar {
	padding-left: 30px;
	margin-top: 45px;
}
footer {
	
}
footer ul#menu-footer-nav > li {
	width:15.666%;
	margin-right:1%;
}

}
@media screen and (min-width:989px) {

body.home .bodywrap > .homepage_three_boxes_wrap {
	display: block;
}
body.home .home-slider-wrap {
	padding-top:200px;
}
header {
	padding-top: 45px;
}
header nav {
	text-align: right;
}
header #navwrap {
	text-align: right;
	width: auto;
}
header #mininav {
	padding-top:25px;
}
header #mininav ul {
	margin-bottom: 20px;
	padding-left: 0;
}
header h1#logo {
	float:left;
	margin: 0;
}
header h1#logo a {
	float:left;
}
header ul#menu-main-nav > li > a {
	font-size: 1em;
}
.prefooter_full_width_area h3 {
	font-size:2em;
	display: block;
	color: #222;
	text-transform: uppercase;
	float: left;
}
.prefooter_full_width_area span {
	float: right;
}
.prefooter_full_width_area em {
	font-size:38px;
  line-height: 38px;
  padding:25px 15px 15px;
  margin-right:10px;
	margin-top:-28px;
}
footer#page-footer {
	padding: 80px 80px;
}

}
@media screen and (min-width:1200px) {

.prefooter_full_width_area {
	font-size: 1.3em;
}
.prefooter_full_width_area em {
	margin-top:-18px;
}
footer#page-footer {
	padding: 80px 0;
}

}
@media screen and (max-width:991px) {

	header,
	header #navwrap,
	#headerwrap,
	#content,
	#pageNav {
		width: 100%;
	}
	.single-ai1ec_event #content {
		width: 90%;
		padding:5%;
	}
	textarea,
	input {
		max-width: 90%;
	}
	body .timely img, 
	body #ai1ec-container img,
	body img {
		max-width: 100%;
	}
	ul {
		padding-left: 1.5em;
	}
	header {
		padding:20px 0 0;
		border-bottom:none;
		height: auto;
	}
	#latestnews {
		width: 100%;
		height: auto;
	}
	h1#logo {
		margin-bottom: 0.2em;
	}
	h1#logo a {
		display:block;
		margin:0 auto;
		float: none;
		background-size: 100%;
		background-repeat: no-repeat;
	}
	nav#mobile-subpages li {
		width: 100%;
		text-align: center;
		margin:0.3em 0px;
		display: block;
	}
	img,
	#post-thumbnail,
	header #mainnav div > ul > li,
	#navwrap {
		float:none;
	}
	.home-posts .date,
	.flashbanner {
		display: none;
	}
	#cboxTitle,
	#cboxCurrent {
		display: none!important;
	}
	#content .home-posts {
		padding:0px;
	}
	body.page #content .home-posts,
	body.page section#content {
		padding:0%;
		width: 100%;
	}
	#content h2 {
		margin:0px!important;
		text-align: center;
		font-family: 'DIN', "Helvetica", "Arial", sans-serif;
		font-weight: normal;
		font-size:18px;
	}
	#content h2 a {
		text-shadow: none;
	}
	#container {
		width: 90%;
		padding:160px 5% 20px;
	}
	h2.ai1ec-calendar-title {
		background: none!important;
		width: 90%;
		padding:0.5em 5%;
		text-align: center;
		color:#999;
		font-weight: normal;
		font-size: 0.9em!important;	
	}
	.timely .btn-toolbar {
		width:100px;
		margin:0 auto 10px !important;
		float: none!important;
	}
	.ai1ec-calendar-toolbar,
	#ai1ec-agenda-expand-all,
	#ai1ec-agenda-collapse-all,
	.ai1ec-title-buttons > div,
	a#ai1ec-print-button.btn {
		display: none;
	}

}

.flashbanner_sidebar{
	width:300px;
	height: 250px;
	text-align: center;
	margin: auto;
	margin-bottom: 10px;	
}
#ds_video{
	background-color: #750d68;
	float: right;
	width: 360px;
	margin: auto;
	color: #ffffff;
}
#ds_tip{
	background-color: #750d68;
	float: right;
	width: 360px;
	color: #ffffff;
	margin-left: 0px;
}

#wpcf7-f1707-p1710-o1 {
	padding: 0 50px;
} 

#wpcf7-f1039-p1029-o1{
	padding: 0 40px;
}

#gallery-2 .gallery-item {
	text-align: left;
}
.search-result{
	display: block;
	border: 0;
	border-bottom: 1px solid #ccc;
	padding: 20px 0;
}

.nav > li > a:focus, .nav > li > a:hover{
	color: #94019D;
}

a:focus, a:hover{
		color: #94019D;

}

#gallery-2 img{
	border: none !important;
}

#gallery-2 .gallery-item{
	padding: 10px;
}

#gallery-2 .gallery-icon{
	margin-bottom: 10px;}
