/* author: Kien Dang */

@font-face {
  font-family: 'Formula1-Bold';
  src: url('../fonts/Formula1-Bold-4.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  touch-action: manipulation;
}

:root {
  --McRood: #BD0000;
  --McGeel: #FFC836;
}

body {
  font-family: "Formula1-Bold", sans-serif;
  align-items: center;
  background-color: var(--McRood);
  margin: 0;
}

#top-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#racer {
  width: 100vw;
  height: 83dvh;
}

#canvas {
  width: 100vw;
  height: 84dvh;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

#hud {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: space-around;
  z-index: 1;
  
  width: 100%;
  height: 10dvh;
  font-size: 0.6em;
  font-weight: 700;

  background-color: var(--McRood);

  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

.hud {
  background-color: var(--McGeel);
  padding: 2em;
  margin: 1.5vw;
  width: 5em;
  text-align: center;
}

.button {
  background: #FFC836;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .5);
  display: inline-block;
  font-size: 1em;
  padding: .25em 1em;
  text-decoration: none;
}

.parallelogram {
  margin-left: 5vw;
  transform: skew(20deg);
}

#controls {
  display: flex;
  flex-direction: row-reverse;
  background-color: transparent;
  z-index: 1;
  position: absolute;
  bottom: 30px;
  width: 100%;
  justify-content: center;
}

.UI-button {
  margin: 0 0.8rem;
  background: transparent;
  border: none;
  text-decoration: none;
}

.UI-button>img {
  width: 5vh;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

#mute {
  margin-right: 7vw;
}

#left>img,
#right>img {
  width: 6vh;
}