/* RESET (http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/) */
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: "" "";
}

/* Off we go with Todged styles */

HTML {
  font-size: 90%;
}

BODY {
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  font-size: 1em;
  margin: 0;
  padding: 0;
  min-width: 700px;
  line-height: 1.1;
}

/* Wind, Rain & Fire - the elements */

FIELDSET { 
  position: relative;
  border: 1px solid #ccc; 
  padding: 1em; 
  margin: 0; 
}

H1, H2 {
  font-weight: bold;
  margin: 17px 0;
}

H3, H4, H5, H6 {
  font-weight: bold;
  margin: 16px 0;
}

H1 {
  font-size: 200%;
}

H2 {
  font-size: 150%;
  font-weight: bold;
}

H3 {
  font-size: 120%;
}

P {
  margin: 14px 0;
}

SMALL {
  font-size: 80%;
}

h1 small {
  font-size: 60%;
}

h2 small {
  font-size: 70%;
}

STRONG {
  font-weight: bold;
}

BLOCKQUOTE { 
  background-color: #C3BFFF;
  padding: 10px;
  margin: 10px 0;
  font-size: 90%;
}

CITE {
	font-style: italic;
	font-size: 90%;  
}

CODE {
  font-family: monaco, courier, 'Courier New', 'Lucida Console', monospace;
}

PRE {
  font-family: monaco, courier, 'Courier New', 'Lucida Console', monospace;
}

OL {
  line-height: 1.3;
  list-style: decimal inside;
}

UL {
  padding-left: 40px;
  list-style: square;
}

OL, UL {
  margin: 12px 0;
}

LEGEND { 
  color: #ccc; 
  font-size: 120%; 
  padding: 0 2px;
}

INPUT, 
TEXTAREA,
SELECT { 
  font-family: Arial, verdana; 
  font-size: 105%; 
  padding: 7px;
  border: 1px solid #999;
}

SELECT {
  width: 218px;
  padding: 6px;
}

INPUT {
  width: 200px;
}

INPUT.submit {
  width: 100px;
  cursor: pointer;
  border: 2px outset #999;
  background: #aaa;
}

INPUT.blur {
  color: #ccc;
}

INPUT:focus,
TEXTAREA:focus {
  padding: 6px;
  border: 2px solid #4582DB;
}

LABEL { 
  display: block; 
  float: left;
  width: 105px;
  margin: 10px 5px 0 0; 
}

TEXTAREA {
  height: 100px;
  width: 79%;
}

/* Structure */

DIV#body {
  margin: 0 20px;
/*    width: 785px;*/
	background-color: #fff;
}

DIV#content {
  margin-top: 20px;
/*  margin-right: 200px;*/
  clear: left;
}


INPUT.submit:focus {
  border: 3px outset #999;
  padding: 6px;
}

INPUT.submit:hover, INPUT.submit:focus {
  font-weight: bold;
}


INPUT.checkbox,
INPUT.radio {
  width: 14px;
  margin-top: 10px;
}

/* generic customisations !?!? */

H2 A {
  color: #000;
}

a:focus {
	outline: 1px dotted #ccc;
}

A.plain {
  border: 0;
  text-decoration: none;
  color: #000;
}

#flash {
  padding: 1px;
  margin-bottom: 10px;
  border: 1px solid #D7D2D2;
  background: #FFFAFA url('/images/greyed.png');
}

#refactorBox INPUT {
  float: right;
  background: #ccc url('/images/script_lightning.png') no-repeat 5% 50%;
  padding-left: 20px;
}

input#openid {
  padding-left: 35px;
  background: #FFFFFF url('/images/login-methods.gif') no-repeat scroll 7px 8px;
}

input#openid:focus {
  background-position: 6px 7px;
}

input#openid:focus {
  background-position: 6px 7px;
}

input#openid.openid {
  background-position: 6px 8px;
}

input#openid.openid:focus {
  background-position: 5px 7px;
}

input#openid.aol {
  background-position: 6px -17px;
}

input#openid.aol:focus {
  background-position: 5px -18px;
}

input#openid.smugmug {
  background-position: 6px -95px;
}

input#openid.smugmug:focus {
  background-position: 5px -99px;
}

input#openid.livejournal {
  background-position: 6px -44px;
}

input#openid.livejournal:focus {
  background-position: 5px -45px;
}

input#openid.technorati {
  background-position: 6px -122px;
}

input#openid.technorati:focus {
  background-position: 5px -123px;
}

input#openid.vox {
  background-position: 6px -154px;
}

input#openid.vox:focus {
  background-position: 5px -155px;
}

input#openid.wordpress {
  background-position: 6px -70px;
}

input#openid.wordpress:focus {
  background-position: 5px -71px;
}

input#openid.flickr {
  background-position: 6px -182px;
}

input#openid.flickr:focus {
  background-position: 5px -183px;
}

input#openid.blogger {
  background-position: 6px -211px;
}

input#openid.blogger:focus {
  background-position: 5px -212px;
}


DIV#rightPanel {
/*  display: none;*/
  float: right;
  width: 160px;
  margin-left: 20px;
  margin-top: 20px; /* mirrors DIV#content */
}

#popularTags {
  list-style: none;
  padding-left: 0;
}

#popularTags LI {
  display: inline;
  margin-right: 5px;
}

DIV.codeblock {
  margin-top: 0;
  overflow: hidden;
}

DIV.submit {
  background: #ccc url(/images/greyed.gif);
  border: 1px solid #ccc;
  border-top: 0;
  padding: 7px;
/*  text-align: right;*/
  padding-left: 15px;
  margin-bottom: 20px;
}

DIV.problem {
/*  border: 1px solid #FFE8EB;*/
  background-color: #FFFAFA;
/*  margin: 2px 0;*/
}

TEXTAREA#code,
DIV#_codeSizer {
  font-family: Monaco, "Courier New", courier;
}

A.codeTitle {
  text-decoration: none;
  color: #000;
}

A.codeTitle:hover {
  text-decoration: underline!important;
}

DIV.todgedCode {
  margin-bottom: 30px;
}

DIV.todgedCode DIV.code {
  display: none;
  border: 1px dotted #a0a0a0;
  padding: 5px;
  overflow: auto;
}

DIV.todgedCode UL {
  margin-top: 6px;
  font-size: 95%;
  list-style: none;
  padding: 5px;
  margin: 0;
}

DIV.todgedCode UL.codeData {
  border: 1px dotted #a0a0a0;
  border-bottom: 0;
  background-color: #E5E5E5;
  overflow: hidden;
}

DIV.todgedCode UL LI {
  display: inline;
  margin-right: 16px;
}

DIV.todgedCode UL.codeNav {
  float: right;
  border-left: 0;
}

DIV.todgedCode UL.codeNav LI {
  margin-right: 0;
  margin-left: 16px;
}

#codeTags {
  background: url("/images/tag_blue.png") no-repeat 3px 5px;
  border: 1px dotted #a0a0a0;
  border-top: 0;
  padding-left: 25px;
  overflow: hidden;
}

UL#whyRegister {
  font-size: 200%;
  padding-left: 18px;
  margin-bottom: 0;
  margin-left: 10px;
}

UL#whyRegister LI {
  list-style: square outside;
  padding: 5px;
}

#brokenRobot {
  float: right; 
  height: 200px; 
  margin-right: 25px;
}

FIELDSET DIV {
  position: relative;
  display: block;
  clear: left;
  padding: 5px;
}

FIELDSET.headspace {
  margin-top: 20px;
}

#footer {
  clear: left;
  width: 100%;
  font-size: 85%;
  color: #7C7C7C;
/*  margin: 20px;*/
}

#footer UL {
  padding: 0;
  margin: 20px;
  list-style: none;
}

#footer LI {
  display: inline;
}

#footer A {
  color: #7C7C7C;
}

.codePanel H4 {
  display: none;
}

#skipLinks {
  display: none;
}

.codeDescription PRE {
  border: 1px solid #999;
  background: #dedede;
  padding: 4px;
}

.codeDescription PRE CODE {
  font-size: 110%;
  font-family: monaco, courier;
}

LI.comment_count A {
  background: url(/images/comments.png) no-repeat top left;
  padding-left: 20px;
  padding-bottom: 2px;
}

li.mode a {
  background: url(/images/lock.png) no-repeat top left;
  padding-left: 20px;
  padding-bottom: 2px;
}

li.edit-mode a {
  background: url(/images/lock_edit.png) no-repeat top left;
  padding-left: 20px;
  padding-bottom: 2px;
}

LI.clipboard-copy A {
  background: url(/images/paste_plain.png) no-repeat top left;
  padding-left: 20px;
  padding-bottom: 2px;
}

LI.view-code A {
  background: url(/images/zoom.png) no-repeat top left;
  padding-left: 20px;
  padding-bottom: 2px;
}

LI.edit-code A {
  background: url(/images/script_edit.png) no-repeat top left;
  padding-left: 20px;
  padding-bottom: 2px;
}

LI.delete-code A {
  background: url(/images/delete.png) no-repeat top left;
  padding-left: 20px;
  padding-bottom: 2px;
}

#hideLabels LI.view-code A *,
#hideLabels LI.edit-code A *,
#hideLabels LI.delete-code A *,
LI.clipboard-copy A * {
  display: none;
}

/* new code snip rules */

SPAN.tagMatches {
  margin-left: 5px;
}

SPAN.tagMatches SPAN {
  padding: 2px;
  margin-right: 4px;
  background-color: #0000AB;
  color: #fff;
  cursor: pointer;
}

#settings SPAN {
  margin-left: 5px;
}

#settings SPAN A {
  padding-right: 4px;
}

#settings SPAN A IMG {
  border: 0;
  text-decoration: none!important;
}

#new SPAN.value {
  position: absolute;
  top: 13px;
}

#new SPAN#validateURL IMG {
  vertical-align: middle;
}

#new TEXTAREA#code {
  min-height: 400px;
  max-height: 2000px;
  width: 98%;
  font-size: 95%;
  background: transparent url(/images/codebg.png) no-repeat center center;
}

#new DIV#_codeSizer {
  width: 615px;
  font-size: 95%;
  padding: 10px;
  line-height: 1.25;
}

#new DIV.problem LABEL {
  width: 103px;
}

#new DIV.problem TEXTAREA {
/*  width: 612px!important;*/
}

.error {
  padding: 2px;
  width: 105px;
  margin: 10px 5px 0 0;
  background-color: #fa8e8b;
}

#new DIV.advanced {
  display: none;
  position: relative;
}

#new.advanced DIV.advanced {
  display: block;
}

/* Header */

DIV#header {
  background: #19191E url(/images/header.jpg) repeat-x;
  height: 19px;
  padding-top: 26px;
  border-bottom: 4px solid #19191E;
  position: relative;
}

div#headerInner {
  float: right;
  margin-right: 20px;
}

div#headerInner h1, 
div#headerInner h2 {
  display: inline;
  font-size: 120%;
  margin: 0;
  font-family: Courier;
  text-transform: lowercase;
}

#sitename {
  color: #fff;
  text-decoration: none;
}

#sitename:after {
  content: " : ";
}

#sitetag {
  color: #cecece;
}

#tagSearch {
  display: inline;
}

#tagSearch INPUT {
  width: 200px;
  min-width: 50px;
  max-width: 600px;
  font-weight: normal;
}

.right { 
  float: right;
}

/* Navigation */

#navigation .right {
  float: right;
}

#navigation {
  position: absolute;
  bottom: -4px;
  list-style: none;
  margin: 0;
  margin-left: 20px;
  padding: 0;
}

#navigation LI {
  float: left;
  margin-right: 5px;
}

#navigation LI A {
  display: block;
  border: 4px solid #212128;
  border-bottom: 0;
  padding: 7px;
  color: #ccc;
  background: #3B3B47;
  text-decoration: none;
  opacity: 0.8;
  -moz-opacity: 0.8;
  filter:alpha(opacity=80);
}

#navigation LI.selected A,
#navigation LI A:focus,
#navigation LI A:hover {
  background: #fff;
  border: 4px solid #19191E;
  border-bottom: 0;
  color: #222;
  opacity: 1;
  -moz-opacity: 1;
  filter:alpha(opacity=1);
}

#navigation LI A IMG {
  border: 0;
  vertical-align: top;
}

SPAN.allinline * {
  float: none;
  display: inline;
}

/* geshi default style */

DIV.todgedCode OL LI {
  background-color: #fff;
}

DIV.todgedCode OL LI.highlighted {
  background-color: #E5E5E5;
}

DIV.todgedCode OL LI:hover {
  background-color: #CCC;
}

IMG.buddyIcon {
  vertical-align: top;
  float: left;
  padding: 3px;
  border: 0;
}

img.icon {
  vertical-align: top;
  margin-right: 2px;
}

#buddyIconPreview IMG.buddyIcon {
  float: none;
  padding: 0px;
}

#comments IMG.buddyIcon {
  margin-top: -4px;
}

/* TinyMCE specific rules */
body.mceContentBody {
   background: #ededed url(/images/greyed.gif);
   font-size: 100%;
}

body.mceContentBody * {
   background: #FFF;
}

body.mceContentBody DIV.box {
   border: 1px dotted #ccc;
}

/* Todged Geshi specific rules */
 .codeblock { 
  margin: 0; 
  border: 1px dotted #a0a0a0; 
  font-size: 85%;
}

.codeblock ol {
  font-family: monaco, 'Courier New', Courier, monospace; 
  list-style: decimal;
  padding-left: 40px;
}

.codeblock ol.withoutNumbers {
  list-style: none;
  padding-left: 16px;
}

.codeblockDark {
  background-color: #000; 
  color: #f7f7f7;
}

.codeblockDark .head {
  background-color: #a7a7a7;
}

DIV.codeblockDark OL LI {
  background-color: #000;
}


DIV.codeblockDark OL LI.highlighted {
  background-color: #383C41;
}

DIV.codeblockDark OL LI:hover {
  background-color: #52585F;
}

.no {
  display: none;
}

.clear {
  clear: both;
}

#welcome li {
  font-size: 140%;
  margin-bottom: 10px;
}

li#tryit {
  color: #fff;
  margin-left: 5px;
  margin-top: 7px;
  font-weight: bold;
  font-size: 90%;
}

optgroup {
  margin: 15px;
}


.todgedCode .run iframe {
  border: 1px dotted #A0A0A0;
  width: 100%;
  height: 400px;
}