/* Start of CMSMS style sheet 'Layout: Master' */
/*****************
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;
}

/*** GLOBAL FONT STYLE SETTING ***/
body {
   text-align: left;
   font-family: sans-serif;
   font-size: small;
   line-height: 1em;
}

/* Set font attributes all divs, this overrides some body rules */
div {
   font-size: 1em;
   font-color: black;
}

/* If img is inside "a" it would have  borders, we don't want that */
img {
   border: 0;
}

/*** HYPERLINK STYLES ***/

/* Set all links to have underline and bluish colour */
a,a:link a:active {
   text-decoration: underline;
   background-color: inherit; 
   color: #03025B; 
}

/* Use a different colour can be used for visited links */
a:visited {
   text-decoration: underline;
   background-color: inherit;
   color: darkslategray;  
}

/* Remove underline on hover and change colour */
a:hover {
   text-decoration: none;
   background-color: #B8CDEF;
   color: #03025B;
}

/*** PAGE LAYOUT ***/

/* Background */
body {
   background-color: #d4d4d4;
   color: #333;
   margin: 1em; /* gives some air for the pagewrapper */
}

/* Header */
div#header {
   font-style: normal;
   background: #81aaf9;           
}

div#title {
   padding: 0.5em 0.5em 0.5em 0.5em;
   font-size: 2.0em;  
   font-weight: bold; 
   font-family: sans-serif;
   font-variant: small-caps;
}

div#search {
   float: right;
   width: 23em;     /* enough width for the search input box */
   text-align: right;
   padding: 0.6em 0 0.2em 0;
   margin: 0 1em;
}

div.breadcrumbs {
   padding: 0.5em 0 0.5em 0; /* CSS short hand rule first value is TOP, RIGHT,BOTTOM, LEFT*/
   font-size: 90%;  
   margin: 0 1em 0 1em; 
   /* border-bottom: 1px dotted black;*/
}

div.breadcrumbs span.lastitem { 
   font-weight:bold; 
} 

/* Main frame */
div#pagewrapper {
   background-color: white;
   color: black;
   border: 1px solid #81aaf9;
   margin: 0 auto;    /* Centre pagewrapper */
   width: 900px !important;
 }

div#content {
  margin: 0 0 0 0; /* some air above and under menu and content */
}

div#main {
  float: left;
  padding: 1em !important;
  width: 555px !important;
  /* border: 1px solid black;*/
}

div#image {
  float: left;
  vertical-align: top;
  /*padding: 0 1em 0 0 !important;*/
  padding: 0;
  width: 131px !important;
  /* border: 1px solid black;*/
}

div#diary {
  font-size: x-small;
  vertical-align: top;
  /* border: 1px solid black;*/
  padding: 1em !important;
  float: right;
  width: 160px !important;
}

div#sidebar {
   float: right;       /* Put sidebar on the right (change to left to float it left instead.) */
   /*display: inline;  FIX ie doublemargin bug */
   width: 315px !important;
   /* border: 1px dotted black;*/
}

div#footer {
   clear: both;       /* keep footer below content and menu */
   color: white;
   background-color: #81aaf9; 
}

div#footer p {
   font-size: 0.8em;
   padding: 0.5em;      /* some air for footer */
   text-align: center;   /* centered text */
   margin: 0;
}

div#footer p a {
   color: black; /* needed because 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 {
   height: 1px;
   margin: 1em;
   border-bottom: 1px dotted black;
}

/*** CONTENT STYLING ***/
div#content {
   color: black;
}

/*** HEADINGS ***/
div#content h1 {
   font-size: x-large;
   color: slategray;
   font-weight: bold
   text-transform: uppercase;
   line-height: 1.5em;
   /* some air around the text */
   padding-bottom: 1px;
   /* set borders around header */
   /* border-top: 1px solid #2d2b31; */
   border-bottom: 2px solid slategray;
   /* border-left: 1.1em solid #b8CDEF; */
   /* and some air under the border */
   margin: 0 0 0.5em 0;
}

div#content h2 {
   font-size: large;
   color: slategray;
   font-weight: bold;
   /*text-transform: uppercase;*/
   line-height: 1.2em;
   /* some air around the text */
   /* padding-left: 0.5em;*/
   padding-bottom: 1px;
   margin: 0 0 0.5em 0;
}

div#content h3 {
   font-size: medium;
   color: slategray;
   font-weight: bold;
   color: slategray;
   margin: 0 0 0.5em 0;
   padding-top: 2px;
}

div#content h4 {
   font-size: small;
   color: slategray;
   /*font-weight: lighter;
   text-transform: uppercase;*/
   margin: 0 0 0.25em 0;
}

div#content h5 {
   font-size: x-small;
   color: slategray;
   font-weight: lighter;
   text-transform: uppercase;
   margin: 0 0 0.25em 0;
}

/*** TEXT ***/
p {
   font-size: 1em;
   margin: 0 0 1em 0;  /* some air around p elements */
   line-height:1.25em;
   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 */
}

/*** 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;
}

/**** Images ****/
img {
  padding-right: 1em;
}



/* End of 'Layout: Master' */

/* Start of CMSMS style sheet 'Navication: CSSMenu Horizontal New' */
/* Horizontal navigation menu for website */
/* Menus are unordered lists */

#menu_vert {
   margin-left: 1px;
   margin-right: 1px;
}

/* The wrapper clears the floating elements of the menu */

/* Fix for Opera 8 */
.clearb { 
   clear: both;
}

#menuwrapper { 
   /* Fix for Opera 8 */ 
   /*   overflow: hidden;  */ 
   background-color: #81aaf9;
   width: 100%; 
}

/* Set the format of the lists and the items therein */ 

#primary-nav li { 
   margin-left: -1px;
   float: left; 
}

#primary-nav li li { 
   width: 140px;
   font-weight: normal;
   margin-left: 0px;
   margin-top: -1px;
   float: none; 
   position: relative; 
}

#primary-nav, #primary-nav ul { 
   list-style: none; 
   margin: 0px; 
   padding: 0px; 
}

#primary-nav ul { 
   position: absolute; 
   top: auto; 
   display: none; 
}

#primary-nav ul ul { 
   margin-top: 1px;
   margin-left: -1px;
   left: 100%; 
   top: 0px; 
}
	
/* Styling the basic appearance of the menu elements */

#primary-nav a { 
   display: block; 
   margin: 0px; 
   padding: 5px 10px; 
   text-decoration: none; 
   font-size: small;
   color: white;
}
#primary-nav li a { 
   /* Top level menu border - not used */
   /* border-right: 1px dotted black; 
    border-left: 1px dotted black;*/
}

#primary-nav li li a { 
   background-color: #B8CDEF; /* Colour of drop down menu items;*/
   border: 1px solid white;
}	

#primary-nav li, #primary-nav li.menuparent { 
  background-color: #81aaf9;  /* Main menu bar colour */
}

/* Styling the basic appearance of the active page elements (shows what page in the menu is being displayed) */

#primary-nav li.menuactive { 
   /*background-color: #fff;*/
   font-weight: bold; /* Selected tab */
}

/* Styling the basic appearance of the menu parents - here styled the same on hover (fixes IE bug) */
#primary-nav ul li.menuparent, 
#primary-nav ul li.menuparent:hover, 
#primary-nav ul li.menuparenth { 
  /* background-color: white; Tab when hovering on dropdown WITHOUT selected child */
}


/* Styling the appearance of menu items on hover */

#primary-nav li:hover, 
#primary-nav li.menuh, 
#primary-nav li.menuparenth, 
#primary-nav li.menuactiveh { 
   font-weight: bold;
}


/* The magic - set to work for up to a 3 level menu, but can be increased unlimited */

/* 
just add 
#primary-nav li:hover ul ul, 
#primary-nav li.menuparenth ul ul ul,
for fourth level 
*/
#primary-nav ul, 
#primary-nav li:hover ul, 
#primary-nav li:hover ul ul, 
#primary-nav li.menuparenth ul, 
#primary-nav li.menuparenth ul ul { 
   display: none; 
}

/* add 
#primary-nav ul ul ul li:hover ul, 
#primary-nav ul ul ul li.menuparenth ul,
for fourth level
*/
#primary-nav li:hover ul, 
#primary-nav ul li:hover ul, 
#primary-nav ul ul li:hover ul, 
#primary-nav li.menuparenth ul, 
#primary-nav ul li.menuparenth ul, 
#primary-nav ul ul li.menuparenth ul { 
   display: block; 
}


/* IE Hacks */
#primary-nav li li { 
   float: left; 
   clear: both; 
}
#primary-nav li li a { 
   height: 1%; 
}
/* End of 'Navication: CSSMenu Horizontal New' */

