:root,
[data-bs-theme=light] {
  --bs-color-nav: #e6b83a;
  --bs-color-btn: #3d3d3d;
  --bs-color-text-hover: #fdbd0d;
  --bs-color-btn-hover: #000000;
}

[data-bs-theme=dark] {
  color-scheme: dark;
  --bs-color-nav: #3d3d3d;
  --bs-color-btn: #fdbd0d;
  --bs-color-text-hover: #000000;
  --bs-color-btn-hover: #fdbd0d;
}

/* Scrollbar */
body::-webkit-scrollbar {
  width: 5px;
  background-color: #2c2c2c;
  border-radius: 25px;
}

body::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(56, 56, 56, 0.3);
  width: 2px;
}

body::-webkit-scrollbar-thumb {
  background-color: #ffbb00;
  border-radius: 25px;
}

.bg-rtp {
    background: var(--bs-color-nav);
}

.btn-outline-nav {
  border: 1px solid var(--bs-color-btn);
  color: var(--bs-color-btn);
}

.btn-outline-nav:hover {
  background: var(--bs-color-btn-hover);
  color: var(--bs-color-text-hover);
}

.navbar-brand .logo {
    width: 210px !important;
}

.page-items {
    background: #1b1b1b6b;
}

.card-privider {
    background-color: #33333365;
    box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.5),
        inset -4px -4px 10px rgba(255, 255, 255, 0.05);
}

.btn-outline-rtp {
    background: none;
    color: #ffd000;
    border: 1px solid #ffd000;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    height: 45px;
}

.btn-outline-rtp:hover {
    background: #ffc400;
    color: #3d3d3d;
}

/* Slider Provider */
/* Scrollbar */
#sliderRow {
  height: 250px;
}

#sliderRow .pro-img {
  height: 200px;
}

@media (max-width: 960px) {
  #sliderRow {
    height: 150px;
  }

  #sliderRow .pro-img {
    height: 100px;
  }
}

#sliderRow::-webkit-scrollbar {
    height: 8px;
    background-color: #2c2c2c;
    border-radius: 25px;
}

#sliderRow::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(56, 56, 56, 0.3);
    width: 2px;
}

#sliderRow::-webkit-scrollbar-thumb {
    background-color: #868686;
    border-radius: 25px;
}

/* Menghilangkan border default dan membuat transisi halus saat hover */
.provider-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #42424296;
    /* Sesuaikan dengan tema gelap Anda jika perlu */
    display: block;
}

.provider-link:hover {
    transform: translateY(-5px);
    /* Efek sedikit naik saat mouse di atasnya */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.provider-img {
    width: auto;
    bottom: 0;
    border: 1px solid #979797;
    border-radius: 5px;
}

/* .active {
    box-shadow: 0 0 15px rgba(255, 196, 0, 0.685) !important;
} */

.active {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 196, 0, 0.685) !important;
}

/* FLASH DIAGONAL */
.active::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
      45deg,
      transparent 40%,
      rgba(255, 255, 255, 0.7) 50%,
      transparent 60%
  );
  animation: flashDiagonal 1.8s ease-in-out infinite;
  pointer-events: none;
}

/* ANIMASI GERAK */
@keyframes flashDiagonal {
  0% {
      transform: translate(-50%, -50%);
      opacity: 0;
  }
  30% {
      opacity: 1;
  }
  100% {
      transform: translate(50%, 50%);
      opacity: 0;
  }
}

/* Memastikan slider-container tidak memilih teks saat di-drag */
.slider-container {
    user-select: none;
    /* -webkit-user-drag: none; */
}

/* Games Card */
/* Paksa kolom memiliki tinggi yang sama */
.animate-fade-in {
    display: flex;
}

#tanggalwaktu {
    color: #f8c210;
}

.card-list {
    background-color: #33333365;
    box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.5),
        inset -4px -4px 10px rgba(255, 255, 255, 0.05);
}
/* Area Gambar: Pastikan ukurannya kotak (1:1) dan seragam */
.card-img-top {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
}

/* Judul Game: Berikan tinggi minimum agar jika 1 baris tetap memakan ruang 2 baris */
.game-title {
    min-height: 36px; /* Kira-kira tinggi 2 baris teks small */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimal 2 baris, sisanya titik-titik (...) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

/* Pastikan wrapper memanjang mengisi seluruh kolom */
.game-card-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card-wrapper:hover {
    transform: translateY(-5px);
}

/* Card mengambil sisa ruang yang ada */
.card-play {
    flex-grow: 1;
    /* background: #525252; */
    background-image: url('/assets/img/pelate.jpg');
    border-top-right-radius: 10px !important;
    border-top-left-radius: 10px !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 2px #000;
}

/* Style Tombol Play */
.btn-play {
    display: block;
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: #000 !important;
    padding: 8px 0;
    font-size: 14px;
    border-top: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: #ca9400;
    color: #ffffff !important;
}

/* Pastikan gambar tidak pecah */
.card-img-top {
    aspect-ratio: 1/1;
    object-fit: cover;
}

/* Percent Bar */
.percent {
    position: relative;
    width: 100%;
    height: 18px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    display: block !important;
}

.percent-txt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Paksa ke depan */
    z-index: 999 !important; 
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    text-shadow: 1px 1px 2px #000;
    pointer-events: none;
    margin: 0 !important;
}

.percent-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 10;
    transition: width 1s ease-in-out !important;
}

/* Warna Progress */
.bg-merah {
    background: linear-gradient(to right, #ff416c, #ff4b2b) !important;;
}

.bg-kuning {
    background: linear-gradient(to right, #f8ff00, #f8c210) !important;;
}

.bg-hijau {
    background: linear-gradient(to right, #11998e, #38ef7d) !important;;
}

/* Back to Top */
.backToTopBtn {
    display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 99;
    border-radius: 50%;
    border: none;
    outline: none;
    background-color: #f0c92e;
    color: #000000;
    text-shadow: 1px 1px 2px #ffffff;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 15px;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.backToTopBtn:hover {
    background-color: #d0ad00;
    /* Add a dark-grey background on hover */
}


/* Jackpot Snackbar */
.popup {
    position: relative;
    cursor: pointer;
  }
  
  .popup .popuptext {
    visibility: hidden;
    width: 350px;
    background: linear-gradient(135deg, #a37d02, #e4b601);
    /* Gradient */
    color: #ffffff !important;
    text-align: center;
    border-radius: 20px;
    padding: 4px 0;
    position: fixed;
    z-index: 9999;
    bottom: 50px;
    left: 25px;
    font-size: 14px;
    overflow: hidden;
    /* To make sure the shine effect stays within bounds */
  }
  
  #imageid {
    margin-top: 5px;
  }

  .popuptext strong {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    /* Text shadow */
  }
  
  .popuptext #winner-title {
    font-size: 14px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    /* Text shadow */
  }
  
  .popuptext #winner-info {
    font-size: 13px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    /* Text shadow */
  }

  #winner-info {
    margin-top: -15px;
  }
  
  .popuptext #winner-amount {
    font-size: 13px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    /* Text shadow */
  }
  
  /* Style for the red game text */
  .game-text {
    color: rgb(241, 32, 32);
    font-weight: bold;
  }
  
  .popup.show .popuptext:before {
    animation: shine 1s ease-in-out forwards;
  }
  
  @keyframes shine {
    0% {
      left: -150%;
    }
  
    50% {
      left: 50%;
    }
  
    100% {
      left: 150%;
    }
  }
  
  .popup .show {
    visibility: visible;
    -webkit-animation: fadeinout 12s cubic-bezier(0.18, 0.89, 0.32, 2.28) forwards;
    animation: fadeinout 12s cubic-bezier(0.18, 0.89, 0.32, 2.28) forwards;
  }
  
  #imageid {
    float: left;
    width: 15%;
    margin-left: 10px;
    /* Move the image slightly more to the right */
  }
  
  @-webkit-keyframes fadeinout {
  
    0%,
    100% {
      opacity: 0;
    }
  
    50% {
      opacity: 1;
    }
  }
  
  @keyframes fadeinout {
  
    0%,
    100% {
      opacity: 0;
    }
  
    50% {
      opacity: 1;
    }
  }
