@font-face {
  font-family: "Upheaval";
  src: url("../fonts/upheavtt.ttf");
}

@font-face {
  font-family: "Dogica";
  src: url("../fonts/dogica.ttf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

header {
  color: white;
  font-family: "Upheaval";
  font-size: 35px;
  text-align: center;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
}

figure {
  padding-top: 1%;
}

#image-logo {
  width: 40px;
  height: auto;
  pointer-events: none;
}

section {
  width: 1300px;
  height: 625px;
}

#menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

#bouton-start {
  padding: 0 1%;
  margin-bottom: 15px;
  background-color: transparent;
  font-family: "Upheaval";
  font-size: 45px;
  color: white;
  border: 2px solid white;
  width: 450px;
}

#bouton-controles {
  padding: 0 1%;
  margin-top: 15px;
  margin-bottom: 3%;
  background-color: transparent;
  font-family: "Upheaval";
  font-size: 35px;
  color: white;
  border: 2px solid white;
  width: 250px;
}

#sensitivity {
  padding-top: 10px;
  margin: 2%;
  text-align: center;
  font-family: "Dogica";
  font-size: 12px;
  color: white;
}

#sensitivity p {
  padding-bottom: 10px;
}

.slider {
  width: 450px;
  height: 20px;
  appearance: none;
  background-color: black;
  border: 2px solid white;
}

.slider::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  appearance: none;
  background-color: white;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 7px;
  height: 7px;
  appearance: none;
  background-color: white;
  cursor: pointer;
}

#bestscore {
  margin: 2%;
  font-family: "Dogica";
  font-size: 15px;
  color: white;
}

#jeu {
  border: 2px solid white;
}

#currentvalues {
  font-family: "Dogica";
  font-size: 12px;
  color: white;
  padding: 5px;
}

#canvas {
  background-color: black;
  image-rendering: pixelated;
}

#canvas:hover {
  cursor: none;
}

#gameover {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 700px;
}

#gameover h1 {
  font-family: "Upheaval";
  font-size: 85px;
  padding-top: 15px;
}

#gameover p {
  font-family: "Dogica";
  font-size: 15px;
  padding-top: 5px;
}

#gameover button {
  padding: 0 1%;
  margin: 2%;
  background-color: transparent;
  font-family: "Upheaval";
  font-size: 30px;
  color: white;
  border: 2px solid white;
  width: 450px;
  margin: auto;
}

#controls {
  color: white;
  width: 500px;
  height: 200px;
  text-align: center;
}

#controls img {
  width: 500px;
  height: 188px;
  margin-bottom: 12px;
  pointer-events: none;
}

#controls button {
  padding: 0 1%;
  margin: 2%;
  background-color: transparent;
  font-family: "Upheaval";
  font-size: 30px;
  color: white;
  border: 2px solid white;
  width: 150px;
  margin: auto;
}

footer {
  color: white;
  font-family: "Dogica";
  font-size: 8px;
  text-align: center;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
}

footer p {
  padding-bottom: 8px;
}

button:hover {
  cursor: pointer;
}

.invisible {
  display: none !important;
}
