* {
  box-sizing: border-box;
  user-select: none;
}

html,
body {
  height: 100%;
  touch-action: none
}

body {
  font-family: Roboto, sans-serif;
  width: 100%;
  padding: 0;
  margin: 0;
  background: #000;
  overflow: hidden;
  color: #FFF;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loaderContent {
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloaderLogo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  height: 70%;
  width: 100%;
  max-width: 700px;
  justify-content: center;
  animation: logoShow 1s forwards;
}


@keyframes logoShow {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

#logoIconic {
  object-fit: contain;
  width: 60%;
  max-height: 33%;
}

#divider {
  width: 70%
}

#logoBs {
  object-fit: contain;
  width: 50%;
  max-height: 45%;
}

#progress {
  display: inline-block;
  width: 40vw;
  height: 10px;
  margin: 1vh 35px;
  border-radius: 20px;
  border: 2px solid;
  border-color: #1f1c1f;
  z-index: 999;
  background-color: #000;
}

@media screen and (orientation: portrait) {
  #progress {
    width: 65vw;
  }
}


.bar {
  border-radius: 20px;
  width: 0%;
  height: 100%;
  transition: width;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(.36, .55, .63, .48);
}

.shadow {
  box-shadow: 0px 45px 50px rgba(0, 0, 0, 0.25);
}

.loader {
  background-color: #e9113a;
  background: linear-gradient(to right, #e9113a, #ea9d9d);
}

.close {
  position: absolute;
  width: 27px;
  height: 85%;
  opacity: 1;
  margin: 0 5px 0 5px;
  right: 1.5%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.close:before,
.close:after {
  position: absolute;
  left: 42%;
  top: 19%;
  content: ' ';
  height: 64%;
  width: 15%;
  background-color: #f5f5f5;
}

.close:before {
  transform: rotate(45deg);
}

.close:after {
  transform: rotate(-45deg);
}

#notifications {
  background-color: rgba(0, 0, 0, 0.9);
  height: 100%;
  position: fixed;
  display: flex;
  z-index: 10;
  align-content: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
}

#notificationText {
  margin: 2vw;
  font-size: 18px;
  text-align: center;
  width: 96vw;
}

.notificationButton {
  background-color: #1a1a1a;
  margin: 10px 10px;
  border: 2px solid #e1e1e1;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  width: 20vw;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (orientation: portrait) {
  .notificationButton  {
    width: 20vh;
  }
}



.replayViewHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8vh;
  width: 100%;
  position: relative;
}

.replayViewTitle {
  text-align: center;
  font-size: 1.5em;
}

#replayWrapper {
  width: 100%;
  height: 89%;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zeroOpacity {
  opacity: 0;
}


#replayView {
  background-color: rgb(0 0 0 / 50%);
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  flex-direction: row;
  align-content: center;
  flex-wrap: wrap;
}

#replayViewContainer {
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-right: 4px;
  padding-left: 2px;
  align-items: center;
  background: black;
  border-radius: 24px;
}

#btnCloseReplay {
  right: 1%;
}

#btnBackReplay {
  position: absolute;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  left: 2%;
  width: 30px;
}

.hide {
  display: none !important;
}

* {
  box-sizing: border-box;
}

h1 {
  margin: 0;
}

p {
  white-space: pre-line;
  margin: 0;
  width: 100%;
  line-height: 1.8;
  font-size: 1em;
}

h3 {
  text-align: center;
  font-size: 1.45em;
  text-transform: uppercase;
  margin: 10px 0;
}

#menuBody {
  width: 100%;
  height: 90%;
  display: flex;
  flex-direction: column;
}

.menuContent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 5vw 8px 5vw;
  width: 100%;
  height: 100%;
  margin-bottom: 15px;
}

.acceptMenu {
  height: 87%;
  margin-bottom: 0;
  justify-content: center
}

.menuContent::-webkit-scrollbar {
  width: 10px;
}

.menuContent::-webkit-scrollbar-track {
  border-radius: 10px;
}

.menuContent::-webkit-scrollbar-thumb {
  background-color: #e1e0e0;
  border-radius: 16px;
  border: 2px solid #1e2420;
}

.menuContent>img {
  width: 30vw;
  max-width: 300px;
}

.menuContent>canvas {
  width: 30vw;
  max-width: 300px;
}

#menuTop>img:hover {
  background: #2b2b2b;
}

#menuNavigation>img:hover {
  background: #2b2b2b;
}

#popups {
  display: flex;
  width: 100%;
  height: 100%;
  position: fixed;
  justify-content: center;
  align-items: center;
}

#menuMain {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-right: 4px;
  padding-left: 2px;
  width: 95%;
  height: 95%;
  align-items: center;
  background: #000000de;
  border-radius: 32px;
}

@media screen and (orientation: landscape) and (min-height: 720px) {
  #menuMain {
    width: 84%;
    height: 84%;
  }
}


#menuTop {
  position: relative;
  display: flex;
  align-items: center;
  height: 10%;
  width: 100%;
  border-bottom: 2px solid #ffffff40;
  z-index: 2;
}

.poolButton {
  font-size: clamp(14px, 2.3vw, 20px);
  max-width: 160px;
  font-weight: bold;
  height: 50px;
  border-radius: 14px;
  border: 3px solid #667FFF;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 75px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  text-align: center;
  padding: 1px;
}

.poolButtonSelected {
  border: 0px;
  padding: 3px;
  background: linear-gradient(to bottom, #667FFF, #4965F2);
}

.autoButtons {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.autoWrapper {
  display: flex;
  width: 100%;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  margin: auto;
}

.popupBtnWrapper {
  height: 13%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 2px solid #ffffff40;
  justify-content: center;
}

@media only screen and (max-height: 460px) {
  .autoWrapper {
    gap: 7px;
  }

  .autoWrapper div {
    font-size: 14px
  }

  .poolButton {
    font-size: 10;
    height: 25px;
    max-width: 100px;
    flex: 1 1 45px;
  }

  .close {
    right: 10px;
  }
}

@media only screen and (max-height: 800px) {
  .autoWrapper {
    gap: 15px;
  }

  .autoWrapper div {
    font-size: 12px
  }

  .poolButton {
    font-size: 10;
    height: 36px;
    max-width: 100px;
    flex: 1 1 70px;
  }

  .close {
    right: 10px;
  }
}

#menuTop h1 {
  width: 100%;
  text-align: center;
  font-size: clamp(15px, 4vh, 70px);
}

/* TODO */
@media (orientation: portrait) {
  #popups {
    flex-direction: column;
  }
}


.switch {
  position: relative;
  display: inline-block;
  padding-right: 56px;
  width: 70px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

input:checked+.slider {
  background-color: #ffffff;
}

.slider.round {
  border-radius: 34px;
}

.slider {
  position: absolute;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d4d4d4;
  -webkit-transition: .2s;
  transition: .2s;
}

.slider.round:before {
  border-radius: 50%;
}

.slider:before {
  position: absolute;
  content: "";
  height: 38px;
  width: 38px;
  left: 0px;
  bottom: -6px;
  background: linear-gradient(to bottom, #667FFF, #4965F2);
  -webkit-transition: .2s;
  transition: .2s;
}

input:checked+.slider:before {
  -webkit-transform: translateX(34px);
  -ms-transform: translateX(34px);
  transform: translateX(34px);
}

#settingsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  align-items: center;
  height: 100%;
}

.label {
  width: 60%;
  font-size: clamp(20px, 3vw, 50px);
  margin: 20px 0 20px 0;
}

.preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 8px solid rgb(255, 255, 255);
  border-right-color: orange;
  animation: l2 1s infinite linear;
  transform: translate(-50%, -50%);
}

@keyframes l2 {
  to {
    transform: translate(-50%, -50%) rotate(1turn)
  }
}

.blink {
  animation: blink 1s;
}

@keyframes blink {
  0% {
    opacity: 0;
  }

  30% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.fadeIn {
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.fadeOut {
  animation: fadeOut 0.2s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.fadeOutPreloader {
  animation: fadeOutPreloader 1s forwards;
  pointer-events: none;
}

@keyframes fadeOutPreloader {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.paytable {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
}

.cell {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 17px;
  margin: 10px 0 10px 0;
  flex-direction: column;
  width: 50%;
}

@media screen and (orientation: landscape) {
  .cell {
    width: 25%;
  }
}


.cell>canvas {
  max-width: 160px;
  padding: 15px;
}

.cell table {
  font-size: clamp(12px, 1.8cqw, 20px);
  margin-left: 5px;
  white-space: nowrap;
}

.cell th:first-child {
  text-align: right;
  color: #ff9900;
}

.cell th:last-child {
  text-align: left;
  padding-left: 10px;
}

ul {
  list-style-type: none;
  color: white;
  margin: 0;
  padding: 0;
}

li {
  margin-top: 5px;
  color: #54e344;
}

li>span:nth-child(2) {
  color: white;
}

.lines {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0;
  gap: 5px;
}

table {
  border-spacing: 0px;
  border-collapse: collapse;
  margin: 10px 0;
}

td {
  color: white;
  border: 2px solid gray;
  width: 12px;
  height: 12px;
}

.lineFill {
  background-color: #54e344;
}

.line {
  display: flex;
  align-items: center;
}

.line>p {
  margin-right: 10px;
  width: auto;
}

@media only screen and (max-width: 720px) {
  .cell>canvas {
    padding: 5px;
    width: 90px;
  }
}

@media only screen and (max-width: 500px) {
  .cell {
    font-size: 12px;
  }
}

@media only screen and (max-width: 400px) {
  .paytable {
    align-items: center;
  }

  .cell {
    font-size: 3vw;
    width: 50%;
  }
}

.textAlignCenter {
  text-align: center;
}

.btnsInfoRow img {
  height: 60px;
  width: 60px;
}

.btnsInfoRow canvas {
  width: 60px;
}

.btnsInfoRow {
  display: flex;
  align-items: center;
  margin: 10px 0 10px 0;
  width: 100%;
}

.btnsInfoRow>p {
  white-space: inherit;
  margin-left: 10px;
}

.button-group {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
}

.btnsInfo {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.btnsInfoRow .btnSpinArrow {
  position: absolute;
  height: 37px;
  width: auto;
  top: 11px;
  left: 12px;
}

#clock {
  position: absolute;
  right: 15px;
  top: 2px;
  font-size: clamp(10px, 1.5vw, 15px);
  text-shadow: 1px 1px 2px #000;
  font-weight: bold;
  z-index: 9999;
}

#slotName {
  position: absolute;
  left: 15px;
  top: 2px;
  font-size: clamp(10px, 1.5vw, 15px);
  text-shadow: 1px 1px 2px #000;
  font-weight: bold;
  z-index: 9999;
}

.bets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: auto;
  padding: 5px 5vw 5px 5vw;
  width: 100%;
  text-align: center;
}

.centerDiv {
  display: flex;
  height: 100%;
  align-content: center;
}

.centerBuyDiv {
  height: 100%;
  align-content: center;
}

.copyFade {
  animation: copyFade 2s;
}

@keyframes copyFade {
  0% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.replayEndButtons {
  display: flex;
  flex-wrap: wrap;
  width: 30%;
  height: 15%;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  gap: 75px;

}

.fadeBack {
  width: 100%;
  height: 100%;
  background: #000000c4;
  display: flex;
  justify-content: center;
  align-items: center;
}

.replayEndButtons .replayButton {
  font-size: clamp(15px, 4vw, 20px);
}

@media only screen and (max-width: 800px) {
  .replayEndButtons {
    width: 70%;
  }
}

.popup {
  position: absolute;
  display: flex;
  background: #b121bf;
  border-radius: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  white-space: nowrap;
  width: 103%;
  height: 103%;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  align-items: center;
  justify-content: center;
}

.popupBtnContinue {
  font-size: clamp(16px, 2.3vw, 23px);
  font-weight: bold;
  width: 200px;
  border-radius: 16px;
  height: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #667FFF, #4965F2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.replayTableHeader {
  display: flex;
  padding: 8px 5vw 8px 5vw;
  -webkit-text-stroke: 1px #ffffff;
}

.replayTableTitle {
  font-size: clamp(15px, 3vh, 20px)
}


.replayButton {
  display: flex;
  font-size: clamp(10px, 2vw, 14px);
  border-radius: 16px;
  justify-content: center;
  width: 75%;
  height: 80%;
  align-items: center;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.replayTableRow {
  width: 100%;
  min-height: 10%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  -webkit-text-stroke: 0.25px #ffffff;
  border-bottom: 1px solid #6d6d6d;
}

.replayTableCol {
  display: flex;
  width: 20%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 800px) {
  .replayTableCol {
    width: 33%;
  }

  .replayTableRow {
    min-height: 100px;
    padding-bottom: 10px;
  }

  .replayTableHeader :nth-child(4) {
    display: none;
  }

  .replayTableHeader :nth-child(5) {
    display: none;
  }

  .replayTableCol:nth-child(4) {
    width: 40%;
  }

  .replayTableCol:nth-child(5) {
    width: 40%;
  }

}


.btnWatch {
  background: linear-gradient(to bottom, #667FFF, #4965F2);
}

.btnCopy {
  background: linear-gradient(to bottom, #4DCE5A, #31A027);
}

.buyWrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin: auto;
  padding: 10px 0 10px 0;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.buyOffer {
  height: 350px;
  max-width: 264px;
  min-width: 250px;
  font-size: clamp(14px, 1.5vh, 70px);
  border-radius: 34px;
  position: relative;
  color: rgb(0, 0, 0);
  background-color: white;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: space-evenly;
  padding: 5%;
}

.buyTitle {
  font-weight: bold;
  letter-spacing: 1;
  color: #212941;
  -webkit-text-stroke: 1px #212941;
  font-size: 2em;
}

.buyDesc {
  padding: 3%;
  font-size: 1em;
  max-height: 25%;
  letter-spacing: 1;
  font-weight: bold;
  color: #212941;
}

.buyButton {
  background: linear-gradient(to bottom, #667FFF, #4965F2);
  border-radius: 16px;
  color: white;
  height: 13%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  font-size: 2em;
  font-weight: bold;
}

.unavailable {
  background-color: #f92525;
  cursor: auto
}

.buyImage {
  max-height: 40%;
  width: 100%;
  object-fit: contain;
}

.buyPriceWrapper {
  margin: 3% 0 3%;
}

.buyVolatility {
  font-size: 1em;
  width: 100%;
  color: #212941;
  font-weight: bold;
}

.buyPrice {
  font-size: 1em;
  font-weight: bold;
  width: 100%;
  color: #212941;
}

.buyBetPanel {
  padding: 10px;
  border-radius: 28px;
  font-size: clamp(20px, 2.5vh, 70px);
  color: #212941;
  background: white;
  margin-top: 4%;
  max-width: 264px;
  min-width: 200px;
  width: 100%;
  top: 0;
  height: 120px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 20px;
}


.buyBetAdjast {
  width: 50px;
  height: 50px;
  font-size: 1.75em;
  font-weight: bold;
  color: white;
  border-radius: 15px;
  background: linear-gradient(to bottom, #667FFF, #4965F2);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.buyBetMinus {
  padding-bottom: 1%;
}

.disabled {
  background: #818181;
  cursor: default
}

.buyBetValue {
  width: 52%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  font-weight: bold;
  color: #212941;
  letter-spacing: 1;
  -webkit-text-stroke: 1px #212941;
}

.buyBetTitle {
  font-weight: bold;
  text-align: center;
  color: #212941;
  width: 100%;
  letter-spacing: 1;
  -webkit-text-stroke: 1px #212941;
}

.buyBetControl {
  display: flex;
  justify-content: center;
}

@media only screen and (min-height: 1080px) {
  .buyOffer {
    height: 40vh;
    max-width: 32vh;
    min-width: 32vh;
  }

  .buyBetPanel {
    max-width: 32vh;
    min-width: 32vh;
    height: 15vh;
  }

  .buyBetAdjast {
    width: 18%;
    height: 100%;
  }

  .replayTableTitle {
    font-size: clamp(15px, 2.5vh, 50px)
  }

  .replayTableRow {
    font-size: clamp(15px, 2vh, 40px);
  }

  .replayButton {
    font-size: clamp(15px, 2vh, 40px);
  }

  body {
    font-size: 35px;
  }

  .cell {
    font-size: 35px;
  }

  .cell>canvas {
    max-width: 300px;
  }

  td {
    width: 30px;
    height: 30px;
  }

  .poolButton {
    max-width: 320px;
    height: 100px;
    flex: 1 1 150px;
    padding: 10px;
    font-size: 40px;
  }

  .popupBtnContinue {
    width: 400px;
    font-size: 40px;
  }
}