@font-face {
  font-family: RobotoMedium;
  src: url(Assets/Interface/Fonts/Roboto/Roboto-Medium.ttf);
  font-weight: bold;
}

@font-face {
  font-family: RobotoRegular;
  src: url(Assets/Interface/Fonts/Roboto/Roboto-Regular.ttf);
  font-weight: 200;
}

@font-face {
  font-family: RobotoLight;
  src: url(Assets/Interface/Fonts/Roboto/Roboto-Light.ttf);
  font-weight: 100;
}

* {
  font-family: robotoMedium;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}



body {
  display: flex;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  position: relative;

  background: rgb(214, 225, 251);
  background: linear-gradient(0deg, rgba(214, 225, 251, 1) 0%, rgba(146, 163, 201, 1) 100%);
  flex-wrap: wrap;
}


@keyframes validationAnim {
  0% {
    transform: translateX(-15px) translateY(-15px);
    opacity: 1;
  }

  100% {
    transform: translateX(-15px) translateY(-60px);
    opacity: 0;
  }
}

.pictoValidation {
  background-image: url(Assets/Interface/Imgs/check_white.png);
  background-color: #89e51d;
}

.pictoError {
  background-image: url(Assets/Interface/Imgs/cross_white.png);
  background-color: rgb(212, 40, 28);
}

.pictoValidation,
.pictoError {
  position: fixed;
  z-index: 400;
  width: 30px;
  height: 30px;
  background-position: center;
  background-size: 50%;
  pointer-events: none;
  animation: 1s linear 0s validationAnim forwards;
  background-repeat: no-repeat;
}


@keyframes fadeLoadingScreen {
  0% {
    opacity: 100%;
  }

  100% {
    opacity: 0%;
    display: none;
  }
}

#loadingPage {
  position: fixed;
  z-index: 500;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;

  background-color: #314683;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.fadeLoadingScreen {
  animation: 1s ease-in-out 1s fadeLoadingScreen forwards;
  pointer-events: none;
}

#loadingBar {
  height: 30px;
  width: 300px;
  padding: 5px;
  background-color: #253461;
  display: flex;
  flex-direction: row;

}

#loadingBarInner {
  flex-grow: 0;
  height: 100%;
  background-color: white;
  width: 0%;
  transition: width 0.5s ease-in-out;
}

#loadingPercentage {
  width: 300px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#loadingPercentage p {
  font-family: RobotoMedium;
  color: white;
  font-size: 15px;
  flex-grow: 0;
}




@keyframes horlogeFade {
  0% {
    opacity: 100%;
  }

  90% {
    opacity: 100%;
  }

  100% {
    opacity: 0%;
  }
}

#horloge {
  position: fixed;
  top: 10px;
  right: 550px;
  width: 400px;
  height: 150px;
  padding: 10px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(15px);
  color: #283352;
  z-index: 5;
  flex-direction: row;
  justify-content: space-between;
  pointer-events: none;
  display: flex;
  opacity: 0%;
}

.horlogeFadeAnim {
  animation-name: horlogeFade;
  animation-duration: 15s;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

#horloge p {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: RobotoMedium;
  color: #253461;
}

#clockContainer {
  position: relative;
  width: 135px;
  height: 100%;
  flex-shrink: 0;
}

.clock {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 20px solid #314683;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%) scale(0.35);
  box-shadow: inset 0px 0px 10px black;
}

.clock::before {
  position: absolute;
  content: '';
  height: 130px;
  width: 10px;
  background: #283352;
  top: 50%;
  left: calc(50% - 5px);
  border-radius: 5px;
  animation: spin 6s linear infinite;
  transform-origin: top;
}

.clock::after {
  position: absolute;
  content: '';
  height: 100px;
  width: 10px;
  background: #283352;
  top: 50%;
  left: calc(50% - 5px);
  border-radius: 5px;
  animation: spin 72s linear infinite;
  transform-origin: top;

}

@keyframes spin {
  0% {
    transform: rotate(-180deg)
  }

  100% {
    transform: rotate(180deg)
  }
}

.clockInner {
  width: 100%;
  height: 100%;
}

.clockInner::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #314683;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;

}

.clockInner::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  left: 50%;
  top: calc(50% - 145px);
  z-index: 2;
  transform: translateX(-50%);
  box-shadow: 140px 145px 0 0 white, -140px 145px 0 0 white, 0 280px 0 0 white;
}



/* ////////////////////////////////////////////////// */

#tutoForcePopup {
  flex-direction: row !important;
}

#tutoForceEtape {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(15px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #283352;
}

#tutoForceEtape::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -150px;
  height: 150px;
  width: 150px;
  background-image: url(Assets/Interface/worker/workerNice.png);
  background-position: bottom;
  background-size: 90%;
  background-repeat: no-repeat;

  animation-name: rubberBand, fadeOutWorker;
  animation-duration: 1s, 4s;
  animation-delay: 0s, 0s;
  animation-iteration-count: 1, 1;
  animation-fill-mode: forwards;
  transform-origin: bottom;
}

#tutoForceEtape h4 {
  font-family: RobotoMedium;
  font-weight: 100;
  font-size: 17px;
  padding: 3px;
  text-align: center;
}

#noteEtapeTutoForce {
  font-family: RobotoRegular;
  font-weight: 100;
  font-size: 16px;
  text-align: center;
  flex-grow: 1;
  pointer-events: all;
}






#helpPopup,
#tutoPopup,
#tutoForcePopup,
#endingPopup {
  position: fixed;
  z-index: 400;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  padding: 40px;

  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.tutoForcePopupDisplayed {
  display: flex !important;
}

.helpPopupDisplayed {
  display: flex !important;
}


.tutoPopupDisplayed {
  display: flex !important;
}

.endingPopupDisplayed {
  display: flex !important;
}

#endingPopup h5 {
  color: white;
  font-family: RobotoMedium;
  font-size: 30px;
}

#helpBG,
#tutoForceBG,
#tutoBG {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  cursor: pointer;
  z-index: -1;
}

#helpItems {
  height: calc(80% - 20px);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

#helpItems>img {
  max-height: 100%;
  max-width: 100%;
  display: none;
  pointer-events: none;
}

.displayedHelp {
  display: block !important;
}

#navHelp {
  height: 20%;
  /* width: 100%; */
  display: flex;
  flex-direction: row;
  gap: 30px;
  justify-content: center;
  align-items: center;
}

#prevHelp,
#nextHelp {
  background-color: #314683;
  width: 50px;
  height: 50px;
  background-image: url("Assets/Interface/Imgs/right-arrow_white.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
  transform: rotate(0deg);
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

#prevHelp {
  transform: rotate(180deg);
}

#nextHelp:hover,
#prevHelp:hover {
  background-color: #253461;
}



#tutoVideo,
#tutoForceVideo {
  max-width: 80%;
  max-height: 80%;
}



header {
  height: 70px;
  min-height: 70px;
  width: 100%;
  padding: 10px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

header>img,
#loadingPage img {
  position: fixed;
  height: 30px;
  top: 18px;
  left: 18px;
}

header h1 {
  font-family: RobotoMedium;
  font-weight: 100;
  background-color: #314683;
  font-size: 15px;
  color: white;
  height: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  padding: 0 45px;
}



#animSpeed {
  position: fixed;
  top: 80px;
  right: 10px;
  width: 110px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

#animSpeed p {
  width: 100%;
  height: 50px;
  padding: 5px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
  align-items: center;
  background-color: #314683;
  color: white;
  font-family: RobotoRegular;
  font-size: 13px;
}

#animSpeed>div {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.speedBtn {
  width: 50px;
  height: 30px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #314683;
  color: white;
  cursor: pointer;
}

.speedBtn.active {
  background-color: #283352;
}




#uiTools {
  position: fixed;
  right: 10px;
  top: 10px;
  height: 50px;
  width: 110px;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

#fullscreen,
#help {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color: #314683;
  cursor: pointer;
  z-index: 3;
  padding: 5px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#fullscreen img,
#help img {
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
}

/* #fullscreen {
  display: none !important;
} */

/* #help {
  width: 110px !important;
} */

#etapesWrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 320px;
  justify-self: end;
  flex-grow: 1;
  flex-shrink: 0;
  z-index: 1;

  margin: 50px 0px 15px 15px;
  height: calc(100% - 165px);
}

#etapesWrapper h2 {

  font-size: 15px;
  background-color: #314683;
  color: white;
  text-align: center;
  padding: 10px;
  width: 80%;
  margin: 0 auto;
  font-family: RobotoRegular;
  font-weight: 500;
}

#etapes {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-grow: 1;
  overflow-y: auto;
  scrollbar-width: none;

  width: calc(100% + 30px);
  padding-right: 30px;
}

#scrollerEtapes {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  flex-direction: column;
}


.etape {
  background-color: white;
  font-family: RobotoRegular;
  display: flex;
  flex-direction: row;
  padding: 10px;
  -webkit-box-shadow: 0px 0px 22px 0px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 22px 0px rgba(0, 0, 0, 0.3);
  font-size: 0.75em;
  justify-content: space-between;
  /* min-height: 75px; */
  transition: transform 0.5s ease-in-out;
}

.etapeTutoUrl {
  cursor: pointer;
}

.etape[data-completed="current"] {
  transform: translateX(20px);
}

.etape[data-completed="true"] {
  transform: translateX(0px);
}

.etape[data-completed="false"] {
  transform: translateX(0px);
}

.contentEtape {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  flex-grow: 1;
}

.contentEtape .etapeTutoUrl,
#tutoComplet {
  color: white;
  background-color: #314683;
  font-family: RobotoLight;
  font-size: 11px;
  text-decoration: none;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.etape[data-completed="false"] .contentEtape .etapeTutoUrl {
  background-color: #a7a7a7 !important;
  pointer-events: none;
}

.contentEtape .etapeTutoUrl img {
  pointer-events: none;
  max-height: 15px;
}

.spacerEtape {
  width: 2px;
  border-radius: 1.5px;
  background-color: rgb(180, 180, 180);
  margin-left: 10px;
}

.stateEtape {
  width: 50px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pictoEtape {
  flex-grow: 1;
  background-image: url("Assets/Interface/Imgs/questionMark_jaune.png");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
  filter: saturate(0%);
}

.etape[data-completed="false"] .pictoEtape {
  filter: saturate(0%);
}

.etape[data-completed="current"] .pictoEtape {
  filter: saturate(100%);
}

.etape[data-completed="true"] .pictoEtape {
  filter: saturate(100%);
  background-image: url("Assets/Interface/Imgs/check_green.png");
}

.numEtape {
  flex-shrink: 1;
  text-align: center;
  color: gray;
}

.txtGreen {
  color: green !important;
}

.txtOrange {
  color: orange !important;
}

.txtRouge {
  color: red !important;
}

.etape[data-completed="false"] .contentEtape h3 {
  color: #a7a7a7;
}

.contentEtape h3,
.etape[data-completed="current"] .contentEtape h3 {
  color: #314683;
  padding: 5px 0;
}

.etape[data-completed="false"] .contentEtape h3 b::after,
.etape[data-completed="current"] .contentEtape h3 b::after {
  content: "...";
}

.etape[data-completed="true"] .contentEtape h3 b::after {
  content: attr(data-nomEtape);
}



#tutoComplet img {
  max-height: 30px;
  pointer-events: none;
}

#tutoComplet {
  font-family: RobotoRegular;
  font-size: 15px;
  cursor: pointer;
}

#tutoComplet:hover,
.etapeTutoUrl:hover {
  background-color: #253461;
}




section {
  /* background-color: red; */
  height: 200px;
  width: calc(100% - 390px);
  z-index: 1;
  position: fixed;
  bottom: 15px;
  right: 15px;

  display: flex;
  flex-direction: row;
  justify-content: right;
  pointer-events: none;
}

@keyframes noteEtapeValidate {
  0% {
    border: #31468300 solid 3px;
    color: #283352;
    /* -webkit-box-shadow: 0px 0px 20px 4px rgba(103, 255, 15, 0);
    box-shadow: 0px 0px 20px 4px rgba(103, 255, 15, 0); */
  }

  50% {
    color: #314683;
    border: #314683 solid 3px;
    /* -webkit-box-shadow: 0px 0px 20px 4px rgba(92, 223, 16, 0.67);
    box-shadow: 0px 0px 20px 4px rgba(105, 255, 15, 0.3); */
  }

  100% {
    color: #283352;
    border: #31468300 solid 3px;
    /* -webkit-box-shadow: 0px 0px 20px 4px rgba(103, 255, 15, 0);
    box-shadow: 0px 0px 20px 4px rgba(103, 255, 15, 0); */
  }
}

#noteEtape {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(15px);
  color: #283352;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 300px;
  margin-right: 15px;
  flex-shrink: 0;
  padding: 15px;
  position: fixed;
  top: 10px;
  right: 215px;
  height: 150px;
  border-radius: 25px;
}

#noteEtape::before {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(15px);
  mask-image: url(Assets/Interface/Imgs/dialogArrow.svg);
  mask-repeat: no-repeat;
  width: 25px;
  height: 25px;
  right: -25px;
  top: calc(50% - 12.5px);
}

@keyframes fadeOutWorker {
  0% {
    opacity: 0%;
  }

  5% {
    opacity: 100%;
  }

  95% {
    opacity: 100%;
  }

  100% {
    opacity: 0%;
  }
}

.noteEtapeAnimate::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: 0;
  height: 150px;
  width: 150px;
  background-image: url(Assets/Interface/worker/workerNice.png);
  background-position: bottom;
  background-size: 90%;
  background-repeat: no-repeat;

  animation-name: rubberBand;
  animation-duration: 1s;
  animation-delay: 0s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
  transform-origin: bottom;
}

.noteEtapeAnimate {
  animation-name: pulse;
  animation-duration: 2s;
  animation-delay: 0s;
  animation-iteration-count: 1;
}

#noteEtape h4,
#buttonToolbox h4 {
  font-family: RobotoMedium;
  font-weight: 100;
  font-size: 17px;
  padding: 3px;
  text-align: center;

}

#noteEtape p {
  font-family: RobotoRegular;
  font-weight: 100;
  font-size: 16px;
  text-align: center;
  flex-grow: 1;
  overflow-y: scroll;
  scrollbar-width: none;
  pointer-events: all;
}

#contentToolbox {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(15px);
  color: #283352;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  flex-wrap: wrap;
  overflow: auto;
  max-width: 100%;
  gap: 10px;
  justify-content: space-around;
  align-items: center;
  padding: 20px 35px 20px 20px;
  scrollbar-width: none;
  pointer-events: all;
}

.DOMTool {
  position: relative;
  width: 100px;
  height: 100px;
  cursor: grab;
  padding: 15px;
}

.DOMTool:hover {
  background-color: #314683;
}

.DOMTool:hover::after,
.grabbingTool::after {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  text-align: center;
  padding: 5px;
  color: #314683;
  left: 5px;
  right: 5px;
  top: 5px;
  bottom: 5px;
  content: attr(data-displayedName);
  /* transform: translateY(calc(-100% - 10px)); */

  background-color: white;
  opacity: 0.8;
  /* overflow: visible; */
  /* z-index: 50; */
}

.grabbingTool {
  background-color: #314683;
  opacity: 0.5;
}

.closed #contentToolbox {
  display: none;
  pointer-events: none;
}

#buttonToolbox {
  width: 200px;
  background-color: #314683;
  cursor: pointer;
  flex-shrink: 0;
  padding: 10px;
  pointer-events: all;
}

#buttonToolbox:hover {
  background-color: #253461;
}

#buttonToolbox h4 {
  color: white;
}

#buttonToolbox img {
  pointer-events: none;
  display: block;
}

#imgOpened {
  width: calc(100% + 60px);
  transform: translateX(-30px)translateY(20px);
}

#imgClosed {
  width: calc(100% - 30px);
  transform: translateX(15px) translateY(20px);
}

.closed #imgOpened {
  display: none;
}

.opened #imgClosed {
  display: none;
}


#produitsChimiques {
  position: fixed;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(15px);
  width: 200px;
  height: 150px;
  bottom: 230px;
  right: 15px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}

@keyframes errorColorText {
  from {
    color: red;
  }

  to {
    color: #314683;
  }
}

.produitsChimiquesError .txtHidden {
  animation-duration: 1s;
  animation-name: errorColorText;
}

.mousseHidden {
  cursor: pointer;
}

.txtHidden {
  display: none;
  pointer-events: none;
}

.mousseHidden .txtHidden {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #314683;
  font-family: RobotoMedium;
  text-align: center;
  font-size: 15px;
  flex-grow: 1;
}

.mousseHidden .txtMousse {
  display: none;
}

.txtMousse {
  color: #314683;
  font-family: RobotoMedium;
  font-weight: 100;
  font-size: 15px;
}

.mousseHidden .DOMTool {
  display: none;
}

@keyframes rec {
  0% {
    opacity: 100%;
  }

  50% {
    opacity: 0%;
  }

  100% {
    opacity: 100%;
  }
}

#animLock {
  position: fixed;
  background-color: #314683;
  width: 200px;
  height: 50px;
  bottom: 395px;
  right: 15px;
  z-index: 1;
  display: none;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.animLockShow {
  display: flex !important;
}

#animLock img {
  animation: 1s ease-in-out 1s infinite alternate rec;
  height: 100%;
}

#animLock p {
  font-family: RobotoRegular;
  color: white;
  font-size: 11px;
}



canvas {
  position: fixed;
  top: 0;
  left: 0;

  background: rgb(214, 225, 251);
  background: linear-gradient(0deg, rgba(214, 225, 251, 1) 0%, rgba(146, 163, 201, 1) 100%);
}

button {
  position: fixed;
  z-index: 50;
  width: 50px;
  height: 50px;
  color: #4d6ecf;
}


.DOMTool img {
  height: 100%;
  pointer-events: none;
}