* {
  margin: 0;
  padding: 0;
}

html {
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 76%;
  /* Makes the height 100% and eliminates scroll bars */
  height: 100%;
  max-height: 100%;
  overflow:hidden;
}

body {
  background-color: #242424; 
  text-align: center;
  color: #ffffff;
  /* Makes the height 100% and eliminates scroll bars */
  height: 100%;
  max-height: 100%;
  overflow:hidden;
  margin-top: 1px;  /* Hack to fix firefox-flash click-through bug */
}

#scrollable {
  display: block;
  height: 100%;
  max-height: 100%;
  overflow: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 3;
}

#fixedhead {
  position: absolute;
  overflow: visible;
  display: block;
  xheight: 144px;
  z-index: 5;
  width: 100%;
  top: 0;
  left: -18px;
  xright: 18px;
}
  
#smallfixedhead {
  position: absolute;
  overflow: visible;
  display: block;
  xheight: 72px;
  z-index: 5;
  width: 100%;
  top: 0;
  left: -18px;
}

#fixedfoot {
  position: absolute;
  overflow: visible;
  display: block;
  height: 2.5em;
  z-index: 6;
  width: 100%;
  bottom: 0px;
  right: 18px;
}
  
.width {
  width: 85%;
  min-width: 75em;
  margin: 0 auto;
  text-align: left;
  xheight: 100%;
  xbackground: transparent;
  position: relative;
}

#scrollable .width {
  background: #404040 url(left_border.gif) repeat-y left;
}

#scrollable .minwidth {
  background: url(right_border.gif) repeat-y right;
}

#scrollable .layout {
  padding-top: 124px;
  padding-bottom: 6em;
}

#scrollable.starthigh .layout {
  padding-top: 128px;
}

#scrollable.starttop .layout {
  padding-top: 0;
}

* html .minwidth {
  padding-right: 75em;
  height: 1px;
}

* html .layout {
  height: 1px;
}

* html .container {
  margin-right: -75em;
  position: relative;
  height: 1px;
}

* html .main {
  height: 1px;
}

p {
  font-size: 1.0em;
  line-height: 1;
}

h1, legend {
  font-size: 1.5em;
  font-weight: bold;
}

h2 {
  font-size: 1.2em;
  font-weight: bold;
  font-family: arial, helvetica, sans-serif;
}

h3 {
  font-size: 1.2em;
  font-weight: bold;
}

h4 {
  font-size: 1.2em;
  font-weight: normal;
}

fieldset {
  display: block;
  position: relative;
  padding-top: 1em;
  margin: 0em auto;
  width: 95%;
  border: 0;
  background-color: transparent;
}

legend {
  display: ;
}

label {
  display: block;
  float: left;
  clear: left;
  text-align: right;
  width: 33%;
  padding: 0 0.4em 0 0;
  margin: 0 0 1em 0;
  background-color: transparent;
  border: 1px solid #2d2d2d;
}

label.nextline {
  margin-bottom: 0.3em;
}

label.free {
  width: auto;
}

form {
  display: block;
  position: relative;
  margin-top: 1em;
}

form.inline {
  margin-top: 1em;
  border: 0px solid red;
  text-align: center;
}

form.inline label {
  display: inline;
  float: none;
  width: auto;
}

label.checkbox, label.radio {
  display: inline;   /* Hack for IE margin bug */   
  clear: none;
  width: 60%;
  text-align: left;
  margin: 0 0 1em 35%;
  padding: 0;
  height: 1.65em;
}

input.text, input.file, select, textarea {
  width: auto;
  padding-left: 0.25em;
  padding-right: 0.5em;
  margin: 0 0 1em 0;
  background-color: #282828;
  border-top: 1px solid #141414;
  border-right: 1px solid #5a5a5a;
  border-bottom: 1px solid #858585;
  border-left: 1px solid #1d1d1d;  
  color: #ffffff;
  font-size: 1em;
  font-family: monaco, lucida console, monospace;
}

select {
  padding: 0;
}

* html input.text, * html textarea {
  position: relative;   /* This messes up the catalog items, so they need to go back to static */
  margin-left: -3px;
  margin-top: -3px;
  top: 3px;
}

form.inline input.text, form.inline button, form.inline select {
  display: inline;
  margin: 0 0.5em 0 0;
  top: 0;
}

input.checkbox, input.radio {
  margin: 0 0.5em 0 0;
  background-color: #2d2d2d;
  padding: 0;
}

* html label.checkbox, * html label.radio {
  position: relative;
  left: -7px;  
  top: -3px;
  height: auto;
}

input.submit, button {
  clear: both;
  xpadding: 0 0.2em;
  font-weight: bold;
  background-color: #282828;
  xheight: 1.7em;
  padding:0 0.4em;
  color: #0077cc;
  border-bottom: 1px solid #141414;
  border-left: 1px solid #666666;
  border-top: 1px solid #757575;
  border-right: 1px solid #1d1d1d;
}

input.submit:hover, button:hover, input.submit:focus, button:focus {
  background-color: #002050;
  border-bottom: 1px solid #101424;
  border-left: 1px solid #77a7c7;
  border-top: 1px solid #85b5d5;
  border-right: 1px solid #141822;
}

input.submit:active, button:active {
  color: #0077cc;
  background: #002050;
  border-top: 1px solid #141414;
  border-right: 1px solid #555555;
  border-bottom: 1px solid #666666;
  border-left: 1px solid #1d1d1d;
}  

a:visited {
  color:#000;     /* Hack for some weird IE issue */
}

img.icon {
  position: relative;
  top: 0.2em;
  width: 1.2em;
  height: 1.2em;
  border: 0;
}

.boxbody table {
  position: relative;
  margin: 12px auto 0 auto;
  width: 100%;
  border-top: 1px solid #141414;
  border-bottom: 1px solid #858585;
  border-left: 1px solid #1d1d1d;  
  border-right: 1px solid #5a5a5a;
  border-collapse: collapse;
  font-family: arial, helvetica, sans-serif;
}  

.boxbody tr {
  background-color: #282828;
}

.boxbody tr.odd {
  background-color: #181818;
}

.boxbody tr.special {
  background-color: #481818;
}

.boxbody tr.header {
  font-weight: bold;
}

.boxbody td {
  padding: 0 0.2em;
  color: #ffffff;
  line-height: 1.5;
  text-align: left;
}

td.number, td.money, td.rank, td.paypal, td.prize {
  text-align: right;
}

td.online {
  width: 20px;
}

td.online img {
  width: 20px;
}

td.hidden {
  display: none;
}

td.icon {
  width: 1.67em;
  height: 1.67em;
  padding: 0;
}

td.icon img {
  position: relative;
  display: block;
  width: 1.5em;
  height: 1.5em;
  margin: 0;
  top: 0;
}
  
a:link, a:visited {
  color: #1188dd;
  font-weight: bold;  
  text-decoration: none;
}

a:hover {
  color: #2299ff;
  text-decoration: underline;
}

#header {
  position: relative;
  height: 124px;
  text-align: center;
  xmargin-top: 0;
  background-color: #404040;
  border-bottom: 1px solid white;
  margin-left: 30px;
  margin-right: 10px;
}

#smallfixedhead #header {
  height: 126px;
}

#fixedhead #gbhbanner, #fixedhead #title {
  clear: both;
  position: relative;
  display: block;
  margin: 0 auto;
  height: 100px;
}

#smallfixedhead #gbhbanner {
  position: relative;
  margin: 0 auto 0 0;
  height: 72px;
}

#footer {
  position: relative;
  height: 2.5em;
  text-align: center;
  margin-top: 0;
  background-color: #404040;
  border-top: 1px solid white;
  margin-left: 3%;
  margin-right: 1%;
  padding-top: 2px;
}
  
#fixedhead #countdown {
  float: right;
  padding-top: 0.5em;
  padding-right: 20px;
  font-size: 1em;
}

#fixedhead #regstats {
  float: left;
  padding-top: 0.5em;
  padding-left: 20px;
  font-size: 1em;
}

#regstats a:visited, #regstats a:link {
  color: red;
}

#smallfixedhead #countdown {
  float: right;
  padding-top: 0.5em;
  padding-right: 10px;
  font-size: 1em;
  font-family: arial, helvetica, sans-serif;
}

#smallfixedhead #regstats, #smallfixedhead #jackpot {
  clear: right;
  float: right;
  padding-top: 0.5em;
  padding-right: 10px;
  font-size: 1em;
  font-family: arial, helvetica, sans-serif;
}

#content {
  display: block;
  background-color: transparent;
  padding: 0 2%;
  min-height: 70em;
}

#content.withside {
  margin-left: 12em;
  margin-right: 12em;
}

#content.welcome {
  position: relative;
  background: none;
  margin: 0 auto;
}

#sidebar {
  position: absolute;
  top: 101%;
  width: 12em;
  left: 3%;
  background-color: transparent;
}

#sidebar .cat {
  padding: 0.3em 0;
}

#rightbar {
  position: absolute;
  top: 101%;
  width: 12em;
  left: 99%;
  margin-left: -12em;
  background-color: transparent;
}

#rightbar .cat {
  padding: 0.3em 0;
}

#nooutline {
  position: relative;
  margin: 0;
}

#navbuttons ul {
  position: relative;
  background-color: transparent;
  margin: 0 auto 0 auto;
  list-style-type: none;
  padding: 0;
  text-align: center;
}

#navbuttons li {
  position: relative;
  background-color: transparent;
  display: inline;
}

#navbuttons a {
  position: relative;
  background-color: transparent;
  outline: none;
}

#navbuttons a img {
  position: relative;
  border: 0px;
  margin: 0 -2px;
}

#navbuttons a:link img, #navbuttons a:visited img {
  background: url(menuboxfull.gif) no-repeat top left;
}

#navbuttons.small a:link img, #navbuttons.small a:visited img {
  background: url(smallmenuboxfull.gif) no-repeat top left;
}

#navbuttons a:hover img {
  background: url(menuboxfull.gif) no-repeat bottom left;
}

#navbuttons.small a:hover img {
  background: url(smallmenuboxfull.gif) no-repeat bottom left;
}

#navbuttons a:active {
  position: relative;
  left: 1px;
  top: 1px;
  width: auto;
}

#navbuttons a:active img {
  background: url(menuboxfull.gif) no-repeat top right;
}

#navbuttons.small a:active img {
  background: url(smallmenuboxfull.gif) no-repeat top right;
}

.box {
  margin: 0;
  xbackground: url(gray_lb.gif) no-repeat left bottom;
  background: #2d2d2d;
}

.box1 {
  background: url(box_bc.gif) repeat-x left bottom;
}

.box2 {
  background: url(box_lc.gif) repeat-y left bottom;
}

.box3 {
  background: url(box_rc.gif) repeat-y right bottom;
}

.box4 {
  background: url(box_tc.gif) repeat-x left top;
}

.box5 {
  background: url(box_lb.gif) no-repeat left bottom;
}

.box6 {
  background: url(box_rb.gif) no-repeat right bottom;
}

.box7 {
  background: url(box_lt.gif) no-repeat left top;
}

.box8 {
  background: url(box_rt.gif) no-repeat right top;
}

.boxhead {
  xbackground: url(gray_lt.gif) no-repeat left top;
  text-align: center;
  padding: 0 1.2em;
}

.box h1 {
  xbackground: url(gray_rt.gif) no-repeat right top;
  padding: 0.6em 0 0 0;
}

* html .box h1, * html .boxhead, * html .boxbody, * html .box1 {
  height: 1px;
}

.boxbody {
  position: relative;     /* fixes IE peekaboo bug introduced by prev/next floats under ranks table */
  xbackground: url(gray_rr.gif) repeat-y right;
  padding: 0em 1.5em 1em 1.5em;   /* vertical padding to prevent unexplained gap between body and foot */
}

.boxbody p {
  padding: 0.5em 0 0 0;
}

.boxbody h2 {
  text-align: center;
  color: yellow;
  padding: 0.2em 0;
}

.boxbody .largetext {
  width: auto;
  height: 10em;
  clear: both;
  overflow: auto;
  margin: 1em auto;
  background-color: #282828;
  border-top: 1px solid #141414;
  border-right: 1px solid #5a5a5a;
  border-bottom: 1px solid #858585;
  border-left: 1px solid #1d1d1d;  
  color: #ffffff;
  padding-left: 1%; 
}

.boxfoot {
  clear: both;
  xbackground: url(gray_rb.gif) no-repeat right bottom;
  padding: 0 1.5em 1.2em 1.5em;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

* html .boxfoot {
  height: 1%;    /* Hack to prevent weird loss of padding in boxfoot for IE */
}

form div.submit {
  clear: both;
  text-align: center;
}

#showrounds, #resend, #results {
 margin-left: auto;
 margin-right: auto;
 width: 50%;
}

#attack label {
  float: none;
  display: block;
  text-align: center;
  width: 100%;
  margin-bottom: 0.2em;
}

#attackresults {
  margin-left: auto;
  margin-right: auto;
  width: 85%;
}

#attackresults p {
  clear: both;
  padding: 0;
}

#attackresults h2 {
  color: white;
  text-align: center;
  font-size: 1em;
  font-weight: normal;
  padding-bottom: 0.5em;
}

#attackresults ul {
  list-style-position: inside;
}

#resultinfo h2, #results h2 {
  text-align: left;
  color: white;
}

#resultinfo li, #results li {
  margin-left: 10%;
}

#subjectinfo, #iteminfo, #scoutform, #resultinfo {
  width: 50%;
}

#subjectinfo, #scoutform {
  float: left;
}

#iteminfo, #resultinfo {
  float: right;
}

#attackresults .boxbody {
  text-align: center;
}

#attackresults .attacker {
  width: 50%;
  clear: both;
  float: left;
}

#attackresults .target {
  width: 50%;
  float: right;
}

#attackresults .result img {
  margin: 0.5em 0;
}

#ranks .boxbody {
  padding-right: 1.5em;
  padding-left: 1.5em;
  text-align: center;
}

#ranks table {
  width: 100%;
}

#xranks td {
  text-align: left;
}

#ranks tr a:link, #ranks tr a:visited {
  text-decoration: none;
}

#ranks tr a:hover {
  text-decoration: underline;
  font-weight: bold;
}
  
#ranks .previous {
  float: left;
}

#ranks .next {
  float: right;
}

#ranks.test {
  clear: both;
}

#ranks form.inline {
  clear: both;
}

#catalogform .boxbody {
  text-align: center;
}

#catalogform .headlines {
  text-align: center;
}

#viewmessages .boxbody h3 {
  padding-top: 1em;
  padding-bottom: 0.5em;
  text-align: center;
}

.msghead {
  position: relative;  /* needed for IE, since an element within it will also be relative */
  margin-top: 1em;
  padding: 0.2em;
  text-align: right;
  background-color: #555555;
  border-bottom: 1px solid #141414;
  border-left: 1px solid #777777;
  border-top: 1px solid #858585;
  border-right: 1px solid #1d1d1d;  
}

* html .msghead {
  height: 1px;
}

.msghead input.checkbox {
  float: right;
  margin: 0.4em 0.4em 0 0.6em;
  background-color: transparent;
}

* html .msghead .checkbox {
  margin: 0;
}

.msghead .menu2 {
  margin: 0 0 0 auto;
}

.msghead .menu a, .msghead .menu .disabled {
  background: #444444;
}

.msghead .menu a:hover {
  color:#0077cc; 
  background:#002050;
  border-bottom: 1px solid #101424;
  border-left: 1px solid #77a7c7;
  border-top: 1px solid #85b5d5;
  border-right: 1px solid #141822;
}

.msghead .menu a:active, .msghead .menu a:focus {
  color: #0077cc;
  background: #002050;
  border-top: 1px solid #141414;
  border-right: 1px solid #555555;
  border-bottom: 1px solid #666666;
  border-left: 1px solid #1d1d1d;
}

.msghead h4 {
  float: left;
  font-size: 1.1em;
  font-weight: bold;
  font-family: arial, helvetica, sans-serif;
  padding: 0.3em;
}

.msghead .menu .spacer {
  display: block;
  height: 2em;
}

.pagehandler {
  margin-top: 1em;
  padding: 0;
  background-color: transparent;
  text-align: right;
}

* html .pagehandler {
  height: 1px;
}

.pagehandler .menu2 {
  margin: 0 0 0 auto;
  border: 0;
}

.pagehandler .menu .title {
  background: #666666;
  border-bottom: 1px solid #141414;
  border-left: 1px solid #777777;
  border-top: 1px solid #858585;
  border-right: 1px solid #1d1d1d;    
}

.pagehandler .menu a, .pagehandler .menu .disabled {
  background: #444444;
  border-bottom: 1px solid #141414;
  border-left: 1px solid #777777;
  border-top: 1px solid #858585;
  border-right: 1px solid #1d1d1d;    
}

.pagehandler .menu a:hover {
  color:#0077cc; 
  background:#002050;
  border-bottom: 1px solid #101424;
  border-left: 1px solid #77a7c7;
  border-top: 1px solid #85b5d5;
  border-right: 1px solid #141822;
}

.pagehandler .menu a:active, .pagehandler .menu a:focus {
  color: #0077cc;
  background: #002050;
  border-top: 1px solid #141414;
  border-right: 1px solid #555555;
  border-bottom: 1px solid #666666;
  border-left: 1px solid #1d1d1d;
}

.messagebox {
  margin: 0;
  padding: 0.5em 3%;
  clear: both;
  text-align: left;
  background-color: #282828;
  border-top: 1px solid #141414;
  border-right: 1px solid #5a5a5a;
  border-bottom: 1px solid #858585;
  border-left: 1px solid #1d1d1d;  
  color: #ffffff;
}

#viewmessages .messagebox .mod {
  font-weight: bold;
  font-size: 1.2em;
}

#viewmessages .messagebox .lowmod {
  font-weight: bold;
  font-size: 1.1em;
}

#viewmessages .messagebox .mods {
  font-weight: bold;
}

#viewmessages .messagebox p {
  margin: 0.2em 0;
  padding: 0;
}

#viewmessages .boxbody {
  text-align: center;
}

#viewmessages .boxbody input.submit {
  margin-top: 1em;
}

#viewmessages .deletesubmit {
  text-align: right;
}

.inserthere {
  display: none;
}

#creategang {
  float: right;
  width: 50%;
}

#findgang {
  float: left;
  width: 50%;
}

.emphasis {
  font-weight: bold;
  color: #aaddff;
}

.bigemphasis {
  font-weight: bold;
  color: #ff4444;
  font-size: 1.4em;
}

.pctback {
  position: relative;
  background-color: #aa0000;
  width: 70%;
  margin: 0.2em auto 0 auto;
  border-top: 1px solid #141414;
  border-right: 1px solid #5a5a5a;
  border-bottom: 1px solid #858585;
  border-left: 1px solid #1d1d1d;  
}

.pctleft {
  position: absolute;
  left: 0;
  background-color: #008800;
}

.pctfore {
  position: absolute;
  width: 100%;
  left: 0;
  background-color: transparent;
  text-align: center;
  font-weight: bold;
  color: #aaddff;
}

#editprofile {
  width: 100%;
  margin: 0 auto;
}

#inventory {
  width: 100%;
  text-align: center;
  font-family: arial, helvetica, sans-serif;
}

#inventory .boxbody {
  font-size: 0.8em;
}

#inventory table {
  margin-top: 0.5em;
}

#inventory td {
  line-height: 1.1;
}

#statistics {
  position: relative;   /* Needed for IE to show the box */
  width: 100%;
  text-align: center;
  font-family: arial, helvetica, sans-serif;
}

#statistics .boxbody {
  font-size: 0.8em;
  padding-bottom: 0.4em;
}

#statistics .boxfoot {
  padding-bottom: 1em;
}

#reservesdialog {
  text-align: center;
}

#attacksummary {
  position: relative;   /* Needed for IE to show the box */
  width: 100%;
  text-align: center;
  font-family: arial, helvetica, sans-serif;
}

#attacksummary .boxhead h1 {
  padding-left: 1em;
  padding-right: 1em;
}

#attacksummary .boxbody {
  font-size: 0.8em;
  padding-bottom: 0.4em;
}

#attacksummary .boxfoot {
  padding-bottom: 1em;
}

#attacksummary .newattack {
  color: #ff2222;
  font-size: 0.9em;
}

div.cat {
  padding: 0.5em 0;
}

div.cat p {
  padding: 0;
  line-height: 1;
}

#catalogform .msghead .menu2, #attack .msghead .menu2 {
  visibility: hidden
}

#catalogform .messagebox, #attack .messagebox {
  text-align: center;
}

.catalog .category {
  text-align: center;
  margin-bottom: 1em;
}

.catalog .category .headline {
  color: white;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 0.4em;
}

.catalog .item .name {
  display: block;
  text-align: center;
  font-weight: bold;
}

.catalog .item .trade {
  display: block;
  text-align: center;
}

.catalog .item .current {
  display: block;
  text-align: center;
  font-family: arial, helvetica, sans-serif;
}

.catalog .item .picture {
  display: block;
  margin: 0.2em auto;
  xwidth: 10em;
  height: 8em;
}

.xpicture {
  border-top: 1px solid #AA6666;
  border-bottom: 1px solid #880000;
  border-left: 1px solid #AA6666;
  border-right: 1px solid #880000;
  background: #AA0000;
  padding: 2px;
}

.catalog .item .price {
  display: block;
  text-align: center;
}

.catalog .item .text {
  display: block;
  margin: 0 auto;
  position: static;    /* Fixes secondary effect of the fix for the 3px IE bug */
}

.catalog .item .select {
  display: block;
  margin: 0 auto;
  width: 85%;
}

.catalog .item .submit {
  display: block;
  margin: 0.5em auto 0 auto;
}

.catalog .item {
  border: 0px solid white;
  display: -moz-inline-box;
  display: inline-block;
}

.catalog .itembox {
  /* Needed for FF/Moz */
  display: block;
  width: 13em;
}

.catalog {
  text-align: center;
}

.helpcont {
  position: relative;
  height: 100%;
}

.helpicon {
  position: absolute;
  right: -6px;
  bottom: 2px;
  visibility: hidden;
}

.msghead .helpicon {
  bottom: 3px;
  right: 2px;
}

#rightbar .helpicon {
  right: auto;
  left: -6px;
}

#votenow .boxbody {
  text-align: center;
}

#votenow .boxbody .votes img, #votenow .boxbody .oldvotes img {
	border: 0;
	padding: 0em 1em 0 1em;
}

#votenow .boxbody .votes p {
	display: inline;
}

#votenow .boxbody .votes .hidden {
	display: none;
}

table.transfers {
  width: 80%;
  margin: 0 auto;
}

#login .boxfoot {
  text-align: right;
  font-size: 0.9em;
}

#roundname {
  font-weight: bold;
  color: yellow;
  font-size: 1.2em;
  xcolor: #aaddff;
}

#xxx {}