@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap");

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  user-select: none;
}

.timer {
  border-radius: 0.875rem;
  background: linear-gradient(243deg, #858585 -12.17%, #3a3a3a 113.86%);
  width: 12.25rem;
  height: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10;
}

#counter {
  border-radius: 0.375rem;
  width: 11.25rem;
  height: 3.6875rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(103deg, #212121 -12.93%, #525050 89.85%);
  color: white;
  font-family: "Orbitron", sans-serif;
  font-weight: 300;
}

.bouton,
button {
  margin-top: 1.2rem;
  font-family: "Fjalla One", sans-serif;
  font-size: 1.5rem;
  color: #fff;
  padding: 1.2rem 2rem;
  border-radius: 10px;
  border: 3px solid #878786;
  background: linear-gradient(245deg, #303030 24.8%, #969696 263.8%);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.consignes {
  font-size: 1.5rem;
  background-color: white;
  padding: 1rem 1.5rem;
  z-index: 5100;
  position: absolute;
  border-radius: 0.5rem;
  font-family: "Fjalla One";
}

.revenir,
.revenir3 {
  position: absolute;
  color: white;
  margin-top: 0;
  padding: 1.1rem 1.1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 10px;
  left: 6%;
}

.bx-backpack {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  z-index: 1001;
  background: linear-gradient(245deg, #303030 24.8%, #969696 263.8%);
  padding: 5px;
  border-radius: 15px;
  border: #878786 3px solid;
}

.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 5001;
  /* Sit on top */
  top: -7%;
  left: 4%;
  width: 30rem;
  /* Full width */
  height: 30rem;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 3px solid #000;
  width: 80%;
  /* Could be more or less, depending on screen size */
}

#inventaire_content {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.item_inventaire {
  width: 70px;
  height: 70px;
  margin: 5px;
  background-size: contain;
  background-repeat: no-repeat;
  border-radius: 10px;
  cursor: pointer;
}

.item_inventaire img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.zoomed-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.close-zoom {
  font-size: 3rem;
  margin-left: 10px;
}

#ecran_lose {
  background-image: url("images/FINGAMEOVER.png");
  width: 100vw;
  height: 100vw;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(0);
  transition: all 0.2s ease-in;
  z-index: 9999;
}

#lien_retour {
  position: absolute;
  width: 350px;
  height: 150px;
  left: 10%;
  top: 38%;
}
