/* Start of CMSMS style sheet 'bernads : Simple - Vertical' */
/********************
MENU
*********************/
#menu_vert {
   padding-left: 0;
   margin: 2em;
}


/* menu li block */
#menu_vert li {
   list-style: none;
   margin: 3px;
   display: block;
}


/** fix stupid ie bug with display:block; **/
* html #menu_vert li a { height: 1%; } 
* html #menu_vert li hr { height: 1%; }
/** end fix **/

/* first level links */
div#menu_vert a {
   font-size: 130%;
   font-weight: bold;
   border: 1px solid #000000; 
   text-decoration:none; /* no underline for links */
   display: block; /* IE has problems with this, fixed above */
   padding: 0.1em 0.5em 0.1em 0.5em; /* some air for it */
   color: #333333; /* this will be link color for all levels */
   min-height:1em; /* Fixes IE7 whitespace bug */ 
   background-color: #99CC99;
}

/* next level links, more padding and smaller font */
div#menu_vert ul ul a {
   border: 1px solid #000000;
   padding: 0.1em 0.5em 0.1em 1.5em;
   background-color: #99CC99;
}

/* third level links, more padding */
div#menu_vert ul ul ul a {
   border: 1px solid #000000;
   padding: 0.1em 0.5em 0.1em 2.5em;
   background-color: #99CC99;
}



/* section header */
div#menu_vert li.sectionheader {
   border-right: none;
   font-size: 130%;
   font-weight: bold;
   padding: 1.5em 0 0.8em 0;
   background-color: #fff;
   line-height: 1em;
   margin: 0;
   text-align:center;
}



/* separator */
div#menu_vert li.separator {
   height: 1px !important;
   margin-top: -1px;
   margin-bottom: 0;
   padding:2px 0 2px 0;
   background-color: #000;
   overflow:hidden !important;
   line-height:1px !important;
   font-size:1px; /* for ie */
}

div#menu_vert li.separator hr {
   display: none; /* this is for accessibility */
}
/* End of 'bernads : Simple - Vertical' */

/* Start of CMSMS style sheet 'bernads : Left sidebar + 1 column' */
/*****************
browsers interpret margin and padding a little differently, 
we'll remove all default padding and margins and
set them later on
******************/
* {
margin:0;
padding:0;
}

/*
Set initial font styles
*/
body {
	background-color : #999999;
	background-image : url(http://www.storysalt.com/uploads/images/background.jpg);
	margin : 0px 0px 0px 0px;
        text-align: left;
        font-family : Arial, Helvetica, sans-serif;
        line-height: 1em;
}

/*
if img is inside "a" it would have 
borders, we don't want that
*/
img {
   border: 0;
}

/*
default link styles
*/
/* set all links to have underline and bluish color */

A:visited {
        background-color: inherit; 
	color : #990000;
	text-decoration : none;
}

A:link {
        background-color: inherit; 
	color : #000000;
	text-decoration : none
}

A:hover {
        background-color: inherit; 
	color : #003333;
	text-decoration : none
}

A:active {
        background-color: inherit; 
	color : #000000;
	text-decoration : none
}

/*****************
basic layout 
*****************/

/* center wrapper, min max width */
div#pagewrapper {
   margin: 0 auto;       /* this centers wrapper */
   max-width: 80em;   /* IE wont understand these, so we will use javascript magick */
   min-width: 60em;
   color: black;
}


/*** header ***
we will hide text and replace it with a image
we need to assign a height for it so that the image wont cut off
*/
div#header {
   height: 70px;    /* adjust according your image size */
      
}

div#header h1 a {
/* you can set your own image here */
   background: url(http://www.storysalt.com/uploads/images/logo.jpg) no-repeat 0 0px; 
   border: 0;
   display: block;
   height: 70px;             /* adjust according your image size */
   text-indent: -999em;  /* this hides the text */
   text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}


div#content {
   margin: 0em auto 0em 0;   /* some air above and under menu and content */
}


div#main {
   margin-left: 0; /* this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
   margin-right: 0; /* and some air on the right */
   width: 52%;
   float: left; 
   font-size : 14px;
   color : #333333;
   background-color : #cccccc;
   border-width : 1px 1px 1px 1px;
   border-style : solid;
   border-color : #333333;
   background-image : url(http://www.storysalt.com/uploads/images/spiral.jpg);
   background-repeat : no-repeat;
   padding: 5px 10px 5px 10px;
}

div#sidebarheader {
   height: 70px;    
   border: 0;
   text-align: center;
}

div#sidebar {
   float: left;        /* set sidebar on the left side. Change to right to float it right instead. */
   width: 18%;     /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX IE double margin bug */
   margin-left: 0;
   font-size : 12px;
   color : #333333;
   background : #CCCC99 url(http://www.storysalt.com/uploads/images/colbackground.jpg);
   border-width : 1px 0 1px 1px;
   border-style : solid;
   border-color : #333333;
   padding: 20px 3px 3px 3px;
}

div#rightbar {
   width: 25%;     /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX IE double margin bug */
   margin-right: 0;
   float: left; 
   font-size : 12px;
   color : #333333;
   background : #CCCC99 url(http://www.storysalt.com/uploads/images/colbackground.jpg);
   border-width : 1px 1px 1px 0;
   border-style : solid;
   border-color : #333333;
   margin-left: 0;
   text-align: center;
   padding: 3px 3px 3px 3px;
}

/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr {
   height: 1px;
   padding: 1em;
   border-bottom: 1px dotted black;
   margin: 1em;
}



/********************
CONTENT STYLING
*********************/
div#content {

}


/* TEXT */
p {
   font-size: 1em;
   margin: 0 0 1.5em 0; /* some air around p elements */
   line-height: 1.4em;
   padding: 0;
}

blockquote {
   border-left: 10px solid #ddd;
   margin-left: 10px;
}
strong, b {
/* explicit setting for these */
   font-weight: bold;
}
em, i {
/* explicit setting for these */
   font-style:italic;
}

/* Wrapping text in <code> tags. Makes CSS not validate */
code, pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
 font-family: "Courier New", Courier, monospace;
 font-size: 1em;
}

pre {
   border: 1px solid #000;  /* black border for pre blocks */
   background-color: #ddd;
   margin: 0 1em 1em 1em;
   padding: 0.5em;
   line-height: 1.5em;
   font-size: 90%;


}

/* Separating the divs on the template explanation page, with some bottom-border */
div.templatecode {
  margin: 0 0 2.5em;
}

/* END TEXT */

/* LISTS */
/* lists in content need some margins to look nice */
div#main ul,
div#main ol,
div#main dl {
   font-size: 1.0em;
   line-height: 1.4em;
   margin: 0 0 1.5em 0;
}

div#main ul li,
div#main ol li {
   margin: 0 0 0.25em 3em;
}

/* definition lists topics on bold */
div#main dl dt {
   font-weight: bold;
   margin: 0 0 0 1em;
}
div#main dl dd {
   margin: 0 0 1em 1em;
}

div#main dl {
  margin-bottom: 2em;
  padding-bottom: 1em;
  border-bottom: 1px solid #c0c0c0;
}


/* END LISTS */
/* End of 'bernads : Left sidebar + 1 column' */

/* Start of CMSMS style sheet 'bernads : bernards Accessibility and cross-browser tools' */
/* accessibility */

/* 
menu links accesskeys 
*/
span.accesskey {
   text-decoration:none;
}

/* 
accessibility divs are hidden by default 
text, screenreaders and such will show these 
*/
.accessibility, hr {
   position: absolute;
   top: -999em;
   left: -999em;
}

/* 
definition tags are also hidden 
these are also used for menu links    
*/
dfn {
   position: absolute;
   left: -1000px;
   top: -1000px;
   width: 0;
   height: 0;
   overflow: hidden;
   display: inline;
}
/* end accessibility */


/* wiki style external links */
/* external links will have "(external link)" text added, lets hide it */
a.external span {
  position: absolute;
  left: -5000px;
  width: 4000px;
}

/* make some room for the image */
a.external {
/* css shorthand rules, read: first top padding 0 then right padding 12px then bottom then right */
  padding: 0 12px 0 0;
}
/* colors for external links */
a.external:link {
  color: #18507C;
/* background image for the link to show wiki style arrow */
  background: url(uploads/bernads/external.gif) no-repeat 100% 0;
}
a.external:visited {
  color: #18507C; /* a different color can be used for visited external links */

/* 
Set the last 0 to -100px to use that part of the external.gif image for different color for active links 
external.gif is actually 300px tall, we can use different positions of the image to simulate rollover image changes.
*/
  background: url(uploads/bernads/external.gif) no-repeat 100% 0; 
}

a.external:hover {
  color: #18507C;
/* Set the last 0 to -200px to use that part of the external.gif image for different color on hover */
  background: url(uploads/bernads/external.gif) no-repeat 100% 0; 
  background-color: #C3D4DF;
}
/* end wiki style external links */


/* clearing */
/* 
clearfix is a hack for divs that hold floated elements. it will force the holding div to span all the way down to last floated item.
We strongly recommend against using this as it is a hack and might not render correctly but it is included here for convenience.
Do not edit if you dont know what you are doing
*/
	.clearfix:after {
		content: "."; 
		display: block; 
		height: 0; 
		clear: both; 
		visibility: hidden;
	}
	* html>body .clearfix {
		display: inline-block; 
		width: 100%;
	}
	
	* html .clearfix {
		/* Hides from IE-mac \*/
		height: 1%;
		/* End hide from IE-mac */
	}

/* end clearing */
/* End of 'bernads : bernards Accessibility and cross-browser tools' */

