html {
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}

body {
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #030612;
}

body.nonisu {
  background: url('../img/blue.jpg') repeat top center
}

body.isu {
  background: url('../img/ISUbgbody.jpg') repeat top center #6792bf
}

a:link, a:visited {
  color: #060D5E;
  text-decoration: underline;
}

a:hover {
  color: #060D5E;
  background-color: #FFFFC6;
  text-decoration: underline;
}

p {
  padding-left: 0.5em;
}

table {
  padding: 1; 
  border-spacing: 0;
  border-collapse: collapse;
  border: 0px; 
//  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #060D5E;
}

h3 {
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 12px;
  color: #0d1778;
  padding: 1px 7px;
  background-color: #d9dbe5;
  background-image: url(../img/background.jpg);
  background-repeat: repeat;
  margin-top:.5em;
  margin-bottom:.5em;
  line-height: 16px;
}

.message {
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 12px;
  color: #0d1778;
  background-color: #fff86a;
  border:1px solid #C0C0C0;
  border-spacing: 0;
  padding: 5px;
  text-align: center;
}

table.messagetable {
  border-collapse: collapse;
  border:0px;
  margin-bottom: 1.2em;
  width: 100%
}

table.races {
  width: 100%;
}

table.races tr:nth-child(odd) {background-color: transparent}
table.races tr:nth-child(even) {background-color: transparent}

.races .qualtext {
  background-color: #fff;
  padding-left: 1.5em;
}

.races .racehead {
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 12px;
  color: #FFFFFF;
  padding-left: 1.5em;
  background-color: #243B99; 
  height: 18px;
  width: 100%;
}


table.race {
  border-collapse: collapse;
  border:1px solid #C0C0C0;
  margin-bottom: 1.2em;
  width: 100%
}

table.race tr:nth-child(odd) {background-color: #dae1eb}
table.race tr:nth-child(even) {background-color: #f1f4f8}

.race tr {
  border-bottom:1px solid #C0C0C0;
}

.race th {
  font-size: 8px;
  font-weight: normal;
  color: #686C8C;
  background-color: #f3f3f3;
}

race th.finish {
  text-align: center;
  padding-right: 1.5em;
}

race th.helmnr {
  text-align: center;
  padding-right: 1.0em;
}

race th.time {
  text-align: right;
//  padding-right: 1.0em;
}

table tr.racetitle:nth-child(odd) {background-color: #fff}
table tr.racetitle:nth-child(even) {background-color: #fff}

.race tr.racetitle {
  height: 20px;
  color: #ff554f;
}

.race .racetitle td {
  font-weight: bold;
  padding-left: 1.0em;
}

.race .name {
  width: 12em;
  text-align: left;
}

.race .flag {
  width: 2em;
  text-align: right;
}

.race .abr {
  width: 4em;
  text-align: left;
  padding-left: .8em;
}

.race td.time {
  width: 4em;
  text-align: right;
}


.topnav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #fff;
}

.topnav li {float: left; position:relative;}

.topnav li a {
  display: inline-block;
  color: #243B99;
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  padding: 5px 6.8px;
  text-decoration: none;
  transition: 0.3s;
}

.topnav li a:hover {background-color: #ff554f; color:#fff;}

.topnav li.icon {display: none;}


table.table-bordered tr:nth-child(odd) {background-color: #dae1eb}
table.table-bordered tr:nth-child(even) {background-color: #f1f4f8}

//table tr.e {
//  background-color: Yellow;
//}


table.competitors {
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #060D5E;
}

table.competitors thead {display: none;}

table.competitors td.rank {
  width: 3em;
  text-align:center;
}

table.competitors td.helmet {
  width: 3em;
  text-align:center;
}

table.competitors td.name {
  width: 15em;
}

table.competitors td.club {
  width: 6em;
}

table.competitors td.withdr {
  width: 10em;
}

table.competitors tr.withdrawn {
  background-color: #dddddd;
}

table.competitors tr.withdrawn td {
  color: #777777;
}



table.officials {
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #060D5E;
}

table.officials thead {display: none;}

table.officials td.function {
  padding-left:1em;
  width: 8em;
}

table.officials td.name {
  width: 10em;
}

table.officials td.nation {
  width: 4em;
}


table.schedule {
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  font-size: 11px;
  color: #060D5E;
}

table.schedule thead {display: none;}

table.schedule tr.nonrace-event {
  background-color: #dae1eb;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
  height: 1.0em;
}

table.schedule tr.race-event {
  background-color: #f1f4f8;
}

table.schedule td.time {
  width: 4em;
}

table.schedule td.mark {
  width: 1em;
  text-align: right;
}

table.schedule tr.nonrace-event td.event {
  font-style: italic;
  color: #ff554f;
  padding-left: 1em;
}

table.schedule td.numraces {
  width: 6em;
}

table.schedule td.pdflink {
  width: 9em;
}

td.lastupdate {
  text-align: right;
  font-size: 9px;
  font-style: italic;
}

.competition_name {
  width: 100%; 
  text-align: center;
  vertical-align: center;
  height: 30px;
  font-family: Verdana, Lucida, Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 13px;
  color: #243B99;
  margin-left: .5em;
}


@media screen and (max-width:500px) {
  .race td.finish {
    width: 1em;
    text-align: right;
    padding-right: 0.5em;
  }

  .race .lane {
    display: none;
  }

  .race .points {
    display: none;
  }
  
  .race th {
    display: none;
  }

  .race td.helmnr {
    width: 1.2em;
    text-align: right;
    padding-right: 0.3em;
  }

  .race .qual {
    width: 1.5em;
    text-align: left;
    padding-left: 0.5em;
  }

  .race .photo {
    text-align: right;
    padding-right: .5em;
  }
}

@media screen and (min-width:500px) {
  .race td.finish {
    width: 2em;
    text-align: right;
    padding-right: 1.5em;
  }

  .race .lane {
    width: 2em;
    text-align: center;
  }

  .race .points {
    width: 2em;
    text-align: right;
    padding-right: 2.0em;
  }

  .race td.helmnr {
    width: 2em;
    text-align: right;
    padding-right: 1.0em;
  }

  .race .qual {
    width: 2em;
    text-align: left;
    padding-left: 2.5em;
  }

  .race .photo {
    text-align: right;
    padding-right: 2em;
  }
}



@media screen and (min-width:900px) {
  #main {
    float:right;
    position: relative;
    width : 920px;
    left: -50%;
  }
  
  #white {
    position: relative;
    left: 50%;
    background-color: white;
  }
  
  #leftmenu{
    position: absolute;
    top: 280px;
    left: 50px;
    width: 200px;
    z-index: 10;
  }
  
  .container{
    position: relative;
    padding: 30px 50px 25px 270px;
    left: 250px;
  }
  
  .headerimg {
     width : 820px;
     display: block;
     margin: 0 auto;
  }

  form select{
    width: 400px;
    margin-bottom: 0em;
  }

  table.schedule {
    width: 600px;
  }

  .topnav {
    float:right;
    position:relative;
    left:-50%;
    text-align:left;
    z-index: 10;
  }  

  .topnav ul {
    position:relative;
    left:50%;
  }
}

@media screen and (max-width:900px) {
  #main {
    width : 100%;
  }
  
  #white {
    width : 100%;
    background-color: white;
  }
  
  #leftmenu{
    position: fixed; 
    top:0%; 
    left:0%;
  }

  table.schedule {
    width: 100%;
  }

  .container{
    width : 100%;
    padding: 2px px;
  }
  
  .headerimg {
    width : 100%;
  }

  form select{
    width: 98%;
    margin-bottom: 0em;
  }

  .topnav li:not(:first-child) {
    display: none;
  }
  
  .topnav li.icon {
    float: right;
    display: inline-block;
  }

  .topnav li.icon a {
    font-size: 18px;
  }

  .topnav li.icon a:hover {
    background: transparent;
  }

  .topnav.responsive {
    position: relative;
  }
  
  .topnav.responsive li.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .topnav.responsive li {
    float: none;
    display: inline;
  }
  
  .topnav.responsive li a {
    display: block;
    text-align: left;
    padding-left: 2em;
background-color: #f0ffa8;
    border-bottom: 1px solid #243B99;
  }
  
  .topnav.responsive li.icon a {
    border-bottom: 0px;
  }
  
}
