/*
Theme Name: Cubex
Theme URI: 
Description: Custom WordPress layout for Cubex
Version: 
Author: Norah Smith
Author URI: 
*/

/*******************************************************************************
			RESETS
*******************************************************************************/

body, h1, h2, h3, h4, h5, h6, blockquote, p, form {
	
	margin: 0;
	padding: 0;
}
body {
	background: #5e0000;
	font-family: "Trebuchet MS", Arial, Helvetica, "Bitstream Vera Sans", sans-serif;
  color: #ffffff;
	vertical-align: top;
	font-size: 100%;      /* 100% = 16px */
	line-height: 1.125em; /* 16×1.125=18px */

	min-width: 960px;
}

/*******************************************************************************
			GLOBAL STYLES
*******************************************************************************/

a {	
	color: #336699;
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
}

a img {
  border: 0;
}

p {
	margin-bottom: 1em;
}

h1,h2,h3,h4 {
  color: #960830;
  font-family: Helvetica, Arial, "Bitstream Vera Sans", sans-serif;
}

h1 {
  font-size: 1.4em;
  line-height: 1.3em;
  margin-bottom: 0.25em;
}

h2 {
  font-size: 1.4em;
  line-height: 1.3em;
  margin-top: 0;
  margin-bottom: 0.334em;
}

h3 {
  font-size: 1.2em;
  line-height: 1.3em;
  margin-top: 0.3845em;
  margin-bottom: 0.3845em;
}

h4, h5, h6
{
  font-size: 1.1em;
  line-height: 1.3em;
  margin-top: 0.4545em;
  margin-bottom: 0.4545em;
}

/*******************************************************************************
			MAIN WRAPPER
*******************************************************************************/

#wrapper{
  /* Use a 12px base font size with a 18px line height */
  font-size: 0.813em; /* 16px x .75 = 12px */
  line-height: 1.5em; /* 12 x 1.5 = 18px */
  background: #ffffff;
  color: #000000;
}

.container {
	margin: auto;
  width: 950px;
  }

/*******************************************************************************
			HEADER
*******************************************************************************/

#header {
	background: url(img/header-tile.png) top repeat-x
}

#header .inner {

}

.site-title {
  width: 225px;
  height: 105px;
  float: left;
  background: url(img/logo.png) top left no-repeat;
}

.site-title a {
  width: 225px;
  height: 105px;
  display: block;
  overflow: hidden;
}

.site-title span {
  position: absolute;
  left: -9999%;
}

#lower-header {
  background: url(img/header-lower-tile.png) center 19px repeat-x;
}

#lower-header .inner {
  background: url(img/header-bg.png) center 19px no-repeat;
}

#lower-header #lower-img {
  background: url(img/header-img.jpg) center top no-repeat;
  height: 240px;
}

/*******************************************************************************
			NAVIGATION
*******************************************************************************/

#header-elems {
  margin: 0 auto 2px;
  padding: 0;
  clear: both;
  background: #6e6e6e url(img/nav-bg.png) center top no-repeat;
  list-style-type: none;
  width: 950px;
}

#header-elems ul {
  margin: 0;
  padding: 0 .5em;
  list-style-type: none;
  font-weight: bold;
  float: left;
}

#header-elems  ul ul{
  padding-left: 4px;
}

#header-elems  ul li {
  display: inline;
  border-left: .2em solid #4e4e4e;
  padding: 0 4px;
  float: left;
}

#header-elems  ul li li {
  padding: 0;
  border: none;
} 

#header-elems  ul li:first-child {
  border: none;
  padding-left: 0;
}

#header-elems  ul li a {
  display: block;
  padding: .8em .7em;
  color: #ffffff;
  text-decoration: none;
}

#header-elems  ul li a:hover, #header-elems  ul li a:focus, #header-elems ul li.current_page_item a, #header-elems ul li li a {
  outline: none;
  background: #c8c8c8;
}

#header-elems  ul li li a:hover, #header-elems  ul li li a:focus {
  color: #000000;
}


/*** ESSENTIAL STYLES ***/
.sf-menu, .sf-menu * {
	margin:			0;
	padding:		0;
	list-style:		none;
}
.sf-menu {
	line-height:	1.2;
}
.sf-menu ul {
	position:		absolute;
	top:			-999em;
	width:			18em; /* left offset of submenus need to match (see below) */
}
.sf-menu ul li {
	width:			100%;
}
.sf-menu li:hover {
	visibility:		inherit; /* fixes IE7 'sticky bug' */
}
.sf-menu li {
	float:			left;
	position:		relative;
}
.sf-menu a {
	display:		block;
	position:		relative;
}
.sf-menu li:hover ul,
.sf-menu li.sfHover ul {
	left:			0;
	top:			2.8em; /* match top ul list item height */
	z-index:		99;
}
ul.sf-menu li:hover li ul,
ul.sf-menu li.sfHover li ul {
	top:			-999em;
}
ul.sf-menu li li:hover ul,
ul.sf-menu li li.sfHover ul {
	left:			18em; /* match ul width */
	top:			0;
}
ul.sf-menu li li:hover li ul,
ul.sf-menu li li.sfHover li ul {
	top:			-999em;
}
ul.sf-menu li li li:hover ul,
ul.sf-menu li li li.sfHover ul {
	left:			10em; /* match ul width */
	top:			0;
}

/*******************************************************************************
			MAIN CONTENT AREA
********************************************************************************/

#main {
	float: left;
	display: inline;
	width: 556px;
	min-height: 400px;
	height: auto !important;
  height: 500px;
}

.no-sidebar #main {
  float: none;
  display: block;
  width: auto;
}

#main-inner {
  margin: 20px 0;
}

/*******************************************************************************
			SIDEBAR
*******************************************************************************/

#sidebar {
	width: 394px;
	display: inline;
	float: right;
}

#sidebar .inner {
  margin: 20px 0 20px;
}

#sidebar ul {
	list-style-type: none;
	margin: 0;
	padding: 0 0 0 29px;
}

#sidebar ul li{
	padding: .5em 0 .5em 0;
}

#sidebar ul li h2 {
	color: #0053a4;
}

#sidebar ul ul li {
	line-height: 1.6em;
	padding: 0;
}

/*******************************************************************************
			FOOTER
*******************************************************************************/

#footer	{
  background: #960830 url(img/footer-tile.png) bottom repeat-x;
  border-top: 10px solid #c5c5c5;
	clear: both;
  color: #ffffff;
	font-size: .9em;
	line-height: 1.5em;
	min-height: 60px;
	height: auto !important;
	height: 60px;
	padding-top: 1em;
}

#footer a {
 color: #ffffff;
}

#footer p {
}

#footer .inner {
  text-align: right;
}

#footer-elems {
  float: left;
  margin: 0;
  padding: 0;
  text-align: left;
  width: 560px;
}

/*******************************************************************************
			USED FOR CONTENT ADDED IN WORDPRESS
*******************************************************************************/

.post {
	padding: 1em 0 1em 30px;
	position: relative;
}

.post h1, .post h2, .post h3 {
  position: relative;
  left: -30px;
}

.post .title {
	font-size: 2em;
	margin-bottom: .5em;
	padding-bottom: .5em;
	border-bottom: 1px solid #0053a4;
}

.post .title a {
 text-decoration: none;
}

.post .title a:hover {
  text-decoration: underline;
}

.entry	{

}

p.postmetadata {
	border-top: 1px solid #0053A4;
	margin: .5em 0 0 0;
	padding: .5em 0 0 0 ;
}

.comments-template {
	border-top: 1px solid #0053A4;
	margin: .5em 0 0;	
	padding: .5em 0 0;
}

.page .comments-template {
  border: none;
}

.comments-template ol {
	list-style: none;
	margin: 0;
	padding: 0 0 1em;	
}

.comments-template ol li {
	border-bottom: 1px solid #0053A4;
	margin: .5em 0 0;	
	padding: 0 0 .5em;	
}

.comments-template h2, .comments-template h3 {
	font-size: 1.1em;
}

.commentmetadata {
	font-size: .9em;
}

.comments-template p.nocomments {
	padding: 0;
}

.comments-template textarea{
	font-size: .9em;
}

.elem_fieldImages img {
  margin: 0 auto 20px;
  display: block;
}

/* Image Positioning */
.alignright {
  float: right;
  display: inline;
  margin: 0 0 15px 15px;
}

.alignleft {
  float: left;
  display: inline;
  margin: 0 15px 15px 0;
}

.aligncenter {
  display: block;
  margin: auto;
}

.clearing {
  clear: both;
}

/* Clearing Floats */
/* slightly enhanced, universal clearfix hack */
.clear-block:after {
     visibility: hidden;
     display: block;
     font-size: 0;
     content: " ";
     clear: both;
     height: 0;
     }
.clear-block { display: inline-block; }
/* start commented backslash hack \*/
* html .clear-block { height: 1%; }
.clear-block { display: block; }
/* close commented backslash hack */