@import url("https://fonts.googleapis.com/css2?family=Mingzat&display=swap");

@font-face {
  font-family: "pixelo";
  src: url(./VCR_OSD_MONO_1.001.ttf);
}

@font-face {
  font-family: "chicago";
  src: url(./ChicagoFLF.ttf);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;

  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  background-color: #080808;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

#boiteChiffre {
  width: 80vw;
  max-width: 696px;
  aspect-ratio: 2.41 / 1;
  background-color: #888888;

  background-image: url(./metalPatine.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-blend-mode: soft-light;

  box-shadow: inset 0 10px 10px 10px rgba(255, 255, 255, 0.366),
    inset 0 -10px 10px 10px rgba(0, 0, 0, 0.366);

  display: flex;
  justify-content: space-evenly;

  border-radius: 5px;

  border: solid 3px rgb(108, 108, 108);
  border-top: solid 3px rgb(255, 255, 255);
  border-bottom: solid 3px rgb(42, 42, 42);
}

.trouPourChiffre {
  height: 60%;
  margin-top: 6%;

  box-shadow: inset 0px 10px 32px 3px rgb(0, 0, 0);
  background: linear-gradient(180deg, rgba(0, 0, 0, 1) 6%, rgb(54, 54, 54) 55%);

  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

#trouPourChiffre1 {
  width: 56%;
}

#trouPourChiffre2 {
  width: 28%;
}

#trouPourChiffre2 > .chiffreContainer {
  width: 46%;
}

.chiffreContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  height: 85%;
  width: 23.5%;

  background-color: #1a1a1a;
  position: relative;
}

.chiffreContainer > div::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;

  background-image: url(./grainNoir.png), linear-gradient(#373837, #373837);
  opacity: 0.01;
  background-size: 100% !important;
  background-blend-mode: multiply !important;
  background-position: center;
}

.chiffreContainer > div {
  width: 100%;
  height: 49.2%;
  background-color: #191919;
  border-radius: 3%;

  font-family: "Mingzat";
  color: #fefefc;

  overflow: hidden;
  position: relative;

  transition: 0.2s;
}

#cache::before {
  height: 0;
  width: 0;
  display: none;
}

#trouPourChiffre2 > .chiffreContainer > #cache {
  position: absolute !important;
  background-color: rgb(255, 255, 255) !important;
  box-shadow: inset 0px -6px 10px rgba(100, 100, 100, 0.55),
    0px -2px 0px 1px rgb(132, 132, 132),
    inset 0 4px 5px 5px rgba(0, 0, 0, 0.257);

  z-index: 10;
  top: 0px;

  transition: 0.2s;
  display: none;
}

#cache {
  position: absolute !important;
  box-shadow: inset 0px -6px 10px rgb(0, 0, 0, 0.55),
    0px -2px 0px 1px rgb(60, 60, 60), inset 0 4px 5px 5px rgba(0, 0, 0, 0.257);
  background-color: rgb(43, 43, 43) !important;
  /* box-shadow: inset 0px -6px 10px rgba(30, 5, 194, 0.55), 0px -2px 0px 1px rgb(34, 0, 255), inset 0 4px 5px 5px rgba(42, 254, 0, 0.257);
    background-color: rgb(199, 14, 14) !important; */
  z-index: 10;
  top: 0px;

  transition: 0.2s;

  display: none;
}

#cache > div {
  top: 52%;
}

#trouPourChiffre2 > .chiffreContainer > div {
  background-color: #f8f5f5;
  color: #0e0d0d;
}

#trouPourChiffre2 > .chiffreContainer > .chiffreDuHaut {
  background-color: rgb(255, 255, 255) !important;
  box-shadow: inset 0px -6px 10px rgba(100, 100, 100, 0.55),
    0px -2px 0px 1px rgb(132, 132, 132),
    inset 0 4px 5px 5px rgba(0, 0, 0, 0.257);
}

#trouPourChiffre2 > .chiffreContainer > .chiffreDuBas {
  box-shadow: inset 0px 6px 10px rgba(0, 0, 0, 0.55),
    0px 4px 0px 1px rgb(46, 46, 46),
    inset 0 -4px 5px 5px rgba(255, 255, 255, 0.083);
}

#trouPourChiffre2 > .chiffreContainer > div::before {
  content: "";
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;

  background-image: url(./grainNoir.png), linear-gradient(#ffffff, #ffffff);
  opacity: 0.01;
  background-size: 100% !important;
  background-blend-mode: multiply !important;
  background-position: center;
}

.chiffreDuHaut {
  box-shadow: inset 0px -6px 10px rgb(0, 0, 0, 0.55),
    0px -2px 0px 1px rgb(60, 60, 60), inset 0 4px 5px 5px rgba(0, 0, 0, 0.257);
  border-bottom: #181818 1px solid;
  background-color: rgb(43, 43, 43) !important;
}

.chiffreDuBas {
  box-shadow: inset 0px 6px 10px rgba(0, 0, 0, 0.55),
    0px 4px 0px 1px rgb(0, 0, 0),
    inset 0 -4px 5px 5px rgba(255, 255, 255, 0.083);
  border-top: #212121 1px solid;
}

.chiffreContainer > div > div {
  /*caractere span*/
  position: absolute;
  height: 100%;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15vw;
  font-weight: bold;
}

.chiffreDuHaut > div {
  top: 52%;
}

.chiffreDuBas > div {
  bottom: 50%;
}

.partieForm {
  height: 100px;
  aspect-ratio: 2 / 1;
  border-radius: 12px;

  background-color: #5d686878;
  border-top: solid 6px rgb(109, 109, 109);
  border-bottom: solid 19px #171a1a78;
  border-left: solid 15px #3f474778;
  border-right: solid 15px #3f474778;
  box-shadow: 0 7px 0px 0px #252f2f78,
    inset 0 0px 14px 10px rgba(255, 255, 255, 0.135);

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #fffeea;
  text-shadow: 0 0 5px rgba(55, 55, 55, 0.332);
  font-size: 1.7rem;
  font-weight: 400;
  transition: 0.2s;
  user-select: none;

  font-family: "chicago", serif;
}

.partieForm:active {
  box-shadow: 0 0px 0px 0px #252f2f,
    inset 0 0px 6px 10px rgba(240, 240, 240, 0.112);
  transform: translateY(7px);
}

.mention {
  position: absolute;
  bottom: 0;
  padding: 0 30px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: "pixelo" !important;

  margin-bottom: 10px;


}

.mention > * {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-family: "pixelo" !important;
}

.partieCode {
  color: rgb(48, 79, 48);
  text-shadow: 0 0 7px rgba(21, 255, 0, 0.582);
  font-size: 2rem;
  font-family: "pixelo" !important;

  display: flex;
  align-items: center;
  justify-content: center;
}

.partieCode > * {
  color: #4aff4a;
  text-shadow: 0 0 7px rgba(21, 255, 0, 0.582);
  font-size: 2rem;
  font-family: "pixelo" !important;
}

input[type="number"] {
  /* width: 80px; */
  height: 70px;
  font-family: "pixelo";
  line-height: 100%;
  text-align: left;
  /* background-color: #080808; */
  color: #4aff4a;
  text-shadow: 0 0 7px rgba(21, 255, 0, 0.582);
  font-size: 2rem;

  outline: none !important;
  border: none;

  background-color: transparent;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Pour Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
@media screen and (min-width: 867px) {
  .chiffreContainer > div > div {
    font-size: 131px;
  }
}
