body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial;
  width: 100%;
  margin: 0;
  padding: 0;
}

main {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
}

nav {
  width: 100%;
  justify-content: center;
  display: flex;
  margin: 1em;
}

#map img {
  border: solid 1px;
}

#map {
  position: relative;
  display: flex;
  flex-direction: column;
}

#map-image,
#myCanvas {
  position: absolute;
  top: 0;
  left: 0;
}

#map-image {
  z-index: 0;
}

#myCanvas {
  z-index: 1;
}

#logoimg {
  width: 500px;
  max-width: 90vw;
}

#change {
  text-align: right;
  font-size: 10pt;
}

#click-coordinates {
  padding-bottom: 1em;
}

#settings,
#finish,
#target-info {
  width: 90%;
  height: fit-content;
  z-index: 2;
  background-color: white;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 5px 5px 30px rgba(0, 0, 0, 0.2);
}

#target-info {
  margin-top: 10px;
  font-size: 24pt;
  display: none;
  /* On affiche seulement après avoir sélectionné le niveau */
}

#settings {
  margin: auto;
  font-size: 24pt;
}

#finish {
  margin: auto;
  font-size: 20pt;
  display: none;
}

#credits {
  margin-top: 1em;
  font-size: 10pt;
}

#score {
  max-width: 500px;
  margin: 1em;
}

button {
  background-color: #4444AA;
  border: none;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background-color: #35358a;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
}

@media only screen and (max-width: 1400px) {
  main {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  #score {
    max-width: 100vw;
  }

  #map {
    flex-basis: auto;
  }
}