﻿/* LAYOUT Stylesheet */

/* column container */
.colmask {
	position:relative;	/* This fixes the IE7 overflow hidden bug */
	clear:both;
	float:left;
	width:100%;	/* width of whole page */
	overflow:hidden;	/* This chops off any overhanging divs */
}
/* common column settings */
.colmid,
.colleft {	float:left;
	width:100%;			/* width of page */
	position:relative;
}
.main,
.sidebar,
.ads {	float:left;
	position:relative;
	padding:0 0 0em 0;	/* no left and right padding on columns, just make them narrower instead only padding top and bottom is included here, make it whatever value you need */
	overflow:hidden;
}
/* 3 Column settings */
.threecol {
	/* background colour */
}
.threecol .colmid {
	right:0px;		/* width of the right column */
	/* center column background colour */
}
.threecol .colleft {
	right:788px;		/* width of the middle column */
	/* left column background colour */
}
.threecol .main {
	width:776px;	/* width of center column content (column width minus padding) */
	left:986px;		/* 100% plus left padding of center column */
}
.threecol .sidebar {
	width:186px;	/* Width of left column content (column width minus padding on either side) */
	left:18px;		/* width of (right column) plus (center column left and right padding) plus (left column left padding) */
	/* right column background colour */
}

.picture-left {
  margin: 5px 10px;
  float: left;
}

.picture-right {
  margin: 5px 10px;
  float: right;
}

/*****************
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, sans-serif; 
/*   font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;  */
}

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

/* 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; }
a:visited { text-decoration: underline; }
/* remove underline on hover and change color */
a:hover { text-decoration: none; }

/*****************
basic layout 
*****************/
body {
   margin: 0;    /* gives some air for the pagewrapper */
}

/* center wrapper, min max width */
div#pagewrapper {
   margin: 0 auto;       /* this centers wrapper */
   margin-top: 0.5em;
   max-width: 980px;   /* IE wont understand these, so we will use javascript magick */
   min-width: 980px;
}

/*** 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 {
  height: 72px;     /* adjust according your image size */
  font-size: 16px;
  font-weight: bold; }

div#header h1 a {
  display: block; 
  height: 72px;       /* adjust according your image size */ 
  padding-top: 1px;
  font-size: 24px ;  /* font size for h1 */
  font-weight: bold;
  text-indent: 8px; 
  text-align: center;
  text-decoration:none; }

div#header h2,
div#header h2 a {
  display: block; 
  background-color: transparent;
  font-size: 14px ;  /* font size for h2 */
  font-weight: bold;
  text-align: center;
  text-decoration:none;  }

/* position for the search box */
div#search {
   font-size: 12px; 
   float: right;
   width: 390px;    /* enough width for the search input box */
   text-align: right;
   padding: 0.4em 0 0.02em 0;
   margin: 0 1em;
}
/* This makes firefox look like IE and Chrome */
input {
   font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
   font-size:13px;
}

div.breadcrumbs {
   padding: 1.2em 0 1.2em 0; /* CSS short hand rule first value is top then right, bottom and left */
   font-size: 11px;        /* its good to set fontsizes to be relative, this way viewer can change his/her fontsize */
   margin: 0 1em;        /* css shorthand rule will be opened to be "0 1em 0 1em" */
}

div.breadcrumbs span.lastitem { font-weight:bold; } 

div#content {
   margin: 1.5em auto 2em 0;   /* some air above and under menu and content */
   clear: both;
}
/* keep footer below content and menu */
div#footer { clear: both; }

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

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

/* 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
*********************/
div#content { }

/* HEADINGS */
div#content h1 {
   font-size: 18px; /* font size for h1 */
   line-height: 1em;
   margin: 0;
}
div#content h2 {
	font-size: 1.5em; 
	text-align: left; 
/* some air around the text */
	padding-left: 0.5em;
	padding-bottom: 1px;
/* set borders around header */
  line-height: 1.5em;
/* and some air under the border */
  margin: 0 0 0.5em 0;
}
div#content h3 {
   font-size: 1.3em;
   line-height: 1.3em;
   margin: 0 0 0.5em 0;
}
div#content h4 {
   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;  */
  font-size: 13px;
  margin: 0 0 1em 0; /* some air around p elements */
  line-height: 16px;
  padding: 0;
}

blockquote { margin-left: 10px; }
/* explicit setting for these */
strong, b { font-weight: bold; }
/* explicit setting for these */
em, i { 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 {
  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 li,
div.main ol li,
div.main dl {
  font-size: 12px;
  margin: 0 0 .5em 2.5em; }

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

