:root {
    --bg-body: #0b1a3a;
    --text-color: #fff;
    --header-bg: #0b1a3a;
    --card-bg: #061529;
    --bar-bg: #222;
    --bar-text: #ffffff;
    --footer-bg: #0b1a3a;
  }
  
  body.dark-mode {
    --bg-body: #7d00a3;
    --text-color: #ffffff;
    --header-bg: #3f0052;
    --card-bg: #3f0052;
    --bar-bg: #ccc;
    --bar-text: #222;
    --footer-bg: #7d00a3;
  }
  
body {
    margin: 0;
    background-color: #0b1a3a;
    font-family: Arial, sans-serif;
    color: #fff;
  }
  
  /* Tambahan header */
header {
    background-color: #1a2540;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
  }
  
  .logo {
    font-size: 20px;
    font-weight: bold;
    color: #f1c40f;
  }
  .logo img {
    height: 65px;
    width: auto;
  }
  @media (max-width: 768px) {
    .logo img {
      height: 55px;
    }
  }  
 
  nav {
    display: flex;
    gap: 20px;
  }
  
  nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    color: #f1c40f;
  }
  
  /* Hamburger */
.hamburger {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
  }
  
  /* Fullscreen Overlay Menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 20, 40, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease-in-out;
    z-index: 999;
  }
  
  .nav-overlay a {
    color: white;
    font-size: 22px;
    margin: 15px 0;
    text-decoration: none;
    font-weight: bold;
  }
  
  .nav-overlay a:hover {
    color: #f1c40f;
  }
  
  .nav-overlay.active {
    right: 0;
  }
  
  /* Close button inside nav */
  .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: white;
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .hamburger {
      display: block;
    }
  
    nav:not(.nav-overlay) {
      display: none; /* Hide desktop nav */
    }
  }  
  
  .logo {
    font-size: 20px;
    font-weight: bold;
    color: #f1c40f;
  }
  
  nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    color: #f1c40f;
  }
  
  main {
    padding: 20px;
  }
  
  .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 5px;
  }
  
  /* Ubah jadi 9 kolom untuk desktop */
  @media (min-width: 1024px) {
    .game-grid {
      grid-template-columns: repeat(9, 1fr);
    }
  }
  
  .game-card {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 2px solid #ffd700;
    animation: blinkBorder 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    padding: 15px;
    margin: 10px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  @media (max-width: 480px) {
    .game-card {
      margin: 8px;
      padding: 12px;
    }
  
    .game-card img {
      max-width: 100px;
    }
  }
  
  @keyframes blinkBorder {
    0% {
      border-color: #ffd700;
      box-shadow: 0 0 5px #ffd700;
    }
    25% {
      border-color: #ff69b4;
      box-shadow: 0 0 10px #ff69b4;
    }
    50% {
      border-color: #00ffff;
      box-shadow: 0 0 10px #00ffff;
    }
    75% {
      border-color: #ff69b4;
      box-shadow: 0 0 10px #ff69b4;
    }
    100% {
      border-color: #ffd700;
      box-shadow: 0 0 5px #ffd700;
    }
  }
  
  @media (min-width: 768px) {
    .game-card {
      animation: blinkBorder 2s infinite;
    }
  }
  
  
  .game-card img {
    width: 100%;
    max-width: 155px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    padding: 15px 0; /* padding atas & bawah */
    transition: transform 0.3s ease;
  }  
  
  @media (min-width: 768px) {
    .game-card img {
      max-width: 135px;
    }
  } 
  .game-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px 4px rgba(255, 215, 0, 0.6); /* efek glow emas */
    z-index: 2;
  }
  .game-card img {
    transition: transform 0.3s ease;
  }
  
  .game-card:hover img {
    transform: scale(1.1) rotate(-1deg);
  }
     
  
  
  .game-name {
    margin-top: 8px;
    font-weight: bold;
    font-size: 14px;
  }
  
  .rtp-bar {
  margin: 8px 10px 5px;
  background-color: #222;
  border-radius: 10px;
  overflow: hidden;
  height: 30px; /* sebelumnya 20px */
  position: relative;
}

.rtp-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
  transition: width 0.4s ease;
}

.rtp-bar-fill .warp-bg {
  position: absolute;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.1) 5px,
    transparent 5px,
    transparent 10px
  );
  animation: warpMove 2s linear infinite;
  opacity: 1;
  top: 0;
  left: 0;
  z-index: 1;
}

.rtp-bar .rtp-value {
  position: absolute;
  right: 10px;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 14px; /* sebelumnya 12px */
  font-weight: bold;
  color: #f1c40f;
  z-index: 2;
}
.rtp-bar-fill {
    transition: width 0.4s ease, background-color 0.4s ease;
  }
  
  
  footer {
    background-color: #1a2540;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    font-size: 14px;
  }
  /* Dark Mode Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: 15px;
    z-index: 1002;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: #4CAF50;
  }
  
  input:checked + .slider:before {
    transform: translateX(24px);
  }
  
  body {
    background-color: var(--bg-body);
    color: var(--text-color);
  }
  
  header {
    background-color: var(--header-bg);
  }
  
  footer {
    background-color: var(--footer-bg);
  }
  
  .game-card {
    background-color: var(--card-bg);
    color: var(--text-color);
  }
  
  .rtp-bar {
    background-color: var(--bar-bg);
  }
  
  .rtp-bar .rtp-value {
    color: var(--bar-text);
  }
  
  /* Running Banner + Warp Effect */
.running-banner {
    position: relative;
    background: linear-gradient(90deg, #685500, #b68e2e);
    overflow: hidden;
    height: 40px;
    display: flex;
    align-items: center;
    z-index: 1000;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 2px solid gold;
  }
  
  .running-banner marquee {
    width: 100%;
    z-index: 2;
    color: #fff;
    white-space: nowrap;
  }
  
  .warp-bg {
    position: absolute;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.1) 5px,
      transparent 5px,
      transparent 10px
    );
    animation: warpMove 1.5s linear infinite;
    z-index: 1;
    opacity: 0.3;
  }
  
  @keyframes warpMove {
    0% {
      transform: translateX(0%);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  @media (max-width: 600px) {
    .running-banner {
      font-size: 14px;
      height: 35px;
    }
  }
  .banner {
    text-align: center;
    margin-top: 1rem;
  }
  .banner img {
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
  }
  
  .site-info {
    background: var(--card-bg);
    color: var(--text-color);
    max-width: 1000px;
    margin: 20px auto;
    padding: 0px;
    border: 0.1px solid rgb(255, 255, 255);
    border-radius: 1px;
    font-size: 1rem;
  }
  
  .site-info table {
    width: 100%;
    border-collapse: collapse;
  }
  .site-info td {
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.247);
  }
  
  .winrate-fill {
    display: inline-block;
    background: linear-gradient(to right, #00ffcc, #00ccff);
    color: #000;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: bold;
  }
  .jam-gacor-slot {
    font-size: 12px;
    color: #ffd700;
    margin-top: 6px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 6px;
    border-radius: 6px;
  }
  body.dark-mode .jam-gacor-slot {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.1);
  }
  .filter-wrapper {
    background-color: var(--card-bg); /* ✅ Sudah sesuai tema */
    border: 2px solid #ffffff;
    border-radius: 1px;
    padding: 20px;
    margin: 20px auto;
    max-width: 960px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
  }  
  body.dark-mode .filter-wrapper {
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  }
  

  .filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .filter-buttons button {
    background: linear-gradient(1deg, #6a1b9a, #0b1a3a);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 110px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s, background 0.3s;
  }

  .filter-buttons button:hover {
    transform: scale(1.05);
    background: linear-gradient(1deg, #1d4396, #8222be);
  }

  #searchGame {
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #f1c40f;
    font-size: 14px;
    width: 250px;
  }

  @media (max-width: 600px) {
    .filter-buttons {
      flex-direction: column;
      align-items: center;
    }

    #searchGame {
      width: 100%;
      max-width: 300px;
    }
  }
    
  /* Game Slider Styles */
.game-slider-section {
    margin: 10px auto;
    max-width: 1000px;
    padding: 10px;
}

.game-slider-container {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 1px;
    padding: 20px 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 2px solid transparent;
    box-sizing: border-box;
    animation: neonPulse 2s infinite alternate;
}
.game-slider-container {
    border: 2px solid #ffd700; /* Warna awal blink */
    animation: blinkBorder 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }


@media (min-width: 768px) {
    .game-slider-container {
      animation: blinkBorder 2s ease-in-out infinite;
    }
  }
  

.game-slider-wrapper {
    overflow: hidden;
    margin: 0 -10px;
}

.game-slider {
    display: flex;
    gap: 10px;
    transition: transform 0.5s ease;
}

.slider-game-item {
    flex: 0 0 auto;
    width: 160px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slider-game-item:hover {
    transform: scale(1.05);
}

.slider-game-content {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slider-game-content img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.slider-game-item:hover img {
    transform: scale(1.1);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background-color: rgba(192, 255, 0, 0.3);
    color: #c0ff00;
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
    .game-slider-container {
        padding: 15px 50px;
    }
    
    .slider-game-item {
        width: 130px;
    }
    
    .slider-game-content img {
        height: 130px;
    }
}

@media (max-width: 480px) {
    .game-slider-container {
        padding: 10px 30px;
    }
    
    .slider-game-item {
        width: 100px;
    }
    
    .slider-game-content img {
        height: 100px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}
 
/* RESPONSIVE: Filter Wrapper */
@media (max-width: 768px) {
    .filter-wrapper {
      padding: 15px;
      margin: 10px;
    }
  
    .filter-buttons button {
      padding: 10px 20px;
      width: 100%;
    }
  
    .filter-buttons {
      gap: 8px;
    }
  
    #searchGame {
      width: 100%;
    }
  }
  
  /* RESPONSIVE: Site Info */
  @media (max-width: 768px) {
    .site-info {
      font-size: 14px;
      padding: 0px;
      margin: 10px;
      overflow-x: auto;
    }
  
    .site-info table {
      font-size: 13px;
    }
  
    .site-info td {
      padding: 6px;
    }
  }
  
  /* RESPONSIVE: Banner */
  @media (max-width: 768px) {
    .banner {
      margin-top: 10px;
      padding: 0 10px;
    }
  
    .banner img {
      max-width: 100%;
      height: auto;
      border-radius: 10px;
    }
  }
  /* Efek blink untuk border seperti game-card */
.filter-wrapper,
.site-info {
  border: 2px solid #ffd700;
  animation: blinkBorder 4s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  transition: border-color 0.3s ease;
}
@media (min-width: 768px) {
    .filter-wrapper,
    .site-info {
      animation: blinkBorder 2s ease-in-out infinite;
    }
  }
  
  .rtp-update {
    background: linear-gradient(to bottom, #163270, #8723c5);
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 250px;
    border-radius: 8px;
    margin: 15px auto;
    text-align: left;
    max-width: 960px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    flex-wrap: wrap;
  }
  
  body.dark-mode .rtp-update {
    background: linear-gradient(to right, #ddab08, #530053);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  }
  
  .suka-rating {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    gap: 5px;
    flex-wrap: wrap;
  }
  
  .suka-icon {
    font-size: 18px;
    margin-right: 4px;
    color: #ffd700;
  }
  
  .suka-stars {
    display: inline-block;
    color: #ffd700;
    font-size: 18px;
  }
  
  body.dark-mode .suka-rating {
    color: #fff;
  }
  
  body.light-mode .suka-rating {
    color: #000;
  }
  
  .rtp-rating-box {
    background-color: var(--card-bg);
    border: 2px solid #ffd700;
    border-radius: 1px;
    padding: 10px 51px;
    margin: 10px auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: blinkBorder 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    transition: border-color 0.3s ease;
    flex-wrap: wrap;
  }
  
  body.dark-mode .rtp-rating-box {
    background-color: var(--card-bg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }
  
  @media (min-width: 768px) {
    .rtp-rating-box {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  }
  
  @media (max-width: 767px) {
    .rtp-update {
      padding: 10px;
      font-size: 14px;
      text-align: center;
      justify-content: center;
    }
  
    .suka-rating {
      font-size: 14px;
      justify-content: center;
      text-align: center;
    }
  
    .rtp-rating-box {
      padding: 12px 16px;
    }
  }
  @media (max-width: 767px) {
    .rtp-rating-box {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 16px;
      gap: 12px;
    }
  
    .rtp-update {
      width: 90%;
      justify-content: center;
      text-align: center;
      padding: 10px;
    }
  
    .suka-rating {
      justify-content: center;
      text-align: center;
    }
  }
  
  /* Pastikan .rtp-rating-box pakai flex dan wrap untuk responsive layout */
  .rtp-rating-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }
  .img-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ffdd009d, #a200ff9f);
    color: #ffffff;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    box-shadow: 0 0 10px rgba(255, 217, 0, 0.459);
  }
  
  .img-wrapper:hover .play-button {
    opacity: 1;
  }
  .auth-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
    max-width: 1000px;
    animation: blinkBorder 4s ease-in-out infinite;
    border: 2px solid #ffd700;
    padding: 15px 0;
    border-radius: 1px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }
  
  .btn-auth {
    background: linear-gradient(1deg, #0b1a3a, #6a1b9a);
    color: #fff;
    text-decoration: none;
    padding: 12px 200px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.3s, background 0.4s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.479);
  }
  
  .btn-auth:hover {
    transform: scale(1.05);
    background: linear-gradient(1deg, #9b59b6, #0b1a3a);
  }
  
  /* Responsive untuk mobile */
  @media (max-width: 600px) {
    .auth-buttons {
      flex-direction: column;
      gap: 10px;
      text-align: center;
    }
  
    .btn-auth {
      width: 80%;
      margin: 0 auto;
      font-size: 14px;
      padding: 10px 20px;
    }
  }
  .floating-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #0b1a3a, #6a1b9a);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 21px 0;
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
    border-top: 2px solid gold;
    font-weight: bold;
  }
  
  .floating-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #0b1a3a, #6a1b9a);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 0;
    z-index: 999;
    border-top: 2px solid gold;
  }
  
  .floating-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 15px;
    font-weight: bold;
    flex: 1;
    transition: transform 0.3s ease;
  }
  
  .floating-menu a img {
    width: 45px;
    height: 45px;
    margin-bottom: 4px;
  }
  
  .floating-menu a:hover {
    transform: scale(1.1);
    color: #ffeb3b;
  }
  
  #scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 100px; /* di atas floating menu */
    right: 10px;
    z-index: 999;
    font-size: 30px;
    background: linear-gradient(1deg, #123d9b, #9d00ff);
    color: white;
    border: none;
    border-radius: 1px; /* dari 50% jadi kotak dengan sudut sedikit membulat */
    padding: 1px 1px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  #scrollToTopBtn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #9d00ff, #123d9b);
  }
  
#slide-left1 {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(149deg, rgb(0 0 0) -5%, rgb(0, 58, 97) 27%, rgb(0, 44, 70) 39%, rgb(0, 58, 97) 63%, rgb(0, 44, 70) 80%, rgb(0, 58, 97) 98%);
    z-index: 99999;
    width: 170px;
    left: -180px;
    min-height: 220px;
    text-align: center;
    transition: left 0.4s ease-in-out;
    border-radius: 0px 12px 32px 0;
    border: 1px solid rgb(0, 119, 255);
}

#toggle-left1 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 176px;
    cursor: pointer;
    z-index: 100000;
    width: 55px;
}

.card-toggle {
    padding-top: 10px;
    padding-bottom: 10px;
    width: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-img {
    width: 150px;
    height: auto;
    margin-bottom: 5px;
    margin-left: 2px;
}

.hours {
    margin: 20px;
}

.img-kontak {
    width: 50px;
    margin: 10px;
    padding-bottom: 9px;
    border-bottom: 5px double rgb(0, 153, 255);
    transition: transform 0.3s ease-in-out;
}

.img-kontak:hover {
    border-bottom: 5px double rgb(255, 230, 0);
    transform: scale(1.1);
}

.daftar-btn-bawah {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.open {
    left: 0 !important;
}
  
  