/* ~~~~~~~~~~~~~~~~~ CSS BASE ~~~~~~~~~~~~~~~~~ */

body, h1, h2, h3, h4, p, table, tr, th, td {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}
img { border: none; }

/* ~~~~~~~~~~~~~~~~ MAIN LAYOUT ~~~~~~~~~~~~~~~ */

/* ~~~~~~~~~ PAGE ~~~~~~~~~ */

body {
  background: #808080;
  font-family: arial, helvetica, serif;
  font-size: 12px;
  color: #000;
}
#page {
  width: 950px;
  margin: 0 auto;
  background: #000;
  border: 1px solid #000;
}
#page-shadow {
  width: 1000px;
  margin: 0 auto;
  background: url(../common/images/shadow-page.gif) center repeat-y;
}
#page-shadow #bottom {
  height: 15px;
  background: url(../common/images/shadow-bottom.gif) center no-repeat;
}
#header {
  text-align: center;
  background-color: #000;
}
#footer {
  margin-bottom: 8px;
}

/* ~~~~~~~~ COLUMNS ~~~~~~~ */

#columns { width: 100%; }
#columns td#main-column {
  width: 100%;
  vertical-align: top;
}
#columns td#side-column { vertical-align: top; }

/* ~~~~~~ PAGE ITEMS ~~~~~~ */

.main-item, .side-item {
  margin: 8px;
  border: 2px solid #fff;
}
.side-item {
  width: 160px;
  margin-left: 0;
}
.main-body, .side-body {
  padding: 8px;
  background: #aaa url(../common/images/gradient-grey.gif) top repeat-x;
  border: 1px solid #000;
}
.side-body { padding: 5px; }

.main-body br { line-height: 8px; }
.side-body br { line-height: 5px; }

/* ~~~~~~~~~~~~~~~~~~~ MENU ~~~~~~~~~~~~~~~~~~~ */

#menu {
  background: #ff6600 url(../common/images/bar-orange.gif) repeat-x;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
#menu ul {
  margin: 0;
  padding: 5px 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
}
#menu ul li { display: inline; }
#menu ul li a {
  padding: 5px 15px;
  border-right: 1px solid #000;
  color: #000;
  text-decoration: none;
}
#home a { border-left: 1px solid #000; }
#menu ul li a:hover, #menu ul li a#current { color: #fff; }

/* ~~~~~~~~~~~ COMMON PAGE ELEMENTS ~~~~~~~~~~~ */

h2.plain, h2.stripes {
  border: 1px solid #000;
  border-bottom: none;
  color: #000;
  text-transform: uppercase;
}
h2.plain {
  padding: 6px;
  background: #ff6600 url(../common/images/bar-orange.gif) repeat-x;
  font-size: 12px;
}
h2.stripes {
  padding: 6px 12px;
  background: #ff6600 url(../common/images/bar-stripe.gif) repeat-x;
  font-size: 14px;
}
h2.caption {
  margin: 10px 0;
  font-size: 18px;
  font-style: italic;
  color: #000;
}
h3.glass {
  padding: 3px 5px;
  background: #374164 url(../common/images/bar-black.gif) repeat-x;
  border: 1px solid #000;
  font-size: 12px;
  color: #eee;
  text-align: center;
  text-transform: uppercase;
}
h4.label {
  margin: 10px 0;
  font-size: 12px;
  color: #808080;
}
table.data {
  width: 100%;
  background-color: #ccc;
  border: 1px solid #000;
  border-top: none;
  font-size: 11px;
}
table.data th {
  padding: 2px 5px;
  background-color: #808080;
  color: #fff;
}
table.data td {
  padding: 2px 5px;
  background-color: #fff
}
table.data tr.cursor td {
  background-color: #0d5c83;
  font-weight: bold;
  color: #fff;
}
table.data tr.cursor td a { color: #fff; }
table.data tr.cursor td a:hover { color: #ff9900; }

/* ~~~~~~~~~~~~~~~ MAIN CONTENT ~~~~~~~~~~~~~~~ */

/* ~~~~~~~~~ NEWS ~~~~~~~~~ */

#news, #news-article {
  padding: 5px 0 10px 0;
  background-color: #fff;
  background: #fff url(../common/images/ball.gif) bottom right no-repeat;
  border: 1px solid #000;
}
#news { border-top: none; }

#news .pinned { background: url(../common/images/pinned.gif) center left no-repeat; }
#news .recent { background: url(../common/images/recent.gif) center left no-repeat; }
#news .item { background: url(../common/images/news.gif) center left no-repeat; }

#news .date, #news-article .date {
  margin: 0 40px;
  padding-top: 4px;
  font-size: 11px;
  color: #808080;
  font-weight: normal;
}
#news .story, #news-article .story {
  margin: 0 40px;
  padding: 4px 0 6px 0;
  border-bottom: 1px dashed #808080;
  font-size: 12px;
}
#news-article #article {
  margin: 20px 100px 10px 100px;
  background-color: #808080;
}
#news-article #content {
  position: relative;
  top: -3px;
  left: -3px;
  padding: 10px;
  background-color: #eee;
  border: 1px solid #454545;
}
#news .controls { margin: 15px 0 5px 0; }

/* ~~~~~~~~ LADDERS ~~~~~~~ */

#ladders { width: 100%; }
#ladders #firsts {
  width: 50%;
  padding-right: 4px;
}
#ladders #reserves {
  width: 50%;
  padding-left: 4px;
}

/* ~~~~~~~ FIXTURES ~~~~~~~ */

#fixtures td.tick { background: #fff url(../common/images/tick.gif) center right no-repeat; }
#fixtures td.cross { background: #fff url(../common/images/cross.gif) center right no-repeat; }
#fixtures a { font-size: 12px; }

/* ~~~~~~ STATISTICS ~~~~~~ */

#statistics table.data {
  font-size: 12px;
}
#statistics td.pic {
  width: 150px;
  padding-bottom: 2px;
  background-color: #eee;
  text-align: center;
}
#statistics img { vertical-align: middle; }

/* ~~~~~~~ PROFILES ~~~~~~~ */

#profiles table.players {
  width: 100%;
  background-color: #fff;
  border: 1px solid #000;
  border-top: none;
  font-size: 11px;
}
#profiles table.players td {
  width: 12.5%;
  padding-bottom: 5px;
  vertical-align: top;
  text-align: center;
}
#profiles .player {
  margin: 0 200px;
  background-color: #fff;
  border: solid 1px #000;
}
#profiles .player table { width: 100%; }
#profiles #games {
  font-size: 14px;
  color: #900;
}
#profile {
  margin: 8px 100px 10px 100px;
  padding: 10px;
  background: #fff url(../common/images/ball.gif) bottom right no-repeat;
  border: solid 1px #000;
}

/* ~~~~~~~~ GALLERY ~~~~~~~ */

#gallery, #gallery-item {
  background: #fff url(../common/images/ball.gif) bottom right no-repeat;
  border: solid 1px #000;
  text-align: center;
}
#gallery { border-top: none; }
#gallery h3.glass, #gallery-item h3.glass {
  margin-bottom: 2px;
  border-left: none;
  border-right: none;
}
#gallery-item h2.caption { margin-bottom: 0; }

img.thumb, img.large {
  margin: 5px;
  border: solid 1px #000;
}
img.large { margin: 10px; }

/* ~~~ GALLERY CAPTIONS ~~~ */

#gallery-item form { margin-bottom: 5px; }
#captions {
  margin: 5px;
  background-color: #eee;
  border: solid 1px #000;
  border-top: none;
}
#captions p { margin: 5px 0; }
#captions p em { font-weight: bold; }

/* ~~~~~~~~~ POLLS ~~~~~~~~ */

#polls {
  padding-bottom: 10px;
  background: #fff url(../common/images/ball.gif) bottom right no-repeat;
  border: 1px solid #000;
  border-top: none;
}
#polls h3.glass {
  border-left: none;
  border-right: none;
}
#polls .question {
  margin: 10px 0 0 0;
  font-size: 14px;
  font-weight: bold;
  font-style: italic;
  color: #0d5c83;
  text-align: center;
}
#polls table.data {
  width: 50%;
  margin: 5px auto 10px auto;
  border: 1px solid #000;
}
#polls td.bold { width: 100%; }

/* ~~~~~~~~~ ADMIN ~~~~~~~~ */

#admin {
  padding: 10px;
  background: #fff;
  border: 1px solid #000;
}
#admin form { padding: 10px; }
#admin label em { color: #0d5c83; }
#admin table th { width: 120px; text-align: left; }

/* ~~~~~~~~~ OTHER ~~~~~~~~ */

#default {
  background-color: #fff;
  border: solid 1px #000;
}

/* ~~~~~~~~~~~~~~~~ SIDE COLUMN ~~~~~~~~~~~~~~~ */

/* ~~~~~ CAPTION THIS ~~~~~ */

#caption_this { text-align: center; }
#caption_this .thumb { margin: 5px 0 0 0; }

/* ~~~~~~~ RSS FEED ~~~~~~~ */

#rss {
  padding: 0 5px 10px 5px;
  background-color: #fff;
  border: 1px solid #000;
  font-size: 11px;
}
#rss a {
  display: block;
  padding: 4px 0;
  border-bottom: 1px dashed #808080;
}
#rss br { display: none; }
#fox {
  margin-bottom: 5px;
  text-align: center;
}

/* ~~~~~~~~~ LINKS ~~~~~~~~ */

.ball {
  display: block;
  padding: 2px 0 2px 20px;
  background: url(../common/images/ball-mini.gif) left no-repeat;
}
.separator {
  margin: 4px 0;
  border-bottom: 1px dashed #808080;
}

/* ~~~~ POLL VOTE FORM ~~~~ */

#vote {
  margin: 0;
  padding: 5px;
  background-color: #fff;
  border: 1px solid #000;
}
#vote #question {
  margin-bottom: 5px;
  font-weight: bold;
  font-style: italic;
}
#vote .answer { padding: 3px; }
#vote .answer input {
  margin: 0 5px 0 0;
  vertical-align: middle;
}
#vote #submit {
  margin-top: 5px 0 0 0;
  text-align: center;
}

/* ~~~~~~~~~~~~~~~~~~ FOOTER ~~~~~~~~~~~~~~~~~~ */

#footer {
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}
#footer div {
  padding: 1px 5px;
  background-color: #ff6600;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  font-size: 10px;
  text-align: right;
}
#footer a { color: #000; }
#footer a:hover { text-decoration: underline; }

/* ~~~~~~~~~~~~~~~~~~~ LINKS ~~~~~~~~~~~~~~~~~~ */

/* ~~~~~~~ STANDARD ~~~~~~~ */

a {
  font-weight: bold;
  color: #0d5c83;
  text-decoration: none;
  outline: none;
}
a:hover { color: #ff9900; }

/* ~~~~~~~~ BUTTON ~~~~~~~~ */

.button {
  margin-top: 10px;
  font-size: 11px;
  text-align: center;
}
.button a {
  margin: 0 3px;
  padding: 3px 5px;
  background: #374164 url(../common/images/bar-black.gif) repeat-x;
  border: 1px solid #000;
  color: #eee;
  text-transform: uppercase;
}
.button a:hover {
  border: 1px solid #ff9900;
  color: #ff9900;
}
.main-item .button { margin-bottom: 2px; }
.side-item .button { margin-bottom: 5px; }

/* ~~~~ PAGING CONTROLS ~~~ */

.controls {
  margin: 10px 0 15px 0;
  font-size: 14px;
  text-align: center;
}
.controls strong { color: #900; }
.controls span {
  font-weight: bold;
  color: #808080;
}

/* ~~~~~~~~ SOURCE ~~~~~~~~ */
.source {
  margin-top: 3px;
  font-size: 9px;
}
.source a:hover { 
  color: #0d5c83;
  text-decoration: underline;
}

/* ~~~~~~~~~~~~~~~~ OTHER STUFF ~~~~~~~~~~~~~~~ */

/* ~~~~~~~~~ FORMS ~~~~~~~~ */

form {
  margin: 5px;
  padding: 5px;
  background-color: #ccc;
  border: 1px solid #000; 
}
form input { margin: 3px 0; }

/* ~~~~~~~~~ MISC ~~~~~~~~~ */

.msg, .err {
  margin: 10px;
  font-size: 12px;
}
.msg strong { color: #0d5c83; }
.err strong { color: #900; }

.bold { font-weight: bold; }

.center { text-align: center; }

