/* Import Google font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

.snakegame {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  margin: 20px;
}

.description-snake {
  font-family: "Century Gothic";
  width: 50%; /* Occupe la moitié de la section */
  padding: 20px;
  color: #333;
  font-family: 'Open Sans', sans-serif;
}

.dark-mode .description-snake{
  color: white;
}

.description-snake h2 {
  margin-top: 0;
  color: #293447; /* Couleur du titre pour correspondre au thème */
}

.wrapper {
  width: 30%; /* Occupe la moitié de la section */
  height: auto;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  border-style: double;
  border: 5px solid #99a3ffb6; /* Stylized border */
  padding: 10px; /* Add padding for visual appeal */
  background: #293447;
  box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
  transition: 0.5s;
}

.wrapper:hover{
  scale: 110%;
  transition: 0.5s;
}

.game-details {
  color: #B8C6DC;
  font-weight: 500;
  font-size: 1.2rem;
  padding: 20px 27px;
  display: flex;
  justify-content: space-between;
}
.play-board {
  height: 100%;
  width: 100%;
  aspect-ratio: 1/1; /* Garde l'aspect carré */
  display: grid;
  background: #212837;
  grid-template: repeat(30, 1fr) / repeat(30, 1fr);
}
.play-board .food {
  background: #db0000;
}
.play-board .head {
  background: #16fd01;
}

.controls {
  display: none;
  justify-content: space-between;
}
.controls i {
  padding: 25px 0;
  text-align: center;
  font-size: 1.3rem;
  color: #B8C6DC;
  width: calc(100% / 4);
  cursor: pointer;
  border-right: 1px solid #171B26;
}

@media screen and (max-width: 800px) {
  .wrapper {
    width: 90vmin;
    height: 115vmin;
  }
  .game-details {
    font-size: 1rem;
    padding: 15px 27px;
  }
  .controls {
    display: flex;
  }
  .controls i {
    padding: 15px 0;
    font-size: 1rem;
  }
}