/* clear out some outline for browsers */
* { outline: 0; }
html {
  background: #111;
}

body {
  background: none;
  color: #eee;
  font-family: sans-serif;
  font-size: .9em;
}
p {
  display: block;
  clear: left;
  font-size: 1.1em;
}
blockquote {
  margin: 1em 20px 1em 15px;
  padding: 5px 40px 3px 44px;
  background-image: url('images/oquote.png'), url('images/cquote.png');
  background-position: top left, bottom right;
  background-repeat:  no-repeat;
  font-style: italic;
}
pre {
  background: #000;
  display: block;
  width: auto;
  padding: 1px 2px;
  overflow: auto;
}
code {
  display: inline-block;
  background: #444;
  font-family: monospace, sans-serif;
  padding: 1px 2px;
}
pre code, pre.hl {
  background: #000;
  color: #fff;
  padding: 10px 1em;
}
div.center {
  text-align: center;
}
.bg-dark {
  background: url('images/page-bg-dark.png');
}
h1, h2, h3, h4, h5 {
  font-family: arial, sans-serif;
}
h1 {
  letter-spacing: 2px;
  background: url('images/page-bg-dark.png');
  padding: 0.25em 0.5em;
  display: block;
  float: left;
}
h2, h3, h4 {
  clear: left;
  width: 100%;
}
#content a, #comments a, .sidebar a {
  color: #426596;
}
#content a:hover, #comments a:hover {
  text-decoration: underline;
}
.error {
  background: url('images/page-bg-dark.png');
  padding: 0.5em;
}
.page {
  background: none;
  border: none;
  width: 900px;
}
div.gear {
  background-image: url('images/Derailleur_Bicycle_Drivetrain.png');
  background-repeat: no-repeat;
  width: 712px;
  height: 354px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -10;
}
.pageheader {
  background: none;
  padding: 0 0 1em 0;
}
div.motto {
  font-size: .7em;
  position: absolute;
  margin: 0 0 0 2em;
  font-style: italic;
  color: #ccc;
  top: 100px;
  background-image: url('images/page-bg-dark.png');
  -moz-transform:rotate(3deg);
  -webkit-transform: rotate(3deg);
  -o-transform:rotate(3deg);
  -ms-transform:rotate(3deg);
  font-family: sans-serif;
}
.pageheader .header .title, .pageheader .header .parentlinks {
  font-family: sans-serif;
}
.pageheader .header .title, .pageheader .header .parentlinks, .pageheader .header span, .pageheader #otherlanguages ul li, .pageheader .trailprev, .pageheader .trailnext, .pageheader .trailup {
    background: none;
    color: white;
    padding: 0.25em;
}
.pageheader .header .parentlinks {
  position: absolute;
  top: 0;
  line-height: 1em;
  font-size: 0.75em;
  padding: 0 0 2.5em 0;
}
.pageheader .header .title-wrapper {
  position: absolute;
  top: 1.75em;
  width: 650px;
  z-index: 1;
}
.pageheader .header .title {
  padding: 0;
  margin: 0;
  background: url('images/page-bg-dark.png');
  line-height: 1em;
}
div.pageheader .banner {
  background: url('images/page-bg-dark.png');
}
.pagefooter .actions ul {
  padding: 6px 4em 6px 0;
}
.pagefooter .actions ul li {
  background: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.main-nav ul li a, .pagefooter .actions ul li a {
  padding: 3px 1em;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.navbar .tab-level-0 ul li.selected,
.navbar .tab-level-0 ul li:hover,
.pagefooter .actions ul li:hover{
  background: #3c3c3c;
}
.pagefooter a {
  color: #fff;
}
.pagefooter a:hover {
  text-decoration: none;
}
.navbar {
  float:right;
}
.navbar ul {
  padding: 0;
  margin: 0;
  height: auto;
}
.navbar .tabs {
  float: left;
}
.navbar .tab-level-1 {
  clear: left;
  margin-top: 4px;
  background: #3c3c3c;
  padding: 5px 0 7px 1em;
}
.navbar .tab-level-0 ul li {
  background: #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}
.navbar .tab-level-0 ul li.selected {
  border-bottom: 1px solid #3c3c3c;
}
.navbar .tab-level-0 ul li.selected:hover {
  border-bottom: 1px solid #1a1a1a;
}

.navbar .tab-level-1 {
  width: 100%;
}
.navbar .tab-level-1 ul li {
  border:none;
  background: #3c3c3c;
  padding: 0;
  float: left;
}
.navbar .tab-level-1 ul li a {
  padding: 0 0 3px 0;
}
.navbar .tab-level-1 ul li:hover a,
.navbar .tab-level-1 ul li.selected a {
  border-bottom: 2px dotted #1a1a1a;
}

.blogform, #blogform {
    background: none;
    border: none;
    color: #eee;
}
.space-to-right {
  margin-right: 50px;
}
.sidebar {
  background:#1c1c1c;
  border: 1px solid #4e4e4e;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  padding: 10px 5px;
  clear: right;
  margin: 0 0 20px 0;
  box-shadow: 2px 2px 2px #000;
}
.sidebar p {
  color: #eee;
}
.sidebar-label {
  font-weight: bold;
  margin-right: 1em;
  color: #fff;
}
.sidebar a:hover {
  text-decoration: underline;
}
#pagebody {
  border: 0;
  background-image: url('images/page-bg.png');
  background-repeat: repeat;
  border: 1px solid #3e3e3e;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  padding: 1em;
  box-shadow: 3px 3px 3px #000;
}
#pagebody .toc {
  background-image: url('images/page-bg-dark.png');
  max-width: 375px;
  min-width: 125px;
  margin: 0 0 15px 15px;
  padding: 4px;
  float:right;
  border: 1px solid #222;
}
#pagebody p {
  display: block;
  color: #ddd;
}
#content .inlineheader .header a,
.inlineheader .header a {
  background-image: url('images/page-bg-dark.png');
  padding: 2px 7px;
  line-height: 1.5em;
  color: #fff;
  letter-spacing: 1px;
}
.inlinepage {
  overflow: visible;
}
.feedlink {
    margin: 0 0 1em 0;
}
.inlinefooter {
  border-top: 1px dotted #666;
  clear: none;
}
#footer {
  margin: 1em 0 0 0;
}
nav#pageinfo,
footer#siteinfo {
  font-size: .9em;
  border: none;
  float: left;
  clear: left;
  padding: 1em 0.5em;
  background: #1a1a1a;
  margin: 1em 0;
  border: 1px solid #000;
  border-left: none;
  border-right: none;
}
footer#siteinfo p a,
footer#siteinfo div a {
  color: #ccc;
}
footer#siteinfo p a:hover,
footer#siteinfo div a:hover {
  text-decoration: none;
}
#backlinks {
  margin: 0;
}
#last-edited {
  font-size: .9em;
  color: #ccc;
  text-align: right;
  margin-top: 1em;
}

.masthead {
  padding: 4px 1em;
  margin: 0 1em 1em 1em;
}
.teaser-no {
  margin: 0.5em 1em;
}

/* overrides for code syntax highlighting */
.hl.kwd {
  color: #999;
}
.hl.kwb {
  color: #999;
  font-weight: bold;
}
pre .hl.kwa {
  color: #03EAE4;
}
.hl.kwc {
  color: #fff;
}
.hl.sym { color: #fff; }
.hl.str { color: #03EA12; }
.hl.slc { color: #800; }
/* css for the pre popout */

.pre-popout,
#pre-overlay .pre-overlay-close {
  font-size: 1em;
  font-weight: bold;
  padding: 0 2px 2px;
  background: #1a1a1a;
  border: 1px solid #1c1c1c;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  box-shadow: 1px 1px 1px #000;
  text-align: center;
  margin: -.85em 0 1em 0;
  display: block;
  color: #afafaf;
}
.pre-popout:hover,
#pre-overlay .pre-overlay-close:hover {
  background: #3e3e3e;
  color: #cfcfcf;
  border: 1px solid #1e1e1e;
  cursor: pointer;
}
.pre-popout {
  float: right;
}
.pre-popout-helptip {
  position: absolute;
  background: url('images/page-bg-dark.png');
  float:right;
  margin: -1.75em 0 0 1.25em;
  font-weight: normal;
  padding: 3px 2px;
}
#pre-overlay .pre-overlay-close {
  position: absolute;
  right: 0;
  margin-top: -3em;
}
#pre-overlay .pre-overlay-close-helptip {
  position: absolute;
  background: url('images/page-bg-dark.png');
  padding: 3px 2px;
  right: 0;
}
.pre-popout-active {
  background: #3e3e3e;
  border: 1px solid #1e1e1e;
  box-shadow: none;
}
#pre-overlay {
  z-index: 100;
  background: url('images/page-bg.png');
  position: absolute;
}

#pre-overlay .pre-overlay-content {
  background: #000;
  margin: 2.5em 1em;
  padding: 1em;
  z-index: 101;
  position: absolute;
}

div.recentchanges {
  background: url("images/page-bg-dark.png") repeat scroll 0 0 transparent;
  color: #eee !important;
  border-color: #000;
}
div.recentchanges .metadata {
  padding: 0.5em 0.5em 0.25em 0.5em !important;;
}
#content .recentchanges a {
  color: #6f6f6f;
}
.recentchanges .changelog {
  background: url("images/page-bg.png") repeat scroll 0 0 transparent !important;
  color: #eee !important;
  padding-bottom: 1em;
}
/* comments */
.comment {
  background-image: url('images/page-bg-dark.png');
  background-repeat: repeat;
  border: 1px #1a1a1a;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  padding: 1em;
  box-shadow: 2px 2px 2px #000;
  margin: 1em 0 1.5em 0;
}
.comment-subject {
  font-size: 1.1em;
  margin: 0 0 1em 0;
}
.comment .comment-avatar { display:none; }

.comment-header {
  font-size: 0.9em;
  text-align: right;
  margin: 1em 0 0 0;
}

.pagecloud {
  background: none;
  background-image: url('images/page-bg-dark.png');
  background-repeat: repeat;
  border: 1px #1a1a1a;
  width: 75%;
  float: none;
  padding: 10px 20px;
  margin: 1em auto;
}

.calendar { margin: 0 auto; }

.calendar table {
  background: url('images/page-bg-dark.png');
  background-repeat: repeat;
  border: 1px #1a1a1a;
  color: #eee;
}
.calendar table .month-calendar-day-this-day,
.calendar table .year-calendar-this-month {
  background: none;
  background: url('images/page-bg.png');
  background-repeat: repeat;
}
.calendar .month-calendar th, .calendar .month-calendar td {
  padding: 0.45em;
}
.calendar th, .calendar td {
  border: 1px #4e4e4e solid;
}

/* form styles */
form { clear: left; }
legend {
  color: #cecece;
}
fieldset {
  border: 1px solid #666;
}
form input, form input[type=text], input#openid_identifier, form textarea, form select{
  padding: 3px 5px;
  border: 1px solid #666;
  height: 2em;
  min-width: 50%;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  margin: 0.25em 1em 1em 0;
  background: #0a0a0a;
  color: #fff;
  font-family: monospace;
}
form textarea {
  padding: 5px;
  height: auto;
}
form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: auto;
  background: #000;
}
form input[type=submit] {
  background: #505050;
  background-repeat: repeat;
  width: auto;
  min-width: auto;
  height: 2em;
}
form input[type=submit]:hover {
  background: url('images/page-bg-dark.png');
  border: 1px solid #1a1a1a;
  color: #9f9f9f;
}
input#openid_identifier[type=text], #openid_input_area input[type=text] {
  background: url("images/openid-16x16.png") no-repeat scroll 0 50% #000;
  backgronud-left: 3px;
  padding-left: 30px;
}

.openid_large_btn {
  border: #1a1a1a solid 1px;
  margin: 4px 6px;
}
.openid_small_btn {
  padding: 6px;
  margin: 4px;
  border: #1a1a1a solid 1px;
}
#openid_highlight {
  background: #3a3a3a;
}