/**
 * General
 **/

html, body {
  /* ensure height is set */
  height: 100%;
  max-height: 100%;
  
  /* no extra space for elements */
  padding: 0;
  margin: 0;
  border: 0;
  
  /* background */
  background-color: black;
  
  /* general values */
  font-family: "Lucida Grande", Verdana, sans-serif;
  font-size: 12px;
}

a {
  font-weight: bold;
  text-decoration: none;
  color: #804000;
}

/* ensure no top margin is present */
p {
  margin: 0;
  margin-bottom: 10px;
}

img {
  padding: 0;
  margin: 0;
  border: 0;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

table th {
  text-align: left;
  vertical-align: top;
  padding-right: 10px;
}

.underline {
  text-decoration: underline;
}

.bold {
  font-weight: bold;
}

.end {
  clear: both;
  padding-bottom: 7px;
  border-bottom: 1px solid #686767;
}

div.edit_none {
  display: none;
}

/**
 * Articles
 **/
 
.article {
  padding-bottom: 30px;
  clear:both;
}

.article .title {
  font-weight: bold;
  border-bottom: 2px solid #686767;
}
 
.article .date {
  float: right;
}

.article .content {
  margin-top: 7px;
  margin-bottom: 20px;
  text-align: justify;
  margin-right: 250px;
}

.article .teasercontent {
  margin-top: 7px;
  margin-bottom: 20px;
  text-align: justify;
  margin-right: 190px;
}

.article .noimages {
  margin-right: 0;
}

.article .content .more {
  text-decoration: none;
}

.article .images {
  float: right;
  margin-bottom: 10px;
  margin-left: 10px;
}

.article .teaser_image {
  float: right;
  width: 180px;
  max-height: 100px;
  overflow:hidden;
  margin-top: 7px;
  margin-bottom: 20px;
  margin-left: 5px;
}

.article .images img {
  margin-top: 7px;
  display: block;
  width: 240px;
}

.article .end {
  border: none;
}

table.articles {
  width: 700px; /* prefer absolute values to avoid IE 7 problems */
}

table.articles .year {
  text-align: left;
  padding-top: 10px;
  padding-bottom: 5px;
  font-size: 14px;
}

table.articles td {
  border-bottom: 1px solid #cccccc;
}

table.articles .date {
  width: 150px;
}

/**
 * Maps
 **/
 
.map {
  margin-bottom: 30px;
  clear: both;
}

.map .title {
  border-bottom: 2px solid #686767;
  font-weight: bold;
}
 
.map .date {
  float: right;
}

.map .content {
  position: relative;
  clear: both;
}

.map .content .preview {
  width: 180px;
  max-height: 100px;
  overflow: hidden;
  padding-top: 7px;
  padding-right: 10px;
  float: left;
}

.map .content .preview img {
  width: 180px;
}

.map .content .description {
  padding-top: 7px;
  min-height: 20px;
  margin-bottom: 20px;
}

.map .content .link {
  position: absolute;
  left: 190px;
  bottom: 7px;
}

/**
 * Pictures
 **/
 
.album {
  position: relative;
  margin-bottom: 30px;
  clear:both;
}

.album .title {
  border-bottom: 2px solid #686767;
  font-weight: bold;
}

.album .date {
  float: right;
}

.album .preview {
  width: 180px;
  float: left;
  padding-top: 7px;
  padding-right: 10px;
}

.album .preview img {
  width: 180px;
}

.album .text {
  padding-top: 7px;
  min-height: 20px;
  margin-bottom: 20px;
}

.album .link {
  position: absolute;
  left: 190px;
  bottom: 7px;
}

/**
 * Album
 **/
 
table.albumpreview {
  width: 700px; /* prefer absolute values to avoid IE 7 problems */
}

table.albumpreview td {
  width: 25%;
}

.albumdetail {
  text-align: center;
}

#albumimage_div, #albumimage_hidden_div {
  width: 750px; /* prefer absolute values to avoid IE 7 problems */
  height: 350px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-bottom: 15px;
}

#albumimage, #albumimage_hidden {
  max-width: 500px;
  max-height: 350px;
}

/**
 * Links
 **/
 
table.links {
  width: 700px; /* prefer absolute values to avoid IE 7 problems */
}
 
table.links a {
  text-decoration: none;
}
 
table.links th.not_first {
  vertical-align: bottom;
  height: 30px;
}

table.links td.link {
  width: 50%;
}

/**
 * Portrait
 **/

.portrait {
  float: right;
}

.portrait img {
  max-width: 250px;
}

.portrait .copyright {
  text-align: right;
  font-size: 10px;
}

/**
 * Program
 **/

table.program {
  width: 700px; /* prefer absolute values to avoid IE 7 problems */
}

table.program th.not_first {
  vertical-align: bottom;
  height: 30px;
}

table.program td {
  border-bottom: 1px solid #cccccc;
}

table.program .date {
  width: 200px;
}

table.program .name {
  width: 500px;
}

/**
 * Results
 **/

table.results {
  width: 700px; /* prefer absolute values to avoid IE 7 problems */
}

table.results th.type {
  font-size: 14px;
}

table.results th.not_first {
  vertical-align: bottom;
  height: 50px;
}

table.results td.year {
  width: 50px;
}

table.results td.name {
  width: 150px;
}

/**
 * Sponsors
 **/

.sponsor {
  position: relative;
  clear: both;
  margin-top: 25px;
  margin-bottom: 35px;
}

.sponsor .image {
  float: left;
  width: 200px;
}

.sponsor .image img {
  width: 200px;
}

.sponsor .text {
  padding-left: 220px;
  margin-bottom: 10px;
}

.sponsor .link {
  padding-left: 220px;
}

.sponsor .end {
  border: none;
}

/**
 * Club members
 **/
 
.captcha_error {
  font-weight: bold;
  color: red;
  padding-bottom: 20px;
}

/**
 * Layout
 **/

#layout_main {
  width: 1000px;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  
  margin: auto;
  position: relative;
}

#layout_header {
  /* define location */
  position: absolute;
  top: 10px;
  left: 0px;
  width: 1000px;
  height: 150px;
  
  /* 
   * background-image
   * note that the image itself is domain-dependent
   * and defined in a separate .css file
   **/
  background-repeat: no-repeat;
}

#top_navigation_bar {
  position: absolute;
  top: 123px;
  left: 180px;
}

#layout_navigation {
  /* define location */
  position: absolute;
  top: 160px;
  left: 0px;
  width: 180px;
}

#layout_content {
  /* define location and span */
  position: absolute;
  top: 160px;
  bottom: 10px;
  left: 180px;
  width: 740px;
  overflow: auto;
  
  /* content display */
  background-color: white;
  padding-left: 40px;
  padding-right: 40px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.top_navigation_item {
  width: 205px;
  height: 24px;
  color: white;
  background-color: black;
  padding-top: 4px;
  text-align: center;
  float: left;
}

.top_navigation_item a {
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  text-decoration: none;
  color: white;
  background-color: black;
}

.top_navigation_item a:hover {
  color: #888888;
}

.top_navigation_item.selected a {
  color: #888888;
}

#runner_image {
  margin-bottom: 30px;
}

a.navigation_link {
  text-decoration: none;
}

.navigation_item {
  display: block;
  height: 20px;
  padding-left: 30px;
  padding-top: 4px;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  text-decoration: none;
  color: white;
  background-color: black;
  cursor: pointer;
}

.navigation_item.selected, .navigation_item:hover {
  background-image: url(nav_background.png);
}
