/* TODO ------------------------------------------ VARIABLE CSS */

:root {
  --grisfonce: rgb(36, 36, 36);
  --cuivre: rgb(255, 183, 124);
  --marron: rgb(46, 15, 0);
  --marronfonce: rgb(40, 11, 0);
  --marronhud: rgb(53, 21, 0);
  --marronhud2: rgb(39, 16, 0);
  --marronhudtransparent: rgba(49, 21, 0, 0.852);
  --borderhud: rgb(255, 183, 124);
  --pointer: url("./img/mouse2.png"), pointer;
  --pvcolor: rgb(0, 255, 38);
}

/* TODO ------------------------------------------ FONT */

@font-face {
  font-family: "pixel";
  src: url("./font/pixelex.ttf");
}

@font-face {
  font-family: "pixel2";
  src: url("./font/conthrax-sb.ttf");
}
@font-face {
  font-family: "systeme";
  src: url("./font/Fraset-Display.ttf");
}
/* TODO ------------------------------------------ ANIMATION */
@keyframes clignotement {
  from {
    opacity: 0.3;
  }

  to {
    opacity: 1;
  }
}
@keyframes surbrillance {
  from {
    color: rgb(26, 26, 26);
  }

  to {
    color: rgb(212, 212, 212);
  }
}
@keyframes apparitionnotif {
  0% {
    left: -60vw;
  }
  30% {
    left: 6.5vw;
  }
  50% {
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes apparition {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
@keyframes disparition {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* TODO ------------------------------------------ HTML */

html {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background-color: rgb(0, 0, 0);
  text-align: center;
  overflow: hidden;
  cursor: url("./img/systeme/mouse.png"), default !important;
  user-select: none;
}
body {
  cursor: url("./img/systeme/mouse.png"), default;
  user-select: none;
}
.titreclick {
  color: rgb(116, 116, 116);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  cursor: url("./img/systeme/mouse2.png"), pointer;
  font-family: "pixel2";
  animation: surbrillance 1s ease infinite alternate;
}
canvas {
  border-radius: 6vw;
  display: block;
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  box-shadow: 0px 0px 10vw rgba(40, 40, 40, 0.284);
}
.blockinput {
  text-align: center;
  background-image: url("img/systeme/formulaire.png"); /* The image used */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: inherit; /* Resize the background image to cover the entire container */
  width: 9vw;
  height: fit-content;
  display: none;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  position: absolute;
  top: 82%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 15px;
  z-index: 2;

  padding: 0.5vw;
  box-shadow: 0px 0px 5px black;
  border: solid 0.1vw rgb(0, 0, 0);
}
#inputpseudo,
#inputpass {
  margin-top: 0.5vw;
  font-family: "systeme";
  color: rgb(255, 214, 161);
  width: 8vw;
  height: 1vw;
  border-radius: 5px;
  background-color: rgb(0, 0, 0);
  outline: none;
  font-size: 0.8vw;
  padding: 0.3vw;
}
#inputpseudo::placeholder,
#inputpass::placeholder {
  color: rgb(146, 83, 0);
}
#spanpass {
  cursor: url("./img/systeme/mouse2.png"), pointer;
  font-size: 1.5vw;
  margin: 0;
  height: 1vw;
  width: fit-content;
  color: rgb(146, 83, 0);
}
#spanpass:hover {
  color: rgb(255, 214, 161);
}

#loginfo {
  background-color: black;
  border-radius: 90%;
  width: 1vw;
  height: 1vw;
  color: burlywood;
  position: fixed;
  top: 5.5vw;
  left: 1vw;
  font-size: 0.8vw;
}
#loginfo:hover {
  color: rgb(255, 214, 161);
}

#bouttonco,
#bouttonenregistrement {
  font-family: "systeme";
  background-color: rgb(0, 0, 0);
  border-radius: 0.4vw;
  font-size: 0.7vw;
  height: 1.5vw;
  width: fit-content;
  color: rgb(146, 83, 0);
  cursor: url("./img/systeme/mouse2.png"), pointer;
  transition: 0.2s ease;
}
#bouttonco {
  margin-top: 1vw;
}
#bouttonco:hover,
#bouttonenregistrement:hover {
  color: rgb(255, 214, 161);
}
#bouttonenregistrement {
  margin-top: 0.5vw;
}

#blocksocial {
  display: none;
  top: 20%;
  left: 8%;
  transform: translate(-50%, -50%);
  background-color: aqua;
  height: 15vw;
  z-index: 5000;
  position: fixed;
  text-align: center;
  flex-direction: row;

  justify-content: center;
}
#blockchat {
  box-shadow: 0px 0px 8px black;
  top: 15%;
  left: 8%;
  transform: translate(-50%, -50%);
  position: absolute;
  display: flex;
  flex-direction: column;
  row-gap: 0vw;
  align-items: center;
  justify-content: top;
  width: 10vw;
  height: 7.5vw;
  background-color: rgba(31, 31, 31, 0.628);
  z-index: 8;
  overflow-y: scroll;
  border-radius: 5px;
  scrollbar-width: none;
  overflow-wrap: break-word;
  scroll-behavior: smooth;
  scrollbar-color: rgb(0, 0, 0) rgb(0, 0, 0);
  border: solid 1px black;
}
#blockchat::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
::-webkit-scrollbar :hover {
  cursor: url("./img/systeme/mouse2.png"), pointer;
}
::-webkit-scrollbar-thumb {
  background: rgb(0, 0, 0);
}
.divmessage {
  margin-top: 0vw;
  position: relative;
  max-width: 90%;
  text-align: center;
  word-wrap: break-word;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  row-gap: 0vw;
  padding: 0.1vw;
}
.pseudochat {
  color: rgb(255, 255, 255);
  text-shadow: 0px 0px 5px yellow;
  background-color: rgba(0, 0, 0, 0);
  width: fit-content;
  padding: 0.1vw;
  border-radius: 15px;
  font-size: 0.9vw;
  margin: 0.1vw;
  font-family: "systeme";
}
.message {
  padding: 0.3vw;
  color: rgb(255, 255, 255);
  height: fit-content;
  background-color: rgba(0, 0, 0, 0);
  width: fit-content;
  margin: 0;
  font-size: 0.63vw;
  text-shadow: 2px 2px 2px black;
  border-radius: 5px;
  font-family: "systeme";
  word-spacing: 0vw;
  letter-spacing: 0.07vw;
  font-weight: 500;
  line-height: 1vw;
}
/* todo ------------------------------ */
/* todo --------INPUT DE CHAT  */
/* todo ------------------------------ */
#inputchat {
  font-family: "systeme";
  height: 1.3vw;
  outline: none;
  background-color: rgba(31, 31, 31, 0.628);
  width: 7vw;
  color: rgb(255, 255, 255);
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 8%;
  transform: translate(-50%, -50%);
  border: solid 1px rgb(0, 0, 0);
  padding-left: 0.6vw;
  padding-right: 0.6vw;
  font-size: 0.7vw;
  box-shadow: 0px 0px 8px rgb(0, 0, 0);
  border-radius: 5px;
  user-select: none;
}
#blockmenu {
  z-index: 1;
  row-gap: 0.8vw;
  display: none;
  position: absolute;
  flex-direction: column;
  top: 40%;
  left: 2.5vw;
}
/* todo ------------------------------ */
/* todo --------ICON HOVER  */
/* todo ------------------------------ */
#iconprofil,
#iconinventaire,
#iconrune,
#iconcraft {
  transition: filter 0.4s ease;
}
#iconprofil:hover {
  filter: drop-shadow(0px 0px 3px rgb(255, 136, 0));
  cursor: url("./img/systeme/mouse2.png"), pointer;
}
#iconinventaire:hover {
  filter: drop-shadow(0px 0px 3px rgb(255, 136, 0));
  cursor: url("./img/systeme/mouse2.png"), pointer;
}
#iconrune:hover {
  filter: drop-shadow(0px 0px 3px rgb(255, 136, 0));
  cursor: url("./img/systeme/mouse2.png"), pointer;
}
#iconcraft:hover {
  filter: drop-shadow(0px 0px 3px rgb(255, 136, 0));
  cursor: url("./img/systeme/mouse2.png"), pointer;
}
#fermerinventaire:hover {
  filter: drop-shadow(0px 0px 3px rgb(255, 136, 0));
  cursor: url("./img/systeme/mouse2.png"), pointer;
}
.utiliser:hover {
  filter: drop-shadow(0px 0px 3px rgb(255, 136, 0));
  cursor: url("./img/systeme/mouse2.png"), pointer;
}
.infologoinventaire:hover {
  filter: drop-shadow(0px 0px 3px rgb(255, 136, 0));
}

/* todo ------------------------------ */
/* todo --------INFOBULLE DE PERSONNAGES  */
/* todo ------------------------------ */

#infobulle {
  color: aliceblue;
  position: absolute;
  background-color: rgba(92, 61, 39, 0.529);
  height: fit-content;
  width: 6vw;
  text-align: center;
  z-index: 8;
  transform: translate(-50%, -50%);
  top: -100px;
  left: -100px;
  border-radius: 10px;
  border: solid 2px rgba(194, 129, 82, 0.486);
  box-shadow: 0px 0px 10px rgb(0, 0, 0);
  text-shadow: 2px 2px 1px black;
  letter-spacing: 0.8px;
}
#nominfobulle {
  margin: 0.3vw;
  font-size: 0.8vw;
  font-family: systeme;
}
#descriptioninfobulle {
  margin-top: 0.6vw;
  margin-left: 0.3vw;
  margin-right: 0.3vw;
  font-size: 0.7vw;
  font-family: "monaco";
  text-shadow:
    1px 1px 3px black,
    0px 0px 1px black;
  letter-spacing: 1px;
  font-weight: 600;
}

/* todo ------------------------------ */
/* todo --------INFOBULLE D OBJETS  */
/* todo ------------------------------ */
#infobulleobjet {
  color: aliceblue;
  position: absolute;
  background-color: rgb(61, 29, 6);
  height: fit-content;
  width: 12vw;
  text-align: center;
  z-index: 8;
  transform: translate(-50%, -50%);
  top: -200px;
  left: -200px;
  border-radius: 10px;
  border: solid 2px rgba(194, 129, 82, 0.486);
  box-shadow: 0px 0px 10px rgb(0, 0, 0);
  text-shadow: 2px 2px 1px black;
  letter-spacing: 0.8px;
}
#nominfobulleobjet {
  text-shadow:
    1px 1px 3px black,
    0px 0px 1px black;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 20px;
  font-size: 0.9vw;
  font-family: systeme;
}
#descriptioninfobulleobjet {
  margin-top: 0.6vw;
  margin-left: 0.3vw;
  margin-right: 0.3vw;
  font-size: 0.8vw;
  font-family: "monaco";
  text-shadow:
    1px 1px 3px black,
    0px 0px 1px black;
  letter-spacing: 1px;
  font-weight: 600;

}
#imageinfobulleobjet {
  background-color: black;
  border-radius: 15px;
  margin: 0;
}
#typeinfobulleobjet {
  font-size: 0.8vw;
  font-family: "monaco";
  text-shadow:
    1px 1px 3px black,
    0px 0px 1px black;
  letter-spacing: 1px;
  font-weight: 600;
}
#createurinfobulleobjet {
  font-size: 0.8vw;
  font-family: "monaco";
  text-shadow:
    1px 1px 3px black,
    0px 0px 1px black;
  letter-spacing: 1px;
  font-weight: 600;
}
#prixinfobulleobjet {
  font-size: 0.9vw;
  font-family: "monaco";
  text-shadow:
    1px 1px 3px black,
    0px 0px 1px black;
  letter-spacing: 1px;
  font-weight: 600;
}
#typetext {
  color: var(--cuivre);
  font-size: 0.6vw;
  font-family: "pixel2";
  text-shadow:
    1px 1px 3px black,
    0px 0px 1px black;
  letter-spacing: 1px;
  font-weight: 600;
}
#createurtext {
  color: var(--cuivre);
  font-size: 0.6vw;
  font-family: "pixel2";
  text-shadow:
    1px 1px 3px black,
    0px 0px 1px black;
  letter-spacing: 1px;
  font-weight: 600;
}

#textprix {
  color: var(--cuivre);
  font-size: 0.6vw;
  font-family: "pixel2";
  text-shadow:
    1px 1px 3px black,
    0px 0px 1px black;
  letter-spacing: 1px;
  font-weight: 600;
}

/* todo ------------------------------ */
/* todo --------NOTIF  */
/* todo ------------------------------ */
#blocknotif {
  z-index: 12;
  margin-top: 7vw;
  margin-left: 2.5vw;
  font-size: 1.1vw;
  align-items: center;
  justify-content: start;
  width: fit-content;
  column-gap: 1vw;
  animation: apparition 2.8s ease-in-out forwards;
  display: flex;
  flex-direction: row;
  width: fit-content;
  left: 6.5vw;
  top: 71vh;
  position: absolute;
  animation: apparitionnotif 2.8s ease-in-out forwards;
  font-family: systeme;
  font-size: 1.1vw;
}
#logonotif {
  width: 1.3vw;
}
#notif {
  color: white;
  filter: drop-shadow(0px 0px 0.2vw rgb(255, 174, 0));
}
/* todo ------------------------------ */
/* todo --------HUD */
/* todo ------------------------------ */
#blockhud {
  font-family: systeme;
  font-size: 1vw;
  display: none;
  flex-direction: column;
  align-items: baseline;
  position: fixed;
  z-index: 11;
  height: fit-content;
  width: fit-content;
  top: 65%;
  left: 2.5vw;
  transform: translate(-50%, -50%);
}
#spanpv {
  font-size: 0.6vw;
  display: flex;
  text-align: center;
  column-gap: 0.1vw;
  justify-content: center;
  flex-direction: row;
  align-items: center;
  text-shadow: 0px 0px 1px greenyellow;
  color: rgb(174, 255, 0);
}
#imagepv {
  display: flex;
  width: 9px;
  height: 9px;
}

.invisible {
  display: none;
  pointer-events: none;
  z-index: -3;
}

.apparitionsmooth {
  animation: apparition 0.2s ease forwards;
}
.disparitionsmooth {
  animation: disparition 0.2s ease forwards;
}
#cadrecine {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}
#textdialogue {
  z-index: 11;
  width: fit-content;
  height: fit-content;
  text-shadow: 0px 0px 1px black;
  background-color: black;
  position: absolute;
  top: 88%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-left: 7px;
  padding-right: 7px;
  padding-top: 8px;
  padding-bottom: 7px;
  word-break: break-word;
  font-size: 30px;
  overflow: hidden;
  color: var(--cuivre);
  border-radius: 5px;
  font-weight: 550;
  font-variant: small-caps;
  font-family: "arial";
  line-height: 32px;
  box-shadow: 0px 0px 15px rgb(0, 0, 0) inset;
  border: solid 1px var(--cuivre);
  visibility: hidden;
}

#inventaire {
  background-color: var(--marronhudtransparent);
  position: absolute;
  width: 280px;
  height: 560px;
  z-index: 5;
  transform: translate(-50%, -50%);
  top: 55%;
  left: 15%;
  border: solid 1px var(--borderhud);
  padding: 0;
  margin: 0;
  box-shadow: 0px 0px 10px black;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 10px;
}
#fermerinventaire {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 17px;
  font-family: "pixel2";
  left: 94%;
  background-color: var(--borderhud);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px;
  padding-top: 0px;
  font-size: 8px;
  text-shadow: 0px 0px 1px rgb(0, 0, 0);
  color: rgb(0, 0, 0);
  border-radius: 100%;
  width: 15px;
  height: 15px;
  box-shadow:
    0px 0px 2px rgb(140, 79, 0) inset,
    0px 0px 1px black;
}
#titreinventaire {
  position: absolute;
  color: rgb(255, 255, 255);
  font-size: 15px;
  font-family: "pixel2";
  background-color: var(--marronfonce);
  border: solid 1px black;
  border-radius: 5px;
  padding: 4.5px;
  transform: translate(-50%, -50%);
  top: 6.5%;
  left: 50%;
  margin: 0;
  text-shadow: 0px 0px 0px orange;
  font-variant: small-caps;
  font-weight: 900;
  letter-spacing: 1.5px;
}

#blockinventaire {
  border-radius: 5px;
  border: 1px solid var(--cuivre);
  width: 89%;
  background-color: rgba(133, 82, 52, 0.907);
  box-shadow: inset 0px 0px 10px black;
  height: 77.5%;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 80px;
  overflow-y: scroll;
  overflow-x: hidden;
  flex-direction: column;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 43%;
  left: 50%;
  row-gap: 7px;
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: 6px;
  user-select: none;
}
.objet {
  position: relative;
  border-radius: 20px;
  width: 76px;
  height: 75px;
  background-color: var(--marronhud);
  border: solid 1px var(--cuivre);
  margin: 0;
  box-shadow:
    0px 0px 25px rgb(0, 0, 0) inset,
    0px 0px 5px rgb(0, 0, 0);
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.imgobjet {
  display: flex;
  z-index: 5;
  width: 22px;
  height: 20px;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 51%;
  left: 50%;
  padding: 0;
  margin: 0;
}
.titreobjet {
  height: 8px;
  position: absolute;
  z-index: 15;
  color: var(--cuivre);
  transform: translate(-50%, -50%);
  top: 16%;
  left: 50%;
  font-size: 8px;
  font-family: "pixel2";
  width: 80%;
  z-index: 10;
  padding: 0;
  margin: 0;
}
.infologoinventaire {
  width: 22px;
  height: 20px;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 52%;
  left: 80%;
}

.utiliser {
  width: 22px;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 55%;
  left: 20%;
}
.quantiteobjet {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 70%;
  left: 50%;
  font-family: "pixel2";
  color: beige;
  font-size: 8px;
  filter: drop-shadow(0px 0px 5px rgb(255, 60, 0));
}
#goldinventaire {
  color: beige;
  column-gap: 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0px;
  margin: 0px;
  width: 5px;
  height: fit-content;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 97%;
  left: 10%;
  z-index: 15;
  filter: drop-shadow(0px 0px 2px rgb(0, 0, 0));
  filter: drop-shadow(0px 0px 3px rgb(255, 179, 0));
  font-family: "pixel2";
}
#montantgold {
  font-size: 10px;
  padding-left: 4px;
  padding-top: 2px;
  text-align: center;
}
#textgold {
  padding-top: 1px;
  padding-right: 2px;
  font-size: 9px;
  display: flex;
  flex-direction: column;
  align-self: center;
  text-align: center;
}
::-webkit-scrollbar {
  width: 1px;
  padding: 0;
  margin: 0;
}
::-webkit-scrollbar-track {
  background: var(--marronfonce);
}
::-webkit-scrollbar-thumb {
  background: var(--cuivre);
}
#blocktuto {
  z-index: 5000;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 45%;
  left: 96.5%;
  display: flex;
  flex-direction: column;
  font-family: "pixel2";
  font-size: 10px;
  align-items: start;
  justify-content: center;
  color: beige;
  row-gap: 5px;
  line-height: 15px;
  opacity: 0;
}
.textetuto {
  filter: drop-shadow(0px 0px 5px rgb(255, 60, 0));
}
#iconson {
  z-index: 5000;
  display: flex;
  filter: drop-shadow(0px 0px 1px rgb(0, 225, 255));
  top: -5%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  z-index: 5000;
  width: 18px;
  height: 17px;
  cursor: url("./img/systeme/mouse2.png"), pointer;
}
