@font-face {
  font-family: montserrat;
  src: url(../font/montserrat/Montserrat-Regular.otf);
  font-weight: normal;
}

@font-face {
  font-family: poppins;
  src: url(../font/poppins/Poppins-Regular.otf);
  font-weight: normal;
}

@font-face {
  font-family: roboto;
  src: url(../font/roboto/Roboto-Regular.ttf);
  font-weight: normal;
}

* {
  resize: none;

}


body {
  font-family: poppins;
  background-color: #fbf2ea;
}

section {
  text-align: center;
}

ul {
  text-align: left;
  margin-left:20%;
}

.footerjeu {
  margin-top: 500px;
}

.t2 {
  margin-left:20%;

}

header, footer {
  display: flex;
  justify-content: start;
  background-color: #f3d7bf;
  padding: 1em;

}

header {
  margin-bottom: 2em;
  position: sticky;
  top: 0;
}

footer {
  margin-top: 2em;
}

.header, .footer {
  margin-left: 50px;
  text-decoration: none;
  color: black;
}

.header:hover, .footer:hover {
  text-decoration: underline;
}

h1 {
  background-color: #ac6120;
  margin: 3% 33% 0% 33%;
  border-radius: 69px;
  margin-bottom: 1em;
}

h2 {
  text-decoration: underline;
}

p {
  text-align: justify;
  margin-left: 10%;
  margin-right: 10%;
}

div {
  text-align: start;
  margin-left: 10%;
  margin-right: 10%;
}


li a {
  display: block;
  color: #000;
  padding: 8px 16px;
  text-decoration: none;
}

li a.active {
  background-color: #04AA6D;
  color: white;
}

li a:hover:not(.active) {
  background-color: #555;
  color: white;
}

p {
  font-size: 20px;
}

svg {
  position: relative;
  bottom: -15%;
}

label {
  padding: 12px 12px 12px 0;
  display: inline-block;
  resize: none;

}

.form {
 /* background-color: #f2f2f2; */
 background-color: #ebbc94;
  display: flex;
  flex-direction: column;
  border-radius: 35px;
  padding: 20px;
}

.boutonsubform {
  background-color: #df9453;
  width: 200px;
  height: 50px;
  margin-top: 25px;
  margin-right: 2%;
  border-radius: 69px;
  border: none;
}



.divboutonform {
 justify-content: center;
 display: flex;
}
.bodyjeu {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 20px;
}
.game-container {
  max-width: 95vw;
  height: 80vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.board {
  margin: 40px auto;
  border-collapse: collapse;
  width: min(80vh, 95vw);  /* Garde le plus petit entre 80% de la hauteur ou 95% de la largeur */
  height: min(80vh, 95vw); /* Pour garder un carré parfait */
  background-color: limegreen;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;

}

.board td {
  border: 1px solid black;
  text-align: center;
  position: relative;
  padding: 0;
}

/* Force les cellules à rester carrées */
.board td::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.board td img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Ajustez la taille des messages et des contrôles pour qu'ils ne gênent pas */
.message, .input-section {
  margin: 10px 0;
}
.board td.clickable {
  background-color: #d3f4ff;
  cursor: pointer;
}
.board td.clickable2 {
  background-color: #ffcccb ;
  cursor: pointer;
}
.board td.clickable:hover {
  background-color: #a3e4ff;
}
.message {
  margin: 0px 0;
  font-size: 18px;
}
.input-section {
  margin: 20px 0;
}
.boutonejeu {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}
input[type="text"] {
  padding: 8px;
  font-size: 16px;
}

table {
background-color: limegreen
}
.board td img {
  width: 80%; /* utilise 80% de la largeur de la cellule */
  height: auto; /* garde le ratio d'aspect */
  max-width: 50px; /* taille maximale */
  object-fit: contain;
}


.joeur1 {
  margin: 20px;
  font-size: 18px;
  text-align: left;
  position: fixed;
  left: 20px;
  top: 200px;
}

.joeur2 {
  margin: 20px;
  font-size: 18px;
  text-align: right;
  position: fixed;
  right: 20px;
  top: 200px;
}

/* Ajouter ces nouvelles règles CSS */
.score-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 1;
}



#message {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

#input-section {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}