/* Start of CMSMS style sheet 'Macsmith_Home_Page_Layout' */
/* Macsmith Home Page CSS Layout */

/*****************
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;
}

/* Shadow background */
/* Header with macsmith logo */

#header {
	width: 865px;
        height: 68px;
	background:url(images/macsmith/image_top_shad_home.jpg) no-repeat;
	padding-top: 20px;
	padding-right: 20px;
	padding-left: 20px;
}

#menu_bkgnd{
    width: 905px;
    height: 25px;
    background:url(images/macsmith/image_menu_shad.jpg) repeat-y;
}

/* Content shadow */
#content{
	width: 860px;
	background:url(images/macsmith/image_main_shad.jpg) repeat-y;
	padding-right: 23px;
	padding-bottom: 5px;
	padding-left: 23px;
    float:left; /*this is required to continue the shadow for full page height*/
}

/*Sidebar colour*/
#sidebar{
        background-color: #F8FAFA;
}

/* footer shadow */
#footer{
	width: 857px;
	background:url(images/macsmith/image_bottom_shad.jpg) no-repeat;
	padding-right: 24px;
	padding-bottom: 30px;
	padding-left: 24px;
}

/*Basic FONT and link set up*/
/*Set initial font styles*/
body {
   text-align: left;
   font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
   font-size: 75.01%;
   line-height: 1em;
   color: #000000;
}

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

/*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 red 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: #D62929; 
}

a:visited {
   text-decoration: underline;
   background-color: inherit;
   color: #D62929; 
}

/* remove underline on hover and change color */
a:hover {
   text-decoration: underline;
   color: #666666;
}

/*****************
basic layout 
*****************/
body {
	margin-left: auto;
	margin-right: auto;
	width: 905px;
        padding: 20px 0px 20px 0px;
        background-color: #FFF;
}

/* secondary_nav top right*/
div#secondary_nav_search_container {
   float: right;
   width: 40em;     /* enough width for the secondary_nav and search */
}

/* secondary_nav top right*/
div#secondary_nav {
   float: right;
   width: 39em;     /* enough width for the secondary_nav text */
   text-align: left;
   color:#FFFFFF;
   font-size:0.76em;
   padding: 0.6em 0 0em 0;
   margin: 0 0;
}

/* secondary_nav link setup*/
a.secondary_nav:link {
   color: #FFFFFF;
   text-decoration: none;
}

a.secondary_nav:visited {
   text-decoration: none;
   color: #FFFFFF;
}

a.secondary_nav:hover {
   color: #FFFFFF;
   text-decoration: underline;
}
/* end secondary_nav link setup*/

/* search bar top right*/
div#search {
   float: right;
   width: 30em;     /* enough width for the search input box */
   text-align: right;
   padding: 1.5em 0.5em 0em 0;
   margin: 0 0.2em;
}

input.button {
border:none;
color:#FFFFFF;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 95.01%;
background-color: #2e358d;
width: 22px; /* the width of my image */
height: 16px; /* the height of my image */
}

#cntnt01searchinput {
border: 1px inset #2e358d; /* Set explicitly to override the border:none above*/
color:#2e358d;
background-color: #FFFFFF;
width: 12em; /* width and height to override the settings above*/
height: 1.4em;
}

/* 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: #fff;
}

div#home_left{
   padding-left:1.5%;
   width:64%;
   float:left;
}

div#home_right{
   padding-left:1.5%;
   margin-left: 68%;
   border-left: 1px solid #2d348c;
}

div#main {
   padding-top:1.5%;
   padding-bottom:1.5%;
   margin-left: 0%; /* and some air on the right */
   margin-right: 0%; /* this will give room for sidebar to be on the right side, make sure this space is bigger than sidebar width */
}

div#sidebar {
   float: right;  /* set sidebar on the right side. Change to right to float it right instead. */
   width: 26%;    /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX ie doublemargin bug */
   margin-left: 0;
   margin-right:0%;
   border-left: 1px solid #2d348c;
}

/* if sidebar doesnt include menu but content add class="hascontent" */
div#sidebar.hascontent {
   padding: 0% 1%;
   width: 24%;  /* 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 */
   padding-top:3px;
   color: #7f8c9f;
}

div#footer p {
   font-size: 0.8em;
   /* padding: 0.5em;       some air for footer */
   text-align: center; /* centered text */
   margin:0;
}

/* footer link setup */
a.footer:link {
   color: #7f8c9f;
   text-decoration: none;
}

a.footer:visited {
   text-decoration: none;
   color: #7f8c9f;
}

a.footer:hover {
   color: #7f8c9f;
   text-decoration: underline;
}
/* end footer link setup */

/********************
CONTENT STYLING
*********************/
div#content {

}

/* HEADINGS */
div#content h1 {
   color: #D62929; 
   font-size: 1em; 
   text-align: left;
   padding-bottom:2px;
}
div#content h2 {
   color: #000000; 
   font-size: 1em; 
   text-align: left; 
   font-weight: bold;
   padding-bottom:2px;
}
/* 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 #666;  /* black border for pre blocks */
   background-color: #EAF0F0;
   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,
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 */

/* End of 'Macsmith_Home_Page_Layout' */

