/*
CSS for Newark Chess Club site
*/

body {
  font-family: Verdana, Helvetica, Arial, sans-serif;
  background-color: #e2edff; /* original colour #e2edff */
  line-height: 125%;
  padding: 0;
  margin: 0;
}

h1, h2, h3 {
  font-style: "Trebucket MS", Helvetica, Arial, sans-serif;
}

h1 {
  font-size: x-large;
  background-color: #2C3C4B; /* original colour navy */
  color: white;
  padding-top: 2em;
  padding-bottom: .2em;
  padding-left: .4em;
  margin: 0;
}

li {
  font-size: small;
  list-style-type: none;
}

h2 {
  color: #1E201B; /* original colour navy */
  font-size: 130%;
  font-weight: normal;
  padding-top: 15px;
}

h3 {
  color: #1E201B; /* original colour navy */
  font-size: 100%;
  font-weight: bold;
  padding-top: 15px;
}

h2, ul {
  margin-top: 15px; 
}

p {
  font-size: small;
  color: #2C3C4B; /* original colour navy */
}

em {
  text-transform: uppercase;
}

a {
  font-weight: bold;
}

a:link {
  color: black;
}

a:visited {
  color: #1E201B; /* original colour navy */
}

a:hover {
  text-decoration: none;
  color: white;
  background-color: #1E201B; /* original colour navy */
}

a:active {
  color: aqua;
  background-color: navy;
}

.fun {
  color: #339999;
  font-family: Georgia, Times, serif;
  letter-spacing: 0.05em;
}

#navigation {
  width: 100%;
  background-color: #a1a8b2; /* original colour #7da5a8 */
}

/* 
This section deals with the position of items on the screen.
It uses absolute positioning - fixed x and y coordinates measured
from the top-left corner of the browser's content display
 */
 
#navigation, #bodycontent, #header, #bodycontent2, #sidebar {
  position: absolute;
}

#navigation {
  top: 79px;
  width: 100%; /* 1024px */
}

#bodycontent, #bodycontent2, #sidebar {
  top: 94px;
}

#sidebar {
  top: 120px;
  margin-left: 720px; /* 730 */
}

#bodycontent2 {
  width: 675px; /* 675 */
  padding-left: 10px;
}

#bodycontent {
  padding-left: 10px;
}

#header {
  width: 100%; /* 1024px */
  border-top: 3px solid #D9DDE8; 
  border-bottom: 3px solid #D9DDE8;
}

#navigation ul, li {
  display: inline;
  margin: 0;
  padding: 0;
  padding-left: .4em;
}

.feature {
  float: right;
  margin: 10px;
}


/* Table styling */

table.fixtures {
  border-collapse: collapse;
  margin-left: 7em;
}

table.fixtures th, table.fixtures td {
  padding: 4px;
  border: 1px solid #000000;
}

table.fixtures th {
  font-size: x-small;
  text-align: left;
  background-color: #a1a8b2;
  color: #ffffff;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 2px;
  padding-right: 2px;
}

table.fixtures td {
  font-size: small;
}

table.fixtures caption {
  color: #2C3C4B;
  font-size: small;
  text-align: left;
  padding-bottom: 5px;
  font-weight: bold;
}

/* Form styling */

form.contact fieldset {
  border: 2px solid #2C3C4B;
  padding: 10px;
}

form.contact legend {
  font-weight: bold;
  font-size: small;
  color: #2C3C4B;
  padding: 5px;
}

form.contact {
  padding: 0px;
  margin: 0px;
  margin-top: -15px;
}

form.contact label {
  font-weight: bold;
  font-size: small;
  color: #2C3C4B;
  line-height: 150%;
}

form.contact label.fixedwidth {
  display: block;
  width: 240px;
  float: left;
}

form.contact .buttonarea input {
  background: #2C3C4B;
  color: white;
  font-weight: bold;
  padding: 5px;
  border: 1px solid white;
}

form.contact .buttonarea {
  text-align: center;
  padding: 4px;
  background-color: #a1a8b2;
}

/* Calendar styling for home page */

table#calendar tr#days th {color: #CCE; background-color: #224;
  font-weight: bold; text-align: center; font-size: small;
  padding: 1px 0.33em;}
table#calendar tr#title th {background: #AAC; color: black;
  border: 1px solid #224; font-size: 100%;}
table#calendar td {color: #777; text-align: right;
  border: 1px solid gray;
  border-color: #BBB #EEE #EEE #BBB; font-size: small;}
table#calendar td.sun {border-right: 1px solid #BBB;}
table#calendar td.sat, td.sun {background: #FDD;}
table#calendar td a {font-weight: bold; display: block; margin: 0;}
table#calendar a-link {color: navy;}
table#calendar a:visited {color: purple;}
table#calendar a:hover {background: #FF6; color: navy;}
table#calendar td.mar, td.may {background: #AAB; color: #889;
  border: 1px solid #AAB; border-right-color: #99A;}
table#calendar tr#lastweek td {border-bottom: 2px solid #AAB;}
/* table#calendar td.holiday {background: #FAA; 
  border-color: #BBB #FCC #FCC #BBB;} */
/* table#calendar td#oct18 {background-color: yellow; border: 1px solid black;} */
/* table#calendar td#jan02 {background-color: #AAB;} */
table#calendar a {text-decoration: none; }
table#calendar td.sun {background: #FDD;}
table#calendar td.may {background: #AAB;}
 
table.results {
  border-collapse: collapse;
  width:40%; 
  margin-left:30%; 
  margin-right:30%;
}

table.results th, table.results td {
  padding: 4px;
  border: 1px solid #a1a8b2;
}

table.results td {
  font-size: small;
}

table.results caption {
  color: #000000;
  font-size: small;
  text-align: left;
  padding-bottom: 5px;
  font-weight: bold;
}

table.results td.blank {
  border-bottom: 0px;
  border-right: 0px;
  border-left: 0px;
  border-top: 0px;
}

.center {
  text-align: center;
}

table.results td.xsmall {
  font-size: x-small;
}

table.results td.win {
  background-color: green;
  color: black;
  font-size: x-small;
  font-weight: bold;
}

table.results td.draw {
  background-color: yellow;
  color: black;
  font-size: x-small;
  font-weight: bold;
}

table.results td.loss {
  background-color: red;
  color: black;
  font-size: x-small;
  font-weight: bold;
}