/* Base styles */
html {
  overflow-x: hidden;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: url("main/bg.webp") center top / cover no-repeat fixed;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

a {
  color: #fff;
  text-decoration: none;
  background-color: transparent;
}

a:hover,
a:active,
a:focus {
  outline: 0;
  color: #fff;
  text-decoration: none;
}

/* Layout containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

main {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  margin: 0 auto;
  max-width: 960px;
}

/* Header and marquee */
.flex-container-side {
  display: flex;
  background: #000;
  justify-content: center;
  align-items: center;
}

.flex-item-center {
  text-align: center;
}

.header {
  width: 100%;
  background-color: #fff349;
  padding: 1px;
}

.marquee-text {
  height: 30px;
  line-height: 30px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  width: 100%;
}

.marquee-text::before,
.marquee-text::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background: #fff349;
  top: 0;
  z-index: 2;
}

.marquee-text::before {
  left: 0;
}
.marquee-text::after {
  right: 0;
}

.marquee-text > div {
  display: inline-flex;
  gap: 40px;
  animation: marquee 20s linear infinite;
  font-size: 14px;
  color: #3c4048;
  font-weight: 700;
  z-index: 1;
  will-change: transform;
}

.marquee-text span {
  display: inline-block;
  padding-right: 20px;
  flex: 0 0 auto;
}

.marquee-text:hover > div {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.marquee-text.on-1440px {
  display: block;
}
.marquee-text.on-768px,
.marquee-text.on-425px {
  display: none;
}

@media (max-width: 1440px) {
  .marquee-text.on-1440px {
    display: none;
  }
  .marquee-text.on-768px {
    display: block;
  }
  .marquee-text > div {
    animation-duration: 10s;
  }
}

@media (max-width: 768px) {
  .marquee-text.on-768px {
    display: none;
  }
  .marquee-text.on-425px {
    display: block;
  }
  .marquee-text > div {
    animation-duration: 8s;
  }
}

@media (max-width: 425px) {
  .marquee-text > div {
    animation-duration: 5s;
  }
}

/* Content and banner */
.content.marq {
  width: 100%;
  padding: 20px 0;
}

.banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 900/510;
  object-fit: cover;
}

.text-center {
  text-align: center;
}

/* Logo and headings */
.box-logo {
  padding: 1rem;
  background: #000;
  border-radius: 5px;
}

.box-logo img {
  width: 180px;
  height: 50px;
}

.toplist__label.gacor {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 20px 0;
  padding: 1px;
  border: 1px solid #f3c314;
  border-radius: 5px;
  background-image: radial-gradient(
    circle 763px at 18.3% 24.1%,
    #fff989 7.4%,
    #e2b728 58.3%
  );
}

@media (max-width: 600px) {
  .toplist__label.gacor {
    font-size: 22px;
  }
}

/* Grid and vendor list */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 15px;
  justify-items: center;
}

.grid-container > div {
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.grid-container > div:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.grid-container img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Game list */
.game-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .game-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .game-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .game-list {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Card styles */
.card.game-one-half-slot {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.card-content {
  position: relative;
  overflow: hidden;
  margin: 5px;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 568px) {
  .card-content {
    font-size: 11px;
    padding: 3.5px;
  }
}

@media (max-width: 400px) {
  .card-content {
    font-size: 10px;
    padding: 3px;
  }
}
/* Wrapper to constrain overlay to image only */
.thumb-wrap {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
}


/* Hover button and play button */
.hover-btn {
  position: absolute;
  inset: 0; /* cover entire image area */
  display: none;
  text-decoration: none;
  background: rgba(0,0,0,0.45);
  border-radius: 5px;
  transition: opacity 0.15s ease-in-out;
  z-index: 10;
}

.thumb-wrap:hover .hover-btn {
  display: block;
}
.thumb-wrap:hover .hover-btn {
  opacity: 100%;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(19deg, #eeec36 0%, #f79e1a 100%);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.play-btn:hover {
  background: linear-gradient(19deg, #e0de31 0%, #d6860f 100%);
  color: #000;
}

@media (max-width: 992px) {
  .hover-btn,
  .play-btn {
    display: none; /* tetap tersembunyi di layar kecil sesuai desain lama */
  }
}

/* Image styles */
.img-zoom {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background-color: #f5f5f5;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

@media (min-width: 768px) {
  .img-zoom {
    height: 140px;
  }
}

@media (max-width: 568px) {
  .img-zoom {
    height: 76px;
    object-fit: contain;
  }
}

@media (max-width: 400px) {
  .img-zoom {
    height: 67px;
    object-fit: contain;
  }
}

.thumb-wrap:hover .img-zoom {
  transform: scale(1.05);
}

/* Progress bar */
.pbar {
  position: relative;
  height: 20px;
  background: #e9ecef;
  border-radius: 18px;
  overflow: hidden;
  margin: 10px 0;
}

.pbar-bg {
  height: 100%;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  transition: width 0.6s ease;
}

.pbar-bg.red {
  background-color: #dc3545;
}
.pbar-bg.yellow {
  background-color: #ffc107;
}
.pbar-bg.green {
  background-color: #28a745;
}

.pbar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 14px;
  font-weight: 700;
}

/* Pola RTP */
.pola-container {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.2;
  min-height: 90px;
}

.pola-header {
  background: linear-gradient(to bottom, #eeec36 0%, #f79e1a 100%);
  padding: 4px;
  border-radius: 999px;
  text-align: center;
  font-weight: bold;
  font-size: 10px;
  color: #000;
  margin: 2px 16px 12px 16px;
}

.pola-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pola-row {
  display: flex;
  gap: 2px;
  justify-content: center;
  align-items: center;
  padding: 1px 0;
  font-size: 10px;
}

.pola-bet {
  color: #fff;
  min-width: 20px;
  text-align: right;
}

.pola-icons {
  display: flex;
  gap: 2px;
  justify-content: center;
}

.pola-icon {
  font-size: 10px;
  font-weight: bold;
}
.pola-icon.icon-check {
  color: #00ff00;
}
.pola-icon.icon-cross {
  color: #ff0000;
}

.pola-type {
  color: #fff;
  min-width: 30px;
  font-size: 9px;
  text-align: left;
}

.pola-unavailable {
  text-align: center;
  color: #888;
  font-size: 10px;
  padding: 4px 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 500 18.5px "Bebas Neue", sans-serif;
  width: 100%;
  color: #faf0d7;
  text-shadow: 0 0 3px #000;
  letter-spacing: 1px;
  text-align: center;
}

.btn-one {
  position: relative;
  transition: all 0.3s;
}

.btn-one::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s;
  border-top: 1.8px solid rgba(250, 240, 215, 0.5);
  border-bottom: 1.8px solid rgba(250, 240, 215, 0.5);
  transform: scale(0.1, 1);
}

.btn-one:hover::before {
  opacity: 1;
  transform: scale(1, 1);
}

.btn-one::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all 0.3s;
  background-color: rgba(250, 240, 215, 0.4);
  border-radius: 5px;
}

.btn-one:hover::after {
  opacity: 0;
  transform: scale(0.1, 1);
}

.btn-one span {
  transition: all 0.3s;
}
.btn-one:hover span {
  letter-spacing: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  background: #000;
  border-radius: 5px;
  height: 38px;
  padding: 5px 20px;
  max-width: 128px;
  color: #fff;
  font-weight: 700;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s;
  animation: blinking 0.5s infinite;
}

.button:hover {
  color: #e7b10c;
  background: #fff;
  box-shadow: 0 4px 17px rgba(0, 0, 0, 0.2);
  transform: translate3d(0, -2px, 0);
  border: 2px solid #e7b10c;
}

.button:active {
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
  transform: translate3d(0, 1px, 0);
}

@keyframes blinking {
  0% {
    border: 2px solid #fff;
  }
  100% {
    border: 2px solid #fdbf02;
  }
}

/* Footer */
.footer {
  padding: 20px 0;
  margin-top: 48px;
  color: #929aab;
  background: #000;
  text-align: center;
  border-radius: 24px 24px 0 0;
}

/* Form controls */
.form-control {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 15px;
}

.form-inline {
  display: flex;
}

.icon-search {
  display: flex;
  align-items: center;
  border: 1px solid #000;
  border-right-color: transparent;
  padding: 6px 10px;
  background-color: #fff;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.form-inline > .form-control {
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -10px;
}

/* Table styles */
.table-responsive {
  min-height: 0.01%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.table td,
.table th {
  background-color: #f3f5ef;
  border: 1px solid #bbb;
  color: #333;
  font-family: sans-serif;
  font-size: 85%;
  padding: 10px;
  vertical-align: top;
}

.table tr:nth-child(even) td {
  background-color: #f0f0e5;
}

.table th {
  background-color: #eae2cf;
  color: #333;
  font-size: 95%;
}

.table tr:hover td {
  color: #222;
  background-color: #fffbef;
}

@media (max-width: 767px) {
  .table-responsive {
    width: 100%;
    margin-bottom: 15px;
    overflow-y: hidden;
  }

  .table-responsive > .table {
    margin-bottom: 0;
  }

  .table-responsive > .table > tbody > tr > td,
  .table-responsive > .table > tbody > tr > th,
  .table-responsive > .table > tfoot > tr > td,
  .table-responsive > .table > tfoot > tr > th,
  .table-responsive > .table > thead > tr > td,
  .table-responsive > .table > thead > tr > th {
    white-space: nowrap;
  }
}

/* Miscellaneous */
.material-symbols-rounded {
  font-size: 15px;
  font-variation-settings: "FILL" 1, "wght" 800, "GRAD" 600, "opsz" 30;
}

.title-prediction {
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 22px;
  margin-top: 17px;
  text-decoration: underline;
}

.paraf-content,
.paraf-content-under {
  font-size: 18px;
  text-align: center;
  margin: 5px;
  color: #fff;
}

.paraf-content-under {
  margin-bottom: 25px;
}

.title-payment {
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 25px;
  margin: 25px 5px 5px;
}

.app-footer {
  border-radius: 5px;
  background-color: #1a1a1a;
  opacity: 0.9;
  padding: 1rem;
  margin-bottom: 11px;
}

.app-footer section {
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}

.app-footer__partners h5 {
  color: #f79236;
  text-align: center;
  margin-bottom: 1rem;
}

.app-footer__partners ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(2rem, 1fr));
  list-style-type: none;
}

.app-footer__partners li:hover {
  background-image: linear-gradient(to bottom, #fdf571 0%, #d6b75f 100%);
  border-radius: 1rem;
}

.app-footer__partners ul li a {
  padding: 0.5rem;
  font-size: 0.75rem;
  color: hsla(0, 0%, 100%, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-footer__partners ul li a:hover {
  color: #000;
}

/* Print styles */
@media print {
  *,
  :after,
  :before {
    color: #000;
    text-shadow: none;
    background: none;
    box-shadow: none;
  }

  a,
  a:visited {
    text-decoration: underline;
  }
  a[href]:after {
    content: " (" attr(href) ")";
  }
  img,
  tr {
    page-break-inside: avoid;
  }
  img {
    max-width: 100%;
  }
  h2,
  h3,
  p {
    orphans: 3;
    widows: 3;
  }
  h2,
  h3 {
    page-break-after: avoid;
  }
}
