@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
/* Conteneur principal */
.container {
  width: 100vw;
  height: 100vh;
  color: #f5f5f5;
  min-width: 100vw;
  min-height: 100vh;
}

/* L'objet "item" : retiré le background-color rouge */
.item {
  width: 80px;
  height: 80px;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  min-width: 20px;
  min-height: 20px;

  /* Plus de background-color ici */
}

/* Responsivité pour petits écrans */
@media (max-width: 1000px) {
  .item {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 800px) {
  .item {
    width: 50px;
    height: 50px;
  }
}
@media (max-width: 500px) {
  .item {
    width: 35px;
    height: 35px;
  }
}
@media (max-width: 400px) {
  .item {
    width: 25px;
    height: 25px;
  }
}

/* La zone de jeu */
#game {
  margin: 0 auto;
  width: 75%;
  height: 99vh;
  background-color: cyan;
  min-width: 75%;
  min-height: 100vh;
  position: relative;
  background-image: url("/assets/Fond/backgroundjeu.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Score */
.score {
  position: absolute;
  top: 30px;
  left: 30px;
  font-family: "Bebas Neue", sans-serif;
  height: 5vh;
  font-size: 2em;
  width: 150px;
  min-height: 20px;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  color: white; /* Couleur du texte */
  padding: 10px; /* Espacement interne */
  border-radius: 15px; /* Bords arrondis */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Zone pour les poubelles */
.bins {
  width: 100%;
  height: 99vh;
  display: flex;
  justify-content: space-evenly;
  align-items: flex-end;
  min-width: 100%;
  min-height: 800px;
}

/* Poubelles : plus de couleurs de fond en dur,
   on n'utilise que l'image. */
.trash-bin {
  width: 10%;
  height: 25%;
  min-width: 50px;
  min-height: 100px;
  position: relative;
  justify-content: center;
  gap: 15px;
}

/* L'image de la poubelle prend toute la place */
.trash-bin img {
  width: 100%;
  height: 70%;
  object-fit: contain;
}

.text {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5em;
  color: black;
}

.button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.button:active {
  background-color: #003d80;
}

.restart-button {
  display: none;
}

#chart-container {
  width: 200px; /* Ajuste la taille du conteneur */
  height: 400px;
  position: absolute;
  right: 10px; /* Distance du bord droit */
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8); /* Fond semi-transparent */
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#wasteChart {
  width: 100% !important;
  height: 100% !important;
}

#logo-wwf {
  position: absolute;
  top: 0px;
  left: 10px;
  width: 10%;
}
#logo-sysco {
  position: absolute;
  top: 15px;
  right: 10px;
  width: 10%;
}
