@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 61px; /* Height of navbar */
    bottom: 0;
    right: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #343a40;
    transition: visibility .3s ease-in-out, -webkit-transform .3s ease-in-out;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out, -webkit-transform .3s ease-in-out;
    background: linear-gradient(#005826, #003510);
    /*background: -webkit-linear-gradient(#005826, #003510);*/
  }
  .offcanvas-collapse.open {
    visibility: visible;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
  }
  .offcanvas-collapse {
    font-size: large;
  }
  .offcanvas-collapse .nav-link {
    padding-top: .875rem;
    padding-bottom: .875rem;
    padding-top: .65rem;
    padding-bottom: .65rem;
  }
  .offcanvas-collapse .copyright {
    text-align: center;
    font-size: small;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-top: 60px;
  }
  #main-header .navbar {
    /*margin-top: 0;*/
    /*margin-bottom: 0;*/
    height: 60px;
  }
  #main-header .navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
  }
  #main-header .navbar-brand img {
    height: 50px;
  }
}

@media (max-width: 991.98px) {
  html {
    /*position: relative;*/
    min-height: 100%;
  }
  body {
    /*margin-bottom: 60px;*/
    /*margin-bottom: 60px;*/
    /*padding-bottom: 60px;*/
    padding-top: 0;
    /*background: url('../images/bg.jpg') repeat fixed;*/
    /*background-repeat: round;*/
    /*background-size: contain;*/
    /*background-color: #343a40 !important;*/
    margin-bottom: 47.5px;
  }
  #mobi-header {
    background-color: #003510;
    background: -webkit-linear-gradient(#005826, #003510);
    width: 100%;
    position: fixed;
    z-index: 1050;
  }
  #mobi-header * {
    color: white;
    /*font-size: small;*/
    line-height: 1;
  }
  #mobi-header .navbar {
    padding-top: 0;
    padding-bottom: 0;
    padding: 0;
    border-bottom: 1px solid white;
    /*position: fixed;*/
    /*z-index: 1030;*/
  }
  #mobi-header .navbar-toggler {

  }
  #mobi-header .navbar-brand img {
    width: 168px;
    height: 50px;
  }
  #mobi-header .btn {
    /*padding: .25rem .75rem;*/
    margin-left: .5rem;
    margin-right: .5rem;
    text-transform: uppercase;
    /*font-weight: bold;*/
  }
  #mobi-header .navbar-text * {
    font-size: small;
  }

  #mobi-navbars .nav-link:hover {
    color: #ffc20e;
  }
  #mobi-footerMenu {
    position: fixed;
    bottom: 0;
    width: 100%;
    /*height: 120px;*/
    /*height: 56px;*/
    /*line-height: 1;*/
    background-color: #003510;
    background: -webkit-linear-gradient(#005826, #003510);
    text-align: center;
    z-index: 15;
    text-transform: uppercase;
    z-index: 1099;
  }
  #mobi-footerMenu {
    /*padding: .5rem;*/
  }
  #mobi-footerMenu a {
    /*margin: auto;*/
  }
  #mobi-footerMenu img {
  }
  #mobi-footerMenu .nav-fill {
    /*width: 100%;*/
  }
  #mobi-footerMenu .nav {
    width: 100%;
    flex-wrap: unset;
    -ms-flex-wrap: unset;
  }
  #mobi-footerMenu .nav-item {
    /*width: auto;*/
    width: -moz-available;
  }
  #mobi-footerMenu .nav-link {
    color: white;
    font-size: xx-small;
    /*padding-left: .5rem;*/
    /*padding-right: .5rem;*/
    /*padding: .5rem;*/
    /*display: block;*/
  }
  #mobi-footerMenu .nav-item:hover {
    color: #ffc20e;
    background: -webkit-linear-gradient(#003510, #005826);
  }
  #main-homeCarousel {
    height: initial;
  }
  #mobi-news {
    font-size: smaller;
    background-color: black;
    padding-top: 61px;
  }
  #mobi-news .labelMarquee {
    background: -webkit-linear-gradient(#005826, #003510);
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 15;
    text-align: center;
    padding: .25rem .75rem;
    font-size: xx-small;
    position: absolute;
    height: 22px;
  }
  #mobi-news .textMarquee {
    font-size: xx-small;
    /*background: black;*/
    color: #c2c2c2;
    -moz-animation: marquee 25s linear infinite;
    -webkit-animation: marquee 25s linear infinite;
    animation: marquee 25s linear infinite;
    padding: .25rem .75rem;
    height: 22px;
  }
  #mobi-news .textMarquee * {
    margin: 0;
  }
  @-moz-keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }
  @-webkit-keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }
  @keyframes marquee {
    0% { 
      -moz-transform: translateX(100%);
      -webkit-transform: translateX(100%);
      transform: translateX(100%) }
    100% { 
      -moz-transform: translateX(-100%);
      -webkit-transform: translateX(-100%);
      transform: translateX(-100%); }
  }
  #mobi-news .textMarquee:hover {
    animation-play-state: paused;
  }
  #mobi-news .textMarquee > p { display: ruby;white-space: nowrap; }
  #mobi-news .bg-marquee {
    background: -webkit-linear-gradient(#071309, #003510);
  }

  #mobi-resultLottery {
    /*background-color: rgba(255, 255, 255, 0.35);*/
    margin-bottom: .5rem;
  }

  #mobi-resultLottery .box-body {
    padding: 0;
  }

  #mobi-resultLottery .slickSlider {
    text-align: center;
    line-height: 1.2;
    color: white;
    /*margin-bottom: .5rem;*/
    /*margin-top: 0.25rem;*/
    /*margin-bottom: 0.25rem;*/
  }
  #mobi-resultLottery .slickSlider img {
    margin: auto;
  }

  #mobi-resultLottery .slickSlider .result {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }
  #mobi-resultLottery .logo {
    height: 46px;
  }
  #mobi-resultLottery .title {
    font-weight: bold;
    font-size: smaller;
    text-transform: uppercase;
  }
  #mobi-resultLottery .date {
    /*font-weight: bold;*/
    font-size: smaller;
  }
  #mobi-resultLottery .slickSlider .number {
    /*font-weight: bold;*/
    /*font-size: smaller;*/
    font-weight: bold;
    /*background: -webkit-linear-gradient(#f2e683, #a27031);*/
    /*background-clip: border-box;*/
    /*-webkit-background-clip: text;*/
    /*-webkit-text-fill-color: transparent;*/
    /*text-shadow: 2px 2px 5px rgba(0,0,0,0.2);*/
    text-transform: uppercase;

    /*padding-top: 0.25rem;*/
    /*padding-bottom: 0.25rem;*/
  }

  #mobi-resultLottery .slick-custom-prev, #mobi-resultLottery .slick-custom-next {
    font-size: x-large;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 20px;
    height: 20px;
    padding: 0;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    cursor: pointer;
    /*color: transparent;*/
    color: white;
    border: none;
    outline: none;
    background: transparent;
    z-index: 99;
  }

  #mobi-resultLottery .slick-custom-prev {
    left: 0;
    height: 100%;
  }
  #mobi-resultLottery .slick-custom-next {
    right: 0;
    height: 100%;
  }
  #mobi-resultLottery .slick-custom-prev::before, #mobi-resultLottery .slick-custom-next::before {
    /*content: none;*/
  }

  #mobi-resultLottery .slick-custom-prev:hover, #mobi-resultLottery .slick-custom-next:hover {
    background: #869791;
    color: #FFF;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.5);
  }

  #mobi-resultLottery .box-header, #mobi-bank .box-header {
    text-align: center;
    /*margin-bottom: .25rem;*/
    /*background-color: #003510;*/
    /*background: -webkit-linear-gradient(#005826, #003510);*/
    /*background-color: #ffc20e;*/
    /*background-image: linear-gradient(#fff200, #ffc20e);*/
    padding: .25rem .75rem;
  }

  #mobi-resultLottery .box-title, #mobi-bank .box-title {
    font-weight: bold;
    font-size: small;
    color: white;
    text-transform: uppercase;
    color: black;
    font-size: small;
  }

  #mobi-resultLottery .box-body, #mobi-bank .box-body {
  }

  #mobi-bank {
    /*background-color: black;*/
    /*background-color: rgba(255, 255, 255, 0.35);*/
    margin-bottom: .5rem;
  }

  #mobi-bank .box {
    background-color: rgba(255, 255, 255, .85);
  }

  #mobi-bank .box-body {
    padding: 0;
  }

  #mobi-bank .bank {
    /*height: 46px;*/
    display: flex;
    padding: .25rem .5rem;
  }

  #mobi-bank .bank-logo {
    width: 100%;
    /*max-height: 46px;*/
    /*height: auto;*/
    /*padding: .25rem .75rem;*/
    /*padding: .25rem .5rem;*/
    /*padding: .25rem 0;*/
    text-align: center;
    /*padding: 0;*/
    margin: auto;
  }

  #mobi-bank .bank-status {
    /*width: 100%;*/
    /*height: auto;*/
    padding: 0;
    text-align: center;
    margin: auto;
  }

  #mobi-footer-game {
    background-color: white;
    color: black;
    margin-bottom: .5rem;
  }
  #mobi-footer-game .card {
    border-radius: 0;
  }
  #mobi-footer-game .card-img-top {
    border-radius: 0;
  }
  #mobi-footer-game .card-title {
    margin-bottom: 0;
    line-height: 1;
    font-size: .75rem;
  }
  #mobi-footer-game .card-body {
    padding: .25rem .75rem;
    line-height: 1;
    vertical-align: bottom;
  }

  #mobi-connectUs {
    background-color: black;
    color: white;
    text-align: center;
    padding: .25rem .75rem;
  }

  #mobi-socialMedia {
    background-color: #ffc20e;
    /*background-image: linear-gradient(#fff200, #ffc20e);*/
    color: white;
    text-align: center;
    padding: .25rem .75rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  #mobi-socialMedia a {
    color: white;
    font-weight: bold;
  }

  #mobi-socialMedia .col {
    padding: .25rem .75rem;
  }

  #mobi-socialMedia .col:hover {
    background-image: linear-gradient(#ffc20e, #fff200);
  }

  #mobi-connectUs {
    font-size: small;
  }

  #mobi-copyright {
    background-color: black;
    color: white;
    text-align: center;
    padding: .25rem .75rem;
    font-size: small;
  }

  #mobi-welcome {
    /*background-color: rgba(255, 255, 255, 0.35);*/
    margin-bottom: .5rem;
  }

  #mobi-welcome .box-header {
    text-align: center;
  }

  #mobi-welcome .box-title {
    font-size: large;
  }

  #mobi-welcome .box-body {
    text-align: center;
  }

  #mobi-loginModal {
  }

  #mobi-loginModal .modal-dialog {
    margin-top: 100px;
  }

  #mobi-loginModal .modal-content {
    background-image: url(../images/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid white;
  }

  #mobi-loginModal .modal-header {
    padding: .5rem;
    /*border-bottom: 0;*/
    color: white;
  }
  #mobi-loginModal .modal-header .close {
    color: white;
  }

  #mobi-loginModal .modal-body {
    padding: 0 .5rem;
  }

  #mobi-loginModal .modal-footer {
    padding: 0 .5rem;
    /*border-top: 0;*/
    justify-content: space-between;
    padding: .5rem;
    padding-top: 0;
  }

  #mobi-loginModal .captcha {
    width: 70px;
  }

  #mobi-loginModal .form-group {
    margin-bottom: .5rem;
  }

  #mobi-loginModal .form-control {
    border-radius: 0;
  }

  #mobi-loginModal #mobi-forgotPopup {
    /*padding: .5rem 0;*/
    /*color: #ffc20e;*/
    /*margin: 0;*/
    padding: 0;
    color: #ffc20e;
    text-decoration: underline;
  }
  #mobi-loginModal #mobi-register {
    padding: 0;
    text-decoration: underline;
    /*color: #ffc20e;*/
    /*margin: 0;*/
  }
  #mobi-loginModal .modal-footer * {
    margin: 0;
  }

  #mobi-loginModal input[type="submit"], #mobi-loginModal button[type="submit"] {
    margin: 0;
  }

  /* forgot password modal */
  #main-forgotModal {
  }

  #main-forgotModal .modal-dialog {
    margin-top: 100px;
  }

  #main-forgotModal .modal-header {
    padding: .5rem;
    border-bottom: 0;
  }

  #main-forgotModal .modal-body {
    padding: .5rem;
  }

  #main-forgotModal .modal-footer {
    /*padding: 0 .5rem;*/
    /*border-top: 0;*/
  }

  #main-bank .bank-logo {
    padding: 0 0 0 .25rem;
    padding-left: .5rem;
    /*padding-right: .2rem;*/
  }

  .lottery-card {
    /*width: 100%;*/
    width: 100%;
  }

  .lottery-card img {
    /*padding: 0;*/
    margin-top: .5rem;
  }

  .lottery-card .card-body {
    padding: 0;
  }

  .lottery-card .card-title {
    white-space: nowrap;
    font-size: smaller;
    /*margin-bottom: 0!important;*/
  }

  #mobi-help {
    margin-bottom: .5rem;
  }

  #mobi-help .card {
    border: 0;
    background-color: unset;
    color: white;
    margin-bottom: .25rem;
  }

  #mobi-help .card .card-header {
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    background: linear-gradient(#005826, #003510);
    color: white;
    margin: .15rem;
    border-radius: 5px;
    /*border: .15rem solid white;*/
    margin: 0;
    padding: .25rem .75rem;
    padding: 0;
  }

  #mobi-help .card .card-header * {
    color: white;
    text-transform: uppercase;
  }

  #mobi-help .card-header.active {
    background: linear-gradient(#003510, #005826);
    color: #ffc20e;
    border: .15rem solid #ffc20e;
    text-decoration: underline;
    /*background-color: white;*/
  }

  #mobi-help .card-header.active * {
    color: #ffc20e;
  }

  #mobi-help .card-header button {
    text-align: left;
    /*padding-top: .5rem;*/
    /*padding-bottom: .5rem;*/
    border: .15rem solid white;
  }

  #mobi-help .card-header button i {
    float: right;
    padding-top: .25rem;
  }

  #mobi-help .card .card-body {
    background-color: rgba(255, 255, 255, 0.15);
    padding-top: .5rem;
    padding-bottom: .5rem;
  }

  #nav-poolsLottery .nav-link {
    padding-left: .5rem;
    padding-right: .5rem;
  }

  #nav-poolsLottery .nav-link {
    font-size: .6rem;
    padding: .15rem .1rem;
  }

  #nav-gamesLottery .nav-item {
    width: 25%;
    text-align: center;
  }

  #nav-gamesLottery .nav-link {
    font-size: 10px;
    padding: .15rem 0;
  }

  .form-check.tos {
    /*padding-left: 0;*/
  }

  .form-check.tos label {
    display: initial;
  }

  #popupLottery-modal .pools-title {
    font-size: 1rem;
  }

  .modal-content {
    margin-bottom: 5rem;
  }

  table.tblgame1 * {
    font-size: small !important;
  }

  table.tblgame1 th, table.tblgame1 td {
    /*padding-left: .1rem;*/
    padding-right: .1rem;
  }

  table.tblgame1 tbody tr td:nth-child(2) {
    padding-left: 0;
    padding-right: 0;
    min-width: 16px;
  }

  table.tblgame1 .btn {
    padding-top: 2px;
    padding-bottom: 2px;
    /*width: 65px;*/
  }
  table.tblgame1 .optionfield {
    /*width: 65px;*/
  }

  #main-breadcrumb .breadcrumb {
    padding-left: 0;
    padding-right: 0;
  }

  #mobi-accordion .card-header h2 button .fa-angle-down {
    transform: rotate(180deg);
    transition: all .5s ease 0s;
    margin-top: .25rem;
  }

  #mobi-accordion .card-header h2 button.collapsed .fa-angle-down {
    transform: rotate(0deg);
    transition: all .5s ease 0s;
    margin-top: 0;
  }

  .lottery-card .btn {
    font-size: small;
    bottom: 0;
    /*position: absolute;*/
  }

  #contact-sidebar {
    top: 100px;
  }

  #main-homeCarousel .carousel-item {
    /*height: 100%;*/
    /*overflow-x: hidden;*/
    /*width: initial;*/
    /*right: 50%;*/
  }


  #mobi-resultLottery .title {
    font-weight: normal;
  }
  #mobi-resultLottery .number {
    /*font-weight: normal;*/
    font-size: 24px;
    line-height: 1;
  }
  #mobi-bank .box {
    background-color: white;
  }
}

@media (max-width: 575.98px) {
  table.tblgame1 tfoot {
    /*display: none;*/
  }

  .d-subtotal {
    display: none;
  }

  .d-preview {
    /*display: none;*/
  }

  table.tblgame1 tfoot .tblgametotal1 {
    display: none;
  }

  table.tblgame1 tfoot .tblgametotal2 {
    display: revert;
  }

  .inputfieldbet[maxlength='1'] {
    width: 32px;
  }

  .inputfieldbet[maxlength='4'] {
    /*width: 64px;*/
    width: 40px;
  }

  .inputfieldbet[maxlength='7'] {
    /*width: 65px;*/
    width: 55px;
  }

  .inputfieldbet[maxlength='10'] {
    /*width: 90px;*/
    width: 80px;
  }

  #main-datetime {
    font-size: small;
    padding-top: .85rem;
    padding-bottom: .85rem;
  }

  .d-table {
    /*padding-left: 0;*/
    /*padding-right: 0;*/
  }

  table.tblgame1 .betwarning {
    display: none;
  }

  .d-bet {
    padding-right: 0 !important;
  }

  main.container {
    padding-right: 5px;
    padding-left: 5px;
  }

  table.tblpreview tfoot .tblpreviewtotal1 {
    display: none;
  }

  table.tblpreview tfoot .tblpreviewtotal2 {
    display: revert;
  }

  table.tblpreview .d-previewOdds, table.tblpreview .d-previewDiscP, table.tblpreview .d-previewAmount, table.tblpreview .d-previewDiscA {
    display: none;
  }
  
  #popupLottery-modal .modal-body {
    padding: .25rem;
  }


  #more2donelinebb .select2-container--default .select2-selection--single, .select2-selection .select2-selection--single {
    /*padding: 0;*/
    padding: 0 .1rem;
  }

  #more2donelinebb .select2-container .select2-selection--single .select2-selection__rendered {
    /*line-height: 1;*/
  }

  #more2donelinebb .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 16px;
    width: 8px;
  }

  .select2-results__option {
    padding: .25rem .25rem;
    font-size: small;
  }

  #more2donelinebb .select2-container--default .select2-selection--single .select2-selection__arrow {
    /*display: none;*/
  }

  #more2donelinebb td {
    padding-left: 1px;
    padding-right: 1px;
  }

  #morecombine .select2.select2-container.select2-container--default {
    width: 50px !important;
  }
  #morecombine .btn {
    padding: .25rem .25rem;
  }

  #morecombine td {
    /*padding-left: .05rem;*/
    /*padding-right: .05rem;*/
  }
  .tblgame1 th.d-bet {
    white-space: normal;
  }

  #tbldetailnumber {
    font-size: small;
  }
}

@media (max-width: 575.98px) {
  #main-homeCarousel .carousel-item {
    /*height: 100%;*/
    /*overflow-x: hidden;*/
    /*width: initial;*/
    /*right: 50%;*/
  }
}



@media (max-width: 575.98px) {
  .parlay-search-box h1 {
    font-size: 2.5rem;
  }
  .parlay-search-box .input-search {
    min-width: unset;
  }
}

@media (min-width: 991.98px) {
  .bet-room-search-box .input-group-search {
    width: 440px;
  }
  .parlay-search-box .input-group-search {
    width: 350px;
  }
}

  /* START FRONTEND 2022 */
@media (max-width: 991.98px) {
  #mobi-header {
    height: auto;
    background-image: none;
    /*background-color: #003510;*/
    /*background: -webkit-linear-gradient(#005826, #003510);*/
    background-color: black;
  }
  #mobi-news {
    /*background: -webkit-linear-gradient(#005826, #003510);*/
    /*background-color: rgba(0, 0, 0, 0.5);*/
    background-color: #005826;
  }
  #mobi-news .colMarquee {
    height: 30px;
    background: none;
  }
  #mobi-news .labelMarquee {
    height: inherit;
    padding: .25rem .75rem;
    font-size: small!important;
    background: none;
    background-color: #005826;
    color: white;
    font-weight: normal;
    padding-left: .25rem;
  }
  #mobi-news .textMarquee {
    height: inherit;
    padding: .25rem .75rem;
    font-size: small!important;
    color: white;
  }
}
/* END FRONTEND 2022 */

/* START ANGPAO 2022 */
@media (max-width: 991.98px) {
  .flip-angpao, .flip-angpao-click {
    width: 100px;
    height: 200px;
  }
  .flip-angpao-back p {
    font-size: x-large;
    /*font-size: calc((75vw - 4.5rem) / 8);*/
    /*font-size: calc(1vmin + 1vmax);*/
  }
}
/* END ANGPAO 2022 */