/****************************************/
/* common styles used for v1 through v4 */
/****************************************/

body          { font-family: Arial, Helvetica, sans-serif; margin: 0; padding: 0; overflow: hidden; }
#stats        { border: 2px solid black; position: absolute !important; bottom: 10px !important; right: 10px !important; top: auto !important; left: auto !important; z-index: 10 !important; background-color: rgba(0,0,0,0.5) !important; color: white !important; padding: 5px !important; border-radius: 5px !important; }
#controls     { position: absolute; top: 0; left: 0; z-index: 10; width: 20em; padding: 1em; font-size: 0.7em; background-color: rgba(255,255,255,0.7); }
#controls th  { text-align: right; vertical-align: middle; }
#instructions { position: absolute; bottom: 0; left: 0; z-index: 10; width: 17em; padding: 1em; border: 1px solid black; box-shadow: 0 0 5px black; background-color: rgba(255,255,255,0.7); }
#racer        { position: fixed; z-index: 0; width: 100%; height: 100%; top: 0; left: 0; border: none; }
#canvas       { position: absolute; z-index: 0; width: 100%; height: 100%; background-color: #72D7EE; }
#mute         { background-position: 0px 0px; width: 32px; height: 32px; background: url(images/mute.png); display: inline-block; cursor: pointer; position: absolute; top: 0; right: 0; z-index: 10; }
#mute.on      { background-position: -32px 0px; }

/**************************************************/
/* rudimentary heads up display (only used in v4) */
/**************************************************/

#hud                   { position: absolute; z-index: 1; width: 100%; padding: 5px 0; font-family: Verdana, Geneva, sans-serif; font-size: 0.8em; background-color: rgba(255,0,0,0.4); color: black; border-bottom: 2px solid black; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; }
#hud .hud              { background-color: rgba(255,255,255,0.6); padding: 5px; border: 1px solid black; margin: 0 5px; transition-property: background-color; transition-duration: 2s; -webkit-transition-property: background-color; -webkit-transition-duration: 2s; }
#hud #speed            { float: right; }
#hud #current_lap_time { float: left;  }
#hud #last_lap_time    { float: left; display: none;  }
#hud #fast_lap_time    { display: block; width: 12em;  margin: 0 auto; text-align: center; transition-property: background-color; transition-duration: 2s; -webkit-transition-property: background-color; -webkit-transition-duration: 2s; }
#hud .value            { color: black; font-weight: bold; }
#hud .fastest          { background-color: rgba(255,215,0,0.5); }

/* Responsive design for controls */
@media (max-width: 768px) {
  #controls { width: 15em; font-size: 0.6em; }
  #instructions { width: 12em; font-size: 0.8em; }
}
