@font-face {
  font-family: "Bakbak One Regular";
  font-style: normal;
  font-weight: normal;
  src: local("Bakbak One Regular"),
    url("./src/assets/fonts/BakbakOneRegular.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: normal;
  src: local("Inter"),
    url("./src/assets/fonts/Inter-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Mister-Pixel-Regular";
  src: url("./src/assets/fonts/mister-pixel-regular-webfont.woff2")
      format("woff2"),
    url("./src/assets/fonts/mister-pixel-regular-webfont.woff") format("woff"),
    url("./src/assets/fonts/mister-pixel-regular-webfont.otf") format("otf");
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body,
html {
  background: black;
  padding: 0;
  margin: 0;
  height: 100%;
}

body.formPage,
body.recapContainer {
  height: auto;
  min-height: 100%;
}

canvas {
  border-radius: 5px;
}

#startingScreen {
  min-height: 100%;
  right: 0;
  background: black;
  z-index: 20;
  display: flex;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-image: url(./src/assets/img/UI/HOME_MOBILE_STAVO_V2.png);
  background-size: cover;
  background-position: top center;
  font-family: elevon, sans-serif;
  font-weight: 400;
  font-style: normal;

  padding-bottom: 30px;
}

@media screen and (min-width: 1024px) {
  #startingScreen {
    background-image: url(./src/assets/img/UI/HOME_DESKTOP_STAVO_V2.png);
  }
}

#startingScreen.in {
  display: flex;
}

#startingScreen p {
  margin-bottom: 30px;
  color: white;
}

#screenOritentationScreen {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 2;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  display: none;
}

#screenOritentationScreen.in {
  display: flex;
}

#screenOritentationScreen p {
  margin-bottom: 30px;
  color: white;
}

#restartScreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 3;
  right: 0;
  display: none;
}

#restartScreen.in {
  display: flex;
}

#formulaireContainer {
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: none;
  margin-bottom: 50px;
}

#formulaireContainer.in {
  display: flex;
  margin-bottom: auto;
  padding-bottom: 50px;
}

#gameContainer {
  display: flex;
  flex-direction: column;
}

.bottomBlackGame {
  height: 50px;
  width: 100%;
  background: black;
}

#startingScreen p {
  text-transform: uppercase;
  font-family: "Bakbak One Regular";
  font-size: 24px;
  max-width: 80%;
  text-align: center;
}

#startingScreen p.leJeu {
  font-size: 48px;
  margin-top: 0;
  text-transform: uppercase;
  font-family: elevon, sans-serif;

  font-weight: 800;

  font-style: normal;
}

#startingScreen-commencer {
  transition: 0.2s all ease-in-out;
  cursor: pointer;
}

#startingScreen-commencer:hover {
  transform: scale(1.1);
}

#tutoScreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  bottom: 0;
  background-size: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 100%;
  width: 100%;
}

#tutoScreen .double-cta-container {
  position: absolute;
  width: 100%;
  bottom: -1px;
  right: -1px;
  width: 100%;
  z-index: 3;
  height: 50px;
  display: flex;
  justify-content: flex-end;
  /* background: #011006; */
}

#tutoScreen .skip-cta {
  background: #e36924;
  color: white;
}

#tutoScreen.in {
  display: flex;
}

.bottomBar {
  font-family: "Bakbak One Regular";
  display: flex;
  font-size: 24px;
  color: white;
  justify-content: space-between;
  align-items: center;
  background: #e36924;
  height: 100%;
  margin-left: 30px;
  height: calc(100% - 60px);
  margin-right: 30px;
  border-radius: 8px;
  width: 50%;
  z-index: 3;
  position: relative;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.bottomBar .step-number {
  font-size: 32px;
}

.bottomBar p {
  font-size: 21px;
  /* margin: 50px auto; */
  text-align: left;
}

@media screen and (max-width: 1024px) {
  .bottomBar p {
    font-size: 16px;
  }
}

#leftBtnBottom {
  position: absolute;
  top: 25px;
  left: 30px;
  animation: popup 2s infinite;
  z-index: 2;
}

#rightBtnBottom {
  position: absolute;
  top: 25px;
  right: 25px;
  /* animation: popup 1s infinite; */
  animation-delay: 0.3s;
  display: none;
  z-index: 2;
  margin: 0;
  padding: 0;
}

#leftBtnBottom img,
#rightBtnBottom img {
  width: 80px;
}

#rightBtnBottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  /* border: solid 2px white;
  background: black; */
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 5px;
  animation: smallpopup 2s infinite;
  animation-delay: 0.3s;
  padding-top: 0;
  margin-top: 0;
}

.cta-tuto {
  display: flex;
  flex-direction: row;
  align-items: center;
  cursor: pointer;
  /* border: solid 2px white;
  background: black; */
  padding: 10px 20px;
  text-transform: uppercase;
  font-size: 12px;
  border-radius: 5px;
  animation: smallpopup 2s infinite;
  animation-delay: 0.3s;
}

.cta-tuto {
  background: white;
  color: black;
  font-weight: bolder;
  margin-left: 30px;
}

.cta-tuto img {
  margin-left: 10px;
}

#rightBtnBotto img {
  transition: 0.2s all ease-in-out;
  transform: translateX(0px);
}

#rightBtnBotto p {
  margin: 0;
}

#rightBtnBotto:hover img {
  transform: translateX(5px);
}

@keyframes popup {
  0% {
    transform: scale(1);
  }

  15% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.2);
  }

  35% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.2);
  }

  55% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes smallpopup {
  0% {
    transform: scale(1);
  }

  15% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.05);
  }

  35% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.05);
  }

  55% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

.bottomBar #leftBtnBottom {
  border-radius: 5px;
  background: #000000;
  /* transform: scale(3); */
  border: 1.5px solid #ffed00;
  box-shadow: 0px 0px 6px -1px #ffed00;
  border-radius: 8px;
  display: flex;
  /* display: none; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  max-height: 80%;
  transition: 0.2s all ease-in-out;
  /* margin: auto; */
  cursor: pointer;
}

.bottomBar #leftBtnBottom {
  display: none;
}

video {
  border-radius: 15px;
  /* max-height: 80%; */
  width: auto;
  position: relative;
  z-index: 1;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
  /* filter: grayscale(1); */
}

.bottomBar #leftBtnBottom.disabled,
.bottomBar #rightBtnBottom.disabled {
  opacity: 0.3;
}

#endTuto {
  display: none;
  transition: 0.2s all ease-in-out;
  pointer-events: all;
}

#endTuto:hover {
  transform: scale(1.2);
}
#indicationContainer {
  width: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 30px;
  height: 100%;
}

#indicationContainer p {
  margin: 0;
  padding: 0;
}

#indication {
  padding: 10px 0;
  border-radius: 5px;
  color: white;
  margin: 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

#mainCanvas {
  border: none !important;
  top: 0;
  left: 0;
}

#bottomAndGame {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  height: 100%;
  /* background: black; */
  align-items: center;
  background-size: 50%;
  justify-content: center;
  /* justify-content: space-between; */
}

.bottomBar img {
  max-height: 80%;
  width: auto;
}

@media screen and (max-width: 1024px) {
  .bottomBar img {
    height: 20px;
  }
}

.jeuTutoContainer {
  position: relative;
  max-width: 65%;
  width: 100%;
  height: calc(100% - 60px);
  margin: auto;
  margin-top: 15px;
  margin-bottom: 15px;
  margin-right: 30px;
  z-index: -1;
}

@media screen and (max-width: 1024px) {
  .jeuTutoContainer {
    margin-top: unset;
    margin-bottom: unset;
    max-height: 100%;
  }
}

#gameContainerCanvas:before {
  content: "";
  position: relative;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  opacity: 1;
  pointer-events: none;
}

#gameOverlay.in {
  opacity: 1;
}

video {
  max-width: 100%;
  /* width: 100%;
    height: 100%; */
  /* object-fit: cover; */
}

/* canvas {
    width: 100% !important;
    height: 100% !important;
} */

.jeuTuto {
  object-fit: cover;
  width: auto;
  height: calc(80%);
  /* width: 300px;
    height: 200px; */
  border-radius: 15px;

  width: 100%;

  border-radius: 15px;
  object-position: bottom;
  margin: auto;
}

#textContainer {
  font-family: "Bakbak One Regular";
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* padding: 100px; */
  position: absolute;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 10%;
  z-index: 2;
  left: 50%;
  transform: translate(-50%, 0%);
}

#textContainer #coinsContainer,
#textContainer #outilsContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

#textContainer #coinsContainer div,
#textContainer #outilsContainer div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  margin: auto 20px;
  /* height: 200px;
    max-height: 80%; */
  justify-content: center;
  align-items: center;
}

#textContainer #coinsContainer div img,
#textContainer #outilsContainer div img {
  width: 150px;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;
  image-rendering: pixelated;
}

#textContainer #coinsContainer p,
#textContainer #outilsContainer p {
  font-size: 24px;
}

#textContainer #outilsContainer {
  display: none;
}

#CommencerContainer {
  display: none;
}

#stepP {
  font-size: 36px;
  margin-top: 0px;
  text-transform: uppercase;
  border: solid 3px white;
  padding: 0px 30px;
  background: black;
  border-radius: 50px;
  font-family: "Bakbak One Regular";
}

/* @media (pointer: fine) {
    #leftBtnBottom, #rightBtnBottom {
        display: none!important;
    }
} */

#turnPhone {
  display: none;
}

#instaNav {
  display: none;
}

.instagram-browser #instaNav {
  display: flex;
  flex-direction: column;
  font-family: "Bakbak One Regular";
  align-items: center;
  color: white;
  margin-bottom: auto;
  text-transform: uppercase;
  width: 80%;
  text-align: center;
  justify-content: center;
  align-items: center;
  margin: auto;
}

@media screen and (orientation: portrait) {
  .bottomBar {
    display: none;
  }

  #jeuTutoContainer {
    display: none;
  }

  #turnPhone {
    display: flex;
    flex-direction: column;
    font-family: "Bakbak One Regular";
    align-items: center;
    color: white;
    margin-bottom: auto;
    text-transform: uppercase;
    margin-top: auto;
    padding-left: 10%;
    padding-right: 10%;
    text-align: center;
    margin: auto;
    height: 100dvh;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
  }

  #turnPhone.add {
    margin-bottom: unset;
  }

  .instagram-browser #turnPhone {
    display: none;
  }
}

.recap {
  color: white;
  position: relative;
  z-index: 4;
}

.recap h1 {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

#formulaire {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  max-width: 600px;
  margin: auto;
  margin-top: 30px;
}

#formulaire > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: auto;
}

#formulaire > div > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 10px;
}

#formulaire > div > div input[type="text"],
#formulaire > div > div input[type="email"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: auto;
  padding: 5px;
  margin-top: 5px;
}

#formulaire > div > div label {
  font-size: 21px;
  font-weight: 400;
}

.recap p,
.recap a {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.recap a {
  color: white;
}

#callbackForm a:not(.noborder) {
  border: solid 2px white;
  background: #e36924;
  padding: 10px;
  color: white;
  border-radius: 50px;
  margin-bottom: 15px;
  width: 100%;
  max-width: 60%;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: 0.3s all ease-in-out;
}

.noborder {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.noborder {
  width: 300px;
  max-width: 80%;
  border: none;
}

#callbackForm a:not(.noborder):hover {
  color: #2d2d2d;
  background: #ffed00;
  margin: auto;
  margin-bottom: 15px;
}

#startGameBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: 0.2s all ease-in-out;
  cursor: pointer;
  background: black;
  color: white;

  border-radius: 5px;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  font-style: normal;
  font-weight: 800;
  height: auto;
  text-align: center;
  text-shadow: rgba(199, 139, 0, 0.7) 0 0 5px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
  width: auto;
  padding: 10px 30px;
  user-select: none;
}

@media screen and (max-width: 1024px) {
  #startGameBtn {
    height: auto;
    width: 200px;
    font-size: 18px;
  }
}

#startGameBtn:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.recap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.recap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* height: 100%; */
  min-height: 100%;
  justify-content: space-between;
}

.recapContainer {
  background: black;
  background-size: 50%;
  padding-bottom: 50px;
}

@media screen and (min-width: 1024px) {
  .recapContainer {
    background: black;
    background-size: 50%;
  }
}

.recapContainer .logo {
  max-width: 500px;
  width: 80%;
  margin-bottom: 30px;
}

@media screen and (max-width: 1024px) {
  .recapContainer .logo {
    max-width: 300px;
  }
}

.recap img {
  width: 100%;
}

.recap .container .outer_container {
  position: relative;
  width: 100%;
}

.recap .container .inner_container {
  border-radius: 5px;
  color: #e36924;
  padding: 30px;
  max-width: 60%;
  margin: auto;
  position: relative;
}

@media screen and (max-width: 728px) {
  .recap .container .inner_container {
    max-width: 90%;
  }
}

.recap .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  /* max-width: 60%; */
  text-align: center;
  margin: auto;
  font-family: "Bakbak One Regular";
  /* margin-bottom: 50px; */
  padding-bottom: 50px;
}

@media screen and (max-width: 1024px) {
  .recap .container {
    /* max-width: calc(90% - 15px); */
  }
}

.recap .container a:not(.noborder):not(.goBackWebsite) {
  padding: 10px;
  margin-bottom: 15px;
  width: auto;
  padding: 15px 30px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: 0.3s all ease-in-out;
  font-size: 18px;
}

.top-image {
  background: url(./src/assets/img/Backcover-2-VF.jpg);
  background-size: 100% auto;
  height: 300px;
  background-attachment: fixed;
  background-repeat: no-repeat;
  width: 100%;
  -webkit-box-shadow: inset 0px -5px 15px -1px rgba(0, 0, 0);
  box-shadow: inset 0px -5px 15px -1px rgba(0, 0, 0);

  filter: grayscale(1);
}

@media screen and (max-width: 728px) {
  .top-image {
    height: 100px;
  }
}

.recap .container button:not(.noborder):not(.goBackWebsite) {
  background: black;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  width: auto;
  padding: 15px 30px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: 0.3s all ease-in-out;
  font-weight: bold;
  color: white;
  cursor: pointer;
  font-family: "Bakbak One Regular";
  font-size: 18px;
  letter-spacing: 1px;
}

.recap .container button:not(.noborder):not(.goBackWebsite):hover {
  background: white;
  color: black;
}

.goBackWebsite {
  margin-bottom: 30px;
  text-decoration: none;
  display: flex;
}

.goBackWebsite img {
  width: 20px;
  height: auto;
  margin-right: 10px;
}

.goBackWebsite span {
  transition: 0.3s all ease-in-out;
}

.goBackWebsite:hover span {
  transform: translateX(10px);
}

.recap .container a:not(.noborder).submitScore {
  background: black;
}

.recap .container a:not(.goBackWebsite):hover {
  color: #e36924;
  background: white;
}

.recap h1 {
  text-transform: uppercase;
  font-size: 48px;
}

.recap p {
  margin-bottom: 30px;
  color: white;
  font-size: 24px;
}

.logoStavo {
  width: 400px;
  max-width: 80%;
}

#startingScreen .start {
  width: 200px;
  max-width: 80%;
  transform: scale(1);
  transition: 0.2s all ease-in-out;
}

#startingScreen .start:hover {
  transform: scale(1.1);
}

#startingScreen a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer {
  font-size: 12px;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-family: "Bakbak One Regular";
}

footer ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer a {
  color: white;
}

footer p.credit {
  font-size: 12px !important;
}

.formPage {
  background: url(./src/assets/img/UI/TEXTURE_MOBILE_STAVO.png);
  background-size: cover;
  /* height: 100%; */
  width: 100%;
  display: flex;
  /* min-height: 100%; */
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.formPage main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.formPage .container {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Bakbak One Regular";
  max-width: 80%;
  margin-bottom: 50px;
}

.formPage img {
  width: 100%;
}

.formPage #formulaire > div {
  display: flex;
  flex-direction: column;
}

.formPage #formulaire > div > div {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 1px;
}

.formPage #formulaire > div > div input {
  margin-top: 10px;
  border: solid 1px #ffed00;
  background: rgba(255, 255, 255, 0.2);
  padding: 15px 25px;
  border-radius: 50px;
  /* text-align: center; */
  color: white;
}

#formulaire a {
  color: white;
}

.formPage button.button {
  background: #ffed00;
  color: black;
  padding: 15px 15px;
  border-radius: 50px;
  text-transform: uppercase;
  font-family: "Bakbak One Regular";
}

#callbackForm {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#callbackForm {
  display: none;
}

#callbackForm a:not(.noborder):not(.goBackWebsite) {
  border: solid 2px white;
  background: #e36924;
  padding: 10px;
  color: white;
  border-radius: 50px;
  margin-bottom: 15px;
  width: 100%;
  max-width: 60%;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: 0.3s all ease-in-out;
}

.noborder {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#callbackForm img {
  width: 300px;
  max-width: 80%;
}

#callbackForm a:not(.noborder):hover {
  color: #2d2d2d;
  background: #ffed00;
  margin: auto;
  margin-bottom: 15px;
}

.recap #formulaire > div ul p {
  font-size: 14px;
}

.recap .container button:not(.noborder):not(.goBackWebsite)[type="button"] {
  margin: auto;
  align-self: center;
  padding: 15px 45px;
  border-bottom: solid 4px #e36924;
  color: white;
  overflow: hidden;
  position: relative;
}

.recap
  .container
  button:not(.noborder):not(.goBackWebsite)[type="button"]::before {
  content: "Je m'inscris";
  width: calc(100% + 1px);
  line-height: 56px;
  height: 0%;
  position: absolute;
  background: #e36924;
  left: -1px;
  bottom: 0;
  transition: 0.2s all ease-in-out;
  z-index: 0;
}

.recap
  .container
  button:not(.noborder):not(.goBackWebsite)[type="button"]:hover::before {
  height: 100%;
}

.recap
  .container
  button:not(.noborder):not(.goBackWebsite)[type="button"]:hover {
  background: transparent;
  border-bottom: solid 4px #e36924;
}

.recap .container .recommencer {
  background: #e36924;
  margin-top: 0;
  display: inline-block;
}

.thanks {
  display: none;
  flex-direction: column;
  align-items: center;
  max-width: 80%;
  width: 600px;
  margin: auto;
}

.thanks.in {
  display: flex;
}

.recap .container a:not(.goBackWebsite).listen {
  border-bottom: solid 4px transparent;
}

.recap .container a:not(.goBackWebsite).listen:hover {
  border-bottom: solid 4px #e36924;
  background: transparent;
  color: white;
}

label[for="wmgsdk-IDs"],
#wmgsdk-IDs {
  display: none !important;
}
