/* @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); */
html {
  /* overflow-y: scroll; */
  overflow-y: auto;
}

.gjs-input-holder input,
.gjs-sm-field input,
.gjs-sm-field input,
.gjs-clm-field input,
.gjs-clm-select input,
.gjs-sm-field select,
.gjs-clm-field select,
.gjs-clm-select select {
  color: #000 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
label,
td,
th {
  font-family: 'principal', Arial, sans-serif;
}

button {
  font-family: Roboto, Helvetica, Arial, sans-serif;
}

.history-details-table {
  /* Hover effect on the table rows */
  /* tbody .MuiTableRow-root:is(:first-child) {
    background-color: rgba(255, 255, 255, 0.5) !important;
  } */
  tbody .MuiTableRow-root {
    .MuiTableCell-body {
      border-bottom: 1px solid #ddd !important;
      border-right: 1px solid rgba(0, 0, 0, 0.1) !important;
    }
  }
  tbody .MuiTableRow-root:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
  }
}
/* ::-webkit-scrollbar {
  width: 6px;
  height: 0px;
}

::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background: #eeeeee;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-track:hover,
::-webkit-scrollbar-track:active {
  background: #ffffff;
} */

html:not(.legacy) ::-webkit-scrollbar {
  width: 6px;
  height: 0px;
}

html:not(.legacy) ::-webkit-scrollbar-thumb,
html:not(.legacy) ::-webkit-scrollbar-thumb:hover,
html:not(.legacy) ::-webkit-scrollbar-thumb:active {
  background: #eeeeee;
}

html:not(.legacy) ::-webkit-scrollbar-track,
html:not(.legacy) ::-webkit-scrollbar-track:hover,
html:not(.legacy) ::-webkit-scrollbar-track:active {
  background: #ffffff;
}

/* ------------------------------- */

@keyframes LoopRotate {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}
.button-type-select {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  grid-gap: 5px;
}
body {
  font-family:
    ui-sans-serif,
    system-ui,
    sans-serif,
    Apple Color Emoji,
    Segoe UI Emoji,
    Segoe UI Symbol,
    Noto Color Emoji;
  line-height: 1.5;

  .MuiTypography-root {
    line-height: 1.5;
  }

  .info-fields-dp {
    &.MuiBox-root {
      margin: 0;
      padding: 0;
      border: none;
    }
  }

  [id*='custom-dynamic-header-'],
  #custom-dynamic-header {
    padding-top: 5px !important;
    padding-bottom: 5px;
    height: 50px !important;
    min-height: 50px;
    display: flex;
    align-items: center;
    z-index: 998;
    justify-content: space-between;
    contain: layout style;
    overflow: hidden;
    box-shadow:
      rgba(0, 0, 0, 0.2) 0px 2px 4px -1px,
      rgba(0, 0, 0, 0.14) 0px 4px 5px 0px,
      rgba(0, 0, 0, 0.12) 0px 1px 10px 0px;

    @media (max-width: 767px) {
      padding-inline: 10px;
    }

    @media (max-width: 1000px) {
      #custom-hamburger-button {
        padding-inline: 0;
        margin-left: 5px !important;

        svg {
          width: 24px;
          height: 24px;
          display: block;
        }
      }
    }
  }

  .bottom-logos {
    margin: auto;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 120px !important;
    padding-bottom: 20px;
    transform: translateX(0px) translateY(0px) !important;
    @media (max-width: 500px) {
      gap: 50px !important;
    }
  }

  .custom-header-actions {
    column-gap: 4px !important;

    .custom-register-button,
    .custom-header-button {
      height: 30px;
      width: 100px;
      /* color: rgb(0, 0, 0) !important; NOT REQUIRED (Aryan Dev) */
      padding: 0 16px !important;
    }

    /* .custom-header-button {
      &:hover {
        background: rgb(0, 0, 0) !important;
        color: #fff !important;
      }
    } */
  }

  .profile-opener {
    .custom-header-button {
      width: 42px;
      height: 42px;
      padding: 8px !important;
      background: #4e4e4e !important;

      &:hover {
        background: #323232 !important;
      }
    }
  }

  img[alt='+ Jugados'] {
    animation: 4s linear 0s infinite normal none running LoopRotate;
    max-width: 45px;
    margin: 0 auto;
  }

  .mobile-menu-drawer {
    .MuiList-root {
      margin-top: 8px;

      .MuiListItem-root {
        .MuiButtonBase-root {
          margin-inline: 12px;
          padding: 10px;

          .MuiListItemText-root {
            margin: 0;

            .MuiTypography-root {
              font-size: 12px;
            }
          }
        }
      }
    }
  }

  .profile-opener + #custom-hamburger-button {
    display: none !important;
  }

  .drawer-site-menu {
    display: none;

    @media (max-width: 1000px) {
      display: block;
      padding-top: 40px;
    }
  }

  @media (max-width: 560px) {
    .cambiar-dialog {
      .MuiDialog-container {
        .MuiDialogActions-root {
          flex-direction: column;

          .MuiButtonBase-root {
            margin-inline: 0 !important;
          }
        }
      }
    }
  }

  @media (max-width: 450px) {
    .profile-main-page,
    .history-main-page {
      padding: 70px 20px 20px !important;
    }

    .cambiar-btn {
      width: 100%;
    }
  }

  .hide-below-520px {
    @media (max-width: 520px) {
      display: none !important;
    }
  }

  .flex-column-below-600px {
    @media (max-width: 600px) {
      flex-direction: column !important;
      gap: 16px;
    }
  }

  /* -----------------Temp Styling Start-------------------- */

  #custom-dynamic-page {
    height: auto !important;
    contain: layout style;
    min-height: 100vh;
  }

  .cell {
    border: none !important;
    contain: layout style;
  }

  /* Prevent CLS for CMS-rendered category banner images (CASSINO, ESPORTES etc.) */
  .cell img {
    aspect-ratio: auto;
    max-width: 100%;
    height: auto;
  }

  .cell .MuiBox-root {
    contain: layout style;
  }

  #buttonWithImage {
    &:hover {
      background-color: #000 !important;
      color: #fff !important;
    }
  }

  div#iv5lh {
    font-weight: 500;
  }

  .social-icons {
    a {
      border: 2px solid #fff;
      border-radius: 50px;
      padding: 8px;
      display: inline-block;
      background-color: transparent;
      transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
      width: 46px;
      height: 46px;

      &:hover {
        background: #313645 !important;
        border: 2px solid #313645 !important;
      }

      img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        padding: 0 !important;
        border: none !important;
        max-width: 30px;
        max-height: 30px;
        object-fit: contain;
      }
    }
  }

  #imbe4 {
    a {
      font-size: 11px !important;
      letter-spacing: 0.02857em;
    }
  }

  #iluil {
    column-gap: 20px !important;
  }

  div#ihb7p {
    font-size: 11px !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    padding-inline: 60px;
  }

  .footer-column {
    > div:first-child {
      margin-bottom: 12px !important;
    }

    a {
      font-weight: 400 !important;
      transition: 0.3s;
      margin-bottom: 12px !important;

      &:hover {
        color: #a6adc2 !important;
        text-decoration: underline !important;
      }

      &:last-child {
        margin-bottom: 0 !important;
      }
    }
  }

  #ixxro {
    max-width: 70px;
    height: auto !important;
    margin-bottom: 10px;
  }

  #imn6f {
    margin-bottom: 5px !important;
  }

  /* #custom-dynamic-footer {
    transform: translateX(0px) translateY(0px);
    background-color: #222631;
    padding: 40px 0 0;
  } */

  .casino-drex-header-button {
    font-weight: 600 !important;
    cursor: pointer !important;
  }

  .custom-footer-container {
    justify-content: center;
    flex-wrap: wrap;
    display: flex !important;
    padding: 0 !important;
    max-width: inherit !important;

    > div {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-left: 60px;
      margin-right: 60px;
      margin-bottom: 40px;

      @media (max-width: 1100px) {
        margin-inline: 0 !important;
        width: 50% !important;
      }
    }

    > .te-escuchamos-column {
      width: 240px;
      height: 137px;

      @media (max-width: 500px) {
        width: 100% !important;
      }
    }

    .te-escuchamos-column + .footer-column {
      margin-inline: 0 !important;

      @media (max-width: 500px) {
        width: 100% !important;
        margin-bottom: 20px;
      }
    }
  }

  #ipoaw {
    padding-bottom: 38px !important;

    @media (max-width: 1100px) {
      gap: 50px;
    }
  }

  #ihs4e {
    margin-bottom: 48px !important;
    padding-top: 10px;
  }

  .game-grid-container {
    contain: layout style;
  }

  .game-grid-container > .game-grid {
    .game-item-container {
      .game-item-image-wrapper {
        margin: 0;
        width: 100%;
        display: block;
      }
    }

    /* width: 100% !important; */
    @media (max-width: 1100px) {
      grid-template-columns: repeat(auto-fit, 120px) !important;
    }

    @media (max-width: 535px) {
      grid-template-columns: repeat(auto-fit, 105px) !important;
      gap: 10px !important;
    }
  }

  div#i43q3 {
    padding: 30px;

    @media (max-width: 900px) {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    @media (max-width: 450px) {
      padding: 10px;
    }

    .cell > .MuiBox-root {
      overflow: hidden;
      border-radius: 8px;

      .MuiButtonBase-root {
        position: absolute;
        bottom: 20px;
        top: auto !important;
        transform: translate(-50%, 0);
        left: 50%;
        padding: 0px 16px;
        height: 40px;
        min-width: 100px;
      }
    }
  }

  /* -----------------Temp Styling End-------------------- */
}

/* ------------------------------- */

/* Performance: Promote animated elements to composite layers to avoid non-composited animations */
/* Fixes 129 non-composited animation warnings from Lighthouse */

/* Header/footer ::after pseudo-elements animate 'left' property - promote to own layer */
html:not(.legacy) [id*='custom-dynamic-header-']::after,
html:not(.legacy) #custom-dynamic-header::after,
html:not(.legacy) #custom-dynamic-footer::after {
  will-change: transform;
  transform: translateZ(0);
}

/* Play buttons animate background-position via keyframes - promote to own layer */
html:not(.legacy) .play-button,
html:not(.legacy) .custom-register-button,
html:not(.legacy) .view-more-button,
html:not(.legacy) .MuiButton-containedPrimary {
  will-change: transform;
  transform: translateZ(0);
}

/* Game item containers have hover transforms and filter animations */
html:not(.legacy) .game-item-container {
  will-change: transform;
  transform: translateZ(0);
}

/* Title lines have sparkle animations */
html:not(.legacy) .title-line-left::before,
html:not(.legacy) .title-line-right::before {
  will-change: transform;
  transform: translateZ(0);
}

/* SVG paths (CircularProgress) animate stroke-dashoffset - this is expected, promote to own layer */
html:not(.legacy) .MuiCircularProgress-svg path {
  will-change: stroke-dashoffset;
}

/* Mobile 2-column grid for .row with .cell-33 children (e.g. CASSINO / CASSINO AO VIVO / ESPORTES) */
@media (max-width: 650px) {
  .row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    justify-items: center !important;
    grid-gap: 10px !important;
    gap: 10px !important;
    margin: 0 !important;
  }

  .row > * {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Center the last odd item across both columns */
  .row > *:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    max-width: 50% !important;
    justify-self: center !important;
  }
}

