* {
  padding: 0px;
  box-sizing: border-box;
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
    Ubuntu, sans-serif;
}

/* Page index.html */

.body {
  background-color: #f4f7fa;
}

.main {
  display: flex;
  width: 100%;
  height: 100vh;
}

.container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.left {
  margin: 10px;
  background-color: #eceff4;
  width: 40%;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left img {
  margin: 0 auto;
  width: 110%;
  max-width: 1900px;
  display: block;
}

.right {
  font-size: x-large;
  padding: 10rem;
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right hr {
  border: none;
  height: 2px;
  background-color: black;
  margin: 20px 0;
}

.content-right {
  text-align: left;
}

.content-right h1 {
  font-size: 3rem;
  font-style: unset;
  margin-bottom: 1rem;
}

.content-right p {
  font-size: 1rem;
}

.corner {
  text-align: center;
  font-size: medium;
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px;
  border-radius: 1rem;
}

/* Bouton rejoindre */

.form-create {
  background-color: white;
  color: black;
  border: 2px solid #f1f1f1;
  padding: 11px 25px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 0.5rem;
}

.form-join {
  background-color: white;
  color: black;
  border: 2px solid #f1f1f1;
  padding: 11px 57px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 0.5rem;
  margin-left: 1rem;
}

.button-section {
  display: flex;
  margin-top: 1rem;
}

.button-create input {
  margin-top: 20px;
  border: 2px solid #eceff4;
  border-radius: 5px;
  padding-left: 8px;
}

.button-create input::placeholder {
  padding-left: 5px;
}

.button-create a {
  border-radius: 5px;
  padding: 2px;
  margin-right: -2px;
  border: 2px solid #f1f1f1;
}

/* Page Game.html */

/* Style général de la section */
/* Style général de la section */
/* Style général de la section */
/* Style général de la section */
.left-preparation {
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
  max-width: 400px;
  margin: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.left .title h1 {
  font-size: 1.8em;
  text-align: center;
  color: #333;
}

.classes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.bateau {
  text-align: center;
  width: 45%; /* Ajuste la largeur pour deux éléments par ligne */
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: transform 0.3s, border-color 0.3s;
}

.bateau input[type="radio"] {
  display: none; /* Cache les boutons radio */
}

.bateau img {
  width: auto;
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.bateau p {
  margin-top: 8px;
  font-size: 0.9em;
  color: #333;
}

/* Styles lorsqu'un bouton est sélectionné */
.bateau input[type="radio"]:checked + img {
  border: 3px solid #0078d7;
  border-radius: 8px;
}

.bateau input[type="radio"]:checked + img + p {
  font-weight: bold;
  color: #0078d7;
}

.bateau:hover {
  transform: scale(1.05);
}

.btn-valider {
  background-color: #0078d7;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
}

.btn-valider:hover {
  background-color: #0056b3;
}

div.cell_div {
  height: 100%;
  width: 100%;
  pointer-events: none;
}
.container {
  display: flex;
  width: 900px;
  height: 500px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section gauche */
.left-panel {
  width: 40%;
  border-right: 2px solid #ccc;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.left-panel h1 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.players h2 {
  font-size: 20px;
  text-decoration: underline;
  margin-bottom: 10px;
}

.players ul {
  list-style: none;
  padding-left: 10px;
}

.players li {
  font-size: 18px;
  margin-bottom: 5px;
}

.invite-link {
  border: 2px solid #ccc;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
}

/* Section droite */
.right-panel {
  width: 60%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ship-info p {
  font-size: 18px;
  margin-bottom: 15px;
}

.ship-info span {
  display: inline-block;
  width: 40px;
  text-align: center;
  border: 2px solid #f3c778;
  background-color: #fff8e1;
  border-radius: 4px;
  padding: 5px;
  font-weight: bold;
}

.start-button {
  text-align: center;
}

.start-button button {
  background-color: #c8f3d8;
  border: 2px solid #87bba2;
  color: #333;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.start-button button:hover {
  background-color: #a3d8b4;
}
