/* Start of CMSMS style sheet 'Ambassadors Layout: 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;
}

html, body {
	height: 100%;
	min-height: 100%;
	text-align: center;
}

/*
Set initial font styles
*/
body {
   text-align: left;
   font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
   font-size: 11px;
   line-height: 18px;
}

/*
set font size for all divs,
this overrides some body rules
*/
div {
   font-size: 11px;
}

/*
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 a bluish color */
a,
a:link, 
a:active, 
a:visited {
   text-decoration: none;
/* css validation will give a warning if color is set without background color. this will explicitly tell this element to inherit bg colour from parent element */
   background-color: inherit; 
   color: #3366CC; 
}

/* change color on hover */
a:hover {
   text-decoration: none;
   color: #ffff00;
}

/*****************
basic layout 
*****************/
body {
                background-color: #3366CC;
                color: #CCC;
}
/* center wrapper, min max width */
div#pagewrapper {
                margin: 0 auto;       /* this centers wrapper */
                max-width: 920px;   /* IE wont understand these, so we will use javascript magick */
                min-width: 920px;
                color: #CCC;
                width: 920px;
                height: 100%;
}
* html #pagewrapper {
	height: 100%;
}
div#left {
	float: left;
	width: 60px;
	background: transparent url(uploads/images/side_left.jpg) no-repeat top right;
                height: 800px;
                min-height: 100%;
}
div#center {
	float: left;
                width: 800px;
                position: relative;
                background-color: #000;
}
div#right {
	float: right;
	width:60px;
	background: transparent url(uploads/images/side_right.jpg) no-repeat top left;
                min-height: 100%;
                height: 800px;
}
/*** header ***
hide text and replace it with a image
assign a height for it so that the image wont cut off
*/
div#header {
               width: 800px;
               height: 289px;    /* adjust according your image size */
               background: #000;           
}
div#header h1 a {
               background: #000 url(uploads/images/logo.jpg) top left no-repeat ; 
               height: 289px;             /* 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 */
               width: 800px;
               display: block;
}
div#title {
	height: 40px;
	text-align: left;
	width: 580px;
	float: right;	
}
div#main {
                float: right;
                background: #333;
                width: 580px; 
}
div#boxhead {
	background: #000 url(uploads/images/bg_top.jpg) no-repeat top;
	width: 580px;
	height: 40px;
}
div#boxleft {
	float:left;
	width:45px;
	background:#000 url(uploads/images/bg_left.jpg) repeat-y left top;
}
div#boxright {
	float:right;
	width:45px;
	background:#000 url(uploads/images/bg_right.jpg) repeat-y right top;
}
div#boxcontent {
	background:#333; 
	margin: 0 60px 0 60px;
	width: 460px; 
                min-height: 600px;
}
div#box {
	overflow:hidden;
	background:#333;
	width: 580px;
}
div#boxfooter {
	background: url(uploads/images/bg_btm.jpg) no-repeat;
	height: 50px;
	width: 580px;
}
div#boxleft, div#boxright, div#boxcontent {
	padding-bottom:32767px; 
	margin-bottom:-32767px;
}
div#sidebartop {
   float: left;        /* set sidebar on the left side. Change to right to float it right instead. */
   width: 220px;     /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX IE double margin bug */
   background:#000 url(uploads/images/nav_top.jpg) no-repeat left top;
   height: 55px;
}
div#sidebar {
   float: left;        /* set sidebar on the left side. Change to right to float it right instead. */
   width: 220px;     /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX IE double margin bug */
   position: absolute;
   top: 344px;
   left: 0;
}
div#sidebarbtm {
   float: left;        /* set sidebar on the left side. Change to right to float it right instead. */
   width: 220px;     /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX IE double margin bug */
   margin-left: 0;
   background:#000 url(uploads/images/nav_btm.jpg) no-repeat left bottom;
   height: 50px;
}
div#footer {
   clear: both;       /* keep footer below content and menu */
   color: #3366CC;
   background-color: #000; /* same bg color as in header */
}
div#footer p {
   font-size: 10px;
   padding: 10px;       /* some air for footer */
   text-align: center;  /* centered text */
   margin: 0;
   color: #3366CC;
}

div#footer p a {
   /*color: #ccc;  needed becouse footer link would be same color as background otherwise */
}

/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr, hr {
   height: 1px;
   padding: 1em;
   border-bottom: 1px dotted black;
   margin: 1em;
}

/* relational links under content */
div.left49 {
  width: 49%; /* 50% for both left and right might lead to rounding error on some browser */
}

div.right49 {
  float: right;
  width: 49%;
  text-align: right;
}




/********************
CONTENT STYLING
*********************/

/* HEADINGS */
h1 {
   font-size: 2em; /* font size for h1 */
   line-height: 1em;
   margin: 0;
   font-weight: bold;
}
h2 {
	color: #3366CC; 
	font-size: 1.5em; 
	text-align: left; 
                font-weight: bold;
}
div#title h2 {
	color: #3366CC; 
	font-size: 1.5em; 
	text-align: left; 
	padding-left: 60px;
	padding-bottom: 1px;
                font-weight: bold;
}

h3 {
   color: #3366CC; 
   font-size: 11px;
   line-height: 11px;
   margin: 0 0 0.5em 0;
   font-weight: bold;
}
h4 {
   color: #3366CC; 
   font-size: 12px;
   line-height: 18px;
   margin: 0 0 0.25em 0;
   font-weight: bold;
}
h5 {
   color: #3366CC; 
   font-size: 12px;
   line-height: 18px;
   margin: 0 0 0.25em 0;
}
h6 {
   color: #3366CC; 
   font-size: 11px;
   line-height: 11px;
   margin: 0 0 0.25em 0;
}
/* END HEADINGS */

/* TEXT */
p {
   text-align: left;
   font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
   font-size: 11px;
   line-height: 18px;
   color: #CCC;
   margin-top: 0em;
   margin-bottom: 2em;
}

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: Verdana, Geneva, Arial, Helvetica, sans-serif;
 font-size: 11px;
}

pre {
   border: 1px solid #000;  /* black border for pre blocks */
   background-color: #ddd;
   margin: 0 1em 1em 1em;
   padding: 0.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: 11px;
   line-height: 18px;
   margin: 0 0 1.5em 0;
}

div#main ul li,
div#main ol li {
   margin: 0 0 0.25em 0em;
}

/* 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 'Ambassadors Layout: Left sidebar + 1 column' */

