body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: black;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:  'BrickShapers', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  background-image: url('casseBriques.webp');
  background-size: cover; /* Ajuste la taille de l'image pour couvrir toute la fenêtre */
  background-repeat: no-repeat; /* Empêche la répétition de l'image */
  background-position: center; /* Centre l'image horizontalement et verticalement */
}
@font-face {
  font-family: 'BrickShapers'; 
  src: url('casseBriques/BrickShapers.ttf') format('truetype'); 
}

h1 {
  margin: 20px;
  font-size: 30px;
  color: white;
  <style>
    @font-face {
        font-family: 'My font';
        src: url('casseBriques/BrickShapers.ttf') format('truetype');
    }
    html {
        font-family: 'BrickShapers';
    }
</style>
}

.logo {
  margin-right: 10px; /* Marge à droite pour séparer le logo du titre */
}

.logo img {
  width: 50px; /* Largeur du logo */
  height: auto; /* Hauteur automatique pour maintenir les proportions */
  margin-top: 5px; /* Ajustement de la marge supérieure */
}

header {
  display: flex;
  align-items: center; /* Alignement vertical des éléments dans l'en-tête */
  margin-bottom: 20px;
  padding: 5px;
  text-align: center;
  color: white;
}

.cacheText {
  visibility: hidden;
}

figure {
  display: none;
}

header {
  margin-bottom: 20px;
  padding: 5px;
  text-align: center;
  color: white;
}

#helper {
  color: #ffffff;
  padding: 20px;
  animation: anim 2s infinite ease-in-out;
  text-align: center;
  width: 280px;
}

#bouton_start, #toggle-sound {
  margin-top: 10px;
  padding: 5px;
  background-color: orange;
  border: 2px solid black;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

#toggle-sound {
  background-color: #0044ff; /* Couleur bleu ultra */
}

#messageBox, #bouton_start {
  position: absolute;
  border: 5px solid black;
  font-size: 24px;
  padding: 5px;
  background-color: white;
  width: 280px;
  display: none;
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: black;
}

#select-lvl {
  padding: 5px;
  font-weight: bolder;
  font-size: 10px;
}

#mobile-move {
  position: relative;
  text-align: center;
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
  margin: 0 20px;
}

#left-move,
#right-move,
#space {
  padding: 10px;
  font-size: 20px;
  margin: 10px;
}

#left-move, #right-move {
  width: 40%;
}

#points {
  text-align: center;
  padding: 10px;
  font-weight: bolder;
}

canvas {
  display: block;
  background-color: black;
}

@keyframes anim {
  0% {
    font-size: 16px;
  }

  50% {
    font-size: 17px;
  }

  100% {
    font-size: 16px;
  }
}

@media all and (max-device-width: 1023px) {
  .fa-arrow-right,
  .fa-arrow-left {
    padding: 0px 20px;
  }

  canvas {
    width: 100%;
  }
}

@media all and (min-device-width: 1024px) {
  #mobile-move {
    display: none;
  }

  #select-lvl {
    padding: 10px;
    font-weight: bolder;
    font-size: 16px;
  }

  .fa-arrow-right,
  .fa-arrow-left {
    padding: 0;
  }
}
