/* Start of CMSMS style sheet 'RIIMH css' */
/***************************************
Recovery Innovations International (Mental Health)
Main style sheet
(c) 2009
***************************************/


/*****************
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, Geneva, Helvetica, Verdana, sans-serif;
   font-size: 75.01%; /* set it ok for ie and ff */
   font-size: 0.9em;
   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 bluish color */
a,
a:link 
a:active {
   text-decoration: underline;
/* 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: #9F95FE; 
	font-weight: bold;
}

a:visited {
   text-decoration: underline;
   background-color: inherit;
  color: #D394FE;                /* a different color can be used for visited links */
}


/* remove underline on hover and change color */
a:hover {
   text-decoration: none;
   background-color: #E6FD1C;
   color: #D394FE;
}

/*****************
basic layout 
*****************/
body {
   background-color: #FFF;
   color: #6958FD;
   margin:0 1em 1em 1em;; *//* gives some air for the pagewrapper */
}

/* 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;
   background-color: transparent;
}


/*** header ***
we will hide text and replace it with a image
we need to assign a height for it
*/

div#header {
   height: 130px; /* adjust according your image size */   
   clear: both;
   margin-bottom: 0;

}

div#header h1 {
  vertical-align: middle; 
   height: 130px;
   background: #FFF url(uploads/images/template/RIIMHbgstripe.jpg) repeat-x top center; 

}



div#header h1 a {
/* you can set your own image here */
   display: block; 
   height: 130px;             /* 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 */
      line-height: 100px;
   outline: none;
   font-size: 0.6em;

}

#header a, #header a:active, #header a:visited, #header a:hover {
  color: #A79CFC;
  background: transparent;
  outline: none;
}



div#search {
  /* float: right;*/
  /* width: 50%;   */  /* enough width for the search input box */
   text-align: right;
   padding: 0.2em 1em  0 0.2em;
   margin: 0 1em;
}

div#search * {
	display: inline;
}

div.breadcrumbs {
   padding: 1em 0 1.2em 0; /* CSS short hand rule first value is top then right, bottom and left */
   font-size: 90%;             /* its good to set fontsizes to be relative, this way viewer can change his/her fontsize */
   margin: 0;              /* css shorthand rule will be opened to be "0 1em 0 1em" */
   padding: 1em 0 0.5em 1em;
   border-left: 1px solid #A79CFC;
   border-right: 1px solid #A79CFC;
}

 div.breadcrumbs span.lastitem { 
   font-weight:bold;
	color: #9F95FE;
 } 

 div#content {
   margin: 0 auto 2em 0; /* some air above and under menu and content */
   padding-top: 2em;

   border-left: 1px solid #A79CFC;
   border-bottom: 1px solid #A79CFC;
   border-right: 1px solid #A79CFC;
}

div#main {
   margin-left: 18%; /* this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
   margin-right: 2%; /* and some air on the right */
}


div#sidebar {
   float: left;  /* set sidebar on the left side. Change to right to float it right instead. */
   width: 15%;    /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX ie doublemargin bug */
   margin-left: 0;
}

/* if sidebar doesnt include menu but content add class="hascontent" */
div#sidebar.hascontent {
   padding: 0 1%;
   width: 2%;  /* make width smaller if there's padding, or it will get too wide for the floated divs in IE */
}

div#footer {
   clear:both;       /* keep footer below content and menu */
   color: #333;
   background-color: transparent; /* same bg color as in header */
   font-size: 0.8em;
   margin: 2em 0;
   line-height: 1.3em;
}

div#footer p {
   font-size: 0.8em;
   padding: 1.5em;      /* some air for footer */
   text-align: center; /* centered text */
   margin:0;
}

div#footer p a {
   color: #000; /* needed becouse footer link would be same color as background otherwise */
}

div#footerkeys {
  clear: both;
  text-align: center;
  margin: 1em 0;
}

/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr {
   height: 1px;
   margin: 1em;
   border-bottom: 1px dotted #9F95FE;
   clear: both;
}

/* relational links under content */
div.left49 {
  float: left;
  width: 46%;  /* 50% for both left and right might lead to rounding error on some browser */
  padding: 0 2%;
}

div.right49 {
  float: right;
  width: 49%;
  text-align: right;
}




/********************
CONTENT STYLING
*********************/
div#content {

}

/* HEADINGS */
div#content h1 {
  color: #6958FD;
  font-family: "Century Gothic", "Trebuchet MS", Helvetica, Arial, sans-serif;
   font-size: 1.8em;  /* font size for h1 */
   line-height: 1em;
   margin: 0;
}
div#content h2 {
   color: #D394FE;
  font-family: "Century Gothic", "Trebuchet MS", Helvetica, Arial, sans-serif;
//   font-size: 1.5em; 
   font-size: 20px; 
   text-align: left; 
/* some air around the text */
   padding-left: 0.5em;
   padding-bottom: 1px;
   margin: 0 0 0.5em 0;
}
div#content h3 {
   color: #6958FD; 
  font-family: "Century Gothic", "Trebuchet MS", Helvetica, Arial, sans-serif;
   font-size: 1.3em;
   line-height: 1.3em;
   margin: 0 0 0.5em 0;
}
div#content h4 {
   color: #FE95BF; 
  font-family: "Century Gothic", "Trebuchet MS", Helvetica, Arial, sans-serif;
   font-size: 1.2em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
div#content h5 {
   font-size: 1.1em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
h6 {
   font-size: 1em;
   line-height: 1.3em;
   margin: 0 0 0.25em 0;
}
/* END HEADINGS */

/* 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;
}
pre {
   font-family: monospace;
   font-size: 1.0em;
}
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%;   /* smaller font size, as these are usually not so important data */
}

/* END TEXT */

/* LISTS */
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 {
  list-style-type: none;
  background: transparent url(uploads/images/template/RIILogo-16x16.gif) no-repeat -3px 0;
  padding-left: 20px;
  padding-bottom: 0.5em;
}

div#main ul li,
div#main ol li {
   margin: 0 0 0.25em 3em;
}

div#dl dt {
   font-weight: bold;
   margin: 0 0 0.25em 3em;
}
div#dl dd {
   margin: 0 0 0 3em;
}
/* END LISTS */

/* UPLOADS TEMPLATE CSS */
table.uploadsSummaryTable {
  width: 100%;
}
table.uploadsSummaryTable td, table.uploadsSummaryTable th {
 vertical-align: top;
 padding: 0.3em;
}

table.uploadsSummaryTable th {
  width: 7em;
}

table.uploadsSummaryTable td.itemName, table.uploadsSummaryTable th.itemName {
 width: 50%;
}

table.uploadsSummaryTable form input {
  display: inline;
}

table#postage {
  margin-bottom: 1.5em;
}
table#postage td {
 padding: 0.2em;
}

/* COMPANY DIRECTORY */
.CompanyDirectoryItem, CompanyDirectoryCategory {
  margin: 0.5em 0 1em; 0;
}

/* PRODUCTS */


/* FORMS */

form {

}

#log, #reg {
 width: 80%;
 margin: 1em 0;
 text-align: left;
}


fieldset {
  padding: 1em;
  border: 1px solid #D394FE;
 line-height: 1.5em; 
}
legend {
  font-weight: bold;
  color: #FFFFFF;
  background-color: #D394FE;
  padding: 0.3em;
}

legend a, legend a:active, legend a:visited {
  color: #FFFFFF;
}

label {
  display: block; 
  width: 10em;
} 
.contactform div {
  width: 100%; 
  padding: 0.25em 0 0.25em 0;
}
.contactform div label {
  display: block; 
  width: 10em;
} 
.contactform div.required,div#reg div.required, div#log div.required {
  color: #A79CFC;
  font-weight: bold;
}
textarea {
display:block;
}

.prodLabel {
  display: block;
   float: left;
   width: 10em;
  font-weight: bold;
}

.gottaform {
  margin-top: 0;
  padding-top:0;

}

.gottaform .captcha {
  margin: 0.5em 0;
 
}
.gottaform label {
 width: auto;
 font-weight: bold;
 padding: 1em 0 0.5em 0;
}

.

.gottaform .submit {
  margin: 0.5em 0;
}

.gottaform div>input+label {
 font-weight: normal;
 display:inline;
}


/* jqModal confirm boxes */
div.jqmConfirm input[type="submit"] { padding: 4px; margin: 10px 30px; background: #000; color: #FFF; border: 1px solid #AAA; }

/* jqModal confirm CSS courtesy of;
   Alexandre Plennevaux <alexandre@pixeline.be>,
   Brice Burgess <bhb@iceburg.net> */

div.jqmConfirm { /* contains + positions the alert window */
  display: none;
  
  position: fixed;
  top: 17%;
  width: 100%;
}
    
/* Fixed posistioning emulation for IE6
     Star selector used to hide definition from browsers other than IE6
     For valid CSS, use a conditional include instead */
* html div.jqmConfirm {
     position: absolute;
     top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}

div.jqmConfirmWindow {
  height:auto;
  width: auto;
  margin: auto;
  
  max-width:400px;
  padding: 0 10px 10px;
  
  background:#FFF;
  border:1px dotted #FFF;
}

.jqmConfirmTitle{
  margin:5px 2px;
  height:20px;
  color:#000;
  background:#FFF;
}
.jqmConfirmTitle h1{
  margin:5px 2px;
  padding-left:5px;
  padding:0;
  font-size:14px;
  text-transform:capitalize;
  letter-spacing:-1px;
  font-weight:bold;
  color:#000;

  float:left;
  height:20px;
}

div.jqmConfirm .jqmClose em{display:none;}
div.jqmConfirm .jqmClose {
  width:20px;
  height:20px;
  display:block;
  float:right;
  clear:right;
  background:transparent url(confirm/close_icon_double.png) 0 0 no-repeat;
}

div.jqmConfirm a.jqmClose:hover{ background-position: 0 -20px; }

div.jqmConfirmContent{
  border-top:px;
  color:#000;
  font:11px/14pt arial;
  padding:5px 20px 5px;
  margin:5px;
  border:1px dotted #111;
  letter-spacing:0px;
  background:#FFF url(confirm/darkgrid.png);
}


/* End of 'RIIMH css' */

