         :root {
    --primary-background:#111111;
    --secondary-background: #333;
    --primary-color: #ab0102;
    --line-color: #db0002;
    --marquee-color: #FFFFFF;
    --marquee-background: 121212;
    --result-pasaran-color: #ffb809;
    --result-tanggal-color: #FFFFFF;
    --result-tanggal-background: linear-gradient(0deg, rgba(96, 0, 2, 1) 0%, rgba(150, 2, 2, 1) 100%);
    --result-background: #111111;
    --result-keluaran-color: #ffffff;
    --result-border: 3px solid #9e9e9e;
    --button-masuk-color:linear-gradient(180deg, #db0002, #820001) ;
    --button-daftar-color: linear-gradient(180deg, #f4c165, #bd7b01);
    --button-rtp-color:linear-gradient(0deg, #003f3f, #25c7cc);
}



/* General Styles */
html, body {
    font-family:system-ui;
    font-size: 13px;
    color: #fff;
    background:var(--primary-background);
    margin: 0 auto;
    overflow-x: hidden;
}

/* Header Sticky */
        .header {
            background: var(--primary-background);
            transition: all 0.3s ease-in;
            z-index: 1000;
            border-bottom: 3px solid var(--line-color);
            position: fixed; /* Menggunakan fixed bukan sticky */
            top: 0;
            left: 0;
            width: 100%;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        
        .top{
            width: 100%;
    max-width: 1200px;
            display: flex;
    align-items: center;
    justify-content: space-between;
        }
        

        .header .logo a {
            display: block;
            padding: 10px 0;
        }
        
        .header .logo img {
            width: 180px;
            transition: all 0.3s ease-in;
        }
        
        
        .header .button-mobile a{
         padding:10px;
        border-radius:5px;
        font-size:1.2rem;
        font-weight:bold;
            text-decoration: none;
            cursor: pointer;
            margin-left: 5px;
        }
        

.header .button-mobile .login-button{
        background:var(--button-masuk-color);
        color:#fff;
        text-shadow:1px 1px 3px #000

}


.header .button-mobile .login-button:hover{
        color:#ccc;
        background:#555;
}

.header .button-mobile .register-button{
        background:var(--button-daftar-color);
        color:#fff;
        text-shadow:1px 1px 3px #000
}

.header .button-mobile .register-button:hover{
    color:#ccc;
    background:#555;
}


        
            @media (max-width: 768px) {
                
                .top{
    margin: 0 18px;
        }

    .header .logo img {
    width: 130px;
}


        }

/* Container */
.container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    
}

.content-section {
     margin-top: 80px;
}

.game-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 25px 0;
}

 @media (max-width: 768px) {
   .game-container {
    padding: 10px 20px;
}
}

.game-card {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


        .game-card {
            cursor: pointer;
            transition: transform 0.2s;
        }

        .game-card:hover {
            transform: translateY(-5px);
        }

.game-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.game-name {
    font-weight: bold;
    margin: 8px;
}

.rtp-display{
    margin: 8px;
    position: relative;
}

.rtp-bar{
    height: 24px; 
    background: #f0f0f0; 
    border-radius: 5px; 
    overflow: hidden; 
    position: relative;
}

.percentage-bar{
    height: 100%;
}

.percentage{
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 12px; 
    font-weight: bold; 
}

.search-container {
    margin:10px 5px;
    display: flex;
    gap: 10px;
}

.search-input {
    border-radius: 8px;
    flex-grow: 1;
    background-image: url(https://www.w3schools.com/css/searchicon.png);
    background-position: 10px 12px;
    background-repeat: no-repeat;
    width: 100%;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    border: 1px solid #ddd;
}

.search-button {
    padding: 0;
    background: #777;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size:.9rem;
    font-weight: bold;
}

.search-button:hover {
    background-color: #555;
}

.search-button:focus {
    background-color: #555;
}


.buttons{
    display: inline grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.vl{
    border-left: 1px solid lightgrey;
    height: 30px;
    margin: auto 20px;
}

/* Base Styles */
.game-menu-container {
  width: 100%;
  overflow-x: auto;
  padding: 15px 0;
  margin:10px 5px;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  border: 1px solid #ddd;
  max-width: -webkit-fill-available;
}

.game-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  padding: 0 15px;
  width: max-content;
  min-width: 100%;
}

.provider-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  min-width: 120px;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  filter: invert(1);
}

.provider-item:hover {
  background-color: #555;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.provider-item figure {
  margin: 0;
  text-align: center;
}

.provider-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.provider-item figcaption {
  margin-top: 8px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  color:#fff;
}

/* Scrollbar styling */
.game-menu-container::-webkit-scrollbar {
  height: 8px;
}

.game-menu-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.game-menu-container::-webkit-scrollbar-thumb {
  background: #888;
}

.game-menu-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Untuk tampilan mobile */
@media (max-width: 768px) {
  .provider-item {
    min-width: 100px;
  }
  
  .provider-item img {
    width: 50px;
    height: 50px;
  }
  
  .provider-item figcaption {
    font-size: 11px;
  }
  
  .game-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-card {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 5px;
    text-align: center;
    transition: transform 0.3s;
}
  
    .game-image {
        width: 100px;
        height: 100px;
    }
    .search-container {
        gap: 10px;
        padding: 0 10px;
    }
    
    .vl{
        display:none;
    }
    
}


/* Provider Menu */

        .provider-menu{
            margin-bottom:30px;
        }
        .provider-carousel {
            width: 100%;
            max-width: 1200px;
            height: auto; /* Ubah dari 450px ke auto */
            min-height: 250px; /* Tambahkan min-height untuk mencegah collapse */
            position: relative;
            perspective: 1000px;
            margin: 0 auto;
            padding: 10px 0; /* Tambahkan padding untuk ruang di atas dan bawah */
        }

        .provider-track {
            width: 100%;
            height: auto; /* Ubah dari 100% ke auto */
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 0.8s ease;
            min-height: 256px; /* Sesuaikan dengan tinggi card */
        }

        .provider-card {
            position: absolute;
            width: 200px; /* Sedikit diperkecil untuk ruang yang lebih baik */
            height: 200px;
            border-radius: 15px;
            overflow: hidden;
            background: white;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
            transition: all 0.8s ease;
            cursor: pointer;
        }

        .provider-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .provider-card.center {
            z-index: 10;
            transform: scale(1.1);
        }

        .provider-card.left-1 {
            transform: translateX(-190px) scale(0.9);
            opacity: 0.8;
            filter: grayscale(90%);
        }

        .provider-card.left-2 {
            transform: translateX(-350px) scale(0.8);
            opacity: 0.6;
            filter: grayscale(100%);
        }
        
         .provider-card.left-3 {
            transform: translateX(-490px) scale(0.7);
            opacity: 0.6;
            filter: grayscale(100%);
        }

        .provider-card.right-1 {
            transform: translateX(190px) scale(0.9);
            opacity: 0.8;
            filter: grayscale(90%);
        }

        .provider-card.right-2 {
            transform: translateX(350px) scale(0.8);
            opacity: 0.6;
            filter: grayscale(100%);
        }
        
          .provider-card.right-3 {
            transform: translateX(490px) scale(0.7);
            opacity: 0.6;
            filter: grayscale(100%);
        }

        .provider-card.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .provider-info {
            text-align: center;
            margin:5px 0;
        }

        .provider-name {
            font-size: 2.5rem;
            color: #fff;
            text-transform:uppercase;
            margin:0;
        }


        .provider-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgb(0 0 0 / 50%);
            color: #fff;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 20;
            transition: background 0.3s ease;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .provider-arrow:hover {
            background: var(--primary-background);
        }

        .provider-left {
            left: 20px;
        }

        .provider-right {
            right: 20px;
        }


        @media (max-width: 768px) {
             .provider-menu{
             margin-bottom:20px;
             }
             
            .provider-carousel {
                padding: 0;
                min-height: 100px;
            }
  
            .provider-track {
                min-height: 180px;
            }
  
            .provider-card {
                width: 100px;
                height: 100px;
                border-radius: 10px;
            }
            
            
            .provider-card.left-1 {
                transform: translateX(-90px) scale(0.9);
            }
            
            .provider-card.left-2 {
                transform: translateX(-160px) scale(0.8);
            }
            
            .provider-card.left-3 {
                transform: scale(0.7);
            }
            
            
            .provider-card.right-1 {
                transform: translateX(90px) scale(0.9);
            }
            
            .provider-card.right-2 {
                transform: translateX(160px) scale(0.8);
            }
            
            .provider-card.right-3 {
                transform: scale(0.7);
            }

            
            .provider-info{
                margin:0;
            }
            
            .provider-arrow {
                width: 30px;
                height: 30px;
            }
            
            .provider-left {
                left: 5px;
            }
            
            .provider-right {
                right: 5px;
            }
            
            .provider-name {
                font-size: 1.3rem;
            }
        }

      
      
        /* Style untuk Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 100px;
            right: 300px;
            width: 50px;
            height: 50px;
            background: var(--button-masuk-color);
            color:#fff;
            text-shadow:1px 1px 3px #000;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            display: none;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            font-weight: bold;
            box-shadow: 1px 5px 1px 1px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .back-to-top:hover {
            background:#555;
            color:#ccc;
        }

        .back-to-top.show {
            display: flex;
        }
        
        
          @media (max-width: 768px) {
           .back-to-top {
            right: 10px;
            width: 40px;
            height: 40px;
            font-size: 15px;
        }
        
       }      
        
        .loading-container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            margin:0 auto;
            height: 500px;
            background: transparent;
        }
        
        .loading-gif {
            width: 80px;
            height: 80px;
            border-radius: 10px;
        }
        
        /* Alternative text jika GIF tidak load */
        .loading-text {
            text-align: center;
            font-size: 18px;
            color: #666;
            margin-top: 15px;
        }
        
      @media (max-width: 768px) {
            .loading-container {
            height: 350px;
        }
        
      } 
    
    
        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0 0 0 / 88%);
            animation: fadeIn 0.3s;
        }

        .modal-content {
            background-color: var(--secondary-background);
            margin: 10% auto;
            padding: 25px;
            border: 1px solid #333;
            border-radius: 12px;
            width: 100%;
            max-width: 450px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            text-align: center;
            position: relative;
            animation: slideIn 0.3s;
            color: white;
         }
        
        
        @media (max-width: 768px) {
        .modal-content {
            margin: 10% auto;
            max-width: 300px;
        }
  
        }
        .close-modal {
            color: #fff;
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
        }

        .close-modal:hover {
            color: #aaa;
        }

        .modal-icon {
            font-size: 50px;
            margin-bottom: 15px;
        }

        .modal-title {
            font-size: 24px;
            margin-bottom: 15px;
            font-weight: bold;
        }

        .modal-message {
            font-size: 16px;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }

        .modal-button {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s;
        }

        .modal-button.login-btn {
            background: var(--button-masuk-color);
            color: #fff;
            text-shadow: 1px 1px 3px #000;
        }
        
        .modal-button.register-btn {
            background: var(--button-daftar-color);
            color: #fff;
            text-shadow: 1px 1px 3px #000;
        }


        .modal-button.close-btn {
            background: #777;
            color: white;
        }

        .modal-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { transform: translateY(-50px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

