/* 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);
  --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;
  }
}

/* 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;
  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: 5vw;
  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: 0.2vw;
  align-items: center;
  justify-content: top;
  width: 12vw;
  height: 8vw;
  background-color: rgba(57, 0, 80, 0.315);
  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.3vw;
}
.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.7vw;
  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;
}
#inputchat {
  font-family: "systeme";
  height: 1.5vw;
  outline: none;
  background-color: rgba(93, 0, 122, 0.212);
  width: 10.8vw;
  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;
}
#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;
}

#infobulle {
  color: aliceblue;
  position: absolute;
  background-color: rgb(92, 61, 39);
  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;
}
#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: 70vh;
  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));
}
#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;
}
