@font-face {
  font-family: PatternMasters_UppercutRegular;
  src: url("fonts/PatternMasters_UppercutRegular.otf") format("opentype");
}
:root
{
  --header-height: 5vh;
  --container-offset: 7vh;
}
svg {
  fill: white;
}
.svgStroke {
  fill: white;
  stroke: black;
  stroke-width: 1%;
  stroke-linejoin: round;
}
.svgStroke_light {
  fill: white;
  stroke: black;
  stroke-width: 0.6%;
  stroke-linejoin: round;
}
* {
  padding: 0;
  margin: 0;
}
body {
  height: 100%;
  width: 100%;
  text-align: center;
  overflow: hidden;
  position: fixed;
  background-color: #000000;
}

.nav {
  position: relative;
  z-index: 100;
  font-family: "Ubuntu", sans-serif;
  font-size: 2.1vh;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  height: var(--header-height);
  color: #74b2e4;
  background-color: #002E65;
  padding: 1vh 2.2vh;
  justify-content: flex-end;
}

.nav_icon {
  display: inline-block;
  height: 3.8vh;
  width: 5vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform .2s;
  transform: scale(1.5);
}

i.sound-on {
  background-image: url(img/web_icon_sound_on.png);
  height: 3.2vh;
}

i.sound-off {
  background-image: url(img/web_icon_sound_off.png);
  height: 3.2vh;
}

i.telegram {
  background-image: url(img/tg_logo.png);
  height: 3.2vh;
}

i.full_screen {
  background-image: url(img/web_icon_full_screen.png);
  height: 3vh;
}

i.support {
  background-image: url(img/web_icon_suppor.png);
  height: 3vh;
  width: 4vh;
}

.nav_logo {
  background-image: url(img/logo_mini.png);
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 0.7vh;
  height: 6vh;
  width: 10vh;

  margin-left: 0;
  margin-right: auto;
}

.nav_btn {
  margin-left: 1vh;
  height: 5vh;
  border-radius: 0.5vh;
  cursor: pointer;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* Стандартный синтаксис */
}

.nav_btn:hover {
  transform: scale(1.02);
}

.nav_btn:hover:active {
  transform: scale(1);
}

.nav > a:-webkit-any-link {
  text-decoration: none;
  color: unset;
}

.p-10 {
  padding: 0 1vh;
}

#unity-canvas {
  margin:auto auto auto auto;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 100%;
  text-align: center;
}
#unity-canvas {
  touch-action: none;
  cursor: inherit;
}
#viewContent {
  display:flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: calc(100% - var(--container-offset));
  width: 100%;
  box-sizing: content-box;
  opacity: 0;
}
#logo {
  position: absolute;
  width: 100%;
  height: 45%;
  background-image: url(img/logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: auto auto 30px;
  bottom: 10%;

  animation: pulse 2s infinite;
}
#loading-container {
  display:flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
#loading {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(img/background_art.jpg);
  aspect-ratio: 16/9;
  max-height: 100%;
  width: 100%;
  text-align: center;
}
#unity-progress-bar {
  transition: 400ms linear;
  position: absolute;
  width: 60%;
  height: 4%;
  min-height: 10px;
  max-height: 41px;
  margin: auto;
  bottom: 8%;
  left: 0;
  right: 0;
}
#unity-progress-bar_background {
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: url("img/loading_bar_center.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
}
#unity-progress-bar_background:before {
  content: "";
  position: absolute;
  left: -20px;
  height: 100%;
  width: 20px;
  background: url(img/loading_bar_left.png);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: right center;
}
#unity-progress-bar_background:after {
  content: "";
  position: absolute;
  right: -30px;
  height: 100%;
  width: 30px;
  background: url(img/loading_bar_right.png);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left center;
}
#unity-progress-bar_front {
  position: absolute;
  top: 2%;
  bottom: 2%;
  height: auto;
  width: 100%;
}
#unity-progress-bar_front_fill {
  transition: 400ms linear;
  position: relative;
  height: 100%;
  width: 0%;
  background-image: url("img/progress_bar_center.png");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: center;
  transition: width 10s cubic-bezier(0,1,.16,.86);
}
#unity-progress-bar_front_fill:before {
  content: "";
  position: absolute;
  left: -19px;
  height: 100%;
  width: 20px;
  background: url(img/progress_bar_left.png);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: right center;
}
#unity-progress-bar_front_fill:after {
  content: "";
  position: absolute;
  right: -29px;
  height: 100%;
  width: 30px;
  background: url(img/progress_bar_right.png);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: left center;
}
#unity-progress-bar_progress {
  position: absolute;
  bottom: 50%;
  left: 0;
  right: 0;
  width: 100%;
  height: 6vw;
  font-family: PatternMasters_UppercutRegular, serif;
  font-size: calc((100vw - 480px)/(1920 - 480) * (60 - 16) + 16px);
  font-weight: bold;
  text-align-last: center;
  text-align: center;
}
#unity-progress-bar_status {
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  width: 100%;
  height: 6vw;
  font-family: PatternMasters_UppercutRegular, serif;
  font-size: calc((100vw - 480px)/(1920 - 480) * (34 - 16) + 16px);
  font-weight: bold;
  text-align-last: center;
  text-align: center;
}
#unity-version-download {
  position: absolute;
  width: 100%;
  height: 20%;
  margin: auto;
  top: 0;
}
#unity-version-download_status {
  width: 100%;
  height: 100%;
  font-family: PatternMasters_UppercutRegular, serif;
  font-size: calc((100vw - 480px)/(1920 - 480) * (30 - 16) + 16px);
  font-weight: bold;
  text-align-last: center;
  text-align: center;
}

@media screen and (width < 930px) {
  #unity-version-download_status {
    font-size: calc((70vw - 480px)/(1920 - 480) * (30 - 16) + 16px);
  }
}

@media screen and (width < 700px) {
  #unity-version-download_status {
    font-size: calc((50vw - 480px)/(1920 - 480) * (30 - 16) + 16px);
  }
}


.loading_text {
  top: 1%;
  fill: white;
  stroke: black;
  stroke-width: 1%;
  stroke-linejoin: round;
  font-size: 120%;
  paint-order: stroke;
}

.text-1 {
  opacity: 1;
  animation: hideshow 2s ease infinite;
}

.text-2 {
  opacity: 0;
  animation: hideshow 2s 0.5s ease infinite;
}
.text-3 {
  opacity: 0;
  animation: hideshow 2s 1s ease infinite;
}

.text-4 {
  opacity: 0;
  animation: hideshow 2s 1.5s ease infinite;
}

@keyframes hideshow {
  0% { opacity: 1; }
  25% { opacity: 1; }
  26% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes pulse {
  0% {
    transform: scale(0.97);
  }

  70% {
    transform: scale(1);
  }

  100% {
    transform: scale(0.97);
  }
}
#avatar_editor{display: none}


#orientation > span{
  position: absolute;
  top: 50%;
  font-size: 20pt;
  font-family: "Open Sans",Arial,sans-serif;
  width: 100%;
  color: #1B1541;
  left: 0;
  right: 0;
}

.all-caps {
  text-transform: capitalize;
}

#yookassa-button-container{
  position: absolute;
  top: 60%;
  left: 50%;
  margin-right: -50%;
  transform: translate(-50%, -50%);
}

#button-yookassa {
  min-width: 20vw;
  font-size: 4vh;
  color: #ffffff;
  border-radius: 12pt;
  border-width: 0.1em;
  background-color: rgb(136, 203, 91);
  box-shadow: rgb(217, 251, 190) 0 0.1em 0 0 inset, rgb(53, 100, 50) 0 -0.15em 0 0 inset, rgb(107, 173, 81) 0 -0.7em 0 0 inset;
  border-color: #245120;
  padding: .65rem 1rem .7rem 1rem;
  font-weight: 400;
}

@media (height <= 600px) {
  #authentication_window {
    zoom: 0.9;
  }
}
