:root {
  --scrollWidth: min(1.3vmax, 13px);
  --rulesScrollWidth: min(1.3vmax, 13px);
}

html,
body {
  font-family: "Inter-Bold" !important;
  margin: auto;
}

p {
  margin: 0;
}

#gameStage {
  overflow: hidden;
  position: fixed;
}

#panel,
#tournament-modal,
#dailywins-modal {
  display: none;
  position: fixed;
  opacity: 100%;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: white;
  text-align: center;
  /* display: flex; */
  flex-direction: column;
}

#panel {
  background-color: rgba(0, 0, 0, 0.8);
}

#tournament-modal,
#dailywins-modal {
  background-color: rgba(0, 0, 0, 0.8);
}

/* div#panel{
    width: 100%;
    margin: auto;
} */
.how_to_play_rules {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
  /* padding: 1rem; */
  margin-top: -0.5rem;
  margin-bottom: 0rem;
  padding-left: 15%;
  padding-bottom: 0rem;
}

.how_to_play_rules_desktop {
  display: grid;
  grid-template-columns: 10% 90%;
  align-items: center;
  justify-content: center;
  width: 70%;
  margin: 0 auto;
  row-gap: 0.5rem;
}

.button_rules_desktop {
  display: contents;
  align-items: center;
  width: 100%;
  padding: 0;
}

.button_rules_desc_desktop {
  display: grid;
  grid-template-columns: 15% 85%;
  align-items: center;
  column-gap: 1rem;
  margin: 0;
  font-size: 1.6vmax;
  line-height: 1.4;
  margin: 0;
  text-align: left;
  word-wrap: break-word;
}

.button_rules_desktop > span,
.button_rules_desktop > img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button_rules_img > img {
  width: 55px;
  height: 55px;
}

.zoomInOutDesktop {
  width: 110px !important;
}

.spin-info-container {
  display: flex;
  flex-direction: column;
}

.buttonNameDesktop {
  font-weight: bold;
  color: #ffd700;
  margin: 0;
  align-items: center;
  text-align: center;
}

.button_rules {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
}

.button_rules > span,
.button_rules > img {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.how_to_play .common_rule {
  margin-bottom: 0rem;
}

.mobile-view {
  display: none;
}

.desktop-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

@media (orientation: portrait) {
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }

  .button_rules > span,
  .button_rules > img {
    margin-right: 1rem;
  }

  .how_to_play_rules {
    padding-left: 5%;
    margin-top: 0.5rem;
  }

  .main_game_interface_rules img .how_to_play_rules img {
    transform: scale(0.8);
  }
}

.button_rules p {
  font-size: 1.47vmax;
  line-height: 1.4;
  margin: 0;
  text-align: left;
  flex-grow: 1;
  max-width: 95%;

  word-wrap: break-word;
}

.buttonName {
  font-weight: bold;
  color: #ffd700;
  margin: 0;
}

#spin_info {
  display: flex;
  flex-direction: column;
}

#spin_info > span {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

#spin_info .spin-line-two {
  display: block;
  margin-top: 0.25rem;
}

#spin_info .spin-line-two span {
  display: inline;
}

.main_game_interface_rules {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 95%;
  margin: 0 auto;
  /* padding: 1rem; */
  margin-top: 0rem;
  margin-bottom: 0rem;
  padding-left: 15%;
  padding-bottom: 0rem;
}

.interface_button_rules {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
}

.interface_button_rules > span,
.interface_button_rules > img {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
}

@media (orientation: portrait) {
  .interface_button_rules > span,
  .interface_button_rules > img {
    margin-right: 1.5rem;
  }

  .main_game_interface_rules {
    padding-left: 5%;
    margin-top: 1rem;
  }
}

.interface_button_rules p {
  font-size: 1.47vmax;
  line-height: 1.4;
  margin: 0;
  text-align: left;
  flex-grow: 1;
  max-width: 75%;

  word-wrap: break-word;
}

.rules {
  font-size: 1.47vmax;
  position: relative;
  text-align: center;
  left: 50%;
  transform: translateX(-50%);
  max-width: 97%;
  margin-bottom: 0rem;
}

#panelMain {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#rulesPageHeader {
  box-sizing: content-box;
  height: 8%;
  width: 98%;
  border-bottom: 5px solid #a48723;
  display: flex;
  align-items: center;
}

#headerTitle,
#headerCloseBtn {
  margin-left: auto;
  color: white;
}

#headerCloseBtn {
  height: 80%;
}

#gamerules_container {
  padding-left: 0;
  padding-right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.override {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: unset;
}

#panel.showRules,
#tournament-modal.showRules,
#dailywins-modal.showRules {
  display: block;
}

.container {
  padding-left: 0;
  padding-right: 0;
}

.mt-10 {
  margin-top: 2%;
}

.heading {
  font-size: min(5vmin, 56px);
  color: #ffca0d;
  font-family: "Inter-BoldItalic";
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: absolute;
  text-align: center;
  left: 46%;
}

.switchButtonName {
  font-size: 4vw;
}

.game_heading {
  margin-top: 0.5rem;
}

#rulesHeader {
  box-sizing: content-box;
  border-bottom: 2.77px solid #a48723;
  width: 100%;
  height: 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10000;
}

.game_version {
  height: 5%;
  position: relative;
  z-index: 10000;
  align-items: center;
  display: flex;
  justify-content: center;
}

.lower {
  width: 100%;
  height: 90%;
  margin: auto;
}

.close {
  font-size: 28px;
  font-weight: bold;
  opacity: 1 !important;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#lower_container {
  width: 85%;
  margin: auto;
}

.paytable img {
  width: 100px;
}

.info_headings {
  font-size: 2vw;
  color: #ffca0d;
  font-family: "Inter-Bold";
  text-transform: uppercase;
  margin-bottom: 0.5em;
  margin-top: 1em;
}

.info_sub_headings {
  font-size: 1.8vw;
  color: #ffca0d;
  font-family: "Inter-Bold";
  text-transform: uppercase;
  margin-bottom: 0.5em;
  margin-top: 1em;
}

#main-title {
  margin-bottom: 0rem;
}

.info_contentText {
  font-size: 1.8vw;
  margin-bottom: 0.7em;
  font-family: "Inter-Medium";
}

#paytable {
  margin: 0;
}

.family-bold {
  font-family: "Inter-Bold" !important;
}

.flex-row {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin-bottom: 1.25em;
}

/* .flex-row .free_spins p, .flex-row .cash_award p{
    font-size: 0.85em;
} */

.gamerules .flex-row {
  justify-content: space-around;
  margin-top: 1.25em;
}

.gamerules h4 {
  margin-bottom: 5px;
}

#rules-loader {
  border: 8px solid #f3f3f3;
  border-radius: 50%;
  border-top: 12px solid #444444;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  z-index: 99999;
  display: block;
}

.symb_info {
  display: flex;
  align-items: center;
}

.lower-pre {
  display: flex;
  align-items: center;
  justify-content: center;
}

.symb_info p {
  font-size: 1.2em;
  text-align: left;
}

.gamerules {
  padding: 0 15px;
  font-size: 18px;
}

.mt-5 {
  margin-top: 5px !important;
}

.mt-60 {
  margin-top: 60px;
}

.paytable_image {
  margin: 1.25em 0;
}

.paytable_image img {
  width: 60%;
}

.paytable_values {
  margin: 10px;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}

.paytable_values p {
  margin: 0;
}

.payline-container {
  margin: 5px;
}

.space_and_enter {
  text-align: left;
  margin: 1.25em;
}

.common_rule {
  margin: 0.5em;
}

.adjacent,
.paytable {
  margin-top: 10px;
}

.volatility {
  display: flex;
  justify-content: space-around;
  align-items: center;
  border: 2px solid;
  border-radius: 6px;
  max-width: 350;
  padding: 0.3em 0.5em;
  /* font-size: min(3vw, 25px); */
}

.winuptoText {
  font-size: min(3vw, 17px);
}

.volatility_text {
  color: white;
  text-transform: uppercase;
  /* margin-right: 5px; */
}

p.volatility_text {
  margin-bottom: 0;
}

.modal-overlay-rules {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  z-index: 999;
}

.modalRulesContent {
  display: flex;
  flex-direction: column;
  padding: 0px;
  border-radius: 16px;
  width: 100% !important;
  height: 100%;
  position: relative;
}

#gameRulesIFrame {
  width: 100%;
  border: none;
  overflow: auto;
  flex-grow: 1;
}

#gameRulesIFrame button {
  display: none !important;
}

.volatility_imgs img {
  width: 0.65em;
}

.volatility_imgs {
  margin-inline: 0.7em;
}

.adjacent {
  padding: 15px;
}

.parallel,
.symb_info_parallel {
  display: flex;
  justify-content: space-between;
}

.parallel {
  align-items: center;
  justify-content: center;
  font-family: "Inter-Medium";
}

.symb_info_parallel {
  align-items: center;
  width: 46%;
  font-size: 1.47vmax;
  margin: 10px;
  gap: 5%;
}

.symb_info_parallel img {
  width: 32%;
  min-width: 32%;
  object-fit: contain;
  max-height: 12vw;
}

.paytable_samp {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-family: "Inter-Medium";
}

.samp_divs {
  width: 25%;
  display: flex;
  /* background-color: red; */
  font-size: 1.34vmax;
  align-items: center;
  justify-content: center;
  margin: 5px;
  font-family: "Inter-Bold";
}

.samp_divs img {
  width: 59%;
  object-fit: contain;
  max-height: 10.5vw;
  min-width: 59%;
}

#text-flex_Container {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}

::-webkit-scrollbar {
  width: var(--scrollWidth);
}

/* Track */
::-webkit-scrollbar-track {
  background: #d9d9d9;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #1f1f1f;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Swipe for IOS */
#swipe-layer {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
  text-align: center;
  background: rgba(10 10 10 / 46%);
  visibility: hidden;
  overflow: auto;
  z-index: 9999;
  -webkit-overflow-scrolling: touch;
}

.swipe-object {
  animation: MoveUpDown 1.5s linear infinite;
  position: fixed;
  padding-top: 100px;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 0;
}

@keyframes MoveUpDown {
  0% {
    top: 0;
    bottom: 0;
  }

  50% {
    bottom: 50px;
  }

  100% {
    top: 50px;
    bottom: 0;
  }
}

/* Paylines Styling */

.paytable-main-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#paytable,
#fsPaytable {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 602px;
}

.payline-row {
  display: flex;
  justify-content: center;
}

.payline-row div.payline-col {
  height: 15px;
  width: 15px;
  background: grey;
  border: 1px solid black;
}

#paytable .hightlight-square,
#fsPaytable .hightlight-square {
  background-color: white;
}

.payline {
  display: flex;
  align-items: center;
}

.payline .paylineIndex {
  width: 1.2em;
  text-align: right;
}

#panel[isMobile="true"] .close {
  width: 85px;
}

#panel[isMobile="true"] .close img {
  margin: auto;
  height: 64%;
}

#panel[isMobile="true"] .heading {
  margin-left: 0px;
}

.ruleType {
  font-size: min(6vmin, 30px);
}

.buttonHeading {
  cursor: pointer;
  margin-left: 16px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.buttonHeading img {
  flex-shrink: 0;
  flex-grow: 0;
  transform: scale(0.8);
  margin: 0.5rem;
}

@media (min-width: 600px) {
  body {
    font-size: 16px;
  }
}

@media (max-width: 420px) {
  /* ::-webkit-scrollbar {
        width: 0px;
    } */
}

@media (max-width: 420px) and (orientation: portrait) {
  .symb_info {
    flex-direction: column;
  }

  .symb_info p {
    text-align: center;
  }

  /* .heading{
        font-size: medium;
    } */

  .gamerules .flex-row {
    justify-content: center;
    margin-top: 1.25em;
  }

  /* .volatility{
        max-width: 190px;
    } */

  .volatility_text {
    font-size: 16px;
  }

  span.volatility_imgs img {
    width: 12px;
  }

  .mt-60 {
    margin-top: 0;
  }

  .upper {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
  }
}

@media (max-width: 840px) {
  .gamerules {
    font-size: 14px;
  }

  .gamerules .flex-row {
    justify-content: center;
  }

  .paytable_image img {
    width: 90%;
  }
}

@media (max-width: 460px) and (orientation: portrait) {
  .heading {
    font-size: min(3.3vh, 26px);
    right: 11%;
  }

  .ruleType[data-lang="ms"] {
    max-width: 45%;
    text-align: left !important;
    padding-left: 4px !important;
  }

  .ruleType[data-lang="id"] {
    max-width: 56%;
    text-align: left !important;
    padding-left: 2px !important;
  }

  .ruleType[data-lang="fil"] {
    max-width: 56%;
    text-align: left !important;
    padding-left: 2px !important;
  }
}

@media (max-width: 370px) and (orientation: portrait) {
  .ruleType[data-lang="id"] {
    max-width: 52%;
  }
  .ruleType[data-lang="fil"] {
    max-width: 52%;
  }
}

@media (orientation: portrait) {

  #panel[isMobile="true"] .close {
    width: fit-content;
    flex-shrink: 0;
  }

  #panel[isMobile="true"] .close img {
    margin: auto;
    height: 50%;
  }

  #paytable {
    width: 300px;
  }

  #panel[isMobile="true"] .heading {
    margin-left: 0px;
  }

  body,
  html {
    overflow: hidden !important;
  }

  #swipe-layer {
    display: none;
  }

  #rulesHeader {
    align-items: center;
    height: 7%;
  }

  .heading {
    align-items: flex-end;
    right: 15% !important;
    left: unset !important;
    transform: none !important;
  }

  .buttonHeading {
    display: flex;
    align-items: center;
    padding: 0 10px;
  }

  .buttonHeading img {
    flex-shrink: 0;
    flex-grow: 0;
    transform: scale(0.7);
    margin: 0;
  }

  .ruleType {
    font-size: 3.8vw !important;
    flex-grow: 1;
    text-align: center;
    padding: 0;
  }

  .parallel {
    display: block;
  }

  #lower_container {
    width: 98%;
  }

  .paytable_samp {
    width: 90%;
    margin: auto;
  }

  .symb_info_parallel {
    width: 100%;
    font-size: 3vw;
    gap: 1%;
    margin-left: 0;
  }

  .symb_info_parallel img {
    width: 25%;
    min-width: 25%;
    max-height: 22vw;
  }

  /* .paytable_samp {
        grid-template-columns: repeat(auto-fit,minmax(max(50%,120px),1fr));
    } */
  .samp_divs {
    width: 50%;
    font-size: 3vw;
    margin: auto;
  }

  .samp_divs img {
    width: 55%;
    min-width: 55%;
    max-height: 22vw;
  }

  .info_headings {
    font-size: 3.2vw;
  }

  .info_sub_headings {
    font-size: 3vw;
  }

  .info_contentText {
    font-size: 3.4vw;
  }

  #text-flex_Container {
    flex-direction: column;
  }
}

@media (max-width: 350px) {
  .samp_divs {
    font-size: 2.9vw;
  }
}

@media (max-width: 300px) {
  .samp_divs {
    font-size: 2.8vw;
  }
}

@media (max-width: 280px) {
  .samp_divs {
    font-size: 2.7vw;
  }
}

@media screen and (orientation: landscape) and (max-width: 968px) {
  #panel[isMobile="false"] .heading {
    align-items: flex-end;
    right: 15% !important;
    left: unset !important;
    transform: none !important;
  }

  #panel[isMobile="true"] .ruleType {
    font-size: min(3.7vmin, 30px);
  }

  #panel[isMobile="true"] .buttonHeading img {
    transform: scale(0.5) !important;
  }
}

@media screen and (orientation: landscape) and (max-width: 940px) {
  .how_to_play_rules_desktop {
    grid-template-columns: 20% 80%;
  }
}

@media screen and (orientation: landscape) and (max-width: 659px) {
  .samp_divs {
    font-size: 1.24vmax;
  }
}

@media screen and (orientation: landscape) and (max-width: 600px) {
  .samp_divs img {
    width: 50%;
  }

  .symb_info_parallel img {
    width: 27%;
  }

  .symb_info_parallel {
    font-size: 1.3vmax;
  }
}

@media screen and (orientation: landscape) and (max-width: 600px) {
  .samp_divs {
    font-size: 1.18vmax;
  }

  .symb_info_parallel {
    font-size: 1.2vmax;
  }

  .how_to_play_rules_desktop {
    grid-template-columns: 20% 80%;
  }
}

/* @media (max-width: 340px){
    .samp_divs{
        font-size: 2.5vw;
    }
} */
@media (max-width: 350px) {
  div#panel {
    width: 100%;
    margin: auto;
  }
}

@media (min-width: 1024px) {
  .heading {
    font-size: 3.4vmax !important;
  }
}

@media screen and (orientation: landscape) {
  #panel[isMobile="true"] .heading {
    font-size: min(8vmin, 56px) !important;
  }
}
