html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1;
	color: black;
	background: white;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}


body {
margin: 0;
padding: 0;
background-color: #518d59;
color: white;
font: 1em Arial, Helvetica, sans-serif;
background: #111;
}

a { 
color: #fff;
font-weight: bold;
} 

a:visited {color: #fff;}
a:hover {color: #aaa;}



div#sky {
  height: 128px;
  background: url("../sky.cgi");
  padding: 0;
  margin: 0;
}

div#header {
  background: url("../images/horizon.png");
  height: 128px;
  margin: 0;
  top: 0;
  padding: 0;
  width: 100%;
  position: absolute;
}

div.weather {
  width: 100%;
  position: absolute;
  height: 128px;
  top: 0px;
}

div#weather-clouds-rain {
  background: url("../images/weather/clouds-rain.png");
}

div#weather-clouds-rain-night {
  background: url("../images/weather/clouds-rain-night.png");
}

div#weather-clouds-day {
  background: url("../images/weather/clouds.png");
}

div#weather-clouds-night {
  background: url("../images/weather/clouds-night.png");
}

div#main {
	padding: 20px;
	padding-top: 0px;
	margin-left: 12em;
	margin-top: 1em;
	margin-right: 200px;
}

div#footer {
clear: both;
text-align: right;
margin-right: 1em;
}

div#footer img {
border-style: none;
}

/*****
* Header
***/

div#header h1 {
font-size: 60px;
color: black;
text-align: left;
margin-top: 0;
margin-bottom: 0;
margin-left: 100px;
background: url("/images/rf_gold.png") no-repeat;
width: 449px;
height: 91px;
}

div#header h1 span {
display: none;
}

div#menu img {
border-style: none;
}

div#header img {
float: left;
margin-top: 17px;
margin-left: 550px;
}

/*****
* Top Menu
*****/

#topmenu a { 
color: #fff;
text-decoration: none;
line-height: 22px;
font-weight: normal;
} 

#topmenu a:visited {color: #fff;}
#topmenu a:hover {color: #aaa;}

#topmenu {  
font: .8em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
text-align: center;
background: #444;
margin-bottom: 5px;
color: #fff;
height: 22px;
}

/****
* Menu
****/
#menu { 
font: 1em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
width: 12em;
line-height: 1.4em;
float: left;
padding-top: 0px;
padding-left: 0.4em;
padding-right: 1em;
margin-top: 0em;
}

#menu ul {
padding-left: 0px;
}

#menu li { list-style: none; border-bottom: 1px dotted #fff;}
#menu li a {text-decoration: none; color: #FF9621;}
#menu li a:hover {color : #FFEB31;}

#menu ul li ul {
padding-left: 1em;
}

#menu li ul li { list-style: none; border-top: 1px dotted #fff; border-bottom: 0px;}

div#menu div#adsense {
    margin: 0 auto;
    width: 160px;
    height: 600px;
    padding: 0;
    margin-top: 1em;
}

div#main ul {
/*font: 1em monospace;*/
list-style: none;
padding-left: 1em;
margin-bottom: 1em;
}

div#main ul li:before {
content: "* ";
}

div#main ul#services {
text-align: center;
list-style: none;
}

div#main ul#services img {
border: 0;
}

div#main p, div#main h1 {
font-family: monospace;
font-size: 1em;
margin-left: 1.5em;
font: 1em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
margin-top: 1em;
line-height: 1.3em;
}

div#main h3 {
margin-left: 0.5em;
font: 1.8em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
text-align: left;
margin-bottom: 40px;
color: #fff;
margin-top: 0.5em;
font-weight: bold;
}
div#main h4 {
font: 1.5em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
margin-left: 1em;
font-weight: bold;
margin-top: 1em;

    margin: 0;
    padding: 0.2em;
    background-image: url("../images/header_gradient.png");
    background-repeat: repeat-x;
    margin-top: 1em;
    margin-left: 0.8em;
    margin-right: 0.8em;

}
div#main h5 {
font: 1.4em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
margin-left: 1.5em;
font-weight: bold;
margin-top: 1em;
}

/*div#main span.start:before {
font-weight: bold;
content: "visitor@www.rossfenning.co.uk:~$ cat 'page.txt'";
}

div#main span.end:after {
font-weight: bold;
content: "visitor@www.rossfenning.co.uk:~$ _";
}*/


/****
* Sidebar
****/
#sidebar {
text-align: center; 
font: 1em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
width: 200px;
line-height: 1.4em;
float: right;
/*background:url(/photo.cgi) no-repeat 100% 0;*/
padding-top: 0px;
padding-right: 8px;
}

.sides {
    background-repeat: no-repeat;
    text-align: center;
    width: 184px;
    margin-bottom: 1em;
}

.sides h2 {
font: 2em "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
}

#blog ul li {
    width: 184px;
    height: 60px;
    background-image: url(/images/blob.png);
    position: relative;
}

#blog ul li:last-child {
    height: 92px;
}

#blog ul li a {
    display: block;
    position: absolute;
    top: 50%;
    height: 4em;
    margin-top: -1.3em;
    width: 100%;
    text-decoration: none;
}

.cb {
        margin:0.5em 0;
        margin-top: -40px;
}
/* Rules for the top corners and border */
.bt {
        background:url(/images/box_gorilla.png) no-repeat 100% 40px;
        margin:0 0 0 30px;
        height:67px;
}
.bt div {
        height:67px;
        width:30px;
        position:relative;
        left:-30px;
        background:url(/images/box_gorilla.png) no-repeat 0 40px;
}

.bt h2 {
float: right;
width: 100%;
text-align: center;
font: 14px monospace;
margin-top: 17px;
font-weight: bold;
margin-right: 30px;
}

/* Rules for the bottom corners and border */
.bb {
        background:url(/images/box_gorilla.png) no-repeat 100% 100%;
        margin:0 0 0 20px;
        height:17px;
}
.bb div {
        height:17px;
        width:20px;
        position:relative;
        left:-20px;
        background:url(/images/box_gorilla.png) no-repeat 0 100%;
}

/* Insert the left border */
.i1 {
        padding:0 0 0 12px;
        background:url(/images/border_gorilla_left.png) repeat-y 0 0;
}
/* Insert the right border */
.i2 {
        padding:0 12px 0 0;
        background:url(/images/border_gorilla_right.png) repeat-y 100% 0;
}
.i3 {
        background:#000;
        border:1px solid #000;
        border-width:1px 0;
        padding:0;
	padding-bottom: 2em;
/*	background: #000 url(/photo.cgi) no-repeat 50% 50%;*/
}

div.portfolioitem {
float: left;
padding: 0;
width: 50%;
height: 400px;
text-align: center;
}

div#main div.portfolioitem h4, div#main div.portfolioitem p {
margin: 0;
margin-bottom: 0.2em;
}

div#main div.portfolioitem p {
    margin-left: 1em;
    margin-right: 1em;
}

div.portfolioitem h4 {
margin: 0;
}

div.portfolioitem p.portfoliourl a {
font-size: 10pt;
}

div.portfolioitem a img {
    border: 1px white solid;
}

div.photos {
float: right;
margin-left: 1em;
overflow: hidden;
height: 60px;
}

div.photos img {
border: 0;
}

div.story {
    margin-bottom: 1em;
    padding-bottom: 0;
    margin-left: 1em;
    margin-right: 1em;
}

div.story div.story_footer {
    height: 30px;
    background: url("../images/header_gradient") repeat-x 0 -40px;
    padding-top: 5px;
}


div#main div.story p:first-child {
    text-indent: 0;
}

div#main div.story p {
    padding: 0;
    margin: 0;
    margin-bottom: 1em;
    text-indent: 1em;
    font-size: 1.0em;
    line-height: 140%;
}

div#main div.story p.category {
padding-left: 1em;
text-align: right;
font-style: italic;
margin: 0;
margin-right: 1em;
}

div#main div.story h4 {
    margin: 0;
}

div#main h4 a {
    text-decoration: none;
}

div.story div.story_body {
    margin: 0;
    margin: 1em;
    padding: 1em;
    border-left: 1px grey solid;
}

div#main pre {
    margin-left: 1em;
    margin-right: -1em;
    border: 1px dashed white;
    font-family: monospace;
    margin-bottom: 1em;
    padding: 0;
    padding-left: 1em;
    padding-bottom: 1em;
}