:root {
  --body-background-color: black;
  --main-border-padding: 30px;
  --main-border-width: 5px;
  --main-border: var(--main-border-width) solid #174a7d;
  --vertical-line-width: 20px;
  --vertical-line-height: 120px;
  --vertical-line-position-top: calc(50% - calc(var(--vertical-line-height) / 2));
  --vertical-line-position-left-right: calc(var(--main-border-padding) + var(--main-border-width) - var(--vertical-line-width));
  --horizontal-line-width: 100px;
  --horizontal-line-height: 10px;
  /* TODO: make work when '--main-border-padding' value is percentage */
  --horizontal-line-position-top: calc(var(--main-border-padding) - var(--main-border-width));
  --horizontal-line-position-left-right: 80px;
}

html {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  background-color: var(--body-background-color);
}

*,
::before,
::after {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.full-screen, .ui #view_loading, .ui #view_intro, .ui #view_intro .introVideo, .ui #view_game_play, .ui #view_countdown, .ui #view_medal, .ui #view_medal .confettiVideo, .ui #view_medal .flashVideo {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  top: 0;
  left: 0;
}

.center, .timer, .ui #view_intro, .ui #view_intro .button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.cursor {
  width: 100px;
  height: 100px;
  z-index: 1000;
}

.cursor .point {
  width: 30%;
  height: 30%;
  top: 35%;
  left: 35%;
  border-radius: 50%;
  background-image: url("assets/style/dot.png");
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  -webkit-transition: background 0.5s;
  transition: background 0.5s;
}

.cursor .gauge {
  -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
}

.cursor .gauge .progress {
  r: 19.5;
  stroke: #fff !important;
  stroke-width: 9;
  stroke-dasharray: 100;
  -webkit-transition: all .1s;
  transition: all .1s;
}

.timer {
  position: absolute;
  top: var(--timer-position-top);
  left: var(--timer-position-left);
  text-align: center;
  font-size: 40px;
  width: var(--timer-width);
  height: var(--timer-width);
  background: url("assets/style/timer-frames.png") no-repeat center center/contain;
  line-height: var(--timer-width);
  color: white;
}

.timer.timer-1 {
  color: white;
  font-weight: 600;
}

.timer.timer-2 {
  color: red;
  font-weight: 400;
  text-shadow: -2px -1px 0 white, 2px -1px 0 white, -2px 1px 0 white, 2px 1px 0 white;
}

.ui {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  width: 100%;
  height: 100%;
  padding: var(--main-border-padding);
}

.ui .view, .ui .global {
  width: 100%;
  height: 100%;
  position: absolute;
}

.ui .global {
  z-index: 10;
  padding: var(--main-border-padding);
  pointer-events: none;
}

.ui .global .border {
  width: 100%;
  height: 100%;
  border: var(--main-border);
}

.ui .global .border .line-left-right, .ui .global .border .line-left, .ui .global .border .line-right {
  position: fixed;
  width: var(--vertical-line-width);
  height: var(--vertical-line-height);
  top: var(--vertical-line-position-top);
}

.ui .global .border .line-left {
  left: var(--vertical-line-position-left-right);
  background: url("assets/style/line-left.png") no-repeat center center/contain;
}

.ui .global .border .line-right {
  right: var(--vertical-line-position-left-right);
  background: url("assets/style/line-right.png") no-repeat center center/contain;
}

.ui .global .border .line-top-bottom-1-2, .ui .global .border .line-top-1, .ui .global .border .line-top-2, .ui .global .border .line-bottom-1, .ui .global .border .line-bottom-2 {
  position: fixed;
  width: var(--horizontal-line-width);
  height: var(--horizontal-line-height);
}

.ui .global .border .line-top-1 {
  top: var(--horizontal-line-position-top);
  left: var(--horizontal-line-position-left-right);
  background: url("assets/style/line-top.png") no-repeat center center/contain;
}

.ui .global .border .line-top-2 {
  top: var(--horizontal-line-position-top);
  right: var(--horizontal-line-position-left-right);
  background: url("assets/style/line-top.png") no-repeat center center/contain;
}

.ui .global .border .line-bottom-1 {
  bottom: var(--horizontal-line-position-top);
  left: var(--horizontal-line-position-left-right);
  background: url("assets/style/line-bottom.png") no-repeat center center/contain;
}

.ui .global .border .line-bottom-2 {
  bottom: var(--horizontal-line-position-top);
  right: var(--horizontal-line-position-left-right);
  background: url("assets/style/line-bottom.png") no-repeat center center/contain;
}

.ui .global .jm-logo {
  width: 350px;
  position: fixed;
  -webkit-transform: rotate(-15deg);
          transform: rotate(-15deg);
  bottom: -10px;
  right: -10px;
  z-index: 2;
}

.ui .global .jm-logo .jom-logo-img {
  max-width: 100%;
}

.ui .views {
  --count-text-width: 75px;
  --count-text-position-left: calc((100% - var(--count-text-width)) / 2);
  --count-text-position-top: 15%;
  /* 60% */
  --game-text-width: 50%;
  --game-text-position-left: calc((100% - var(--game-text-width)) / 2);
  --game-text-position-top: 10%;
  /* 50% */
  --medal-width: 70%;
  --medal-position-left: calc((100% - var(--medal-width)) / 2);
  --medal-position-top: calc(10% + 30px);
  --instructions-width: 60%;
  --timer-width: 12%;
  --timer-position-left: calc((100% - var(--timer-width)) / 2);
  --timer-position-top: 7%;
  --countdown_img-width: 30%;
  --countdown_img-position-left: calc((100% - var(--countdown_img-width)) / 2);
  --countdown_img-position-top: 10%;
  --congratulations_img-width: 80%;
  --congratulations_img-position-left: calc((100% - var(--congratulations_img-width)) / 2);
  --congratulations_img-position-top: calc((100% - var(--congratulations_img-width)) / 2);
}

.ui #view_loading {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background-color: #fff;
}

.ui #view_intro {
  background-color: #2e2e2e;
}

.ui #view_intro .introVideo {
  -o-object-fit: contain;
     object-fit: contain;
}

.ui #view_intro .button {
  width: 30vw;
  height: 30vw;
  border-radius: 50%;
  color: #fff;
  z-index: 100;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("./assets/style/intro_button.svg");
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.ui #view_intro .button.hover {
  -webkit-transform: scale(1.4);
          transform: scale(1.4);
}

.ui #view_sub_choose {
  --title-img-width: 40%;
  --btn-width: 25%;
  --btn-position-top: 43%;
  --btn-horizontal-position: 40%;
}

.ui #view_sub_choose .btn-hot {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: fixed;
  width: var(--btn-width);
  height: var(--btn-width);
  top: 0;
  bottom: 0;
  left: calc(var(--btn-horizontal-position) * -1);
  right: 0;
  margin: auto;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.ui #view_sub_choose .btn-hot.hover {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.ui #view_sub_choose .btn-cold {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: fixed;
  width: var(--btn-width);
  height: var(--btn-width);
  top: 0;
  bottom: 0;
  left: var(--btn-horizontal-position);
  right: 0;
  margin: auto;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.ui #view_sub_choose .btn-cold.hover {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.ui #view_sub_choose .btn-hot-img,
.ui #view_sub_choose .btn-cold-img {
  max-width: 100%;
}

.ui #view_sub_choose .title-img {
  position: fixed;
  width: 30%;
  width: var(--title-img-width);
  top: 10%;
  left: calc(50% - var(--title-img-width) / 2);
}

.ui .view_instructions {
  position: fixed;
  width: var(--instructions-width);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.ui #view_game_play .bar {
  position: fixed;
  right: 15px;
  top: 120px;
  width: 35px;
  height: 27%;
  z-index: 20;
}

.ui #view_game_play .bar .icon {
  width: 50px;
  height: 50px;
  top: -42px;
  left: -8px;
  position: absolute;
  background-image: url("./assets/style/burger_icon.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: var(--main-border);
  border-radius: 50%;
}

.ui #view_game_play .bar .container {
  width: 100%;
  height: 100%;
  border: var(--main-border);
  background-color: #2e2e2e;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

.ui #view_game_play .bar .container .item {
  border: solid 1px #fff;
  background-color: #ff0000;
  width: 100%;
  height: calc(100% / 12);
}

.ui #view_game_play .bar_small {
  height: 20%;
}

.ui #view_game_play .bar_small .item {
  height: calc(100% / 7) !important;
}

.ui #view_countdown .view_countdown_img {
  width: var(--countdown_img-width);
  height: var(--countdown_img-width);
  position: absolute;
  top: var(--countdown_img-position-top);
  left: var(--countdown_img-position-left);
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
}

.ui #view_countdown .view_countdown_img.img1 {
  background-image: url("./assets/style/countdown.png");
}

.ui #view_countdown .view_countdown_img.img2 {
  background-image: url("./assets/style/countdown2.png");
}

.ui #view_congratulations .view_congratulations_text {
  width: var(--congratulations_img-width);
  height: var(--congratulations_img-width);
  position: absolute;
  top: var(--congratulations_img-position-top);
  left: var(--congratulations_img-position-left);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("./assets/style/congratulations.png");
}

.ui #view_congratulations .view_congratulations_img {
  width: var(--congratulations_img-width);
  height: var(--congratulations_img-width);
  position: absolute;
  top: var(--congratulations_img-position-top);
  left: var(--congratulations_img-position-left);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.ui #view_congratulations .view_congratulations_img.gold {
  background-image: url("./assets/style/congratulations_gold.png");
}

.ui #view_congratulations .view_congratulations_img.silver {
  background-image: url("./assets/style/congratulations_silver.png");
}

.ui #view_congratulations .view_congratulations_img.bronze {
  background-image: url("./assets/style/congratulations_bronze.png");
}

.ui #view_congratulations .view_congratulations_img.hidden {
  opacity: 0;
  top: 100%;
}

.ui #view_scan_phone {
  --qr-code-width: 40%;
}

.ui #view_scan_phone .btn-back {
  display: inline-block;
  position: fixed;
  width: 20%;
  top: 30%;
  left: 20%;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.ui #view_scan_phone .btn-back.hover {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.ui #view_scan_phone .btn-back-img,
.ui #view_scan_phone .btn-home-img {
  max-width: 100%;
}

.ui #view_scan_phone .btn-home {
  display: inline-block;
  position: fixed;
  width: 20%;
  top: 30%;
  right: 20%;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.ui #view_scan_phone .btn-home.hover {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.ui #view_scan_phone .scan-qr-code {
  position: fixed;
  width: 30%;
  width: var(--qr-code-width);
  top: 10%;
  left: calc(50% - var(--qr-code-width) / 2);
}

.ui #view_scan_phone .qr-code {
  position: fixed;
  width: 30%;
  width: var(--qr-code-width);
  top: 50%;
  left: calc(50% - var(--qr-code-width) / 2);
}

.ui #view_medal .game-text {
  background-image: url("./assets/style/game-text-2.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top;
  position: fixed;
  width: var(--game-text-width);
  height: var(--game-text-width);
  top: var(--game-text-position-top);
  left: var(--game-text-position-left);
}

.ui #view_medal .medal, .ui #view_medal .bun {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  position: fixed;
  width: var(--medal-width);
  height: var(--medal-width);
  bottom: var(--medal-position-top);
  left: var(--medal-position-left);
}

.ui #view_medal .medal.gold, .ui #view_medal .gold.bun {
  background-image: url("./assets/style/gold-medal.png");
}

.ui #view_medal .medal.silver, .ui #view_medal .silver.bun {
  background-image: url("./assets/style/silver-medal.png");
}

.ui #view_medal .medal.bronze, .ui #view_medal .bronze.bun {
  background-image: url("./assets/style/bronze-medal.png");
}

.ui #view_medal .bun.bun_cold {
  background-image: url("./assets/style/medal_bun.png");
}

.ui #view_medal .bun.bun_mikes {
  background-image: url("./assets/style/medal_bun_mike.png");
}

.ui #view_medal .bun.bun_hot {
  background-image: url("./assets/style/medal_bun_hot.png");
}

.ui #view_medal .confettiVideo {
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.3;
}

.ui #view_medal .flashVideo {
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0.8;
  z-index: 20;
}

.ui .count-text {
  position: fixed;
  width: var(--count-text-width);
  top: var(--count-text-position-top);
  left: var(--count-text-position-left);
}
