/* GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: Helvetica, sans-serif;
  line-height: 1.5em;
  padding: 10px;
  background-image: url(../images/car-bg.jpg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 1180px;
  background-position: center 0px;
}

#gameContainer {
  overflow: visible !important;
}

body.game {
  margin-top: 20px;
  /* max-width: 1000px; */
  margin: auto;
  display: flex;
  justify-content: center;
}

.game p {
  max-width: 600px;
  text-align: center;
  margin: auto;
  margin-top: 20px;
}

.game div {
  margin: auto;
  margin-top: 135px;
}

.game .box {
  max-width: 600px;
  margin-top: 20px;
  border: 1px solid black;
  padding: 10px;
  background: white;
  text-align: center;
  font-size: 1.2em;
}

.game .box2 {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.game h1 {
  margin-bottom: 20px;
  text-align: center;
  position: absolute;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  width: 100%;
}

#score {
  display: none;
  position: absolute;
  padding: 10px;
  border-radius: 5px;
  top: 130px;
  min-width: 200px;
  background-color: rgba(255,255,255,0.8);
}

#count {
  margin-right: 20px;
}

#highscore {
  position: absolute;
  top: 118px;
  margin-left: -10px;
  user-select: none;
}

.top10 {
  font-size: 18pt;
}

#highscore div {
  margin-top: 10px;
}

@media (max-width: 640px) {
  #gameContainer {
    transform: scale(0.5) !important;
  }
  body {
    background-size: 750px;
  }
  .game h1 {
    margin-top: 60px;
  }
  .game h1 img {
    width: 120px;
  }
  .game div {
    margin-top: 10px;
  }
  #score {
    top: 165px;
  }
  #highscore {
    font-size: 10pt;
    top: 128px;
  }
  .top10 {
    font-size: 14pt;
  }
  #highscore div {
    margin-top: 4px;
  }
}
