/***************************************************************************
 * GENERAL FORMATTING.
 */

body
   { background: rgb(255,255,255)
   ; color: rgb(0,0,0);
   }

h1
   { background: rgb(255,224,204)
   ; color: rgb(0,0,0)
   ; padding: 3px;
   ; text-align: center
   ; border: 5px solid rgb(204,173,153)
   }

h2
   { background: rgb(204,224,255)
   ; color: rgb(0,0,0)
   ; padding: 3px;
   ; border: 5px solid rgb(153,173,204)
   }

/***************************************************************************
 * LINKS IN THE RESULT TABLE.
 */

table.results :link
   { color: inherit
   ; font-size: inherit
   ; text-decoration: none
   }

table.results :active
   { color: inherit
   ; font-size: inherit
   ; text-decoration: none
   }

table.results :visited
   { color: inherit
   ; font-size: inherit
   ; text-decoration: none
   }

/***************************************************************************
 * RESULTS TABLE FORMATTING
 */

table.results
   { background-color: black
   ; border-collapse: separate
   }

table.results td, table.results th
   { padding: 3px
   }

table.results th
   { background-color: rgb(173,153,204)
   ; color: white
   ; font-weight: bold
   }

table.results th.exhibition
   { color: rgb(51,51,153)
   }

table.results th.black
   { color: black
   }

table.results td
   { background-color: rgb(204,204,204)
   ; color: black
   ; text-align: center
   }

table.results td.white
   { background-color: white
   ; color: black
   }

table.results td.black
   { background-color: black
   ; color: white
   }

/* This style means white won because black had an error. */
table.results td.whiteError
   { background-color: white
   ; color: red
   }

/* Black won because white had an error. */
table.results td.blackError
   { background-color: black
   ; color: red
   }

/* Game was drawn due to an out of memory error. */
table.results td.oomError
   { background-color: orange
   ; color: red
   }

/* Game was decided by the TAs. */
table.results td.blackTADecision
   { background-color: black
   ; color: rgb(128, 255, 128)
   }

table.results td.whiteTADecision
   { background-color: white
   ; color: rgb(0, 128, 0)
   }

/* Game was drawn due to a server error. */
table.results td.serverError
   { background-color: red
   ; color: white
   }

/* style for the rankings table */

table.ranking
   { background-color: black
   ; border-collapse: separate
   }

table.ranking td, table.ranking th
   { padding: 3px
   }

table.ranking th
   { background-color: rgb(173,153,204)
   ; color: white
   ; font-weight: bold
   }

table.ranking td
   { background-color: rgb(255,240,255)
   ; color: black
   }

dt
   { font-weight: bold
   }

