
/****************************************/
/* common styles used for v1 through v4 */
/****************************************/

body          { font-family: Arial, Helvetica, sans-serif; margin: 0; overflow: hidden; background: #000; }
#stats        { border: 2px solid black; position: absolute; top: 0; left: 0; z-index: 10; }
#controls     { width: 28em; float: left; padding: 1em; font-size: 0.7em; display: none; }
#controls th  { text-align: right; vertical-align: middle; }
#instructions { display: none; }
#racer        { position: relative; z-index: 0; width: 100vw; height: 100vh; margin: 0; border: none; display: flex; justify-content: center; align-items: center; }
#canvas       { z-index: 0; max-width: 100vw; max-height: 100vh; object-fit: contain; background-color: #72D7EE; }
#mute         { background-position: 0px 0px; width: 32px; height: 32px; background: url(images/mute.png); display: inline-block; cursor: pointer; position: absolute; left: 10px; bottom: 10px; z-index: 20; }
#mute.on      { background-position: -32px 0px; }

/**************************************************/
/* rudimentary heads up display (only used in v4) */
/**************************************************/

#hud                   { position: absolute; top: 0; left: 0; z-index: 10; width: 100vw; 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); }

