@font-face {
  font-family: NumerHIC;
  src: url('../../nav/fonts/numerhic.otf');
}

body {
  margin: 0;
}

canvas {
  position: absolute;
  max-height: 85vh;
  max-width: 100%;
  aspect-ratio: 16/9;
  margin: auto;
}

#joueurs {
  background-image: url(../img/morpion_nume_ordi.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

button#new {
  font-family: icons;
}

#btnNew,
#btnSettings,
#btnRules {
  display: block;
}

#settings {
  display: flex;
  flex-direction: column;
  height: 90vh;
  overflow: auto;
  padding-bottom: 100px;
}

#settings h3 {
  text-align: center;
}

#settings #niveauJeu {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-direction: row
}



#settings figure {
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px;
  border: solid transparent 10px;
}

#settings #niveauJeu figure img {
  max-width: 6vw;
}

#settings #typeJeu figure img {
  max-width: 15vw
}

#settings figure:hover {
  background: rgba(255, 255, 255, 0.5);
}

@media only screen and (max-width: 640px) {
  #settings #niveauJeu {
    flex-direction: column
  }
  #settings #niveauJeu figure img {
    max-width: 10vw;
  }
  #settings #typeJeu figure img {
    max-width: 25vw
  }
}

#settings input[type="radio"]:checked+label figure {
  border: solid red 10px;
  border-radius: 5px;
  box-sizing: border-box;
  color: white;
  background: rgba(255, 255, 255, 0.5);
}

input {
  display: none;
  cursor: pointer;
}

#rules { padding-bottom: 100px;}
#rules h3,
h4 {
  margin-bottom: 10px
}

#rules img {
  max-width: 120px;
  max-height: 120px;

  vertical-align: middle;
  margin: 5px;
}

#rules .img2 {
  max-width: 100px;
}

 #rules hr {
  margin: 20px;
 }

#rules p.reglages { display:flex; align-items: center;}
#rules p.reglages img{ border:solid 1px; border-radius: 10px;}