@font-face {
  font-family: "MinecraftFont";
  src: url("F77MinecraftRegular-0VYv.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;

  scrollbar-width: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --color-theme: #6200ff;
  --color-theme-darker: #330085;
}

body {
  display: flex;
  justify-self: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: white;

  max-height: 100vh;
  max-width: 100vw;

  overflow: hidden;

  background: black;
  background: linear-gradient(
    344deg, 
    var(--color-theme-darker) 0%, 
    rgb(0, 0, 0) 40%, 
    rgb(0, 0, 0) 60%,
    var(--color-theme-darker) 100%
  );
}

input, select {
  padding: 0.8em 0;
  border-radius: 2vh; 
  background-color: black;
  color: white;
  font-weight: 600;
  text-align: center;
  width: 12em;

  border: 0.2em solid white;
  box-shadow: 0px 0px 0.4em 0px var(--color-theme);
  transition: all 0.5s;
}
input[type="text"][disabled] {
  box-shadow: 0px 0px 0.4em 0px red;
}
input[type="text"] {
  box-shadow: 0px 0px 0.4em 0px rgb(0, 255, 0);
  padding: 0.8em 0;
}

/* Submit enabled */
input[type="submit"] {
  box-shadow: 0px 0px 0.4em 0px rgb(0, 255, 0);
  background-color: var(--color-theme);
}
input[type="submit"]:hover {
  color: rgb(0, 255, 0);
  transform: scale(0.95);
}

/* Submit disabled */
input[type="submit"][disabled] {
  background-color: var(--color-theme-darker);
  box-shadow: 0px 0px 0.4em 0px red;
  color: rgb(255, 124, 124);
}
input[type="submit"][disabled]:hover {
  color: red;
  transform: scale(1.05);
}

/* Formulaire 1 et 2*/
.form-ecran-authentification{
  position: fixed;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  text-align: center;
  max-width: 100vw;
  max-height: 100vh;
}
.form-ecran-authentification fieldset { 
  flex: 10;
  display: flex; 
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  width: auto; 
  height: auto; 
  gap: 1em; 
  border: 0.2em solid white;
  box-shadow: 0px 0px 0.6em 0px var(--color-theme);
  font-weight: bold;
  border-radius: 2vh; 
  padding: 2em; 
}


/* Formulaire 3 */
.form-ecran-jeu{
  position: fixed;
  display: flex;
  text-align: center;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
}
#formulaire-jeu fieldset {
  display: flex; 
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  width: auto; 
  height: auto; 
  gap: 1em; 
  border: 0.2em solid white;
  box-shadow: 0px 0px 0.6em 0px var(--color-theme);
  font-weight: bold;
  border-radius: 2vh; 
  padding: 1em; 

  text-shadow: 0px 0px 2px black;
}

#formulaire-jeu fieldset:nth-child(1) {
  position: absolute;
  justify-self: flex-start;
}

#formulaire-jeu fieldset:nth-child(2) {
  position: absolute;
  justify-self: center;

}
#point-de-vie{
  display: flex;
  flex-direction: row;
}
.coeur{
  font-weight: 100;
  font-family: "MinecraftFont";
}
#formulaire-jeu fieldset:nth-child(3) {
  position: absolute;
  justify-self: flex-end;
}


#ecran-jeu {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
}
canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
}


/* Formulaire 4 (fin) */
.form-ecran-fin{
  position: fixed;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  text-align: center;
  max-width: 100vw;
  max-height: 100vh;
}
.form-ecran-fin fieldset { 
  flex: 10;
  display: flex; 
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  width: auto; 
  height: auto; 
  gap: 1em; 
  border: 0.2em solid white;
  box-shadow: 0px 0px 0.6em 0px var(--color-theme);
  font-weight: bold;
  border-radius: 2vh; 
  padding: 2em; 
}

#svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
}