/*
Theme Name: Base
Version: .5
Theme URI: 
Description: 
Author: 
Author URI: 
*/

/*--[ HTML5 Boilerplate RESET ]--------------------------------------------------------------------------------*/
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,li,fieldset,form,label,legend,caption,article,aside,figure,footer,header,hgroup,menu,nav,section,menu,time,mark,audio,video{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0}
article,aside,figure,footer,header,hgroup,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0}
ins{background-color:#ff9;color:#000;text-decoration:none}
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
del{text-decoration:line-through}
abbr[title],dfn[title]{border-bottom:1px dotted #000;cursor:help}
table{border-collapse:collapse;border-spacing:0}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
input,select{vertical-align:middle}

/*--[ HTML5 Boilerplate MINIMAL BASE STYLES ]--------------------------------------------------------------------------------*/
table { font-size:inherit; font:100%; }
select, input, textarea { font:99% sans-serif; }
pre, code, kbd, samp { font-family: monospace, sans-serif; } 
body, select, input, textarea { color:#444; }
h1,h2,h3,h4,h5,h6 { text-rendering: optimizeLegibility; }
html { -webkit-font-smoothing: antialiased; }
a:hover, a:active { outline: none; }
strong, th { font-weight: bold; }
td, td img { vertical-align:top; } 
sub { vertical-align: sub; font-size: smaller; }
sup { vertical-align: super; font-size: smaller; }
pre { padding: 15px; white-space: pre; /* CSS2 */ white-space: pre-wrap; white-space: pre-line; word-wrap: break-word; }
input[type="radio"] { vertical-align: text-bottom; }
input[type="checkbox"] { vertical-align: bottom; *vertical-align: baseline; }
input[type=text],input[type=email],input[type=tel],input[type=password],textarea { width:100%;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box;margin-bottom:5px; }
.ie6 input { vertical-align: text-bottom; }
label, input[type=button], input[type=submit], button { cursor: pointer; }
::-moz-selection{ background: #999; color:#fff; text-shadow: none; }
::selection { background:#999; color:#fff; text-shadow: none; }
html { overflow-y: scroll; }
button {  width: auto; overflow: visible; }
.ie7 img { -ms-interpolation-mode: bicubic; }

/*--[ HELPER CLASSES ]--------------------------------------------------------------------------------*/
.ir { display:block; text-indent:-999em; overflow:hidden; background-repeat: no-repeat; } /* for image replacement */
.hidden { display:none; visibility:hidden; }  /* Hide for both screenreaders and browsers */
.visuallyhidden { position:absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); } /* Hide only visually - available for screenreaders */
.invisible { visibility: hidden; } /* Hide visually and from screenreaders, but maintain layout */
.clear { clear: both; display: block; overflow: hidden; visibility: hidden; width: 0; height: 0; }
.clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.clearfix { display: inline-block; }
* html .clearfix { height: 1%; } /* Hides from IE-mac \*/
.clearfix { display: block; }
 
/*--[ Layout ]--------------------------------------------------------------------------------*/
html {
	height:100%;
	font: 62.5% Arial, Helvetica, sans-serif; /* Reset to 10px equivilent */
	text-align: center;
	}
body { height:100%; }

#wrapper { width:760px;min-height:100%; position:relative; }



#page-wrap {
	display:block;
	position: relative;
	width:100%;	
}

#page {
	position: relative;
	overflow: hidden;
	z-index:100;
	width:100%;
	margin:0 auto;
	padding:0;
	text-align: left;
	font-size:1.3em;
	line-height: 1.4em;
	}
#page:after { clear: both; }

#content-wrap {
	position: relative;
	overflow: hidden;
	}
#content-wrap:after { clear: both; }

#main-content { float:left;width:95%;margin:2.5%; }

.page-template-page-nopad #main-content { float:left;width:100%;margin:0; }

#footer-wrap {
	display: block;position:relative;width:100%;height:auto;margin:0 auto;
}

#footer {
	width: 95%; margin:0 auto;
	padding: 1% 0;
	text-align:left;
	font-size:1em;
	overflow: hidden;
	zoom: 1;
	clear: both;
	}
#footer, #footer h3, #footer a {color:#fff;}

/*--[ Anchors ]--------------------------------------------------------------------------------*/
a {}
a:hover, a:focus {}

/*--[ Typography ]--------------------------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 { line-height: 1.125em; margin: 0 0 .5em 0; letter-spacing: 0; font-weight:normal; }
h1 { font-size:2em; } 
h2 { font-size:1.6em; }
h3 { font-size:1.3em; }
h4 { font-size:1em; }
h5 { font-size:.8em; }
h6 { font-size:.7em; text-transform: uppercase; }

.hentry p, #sidebar p, #footer p { margin:0 0 1em 0; }

hr, pre, table, fieldset, article, article footer, nav {
	margin: 0 0 1.5em 0;
	line-height: 1.8em;
}
blockquote { text-align:center;margin:2em; }

.post { margin:0; }
small {font-size:0.6875em;}

/*--[ Form Elements and Buttons ]------------------------------------------------------------------------------------*/
input[type=submit], .button {
	padding:.5em 1em;
	border:none;
	text-shadow: 1px 1px 2px rgba(0,0,0,0);
	-webkit-transition-duration: 0.50s;
    -moz-transition-duration: 0.50s;
	-o-transition-duration: 0.50s;
	transition-duration: 0.50s;
}
input[type=submit]:hover, .button:hover {
	text-shadow: 1px 1px 2px rgba(0,0,0,.4);
}

label { font-size:.8em; }

/*--[ Search ]------------------------------------------------------------------------------------*/
.search-box fieldset { border:1px solid #ccc;background:#fff; padding:2px; margin:0; }
.search-box input.search-input { background:transparent; border:none;color:#555; float:left; margin:0; max-width:80%; padding:2px; width:100px; }
.search-box input.search-input { width: 85%; }
.search-box input[type="submit"] { background-image:url('images/search.png'); background-color:transparent !important; background-repeat:no-repeat; border:none; cursor:pointer; display:block; float:right; margin:3px 5px 0 0; padding:0; width:18px !important; height:18px; }
.search-box input[type="submit"]:hover { background-image:url('images/search-over.png'); background-color:transparent !important; }

.search-highlight { background:#ff9; }

/*--[ Responsive Images ]--------------------------------------------------------------------------------*/
.entry-content img,
.comment-content img,
.widget img,
.gallery-item img {
	max-width: 100%; /* Fluid images for posts, comments, and widgets */
}
img[class*="align"],
img[class*="wp-image-"],
img[class*="attachment-"] {
	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}
img.size-full,
img.size-large,
img.header-image,
img.wp-post-image {
	max-width: 100%;
	height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */
}

/* Make sure videos and embeds fit their containers */
embed,
iframe,
object,
video {
	max-width: 100%;
}
.entry-content .twitter-tweet-rendered {
	max-width: 100% !important; /* Override the Twitter embed fixed width */
}
.entry-content embed,
.entry-content iframe,
.entry-content object,
.entry-content video {
	margin-bottom: 24px;
	margin-bottom: 1.714285714rem;
}

/*--[ Images ]--------------------------------------------------------------------------------*/
img {
	max-width: 100%;
	height: auto;
	width: auto\9; /* ie8 */
}
img[class*="wp-image-"] {
	/* No styles needed */
}
img.size-full {
	max-width: 100%;	
	width: auto; /* Prevent stretching of full-size images in IE8 */
}
.wp-post-image,
img.alignright, 
img.alignleft, 
img.aligncenter { }
a:hover .wp-post-image, a:focus .wp-post-image {
	padding: 0 !important;
	border: none !important;
}
.alignleft {
	float: left;
	clear: left;
	margin: 0 20px 20px 0;
}
.alignright {
	float: right;
	clear: right;
	margin: 0 0 20px 20px;
}
.aligncenter {
	margin: 0 auto 1.62em;
	display: block;
}
div.wp-caption {
	font-size:12px;
	line-height:12px;
	padding: 0 !important;
	text-align: center !important;
	max-width: 100% !important;
	width: auto !important;
}
div.wp-caption img {
	margin: 0;
	padding: 0;
	outline: 0;
	border: 0;
}
p.wp-caption-text {
	margin: 0 !important;
	padding: .5em 0 !important;
	clear: both;
	}
img.shadow { 
	-moz-box-shadow: 0px 1px 3px rgba(0,0,0,0.2); 
	-webkit-box-shadow: 0px 1px 3px rgba(0,0,0,0.2); 
	box-shadow: 0px 1px 3px rgba(0,0,0,0.2); 
	}


/* =Menus -------------------------------------------------------------- */

#main-nav-wrap {
}

#main-nav {
	margin:0;
	padding:0;
	width: 100%;
	font-size:1em;
}
#main-nav ul {
	list-style: none;
	display:flex;flex-wrap: wrap;flex-direction: row;
	height:auto;
	margin: 0;
	padding:0;
	}
#main-nav li {
	float: left;
	position: relative;
	margin:0;
}
#main-nav a {
	display: block;
	line-height: 22px;
	padding: 0 1em;
	text-decoration: none;
	-webkit-transition-duration: 0.50s;
    -moz-transition-duration: 0.50s;
	-o-transition-duration: 0.50s;
	transition-duration: 0.50s;
}
#main-nav ul li:hover > ul {
	display: block;
}

.paging { overflow: hidden; zoom: 1; }
.paging .prev { float: left;}
.paging .next { float: right; }
#main-content article {margin-bottom:4em;}


#previous_post { float:left; }
#next_post { float:right; }

.updates { list-style-type:none; }
.updates a { text-decoration:none; }


.single .menu-item-32 a { background-color:#d20001 !important; }