/* Start of CMSMS style sheet 'dms : 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;
}
/* colors for external links */
a.external:link {
  color: #f17c06;
}
a.external:visited {
  color: #f17c06; /* a different color can be used for visited external links */ 
}

a.external:hover {
  color: #f17c06;
}
/* 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 'dms : Accessibility and cross-browser tools' */

/* Start of CMSMS style sheet 'dms : simple vertical' */
/********************
MENU
*********************/
#menu_vert {
   padding: 0;
   margin: 0;
   background: #fc8108 url(uploads/dms/topnav_bg.png) no-repeat 0 bottom;
   border-bottom: 1px solid #a65605;
   text-align: right;
}

#menu_vert ul {
   margin-top: 14px;
   margin-bottom: 50px;
   font-size: 1em;
}

#menu_vert ul ul {
   margin-top: 0;
   margin-bottom: 10px;
}

/* third level has some padding to have it stand out */
div#menu_vert ul ul ul {
   padding-bottom: 0.5em;
}

/* menu li block */
#menu_vert li {
   list-style: none;
   margin: 0;
   display: block;
}

#menu_vert ul ul li {
   border: none;
}

/** 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 {
   text-decoration:none;           /* no underline for links */
   display: block;                 /* IE has problems with this, fixed above */
   padding: 1.1em 1.1em 0.4em 0.2em; /* some air for it */
   color: #fff;                    /* this will be link color for all levels */ 
   min-height:1em;                 /* Fixes IE7 whitespace bug */
   font-weight: normal; 
}

/* next level links, more padding and smaller font */
div#menu_vert ul ul a {
   font-size: 90%;
   padding: 0.2em 1.2em 0.2em 0.2em;
   background-position: 1.5em center;
   color: #194b6a;
}

/* third level links, more padding */
div#menu_vert ul ul ul a {
   padding: 0.2em 1.2em 0.2em 0.2em;
   color: #194b6a;
}

/* hover state for top level links */
div#menu_vert a:hover {
   color: #194b6a;
   background: url(uploads/dms/nav_marker.gif) no-repeat 143px 1.2em;
}
/* hover state for second level links */
div#menu_vert ul ul a:hover {
   color: #194b6a;
   background: url(uploads/dms/nav_marker.gif) no-repeat 143px center;
}
div#menu_vert a.activeparent:hover {
   background-color: transparent;
   background-position: 143px 1.15em; 
   color: #18507C;
}

/* 
active parent, that is the first-level parent 
of a child page that is the current page 
*/
div#menu_vert li a.activeparent {
   background: url(uploads/dms/nav_marker.gif) no-repeat 143px 1.15em; 
   background-color: transparent;
   padding: 1.0em 1.1em 0.4em 0.2em;
   color: #194b6a;
}

div#menu_vert ul ul li a.activeparent {
   /*background-position: 1.5em center; */
   background-color: transparent;
   color: #194b6a;
}


/* 
current pages in the default Menu Manager 
template are unclickable. This is for current page on first level 
*/
div#menu_vert ul h3 {
   background: url(uploads/dms/nav_marker.gif) no-repeat 143px center;
   background-color: transparent;
   display: block; 
   padding: 0.8em 1.1em 0.8em 0.2em;  /* some air for it */
   color: #194b6a;                     /* this will be link color for all levels */
   font-size: 1em;                  /* instead of the normal font size for <h3> */
   font-weight: bold;
   margin: 0;                       /* as <h3> normally has some margin by default */
}

/* 
next level current pages, more padding, 
smaller font and no background color or bottom border 
*/
div#menu_vert ul ul h3 {
   font-size: 90%;
   padding: 0.2em 1.1em 0.1em 0.2em;
   background-position: 143px center;
   background-color: transparent;
   border-bottom: none;
   color: #194b6a;     
}

/* current page on third level, more padding */
div#menu_vert ul ul ul h3 {
   padding: 0.2em 1.1em 0.2em 0.2em;
   background: url(uploads/dms/nav_marker.gif) no-repeat 143px center; 
}

/* 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 'dms : simple vertical' */

/* Start of CMSMS style sheet 'dms : 3 columns' */
/*****************
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 {
   text-align: left;
   font-family: Arial, Helvetica, sans-serif;
   font-size: 75.01%;
   line-height: 1em;
}

/*
set font size for all divs,
this overrides some body rules
*/
div {
    font-size: 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 red 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: #f17c06;
   font-weight: bold; 
}

a:hover {
   text-decoration: underline;
}

.clear {
   clear: both;
}

/*****************
basic layout 
*****************/
body {
   background: #f5bb82;
   color: #000;
   margin:0;    /* gives some air for the pagewrapper */
}

/* center wrapper, min max width */
div#pagewrapper {
   margin: 0 auto;       /* this centers wrapper */
   max-width: 963px;   /* IE wont understand these, so we will use javascript magick */
   min-width: 963px;
background: #f5bb82 url(uploads/dms/content_bg.gif) repeat-y 63px 0;
   color: #000;
   /*padding: 84px 0 0 0;*/
}


/*** 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_wrapper {
width: 963px;
background: #f5bb82 url(uploads/dms/wrapper_bg.png) no-repeat 1px 0;
padding: 84px 0 0 0;
}

div#header {
   height: 128px;    /* adjust according your image size */
   width: 900px;
   background: transparent;
   margin-left: 63px;
   /*border-bottom: 13px solid #194b6a; */          
}

div#header h1 a {
/* set logo image here */
   background: transparent url(uploads/dms/logo.png) no-repeat 0 0; 
   display: block;
   height: 128px;            /* 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#blue_bar {
   height: 13px;
   width: 900px;
   background: #194b6a;
   margin-left: 63px;
}

/**** CONTENT ****/ 

 div#content {
   margin: 0 auto 0 63px;   /* some air below menu and content */
   background: #f5bb82 url(uploads/dms/content_bg.gif)repeat-y 0 0; 
}


div#main {
        float: left;
	width: 544px;
	margin: 0;
	padding-bottom: 20px;
	background: #fff;
}

div#main p {
        margin-left: 62px;
	margin-right: 85px;
}

div#sidebar {
   float: left;        /* set sidebar on the left side. Change to right to float it right instead. */
   width: 153px;       /* sidebar width, if you change this please also change #main margins */
   display: inline;    /* FIX IE double margin bug */
   margin-left: 0;
   background: #fc8108;
}

/**** Fixed sidebar nav ****/

div#secondary_nav {
   text-align: right;
   font-size: 10px;
   border-top: 1px solid #f59e48;
   background: #f17c06 url(uploads/dms/secondary_nav_bg.gif) no-repeat 0 bottom;
   padding-bottom: 1px;
}

div#secondary_nav ul {
   margin: 4px 0;
   padding: 0;
}

#secondary_nav li {
   list-style: none;
   margin: 0;
   display: block;
}

#secondary_nav a {
   text-decoration: none;
   display: block;
   padding: 0.5em 1.1em 0.5em 0.2em;
   color: #fff;
   min-height:1em;
}

#secondary_nav a:hover {
   color: #194b6a;
}

/**** Right sidebar ****/

div#rightsidebar {
   float: right;
   width: 200px;
   background: #fff;
   color: #000;
   font-size: 11px;
}

div#rightsidebar p {
   margin: 0;
}

div#rightsidebar img {
   margin-top: 82px;
   border: 1px solid orange;
}

div#footer {
   clear: both;       /* keep footer below content and menu */
   height: 167px;
   color: #fff;
   background: #f5bb82 url(uploads/dms/main_footer_bg.gif) no-repeat 0 0;
   font-size: 0.8em;
   margin-left: 63px;
}

div#footer_content {
   text-align: center;
   width: 159px;
   padding: 32px 0 0 0;
}

div#footer a {
	color: #fff;
	text-decoration: none;
}

div#footer a:hover, #footer a:active {
	color: #194b6a;
	text-decoration: none;
}


/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr {
   height: 1px;
   margin: 1em 18px 0.5em 18px;
   border-bottom: 1px solid #4cccff;
}

/* 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;
}

div.morelink {
font-weight: bold;
margin-left: 1em;
padding-left: 14px;
height: 12px;
background: url(uploads/dms/morelink_bg.gif) no-repeat 0 center;
}



/********************
CONTENT STYLING
*********************/
div#content {

}

.hidden {
	visibility: hidden;
}

/* HEADINGS */
div#content h1 {
   font-size: 2em; /* font size for h1 */
   line-height: 1em;
   margin: 0;
}
div#content h2 {
	color: #194b6a; 
	font-size: 1.9em; 
        font-weight: normal;
	text-align: left; 
	line-height: 1.2em;
        margin: 28px 85px 40px 62px;
        text-transform: uppercase;
}

div#content h3 {
   color: #194b6a; 
   font-size: 1.6em;
   font-weight: normal;
   line-height: 1.6em;
   margin: 0 85px 0.5em 62px;
}

div#content h4 {
   color: #000; 
   font-size: 1.2em;
   line-height: 1.3em;
   margin: 0 85px 0.25em 62px;
}

div#content h4.orange {
   color: #f28517;
}

div#content h4.orange_right {
   color: #f28517;
   text-align: right;
}

div#content h5 {
   color: #000; 
   font-size: 1.1em;
   line-height: 1.3em;
   margin: 0 85px 0.25em 62px;
}
h6 {
   color: #000; 
   font-size: 1em;
   line-height: 1.3em;
   margin: 0 85px 0.25em 62px;
}
/* END HEADINGS */

/* TEXT */
p {
   font-size: 1em;
   margin: 0 0 1.5em 0; /* some air around p elements */
   line-height: 1.4em;
   padding: 0;
}

.subhead_blue {
   color: #194b6a; 
   font-size: 1.2em;
}

.blue {
   color: #194b6a;
}

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 42px;
}

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;
}


div#main .boxout ul {
	margin: 0 8px;
        padding: 0;
}

div#main .boxout li {
	height: 16px;
	background: url(uploads/dms/yelo_bullet.gif) top left no-repeat;
        margin: 0;
	padding: 2px 0 4px 20px;
	list-style: none;
}

/* FOOTER */


div#footer ul {
        font-size: 11px;
	margin-bottom: 14px;
}

div#footer li {
	display: inline;
	margin-right: 10px;
	padding-right: 12px;
	border-right: 1px solid #7f929e;
}

div#footer li.last {
	margin-right: 0;
	padding-right: 0;
	border-right: none;
}


/* END LISTS */

/* Tables */

#donation {
border: none;
width: 391px;
margin: 0 0 20px 62px;
background: #FCEDDF;
padding: 16px;
line-height: 16px;
}

#donation td {
padding: 4px 0;
vertical-align: top;
}

#donation td.legend {
font-weight: bold;
}

#donation td.pad {
padding-bottom: 22px;
}

/* MISC */
div#flashcontent {
        margin-left: 62px;
        margin-bottom: 12px;
}

div#donatebox {
margin: 16px 0;
}

div#donatebox h4 {
   color: #fff; 
   font-size: 1.2em;
   line-height: 1.3em;
   margin: 0 11px 8px 11px;
text-align: center;
}
  
/* End of 'dms : 3 columns' */

/* Start of CMSMS style sheet 'dms : page specific styles' */
/* Custom styles */

/* Home Page specific styling */
#home div#content {
	background: #f5bb82 url(uploads/dms/home_bg.jpg) no-repeat 0 0;
}

#home div#main {
        width: 588px;
        background: transparent ;
}

#home div#main p {
        padding-top: 324px;
        margin-bottom: 0;
        text-align: center;
}

#home div#main a {
        font-size: 11px;
        font-style: italic;
        font-weight: normal;
        color: #194b6a;
}

#home div#main a:hover {
}

#home div#sidebar {
        /*height: 460px;*/
}

#home div#rightsidebar {
        width: 159px;
        background: #f17c06;
        color: #fff;
}
#home div#rightsidebar img {
        margin-top: 62px;
        border: none;
}
#home div#rightsidebar p.caption {
        margin: 2px 0 0 0;
        font-style: italic;
        text-align: center;
}

#home div#rightsidebar div#donatebox img {
        margin-top: 0;
        border: none;
}

#home div#rightsidebar div#donatebox {
text-align: center;
        margin: 22px 0 0 0;
}

#home div#header, #information div#header {
        background: url(uploads/dms/header_bg_home.jpg) no-repeat right top;
}

#home div#footer {
        height: 83px;
        background: #f5bb82 url(uploads/dms/footer_bg.gif) no-repeat right top;
}

#home div#footer_content {
        padding-top: 0;
}

div#address_block {
        text-align: center;
        padding: 63px 0 0 0;
        font-size: 0.8em;
        color: #fff;
        background: #f17c06 url(uploads/dms/address_bg.gif) no-repeat left bottom;
}

#home div#address_block {
        padding: 105px 0 0 0;
}

/***** level 1 *****/
/* page ids will need changing */
#mission div#header {
	background: url(uploads/dms/header_bg_mission.jpg) no-repeat right top;
}

#work div#header {
	background: url(uploads/dms/header_bg_work.jpg) no-repeat right top;
}

#share div#header {
	background: url(uploads/dms/header_bg_share.jpg) no-repeat right top;
}

#life_level_1 div#header {
	background: url(uploads/dms/header_bg_life.jpg) no-repeat right top;
}


#life_level_1 div#content{
        background: #d2dfe7 url(uploads/dms/community_bg.jpg) no-repeat right 0;
}

#life_level_1 div#main, #life_level_1 div#rightsidebar{
        background: transparent;
}

#life_level_1 div#footer {
        height: 83px;
        background: #f5bb82 url(uploads/dms/footer_bg.gif) no-repeat right top;
}

#life_level_1 div#footer_content {
        padding-top: 0;
}

/***** level 2 *****/
#life div#header {
	background: url(uploads/dms/header_bg_life.jpg) no-repeat right top;
}

/***** gallery pages *****/
#gallery div#main h2 {
        margin-bottom: 0.6em;
}

#gallery div#header {
	background: url(uploads/dms/header_bg_work.jpg) no-repeat right top;
}
/* End of 'dms : page specific styles' */

