/* Exact JetX mobile-landscape layout measured from the live 844x390 source. */
.exact-panel-x2 { display: none !important; }

@media screen and (min-width: 851px) {
  aside#left {
    width: 115px !important;
  }

  #main {
    width: calc(100% - 470px) !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  aside#right {
    width: 355px !important;
  }

}

@media screen and (min-width: 851px) {
  #main > div:has(> .exact-canvas) {
    aspect-ratio: 1410 / 689;
  }

  #main .bet-input.cash-out .input > div > span {
    left: calc(50% + 12px) !important;
  }
}

@media screen and (max-width: 850px) {
  #main .cash-game.simple .buttons-col.place-bet > .bet-div,
  #main .cash-game.simple .buttons-col.disable > .bet-div {
    border: 1px solid var(--button-background) !important;
  }

  #main .cash-game.simple .buttons-col.cancel-bet > .bet-div {
    border: 1px solid #8f3939 !important;
    transition: border-color .2s !important;
  }

  #main .cash-game.simple .buttons-col.cash-out > .bet-div {
    border: 1px solid #37763d !important;
    transition: border-color .2s !important;
  }

  #main .cash-game.simple .buttons-col .bet-input.cash-out .input > div::after {
    content: none !important;
  }

  #main .cash-game.simple .buttons-col .bet-input.cash-out .input > div > span {
    display: block !important;
    left: calc(50% + 16px) !important;
  }
}

@media screen and (min-width: 851px) and (max-width: 1300px) {
  aside#left {
    width: 60px !important;
  }

  #main {
    width: calc(100% - 286px) !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
  }

  aside#right {
    width: 226px !important;
  }
}

@media screen and (max-width: 850px) and (orientation: portrait) {
  #left.header-history > .history.history-list {
    right: auto !important;
    width: calc(100% - 50px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 50px) !important;
  }

  #main .cash-game.simple { height: 289px !important; }
  #main .canvas { overflow: visible !important; }
  header #balance { overflow: visible !important; }
  header .menu-icon { display: block !important; }
}

@media screen and (max-width: 850px) and (orientation: landscape) {
  html, body, #root, .jetx-form {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body { padding: 25px 0 0 !important; }

  .hood-smartsoft-logo {
    width: 160px !important;
    height: 26px !important;
    flex: 0 0 160px !important;
    margin-left: 10px !important;
  }

  .hood-timer-container {
    width: 155px !important;
    flex: 0 0 155px !important;
    margin-right: 15px !important;
  }

  header {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: 38px !important;
    padding: 3px 9px !important;
  }

  header .content {
    width: 100% !important;
    height: 32px !important;
  }

  header .logo {
    width: 60px !important;
    height: 23px !important;
    margin: 5px 0 0 6px !important;
  }

  header .right:has(.menu-icon),
  header #chat-icon,
  header .right:has(.exit) {
    display: block !important;
  }

  header .right:has(.menu-icon),
  header .content > .right.menu-parent {
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 2px !important;
  }
  header .right .menu-icon { display: block !important; }
  header .right .menu-icon { left: 2px !important; }
  header #chat-icon .chat-icon { left: 1px !important; }

  section#game {
    position: relative !important;
    width: 100% !important;
    height: calc(100vh - 63px) !important;
    min-height: 0 !important;
    padding: 3px 0 0 !important;
    overflow: visible !important;
  }

  section#game > .content {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  #left.header-history {
    position: fixed !important;
    left: 110px !important;
    right: 280px !important;
    top: 30px !important;
    display: block !important;
    width: auto !important;
    height: 28px !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    z-index: 15 !important;
  }

  #left.header-history .history-list {
    left: 0 !important;
    top: 0 !important;
    width: calc(100% - 50px) !important;
    height: 28px !important;
    padding: 4px 0 0 4px !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  #left.header-history > .history.history-list {
    right: auto !important;
    width: calc(100% - 50px) !important;
    min-width: 0 !important;
    max-width: calc(100% - 50px) !important;
  }

  #left.header-history .history-button {
    right: 10px !important;
    top: 0 !important;
    width: 30px !important;
    height: 28px !important;
  }

  #main {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #main > div:has(> .exact-canvas) {
    position: absolute !important;
    left: 5px !important;
    top: 0 !important;
    width: calc(100% - 340px) !important;
    height: 45% !important;
    max-height: none !important;
    margin: 0 0 5px !important;
  }

  #main > div > .exact-canvas,
  #main .canvas {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
  }

  #main .buttons {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    display: block !important;
    width: 335px !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #main .cash-game.simple {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  #main .cash-game.simple #button-all { display: none !important; }

  #main .cash-game.simple .buttons-col,
  #main .cash-game.simple #button-0,
  #main .cash-game.simple #button-1 {
    display: block !important;
    width: 100% !important;
    height: calc(50% - 3px) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 0 5px !important;
    padding: 0 5px !important;
    flex: none !important;
  }

  #main .cash-game.simple .buttons-col#button-0,
  #main .cash-game.simple .buttons-col#button-1 {
    height: calc(50% - 3px) !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: none !important;
  }

  #main .cash-game.simple .buttons-col > .bet-div {
    box-sizing: border-box !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    grid-template-columns: calc(50% - 2.5px) calc(50% - 2.5px) !important;
    grid-template-rows: 50% 50% !important;
    column-gap: 5px !important;
    row-gap: 0 !important;
    padding: 5px !important;
    overflow: visible !important;
    border-radius: 6px !important;
  }

  #main .cash-game.simple .buttons-col#button-0 > .bet-div,
  #main .cash-game.simple .buttons-col#button-1 > .bet-div {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    grid-template-rows: 50% 50% !important;
  }

  #main .cash-game.simple .buttons-col > .bet-div > .bet-col1 {
    display: contents !important;
  }

  #main .cash-game.simple .buttons-col .bet-input.bets {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    padding: 0 0 4px !important;
  }

  #main .cash-game.simple .buttons-col .bet-list {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  #main .cash-game.simple .buttons-col .bet-input.cash-out {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 0 0 4px !important;
  }

  #main .cash-game.simple .buttons-col > .bet-div > .bet-col2 {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  #main .cash-game.simple .buttons-col .bet-input .auto {
    display: block !important;
    width: 100% !important;
    height: 50% !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 1 !important;
  }

  #main .cash-game.simple #button-0 .bet-input .auto,
  #main .cash-game.simple #button-1 .bet-input .auto {
    display: block !important;
    height: 50% !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 1 !important;
  }

  #main .cash-game.simple .buttons-col .bet-input .auto .head {
    display: flex !important;
    height: 100% !important;
    padding-right: 5px !important;
    align-items: center !important;
  }

  #main .cash-game.simple .buttons-col .bet-input .auto {
    position: relative !important;
  }

  #main .cash-game.simple .buttons-col .bet-input .auto .head {
    position: absolute !important;
    right: 38px !important;
    top: 0 !important;
    width: 39.0625% !important;
  }

  #main .cash-game.simple .buttons-col .bet-input.cash-out .auto .head {
    left: 0 !important;
    right: 38px !important;
    width: auto !important;
    justify-content: center !important;
  }

  #main .cash-game.simple .buttons-col .bet-input .auto .checkbox {
    position: absolute !important;
    right: 0 !important;
    top: calc(50% + 1px) !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
  }

  #main .cash-game.simple .buttons-col .bet-input.bets .auto .head::before { content: 'AUTO BET'; }
  #main .cash-game.simple .buttons-col .bet-input.cash-out .auto .head::before { content: 'AUTO COLLECT'; }

  #main .cash-game.simple .buttons-col .bet-input .input {
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    display: block !important;
    width: 100% !important;
    height: 50% !important;
  }

  #main .cash-game.simple .buttons-col .bet-input .input > div {
    width: 100% !important;
    height: 100% !important;
  }

  #main .cash-game.simple .buttons-col .bet-input .label,
  #main .cash-game.simple .buttons-col .auto-bet-button,
  #main .cash-game.simple .buttons-col .auto-bet-button-space { display: none !important; }

  #main .cash-game.simple .buttons-col .exact-panel-x2 {
    position: absolute !important;
    left: 6px !important;
    top: 10.375px !important;
    display: block !important;
    width: 30px !important;
    height: 25px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 25px !important;
    overflow: hidden !important;
  }

  #main .cash-game.simple .buttons-col .bet-col2 .bet {
    width: 100% !important;
    height: 100% !important;
  }

  #right.info-div {
    position: absolute !important;
    left: 5px !important;
    top: calc(45% + 32px) !important;
    display: block !important;
    width: calc(100% - 340px) !important;
    height: calc(55% - 27px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #right.info-div .info,
  #right.info-div .info-content {
    width: 100% !important;
    height: 100% !important;
  }

  #right.info-div .info-tabs { display: none !important; }

  #right.info-div .info-content .head {
    height: 22px !important;
    padding-right: 0 !important;
    border-radius: 2px !important;
    font-size: 9px !important;
    line-height: 22px !important;
    letter-spacing: -.05em !important;
  }

  #right.info-div .info-content .row {
    height: 22px !important;
    padding-right: 0 !important;
    font-size: 8px !important;
    line-height: 22px !important;
    letter-spacing: -.05em !important;
  }

  footer.pixel-mobile-footer {
    position: absolute !important;
    left: 5px !important;
    right: auto !important;
    top: calc(45vh + 38.3px) !important;
    bottom: auto !important;
    width: calc(100% - 340px) !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 1px 5px !important;
    z-index: 10 !important;
  }

  footer.pixel-mobile-footer,
  footer.pixel-mobile-footer div,
  footer.pixel-mobile-footer .footer-menu,
  footer.pixel-mobile-footer .footer-menu > div { height: 32px !important; }

  footer.pixel-mobile-footer a {
    height: 32px !important;
    padding: 0 8px 0 9px !important;
    font-size: 11px !important;
    line-height: 32px !important;
  }

  footer.pixel-mobile-footer a.menu { display: none !important; }
  footer.pixel-mobile-footer a.active::before { bottom: 4px !important; height: 2px !important; }

  .menu-div { width: 100% !important; height: calc(100% - 38px) !important; }
  .menu-div-content { right: 41px !important; top: 64px !important; bottom: auto !important; }
}
