:root {
  --orange: #ff8800;
}

@font-face {
  font-family: 'CambriaBold';
  src: url(./common/fonts/cambriab.ttf) format('truetype');
}
@font-face {
  font-family: 'din';
  src: url(./common/fonts/DIN_Condensed_Bold.ttf) format('truetype');
}

body {
  background: hsl(0deg 0% 0% / 100%);
  /* background: hsl(0deg 0% 0% / 50%); */
}

body.EN .lang-es {
  display: none !important;
  /* visibility: hidden; */
}

body.ES .lang-en {
  display: none !important;
  /* visibility: hidden; */
}

body.EN .lang-en {
  visibility: visible;
}
body.ES .lang-es {
  visibility: visible;
}

.hidden {
  visibility: hidden;
}

/* .over {
  z-index: 10;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;

  text-align: center;
  color: white;
  font-family: eb garamond, serif;
  text-shadow: 0px 0px 5px black;
} */

/* #promptText {
  font-size: 1.2em;
  top: 12vh;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
} */

/* .languages {
  z-index: 10;
  position: absolute;
  top: 5vh;
  left: 75%;
  bottom: 0;
  right: 0;

  text-align: center;
  color: purple;
  font-family: eb garamond, serif;
  text-shadow: 0px 0px 5px black;
  transform: translate(-50%, 0);
} */

.adimage {
  z-index: 21;
  margin: auto;
  width: 100%;
  position: fixed;
  left: 50%;
  bottom: 0;
  right: 0;

  text-align: center;
  transform: translate(-50%, 0);
}

.languageEntry {
  font-size: 2em;
  text-align: center;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: white;
  left: 90%;
}

/* .button{
	display: inline-block;
	width: 360px;
	height: 768px;
	border-radius: 50px;
	padding: 40px;
	background-color: rgba(0.0, 0.0, 0.0, 0.2);
	text-align: center;
	color: white;
}

.button:hover{
	background-color: #000000;
	color: #ffffff;
} */

#spanish-option {
  color: green;
}

@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }
}

.button2d {
  z-index: 10;
  margin: auto;
  height: 60px;
  position: fixed;
  bottom: 20px;
}

#resetButtonGroup *,
#placeButtonGroup * {
  right: 0;
  text-align: left;
  left: -75vw;
}

#skipIntroButton,
#skipIntroButtonEs {
  right: 22vw;
  text-align: left;
}

#muteButtonOn,
#muteButtonOnEs {
  right: 5vw;
  text-align: right;
}

#muteButtonOff,
#muteButtonOffEs {
  right: 5vw;
  text-align: right;
}

#blackBg {
  pointer-events: none;
  background-color: black;
  z-index: 99;
}

.absolute-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

.fade-out {
  animation: fade-out 0.5s linear forwards;
}
@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.fade-in {
  animation: fade-in 0.5s linear forwards;
}
@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fadeInOut {
  opacity: 1;
  animation: fadeinout 1.5s linear;
}

@keyframes fadeinout {
  0%,
  100% {
    opacity: 0;
  }
  40%,
  60% {
    opacity: 1;
  }
}

@keyframes heartbeat {
  from {
    transform: scale(1);
    transform-origin: center center;
    animation-timing-function: ease-in-out;
  }
  30% {
    transform: scale(1.5);
    animation-timing-function: ease-in-out;
  }
  to {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
}

#gameui {
  position: fixed;
  z-index: 1;
}

#gameui img {
  display: initial;
}

#gameui * {
  font-family: 'din';
}

#gameui p {
  padding: 0;
  margin: 0.2em 0.3em 0;
}

#gameui .heartbeat {
  animation: heartbeat 0.5s ease-in-out both;
}

#gameui #svgHeartFill {
  fill: red;
  transition: opacity 1s;
}

#gameui #labelRenderer {
  display: none;
}

#gameui #finder {
  color: #4dff50;
  width: 300px;
  height: 300px;
  position: fixed;
  top: 50%;
  left: 50%;
}

#gameui #lives img {
  width: 10vw;
}

#gameui .btn img {
  width: 100px;
}

#gameui .btn {
  position: fixed;
  transform: translate(-50%, -50%);
  bottom: 60px;
  width: 100px;
}

#gameui #btn0 {
  left: 20vw;
}

#gameui #btn1 {
  left: 80vw;
}

#gameui #lives {
  position: fixed;
  top: 0;
  padding: 3vw;
  font-size: 60px;
}

#gameui #lives div {
  display: inline-block;
  -webkit-text-stroke-width: 4px;
  -webkit-text-stroke-color: red;
}

#gameui #crosshair {
  pointer-events: none;
  color: #50ff50;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(100%);
  width: 320px;
  height: 320px;
}
#gameui #crosshair.on-target {
  color: var(--orange);
}

#gameui .on-target #finder {
  display: none;
}

#gameui #fire {
  font-size: 50px;
  background: red;
  padding: 10px 80px;
  border-radius: 50px;
  top: 90%;
  color: white;
  font-weight: 900;
}

#gameui #overlay {
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  background: black;
  position: fixed;
  top: 0;
  z-index: 1;
  transition: opacity 300ms;
}

#gameui #mute {
  position: fixed;
  top: 85vh;
  font-size: 5vh;
  width: 2em;
  text-align: center;
  text-transform: uppercase;
  color: white;
  margin: auto;
  left: 50vw;
  transform: translate(-50%, -50%);
  background: #ff005799;
  padding: 0;
  border-radius: 1em;
}

#gameui .grey {
  filter: saturate(0);
}

.blur {
  filter: blur(20px) brightness(0.8);
}

#src_healthyLivingLogo {
  width: 200px;
  position: absolute;
  top: 50px;
  left: calc(50vw - 100px);
  margin: 10px;
  z-index: 99;
}

/* Loader: https://cssloaders.github.io */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--orange);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -24px;
  margin-left: -24px;
  z-index: 100;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
