* {margin:0; padding: 0;}
body {
    font: 12px/2 Verdana, Helvetica, Arial, sans-serif;
    color: #000;
    text-align:center;
    background:#FFF;
    /* Need to specify both of the following for some reason. */
    margin:0;
    padding:0;
}
#page {
    border-right:5px dotted #f2f2f2;
    width:500px;
    text-align: left;
    padding: 5px 20px 0 20px;
    margin: 0 auto;
    _padding-left:200px; /* IE not understanding child selectors */
    position: relative;
}
#page #logo {
    background:transparent url(img/design/newlogo.gif) no-repeat left top;
    display:block;
    position:absolute;
    top:0;
    left:-186px;
    _left: 0;
    width:186px;
    height:134px;
}
page * { position: relative; }
.margin {
    position: absolute;
    left: 567px;
    width: 200px;
    font-size: 10px;
    line-height: 1.5;
    padding-top: 4px;
    color: #999;
}

a:link {color: #333}
a:visited {color: #666}
a:hover {color: #000}
p {margin:12px 0;}
h1, h2, h3, h4, h5, h6 {margin:3px 0;}
h1 {
    background:transparent url(img/design/4diamond.gif) no-repeat left center;
    font: 1.8em/1 "Trebuchet MS", Helvetica, Arial, sans-serif;
    padding-left: 25px;
}
h3, h4 {font-size:1em; margin-top:3px;}
dl dt {
    font-weight:bold;
    margin-top:5px;
    border-top: 1px solid #e6e6e6;
    padding-top: 5px;
}
dl dt:first-child {border-top: 0;}
dl dt a {display: block;}
dl dd {margin:0 0 5px 0;}
ul {
    list-style: url(img/design/list.gif);
    padding-left:2em;
}
ol { padding-left: 2em; }
blockquote {
    border-left:1px solid #e6e6e6;
    margin:0 20px;
    padding-left:2em;
}
hr { border: 1px solid #e6e6e6; margin: 25px 0; }
img.shadow { box-shadow: 0px 0px 5px #888; }
a img {margin:12px 0; border:1px solid #CCC;}
dd a img {margin:0;}
pre {font-size:1.1em; margin-bottom:10px; overflow: auto;}
pre code {
    display: block;
    border: 1px solid #e6e6e6;
    background-color: #f2f2f2;
    padding: 10px 10px 10px 30px;
}
.center {
    text-align: center;
}
table { border-collapse: collapse; }
table td, table th {padding: 2px 8px; border-bottom: 1px solid #eee;}
#footer {
    background: #f2f2f2;
    border: 1px solid #e6e6e6;
    padding: 5px 10px;
    margin-top: 20px;
    color:#888;
    font: 1em/1.8 Arial, Helvetica, Verdana, sans-serif;
    clear:both;
}
#footer a {color:#888}

/* fancy github buttons */
#page .gitforked-button-container {
    font-size: inherit;
}

/* Fancy jquery gallery */
.browsher {background-color:#eee; text-align:center; margin:15px 0;}
.browsher h3.error {color:#f00; font-size:150%;}
.browsher img {border:1px solid #ccc; margin:15px 0;}
.browsher-controls a, .browsher-controls span { display:inline-block; width:20%; font-size: 175%; }
.browsher-controls span { color: #999; }
.browsher-controls a:hover, .browsher-controls a:active {background:#ccc;}
ul.browse {list-style:none; margin-left:0; padding:0;}

/* Google site search */
.gsc-control-cse {
    font-family: Verdana, sans-serif;
    border-color: #FFFFFF;
    background-color: #FFFFFF;
}
input.gsc-input {
    border-color: #CCC;
    padding: 3px;
}
.gsc-tabHeader.gsc-tabhInactive {
    border-color: #777777;
    background-color: #777777;
}
.gsc-tabHeader.gsc-tabhActive {
    border-color: #333333;
    background-color: #333333;
}
.gsc-tabsArea {
    border-color: #333333;
}
.gsc-webResult.gsc-result,
.gsc-results .gsc-imageResult {
    border-color: #FFFFFF;
    background-color: #FFFFFF;
}
.gsc-webResult.gsc-result:hover,
.gsc-webResult.gsc-result.gsc-promotion:hover,
.gsc-imageResult:hover {
    border-color: #EEE;
    background-color: #FFFFFF;
}
.gs-webResult.gs-result a.gs-title:link,
.gs-webResult.gs-result a.gs-title:link b,
.gs-imageResult a.gs-title:link,
.gs-imageResult a.gs-title:link b {
    color: #444444;
}
.gs-webResult.gs-result a.gs-title:visited,
.gs-webResult.gs-result a.gs-title:visited b,
.gs-imageResult a.gs-title:visited,
.gs-imageResult a.gs-title:visited b {
    color: #444444;
}
.gs-webResult.gs-result a.gs-title:hover,
.gs-webResult.gs-result a.gs-title:hover b,
.gs-imageResult a.gs-title:hover,
.gs-imageResult a.gs-title:hover b {
    color: #444444;
}
.gs-webResult.gs-result a.gs-title:active,
.gs-webResult.gs-result a.gs-title:active b,
.gs-imageResult a.gs-title:active,
.gs-imageResult a.gs-title:active b {
    color: #777777;
}
.gsc-cursor-page {
    color: #444444;
}
a.gsc-trailing-more-results:link {
    color: #444444;
}
.gs-webResult .gs-snippet,
.gs-imageResult .gs-snippet,
.gs-fileFormatType {
    color: #333333;
}
.gs-webResult div.gs-visibleUrl,
.gs-imageResult div.gs-visibleUrl {
    color: #000000;
}
.gs-webResult div.gs-visibleUrl-short {
    color: #000000;
}
.gs-webResult div.gs-visibleUrl-short {
    display: none;
}
.gs-webResult div.gs-visibleUrl-long {
    display: block;
}
.gs-promotion div.gs-visibleUrl-short {
    display: none;
}
.gs-promotion div.gs-visibleUrl-long {
    display: block;
}
.gsc-cursor-box {
    border-color: #FFFFFF;
}
.gsc-results .gsc-cursor-box .gsc-cursor-page {
    border-color: #777777;
    background-color: #FFFFFF;
    color: #444444;
}
.gsc-results .gsc-cursor-box .gsc-cursor-current-page {
    background-color: #F2F2F2;
    border: 1px solid #e6e6e6;
    padding: 1px 4px;
}
.gsc-webResult.gsc-result.gsc-promotion {
    border-color: #CCCCCC;
    background-color: #E6E6E6;
}
.gs-promotion a.gs-title:link,
.gs-promotion a.gs-title:link *,
.gs-promotion .gs-snippet a:link {
    color: #0000CC;
}
.gs-promotion a.gs-title:visited,
.gs-promotion a.gs-title:visited *,
.gs-promotion .gs-snippet a:visited {
    color: #0000CC;
}
.gs-promotion a.gs-title:hover,
.gs-promotion a.gs-title:hover *,
.gs-promotion .gs-snippet a:hover {
    color: #444444;
}
.gs-promotion a.gs-title:active,
.gs-promotion a.gs-title:active *,
.gs-promotion .gs-snippet a:active {
    color: #00CC00;
}
.gs-promotion .gs-snippet,
.gs-promotion .gs-title .gs-promotion-title-right,
.gs-promotion .gs-title .gs-promotion-title-right *  {
    color: #333333;
}
.gs-promotion .gs-visibleUrl,
.gs-promotion .gs-visibleUrl-short {
    color: #00CC00;
}
