/* -*-php-*- $Id$ */
/* Sitewide, basic rules */

body {
  font-family: Verdana,Arial,Helvetica,sans-serif;
  font-size: small;
  margin: 0;
  padding: 0;
}

img {
  border: none;
}

table {
  border-collapse: collapse;
}
table caption {
  width: 100%;
}

.block-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.error {
  background-color: inherit;
  color: #ff0000;
}

a:link {
  background-color: inherit;
  color: #000099;
  text-decoration: none;
}
a:visited {
  background-color: inherit;
  color: #990000;
  text-decoration: none;
}
a:focus, a:hover {
  background-color: inherit;
  color: #ff00ff;
  text-decoration: none;
}

div.footer {
  border: none;
  padding: 0;
  margin: 0 auto;
  clear: both;
}
div.footer div {
  font-size: 0.8em ;
  padding: 70px 0px 0px;
  text-align: center;
}
div.footer li {
  border: solid 0.1em #cccccc;
  display: inline;
  margin: 0.0ex 0.2em;
  padding: 0.4ex 0.4em;
}

div.login {
  background-color: #ffffff;
  border: solid 0.1em #cccccc;
  color: #000000;
  font-size: 0.8em;
  left: 540px;
  padding: 1.0ex 0.5em;
  position: relative;
  top: 35px;
  width: 16.0em;
}
div.login form {
  margin: 0px;
  padding: 0px;
}
div.login form div {
  clear: both;
  margin: 0.8ex 1.0em;
}
div.login form label {
  float: left;
  padding: 0.1em;
  width: 50%;
}
form.login input {
  float: right;
  font-family: Verdana,Arial,Helvetica,sans-serif;
  font-size: 1em;
  width: 42%;
}
div.login form #login_submit {
  margin-top: 2.5ex;
}
div.login form .hilite {
  font-weight: bold;
}

.unstyledonly {
  display: none;
}

div.mainbody {
  border: none;
  margin: 0px auto;
  padding: 0px;
}

.repeat {
  border: solid 1px black;
  display: inline-block;
  text-align: center;
}

#extracontent {
  clear: both;
}

div.mainform {
  margin-left: auto;
  margin-right: auto;
}
div.mainform #submit {
  width: auto;
}
div.mainform div {
  clear: both;
  font-size: 1.0em;
  margin: 0.5ex 0.5em;
}
div.mainform form label {
  float: left;
  margin: 0.5ex 0.0em;
  width: 50%;
}
div.mainform form input {
  font-family: Verdana,Arial,Helvetica,sans-serif;
  font-size: 1em;
  width: 45%;
}
div.mainform form select {
  font-family: Verdana,Arial,Helvetica,sans-serif;
  font-size: 1em;
  width: 45%;
}
div.mainform form textarea {
  clear: both;
  margin: 0.5ex 0.0em 2.0ex;
  width: 96%;
}
div.mainform .hilite {
  background-color: inherit;
  color: #cc66ff;
  text-align: left;
}

h1, h2, h3, h4, h5, h6 {
  background-color: inherit;
  color: #663333;
  clear: both;
  font-weight: normal;
}

th {
  background-color: inherit;
  color: #663333;
  font-size: 1.8em;
  font-weight: normal;
  padding: 1.25ex 1.25em;
  text-align: center;
}

table.calendar {
  margin-bottom: 3.0ex;
  width: 100.0%;
}
table.calendar th {
  background-color: #cccccc;
  border: black 2px solid;
  color: inherit;
  font-size: 1.4em;
  padding: 0.5ex 0.5em;
}
table.calendar td {
  text-align: center;
}

#subnav {
  border-left: black 2px dotted;
  float: right;
  margin-bottom: 16px;
  padding: 0px 0px 0px 16px;
  width: 12.0em;
}
#subnav ul {
  list-style: none;
  margin: 0px;
  padding: 0.2ex 0.2em 0.2ex 1.2em;
}
#subnav ul li {
}
#subnav ul li ul li {
}

#menu {
}

#subcontent {
  float: left;
  width: 450px;
}

/* All this for embedding objects like QuickTime and Flash movies
 * whilst maintaining XHTML Strict validity. Two nested <object> tags
 * and some disgusting voodo: */

/* Hides the second object from all versions of IE */

* html object.mov {
    display: none;
}

/* Displays the second object in all versions of IE apart from 5 on PC */

* html object.mov/**/ {
    display: inline;
}

/* Hides the second object from all versions of IE >= 5.5 */

* html object.mov {
    display/**/: none;
}

#mainnav {
  background-color: #333333;
  color: white;
  font-size: 1.1em;
  height: 22px;
  list-style: none;
  margin: 0px 10px;
  overflow: hidden; 
  padding: 4px 40px 4px;
}
#mainnav li {
  float: left;
  padding-right: 20px;
}
#mainnav #about {
  float:right;
  padding-right: 0px;
}
#mainnav a:link {
  background-color: inherit;
  color: white;
}
#mainnav a:visited {
  background-color: inherit;
  color: white;
}
#mainnav a:focus, a:hover {
  background-color: inherit;
  color: red;
}

#minisearch {
  font-size: 0.9em;
}

.searchresult {
  border: solid 0.1em #cccccc;
  margin-bottom: 1.0ex;
  padding: 0.75ex 0.75em;
}
.searchresult a {
  float: left;
}
.searchresult .relevance {
  float: right;
}
.searchresult p {
  clear: both;
}
.searchresult span {
  background-color: inherit;
  color: #999999;
}

div.mainnav {
  border: none;
  padding: 0;
  margin: 0 auto;
  clear: both;
}
div.mainnav div {
  font-size: 0.8em ;
  padding: 70px 0px 0px;
  text-align: center;
}
div.mainnav li {
  display: inline;
  margin: 0.0ex 0.2em;
  padding: 0.4ex 0.4em;
}

#relnav {
  font-size: 0.8em;
  height: 6.0ex;
  width: 100%;
}
#relnav #prev {
  float: left;
  text-align: left;
  width: 32%;
}
#relnav #up {
  width: 32%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
#relnav #next {
  float: right;
  text-align: right;
  width: 32%;
}


/* Print-specific rules */

div.masthead {
  display: none;
}
div.footer {
  display: none;
}

#mainnav, #relnav, #subnav {
  display: none;
}

/* Footy-specific general styles. */

.hilite {
  font-weight: bold;
}

#referer {
  background-color: inherit;
  color: #cc66ff;
}

th {
  font-size: 1.6em;
  padding: 0.0ex 0.0em 1.0ex;
}

/* For displaying the two teams in a game. */

div.teams {
  margin-top: 0px;
  margin-bottom: 12px;
}
ul.team {
  border: solid 0.1em #cccccc;
  list-style: none;
  margin: 1.5ex 0em 1.5ex 1.5em;
  padding: 1.25ex 0.50em;
}
ul.team li {
  clear: both;
}
ul.team li img.mugshot {
  float: left;
}
ul.team li img.icon {
  float: left;
}
ul.team li div {
  float: right;
  width: 75%;
}
ul.team li a {
  float: left;
}
ul.team li span.age {
  float: right;
}
ul.team li span.debt {
  background-color: inherit;
  color: #ff0000;
  float: right;
}

div.teamsummary {
  margin-top: 2.5ex;
}

form.gameresult {
  text-align: center;
}

.player {
  border-bottom: dotted 0.1em #cccccc;
}
.score {
  border-bottom: dotted 0.1em #cccccc;
  text-align: right;
}

div.bodytable {
  background-image: url("/footy/images/flags/flags.png");
  background-position: top center;
  background-repeat: no-repeat;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5ex 0.0em;
}
div.bodytable table {
  background-color: inherit;
  color: #000000;
  font-size: 1em;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 15.0em;
}
div.bodytable td {
  border-bottom: dotted 0.1em #cccccc;
  padding: 0.5ex 0.0em;
}
div.bodytable td #referer {
  background-color: inherit;
  color: #cc66ff;
}

div.statstable {
  margin-left: auto;
  margin-right: auto;
  padding: 1.5ex 0.0em;
}
div.statstable table {
  background-color: inherit;
  color: #000000;
  font-size: 1em;
  margin-left: auto;
  margin-right: auto;
}
div.statstable table th {
  background-color: inherit;
  color: #000000;
  font-size: 1.5em;
}
div.statstable table td {
  text-align: center;
  width: 25%;
}

/* Index page specific. */

div.leadertables {
  margin-left: auto;
  margin-right: auto;
}
div.leadertables table {
  font-size: 0.75em;
  margin-left: auto;
  margin-right: auto;
}
div.leadertables table table {
  font-size: 1.0em;
  margin: 0;
  padding: 0;
}
div.leadertables table td {
  padding: 0.5ex 1.0em;
}
div.leadertables table td td {
  padding: 0.5ex 0.0em;
}
div.leadertables .score {
  width: 4.0em;
}

/* Response form, for a player saying whether they can turn up. */

div.responseform {
  background-color: inherit;
  border: dotted 0.1em #cccccc;
  color: #cc66ff;
  margin-left: auto;
  margin-right: auto;
  padding: 1.0ex 1.0em;
  text-align: center;
}
div.responseform form {
  background-color: inherit;
  color: #000000;
  text-align: left;
}
div.responseform form label {
  float: left;
  width: 50%;
}
div.responseform form input {
  font-family: Verdana,Arial,Helvetica,sans-serif;
  font-size: 1.0em;
  width: 45%;
}

/* Player profile page specific stuff. */

#playermasthead {
  border: solid 0.1em #cccccc;
  height: 220px;
  padding: 4px;
}
#playermasthead #badges {
  height: 170px;
}
#badges dl {
  width: 80px;
}
#badges img {
  border: solid 1px black;
  padding: 2px;
}
#playermasthead #crests {
  float: right;
}
#playermasthead #flags {
  float: right;
}
#playermasthead #mugshot {
  float: left;
  margin: 0px;
  width: 200px;
}
#playermasthead img {
  margin: 0.5ex 0.5em;
}
#playermasthead .icon {
  margin: 0px 0px;
}

#playermasthead dl {
  margin: 4px 18px;
}
#playermasthead dt img {
  display: block;
  margin: 0px auto 0px auto;
}
#playermasthead dd {
  font-size: 0.8em;
  margin: 0px;
  text-align: center;
  width: auto;
}
#playermasthead #form {
  float: right;
}

#playerfactoids {
  border: solid 0.1em #cccccc;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 4px;
}
#playerfactoids table {
  width: 100%;
}

div.playerstats {
  clear: both;
}
div.playerstats table {
  width: 12.0em;
}
div.playerstats caption {
  font-size: 2.0ex;
  margin-bottom: 12px;
  width: inherit;
}
div.playerstats th {
  background-color: inherit;
  color: #663333;
  font-size: 1.25em;
  font-weight: normal;
  padding: 0px;
  text-align: left;
  width: 4.0em;
}
div.playerstats td {
  text-align: right;
  width: 4.0em;
}
table.player_results {
  float: left;
}
table.player_positions {
  float: right;
}

/* Fixture table (results and fixtures, actually) */

div.fixturetable {
  margin-left: auto;
  margin-right: auto;
}
div.fixturetable table {
  font-size: 1em;
  margin-left: auto;
  margin-right: auto;
}
div.fixturetable table table {
  border: solid 0.1em #cccccc;
  font-size: 1em;
  width: 100%;
}
div.fixturetable table table th {
  background-color: #cccccc;
  color: #000000;
  font-size: 1.0em;
  font-weight: bold;
  padding: 1.0ex 1.0em;
  text-align: left;
  text-indent: 0em;
}
div.fixturetable table table td {
  padding: 0.5ex 1.0em;
  text-align: left;
}
div.fixturetable table table td {
  background-color: inherit;
  color: #999999;
}
div.fixturetable table table td a {
  background-color: inherit;
  color: #000000;
}
div.fixturetable table table col.date {
  text-indent: 2em;
}
div.fixturetable table table col.comment {
  font-size: 0.9em;
  width: 70%;
}

/* Game message board. */

div.gamechat {
  margin-bottom: 2.0ex;
}
div.gamechat table {
  font-size: 1.0em;
}
div.gamechat table td {
  border-bottom: solid 0.1em #cccccc;
  border-top: solid 0.1em #cccccc;
  padding: 1.5ex 1.0em 1.5ex 0.0em;
}
div.gamechat table table {
  background-color: inherit;
  border: 0.1em solid #000099;
  color: #000099;
  font-size: 0.7em;
  font-weight: bold;
  width: 16.0em;
}
div.gamechat table table a:link {
  background-color: inherit;
  color: #000099;
}
div.gamechat table table a:visited {
  background-color: inherit;
  color: #000099;
}
div.gamechat table table a:hover {
  background-color: inherit;
  color: #ff00ff;
}
div.gamechat table table td {
  border: none;
  padding: 0.75ex 0.5em;
}
div.gamechat td.chatbody {
  background-color: inherit;
  color: #000000;
}
div.gamechat td.chatbody:first-letter {
  text-transform: uppercase;
}

.flagsfirsthalf {
  float: left;
}

.flagssecondhalf {
  float: right;
}

img.flag {
  border: solid 1px black;
  margin-bottom: 25px;
  padding: 2px;
}

#yearnav {
  font-size: 0.8em;
  list-style: none;
  margin:0px 0px 10px 0px;
  padding:0px;
  text-align: center;
  width: 100%;
}
#yearnav li {
  display: inline;
  padding: 0.0ex 2.0em;
}

div.curse h1 {
  text-align: center;
}
div.curse #yearnav {
  margin-top: 25px;
}

div.graphcontainer {
  background: black;
  padding: 1px ;
}

/* Anonymous ratings style */

#arse h2 {
  font-size: 1.2em;
  text-align: center;
  width: 100%;
}

form.arse {
  margin: 0 auto 1.4em 0;
  padding: 0;
  text-align: center;
  margin: 0 auto;
}

form.arse input {
  height: 14px;
  width: 2em;
  margin-left: 0.2em;
}

form.arse #rateem {
  float: right;
  margin-right: 40px;
  margin-top: 20px;
  height: auto;
  width: auto;
}

form.arse label {
  display: block;
  padding: 0;
  margin-right: 0.2em;
  text-align: right;
  font-style: oblique;
  font-weight: bold;
  color: #5c5c5c;
}

form.arse dl , dt , dd {
  margin: 0;
  padding: 0;
  text-align: left;
}

form.arse label {
  width: 8em;
  float: left;
  clear: left;
  padding: 0 0 4px 0;
}

form.arse select , .fd-slider {
  float: left;
  margin-left: 9px;
  margin-bottom: 4px;
  width: 280px;
}

form.arse .fd-slider {
  width: 272px;
}

/* Footy-specific print styles. */

div.responseform {
  display: none;
}

