@font-face {
  font-family: NumerHIC;
  src: url('../../nav/fonts/numerhic.otf');
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@supports (-webkit-touch-callout: none) {
  img {
    -webkit-touch-callout: none
  }
}

body {
  overflow: hidden;
  margin: 0px;
  user-select: none;
}

.loader p {
  background: rgba(255, 255, 255, 0.9);
  height: fit-content;
  padding: 1%;
}

#btnRules,
#btnSettings,
#btnNew,
#btnReplay {
  display: block
}

#btnReplay.blinking {
  background: red;
  animation: blink 1s infinite;
}

#ask {
  position: absolute;
  top: 2vh;
  z-index: 1;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}

#ask p {
  background-color: green;
  color: white;
  border-radius: 50%;
  font-family: numerHIC;
  font-size: clamp(12px, 5vw, 50px);
  padding: 5px 0.5em;
  display: flex;
}

#ask .barre {
  opacity: 0.4
}

#view {
  position: absolute;
  padding: 1%;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  width: auto;
  flex-direction: row;
}

#view button {
  cursor: pointer;
  transition: transform 0.5s ease;
  margin: 1px;
  display: flex;
  align-items: end;
  justify-content: center;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  cursor: pointer;

}

#view button:hover,
#op button:hover {
  transform: scale(1.2);
  transform-origin: center;
}

#op {
  position: absolute;
  bottom: 11vh;
  display: flex;
  z-index: 1;
  font-size: 1em
}

#op div {
  padding: 1%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  max-width: max-content;
  gap: 5px;
}

#op button {
  font-size: clamp(12px, 5vw, 40px);
  font-family: numerHIC;
  border-radius: 10px;
  border: none;
  color: white;
  margin: 1px;
  padding: 2px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 1px 3px 1px;
  transition: transform 0.5s ease;
  cursor: pointer;
}

#imgWin {
  position: absolute;
  z-index: 2;
  bottom: 80px;
  right: 0;
  display: block;
  width: 80vw;
  max-width: 800px;
  transition: all 1s;
  transition-behavior: allow-discrete;
}

#imgWin.closed {
  display: none;
  opacity: 0;
}

#level {
  position: absolute;
  top: 0;
  right: 8vw;
  width: min(100px, 8vw);
  cursor: pointer;
  transition: transform 0.5s ease;
  z-index: 2;
}

#level:hover {
  transform: scale(1.2);
  transform-origin: center;
}

@media (orientation: portrait) {
  #view {
    flex-direction: column;
  }

  #op {
    right: 2vw;
    flex-direction: row;
  }

  #op div {
    padding: 2%;
    grid-auto-flow: row;
  }
}

#moins1,
#moins10,
#plus100,
#moins100 {
  display: none;
}

.op:disabled {
  opacity: 0.2;
}

.plus {
  background-color: #ff0000;
}

.moins {
  background-color: orange;
}

#centerScene {
  background-image: url('../img/centrer.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 46px;
  width: 100px;
  border: none;
  border-radius: 10px;
  color: white;
}

#frog {
  background-image: url('../img/grenouille.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 46px;
  width: 100px;
  border: none;
  border-radius: 10px;
  color: white
}

#fly {
  background-image: url('../img/mouche.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 46px;
  width: 100px;
  border: none;
  border-radius: 10px;
  color: white
}

#next {
  width: 100px;
  position: absolute;
  z-index: 1;
  bottom: 20vh;
  display: none;
  cursor: pointer;
}

#next.blinking {
  display: block;
  //background: red;
  animation: blink 1s infinite;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.label {
  font-family: NumerHIC;
  text-shadow: -1px 1px 1px rgb(0, 0, 0);
  font-size: 1rem;
  color: white;
  position: relative;
  z-index: 1 !important;
}

.labelFrog {
  position: absolute;
  max-width: 400px;
  left: 10px;
  top: -150px;
  padding: 15px 15px;
  color: #ffffff;
  background: #028e3c;
  border-radius: 10px;
}

.frogLabelDepasse {
  position: absolute;
  left: 40px;
  top: -150px;
  padding: 15px 15px;
  color: #ffffff;
  //background: #eb0552;
  background: #028e3c;
  border-radius: 10px;
}

.labelFrog:before,
.labelFrog:after,
.frogLabelDepasse:before,
.frogLabelDepasse:after {
  content: "";
  position: absolute;
  height: 40px;
  /* half of the height */
  width: 20px;
  /* negative of the height */
  bottom: -40px;
  background-color: transparent;
  box-shadow: 0 -20px 0 0 #028e3c;
}

.frogLabelDepasse:before,
.frogLabelDepasse:after {
  content: "";
  position: absolute;
  height: 40px;
  /* half of the height */
  width: 20px;
  /* negative of the height */
  bottom: -40px;
  background-color: transparent;
  //box-shadow: 0 -20px 0 0 #eb0552;
  box-shadow: 0 -20px 0 0 #028e3c;
}

.labelFrog:before,
.frogLabelDepasse:before {
  /* half of the height */
  border-top-right-radius: 20px;
  /* as per preference */
  left: 50px;
}

.labelFrog:after,
.frogLabelDepasse:after {
  border-top-left-radius: 20px;
  left: 70px;
}

.navDrawer {
  z-index: 3;
}

/**********settings*********/
#settings #niveauJeu {
  margin-bottom: 10px;
  margin-top: 50px
}

#settings #niveauJeu img {
  max-width: 100%;
  border-radius: 30px;
  cursor: pointer;
}

#settings #niveauJeu img:hover {
  transform: scale(1.1);
  transform-origin: center;
}

#settings input[type="radio"]:checked+label img {
  border: solid white 10px;
  border-radius: 5px;
  box-sizing: border-box;
  color: white;
  background: rgba(255, 255, 255, 0.5);
}

#settings input {
  display: none;
  cursor: pointer;
}

/****rules****/
#rules img {
  width: 100%;
  padding: 10px 0 40px;
  vertical-align: middle;
}

#rules span {
  font-family: icons;
  font-size: large;
}
