@font-face {
  font-family: "M42";
  src: url(../font/m42.TTF) format("truetype");
}
@font-face {
  font-family: "PublicPixel";
  src: url(../font/PublicPixel.ttf) format("truetype");
}
html {
  overflow: hidden;
}

body {
  border: 1px solid black;
  margin: 0 auto;
  padding: 0;
  width: 1024px;
  height: 768px;
  font-size: 15px;
}

body * {
  font-family: "PublicPixel";
}

:focus-visible {
  outline: unset;
}

.hide {
  display: none !important;
}

#racer {
  position: relative;
  width: 1024px;
  height: 768px;
  z-index: 0;
  overflow: hidden;
  margin: 0 auto;
}
#racer #hud {
  position: absolute;
  width: calc(100% - 100px);
  height: calc(100% - 100px);
  padding: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
#racer #hud .top {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
#racer #hud .top #time {
  text-transform: uppercase;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
}
#racer #hud .top #time #current_lap_time {
  text-shadow: 4px 4px black;
  color: white;
  font-size: 15px;
  margin-bottom: 0.5em;
}
#racer #hud .top #time #current_lap_time .value {
  font-size: 30px;
}
#racer #hud .top #time #position_joueur {
  text-shadow: 4px 4px black;
  color: #fff54f;
  font-size: 15px;
}
#racer #hud .top #time #position_joueur .value {
  font-size: 30px;
}
#racer #hud .top #logo {
  background: white;
}
#racer #hud .bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
#racer #hud .bottom #copyright {
  font-size: 12px;
  text-transform: uppercase;
  color: black;
  -webkit-text-stroke: 5px white;
  position: absolute;
  z-index: 5;
}
#racer #hud .bottom #copyright_shadow {
  font-size: 12px;
  text-transform: uppercase;
  z-index: 6;
}
#racer #hud .bottom #speed {
  font-size: 15px;
  text-transform: uppercase;
  line-height: 0;
  color: white;
  text-shadow: 5px 5px black;
}
#racer #hud .bottom #speed .value {
  font-size: 30px;
}
#racer #menu {
  position: absolute;
  z-index: 99999;
  width: 100%;
  height: 100%;
}
#racer #menu.startGame {
  display: none;
}
#racer.menuJeuOpen #menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 30px;
  background-color: rgba(0, 0, 0, 0.2392156863);
}
#racer.menuJeuOpen #menu.startGame {
  display: none;
}
#racer.menuJeuOpen #hud {
  display: none;
}
#racer #bloc_fin_partie .content {
  background-color: rgba(0, 0, 0, 0.4745098039);
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: white;
  gap: 50px;
}
#racer #bloc_fin_partie .content div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
#racer #bloc_fin_partie .content div.fin-btn {
  gap: 1em;
}
#racer #canvas {
  background:#FF5B2F;
}

/****************************************/
/******************** BOUTONS ***********/
/****************************************/
a.btn, button {
  font-family: "M42";
  border: none;
  background: none;
  font-size: 36px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 900;
  font-style: italic;
  color: white;
  -webkit-text-stroke: 3px #000000;
  text-shadow: 7px 7px black;
}
a.btn.buttonMenuSelected, button.buttonMenuSelected {
  color: #fff54f !important;
}
a.btn.buttonMenuSelected:before, button.buttonMenuSelected:before {
  content: ">>";
  color: #626df1;
  font-size: 1em;
  display: inline-block;
  margin-right: 25px;
  -webkit-animation: menuSelected 1s ease-in-out infinite;
          animation: menuSelected 1s ease-in-out infinite;
}
@-webkit-keyframes menuSelected {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  50% {
    -webkit-transform: translateX(15px);
            transform: translateX(15px);
  }
}
@keyframes menuSelected {
  0% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
  50% {
    -webkit-transform: translateX(15px);
            transform: translateX(15px);
  }
}

/****************************************/
/**************** LEADERBOARD ***********/
/****************************************/
#leaderboard {
  height: 100%;
}
#leaderboard h1 {
  text-transform: uppercase;
}
#leaderboard .menu-principal {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  height: 100%;
}
#leaderboard .menu-principal .tableauLeader {
  max-height: 500px;
  overflow: auto;
}
#leaderboard .menu-principal .tableauLeader #leaderboardTable {
  max-height: 200px;
  overflow: auto;
}
#leaderboard .menu-principal .tableauLeader #leaderboardTable thead {
  text-align: left;
}
#leaderboard .menu-principal .tableauLeader #leaderboardTable thead tr th {
  padding: 6px 15px;
}
#leaderboard .menu-principal .tableauLeader #leaderboardTable #leaderboardBody tr td {
  padding: 6px 15px;
}
#leaderboard .menu-principal .tableauLeader #leaderboardTable #leaderboardBody tr td.playerScore {
  background-color: crimson;
  color: #fff54f;
}
#leaderboard .menu-principal #bloc_save_score_fin_partie {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 50px;
}
#leaderboard .menu-principal #bloc_save_score_fin_partie p {
  font-size: 22px;
}
#leaderboard .menu-principal #bloc_save_score_fin_partie form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.5em;
}
#leaderboard .menu-principal #bloc_save_score_fin_partie input {
  padding: 0.6em 1em;
  border: 1px solid black;
  margin-bottom: 0.5em;
}
#leaderboard .menu-principal #menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
  gap: 0.5em;
}

/****************************************/
/******************** ACCUEIL ***********/
/****************************************/
#home {
  background-image: url(../images/interface-jeu.jpg);
  background-position: center;
  background-repeat: no-repeat;
}
#home #racer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
#home #racer img.logo-sprinterr {
  width: 600px;
}
#home #racer #menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1em;
  position: relative;
  z-index: 99999;
  width: 100%;
  height: unset;
}
#home .bottom {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: absolute;
  bottom: 40px;
  right: 40px;
}
#home .bottom #copyright {
  font-size: 12px;
  text-transform: uppercase;
  color: black;
  -webkit-text-stroke: 5px white;
  position: absolute;
  z-index: 5;
}
#home .bottom #copyright_shadow {
  font-size: 12px;
  text-transform: uppercase;
  z-index: 6;
}
#home .bottom img {
  all: unset;
  width: 150px;
  height: 50px;
}

/****************************************/
/* common styles used for v1 through v4 */
/*******************************    *********/
/* #mute {
  background-position: 0px 0px;
  width: 32px;
  height: 32px;
  background: url(images/mute.png);
  display: inline-block;
  cursor: pointer;
  position: absolute;
  margin-left: 20em;
}

#mute.on {
  background-position: -32px 0px;
} */

/**************************************************/
/* rudimentary heads up display (only used in v4) */
/**************************************************/
#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;
}

.replayText {
  text-align: center;
}/*# sourceMappingURL=style.css.map */


#progress-container {
  width: 20%;
  height: 20px;
  background-color: #FFF;
  border-right: solid 5px #000;
  border-bottom: solid 5px #000;
  border-left: solid 1px #000;
  border-top: solid 1px #000;

  overflow: hidden;


  position: absolute;
  bottom: 40px;
  left: 58%;

}

#progress-bar {
  height: 100%;
  width: 0%;
  background-color: #4caf50;

  transition: width 3s linear;
}
#jump_txt{
  position: absolute;
  top: 2px;
  width: 100%;
  color: #FFF;
  text-align: center;
}
#mute{
  position: absolute;
  right: 50px;
  top: 50px;
  background-image: url("../images/speaker.png");
  width: 50px;
  height: 50px;
  filter :invert(1) drop-shadow(4px 4px black);
  
  background-size: contain;
}
#mute.on {

  background-image: url("../images/mute.png");
 
}
.suggestions {
  border: 1px solid #ccc;
  max-width: 300px;
  margin-top: 5px;
  background: white;
  position: absolute;
  z-index: 100;
}
.suggestion {
  padding: 5px;
}
.suggestion.active {
  background-color: #ddd;
}