body {
  font-family: Arial, sans-serif;
  color: white;
  margin: 0;
  padding: 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #3f3f41;
  background: url("https://i.postimg.cc/qRK2tY24/c2baad83572f2606b2a62659deecadc2.jpg")
    no-repeat center center fixed;
  background-size: cover;
}

.header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  background: #000000;
  padding: 10px;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0);
  margin-bottom: 10px;
}

.logo {
  height: 90px;
  width: 250px;
  margin-top: 0px;
  margin-bottom: 0px;
}

.slider {
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
  position: relative;
}

.slide {
  display: none;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 15px #ff010100;
}

.slide.active {
  display: block;
}

.images-box {
  background-color: #1e1e1e79;
  max-width: 960px;
  background: #1e1e1e79;
  margin: auto;
  display: grid;
}

.images {
  width: 200px;
  max-width: 500px;
  margin: 0px auto;
  position: relative;
  margin-top: -5px;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  padding: 15px 140px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  color: rgb(255, 255, 255);
  min-width: 160px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn-login {
  background-color: #5c0e00; /* merah */
}

.btn-login:hover {
  background-color: #5c0e00;
}

.btn-daftar {
  background-color: #d6a307; /* kuning emas */
}

.btn-daftar:hover {
  background-color: #b98f00;
}

@media (max-width: 500px) {
  .btn {
    width: 100%;
  }
}

.hover-btn:hover {
  opacity: 100%;
}

.hover-btn {
  position: absolute;
  opacity: 0;
  background-color: rgba(0, 211, 226, 0.39);
  background-repeat: no-repeat;
  background-attachment: fixed;
  transition: all 0.1s ease-in-out;
  z-index: 10;
  width: 80px;
  height: 80px;
}

.play-btn:hover {
  background: #12d400;
}
a:hover {
  text-decoration: none;
  color: rgb(0, 0, 0);
}
a:hover {
  color: #000000;
  text-decoration: none;
}
.play-btn {
  font-size: 12px;
  text-decoration: none;
  color: rgb(0, 0, 0);
  text-align: center;
  align-items: center;
  /* width: 100%; */
  margin-top: -2%;
  padding: 5px 15px 5px;
  display: block;
  margin-left: 0px;
  margin-right: 0px;
  background-image: linear-gradient(to bottom, #d4c600 20%, #d4c600 47%);
  color: #000000;
  border-radius: 0px;
  transition: all 0.3s ease;
}

a {
  color: #007bff;
  text-decoration: none;
  background-color: transparent;
}

p {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  background-color: transparent;
}

.carousel-wrapper {
  position: relative;
  max-width: 980px;
  margin: auto;
  overflow: hidden;
  background-color: #0000008c;
  padding: 5px;
  border: 1px solid #000000;
  margin-bottom: 5px;
  border-radius: 8px;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
  overflow-x: hidden;
}

.carousel-item {
  flex: 0 0 20%;
  height: 130px;
  background-color: #5c0e00;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 0px;
  border-radius: 6px;
  margin: 0 5px;
}

.carousel-item img {
  width: 100px;
  height: auto;
  margin-bottom: 0px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(68, 68, 68, 0);
  color: rgb(255, 255, 255);
  border: none;
  font-size: 54px;
  padding: 8px;
  cursor: pointer;
  z-index: 10;
  height: 150px;
}

.arrow.left {
  left: -10px;
}

.arrow.right {
  right: -10px;
}

.arrow:hover {
  background-color: rgba(68, 68, 68, 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Carousel Container ===== */
.game-container {
  max-width: 960px;
  background: #1e1e1e79;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* default: 5 kolom di desktop */
  gap: 10px;
  justify-items: center;
}

/* Jika layar <= 768px (tablet/HP), jadi 3 kolom */
@media (max-width: 768px) {
  .game-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Jika layar <= 480px (HP kecil), jadi 3 kolom */
@media (max-width: 480px) {
  .game-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Game Card ===== */
.game-card {
  background: #1e1e1e8f;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 180px;
  box-shadow: 0 9px 20px rgb(255, 38, 0);
  text-align: center;
  padding: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Game Image */
.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #333;
  border-radius: 8px;
}

/* Game Title */
.game-title {
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  margin-top: 8px;
}

/* ===== RTP BAR ===== */
.rtp-bar {
  background: #333;
  border-radius: 20px;
  overflow: hidden;
  margin: 8px 0;
  height: 26px;
  position: relative;
}

.rtp-fill {
  --c1: #28d17c;
  --c2: #1ca85e;
  width: calc(var(--rtp) * 1%);
  height: 100%;
  width: 45%; /* Sesuaikan persentase RTP */
  position: relative;
  display: flex;
  overflow: hidden;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  box-shadow: inset 0 0 10px rgb(0, 0, 0), 0 0 10px rgb(40, 209, 125);
  animation: shine 3s linear infinite;
}

/* Efek aliran */
.rtp-fill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    rgba(95, 95, 95, 0.418) 0px,
    rgba(255, 255, 255, 0.267) 25px,
    transparent 50%,
    transparent 50%
  );
  background-size: 50px 50px; /* ukuran pola biar mulus */
  animation: flow 1s linear infinite;
}

@keyframes flow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50px);
  }
}

.rtp-text {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  color: #000000;
  text-shadow: 0 1px 2px rgb(0, 0, 0);
  letter-spacing: 0.4px;
  z-index: 1;
}

.green {
  background: linear-gradient(120deg, #00e676, #00c853, #00e676);
}

.yellow {
  background: linear-gradient(120deg, #fff000, #ffcb00, #fff000);
}

.orange {
  background: linear-gradient(120deg, #ff5722, #ff7043, #ff5722);
  color: #000000;
}

@keyframes gradientFlow {
  30% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.title {
  font-size: 14px;
  font-weight: bold;
  margin: 8px 0 12px;
}

.copyright {
  color: #ff0000;
  margin-bottom: 60px;
  padding: 10px;
  margin-left: -30px;
  font-size: 84px;
}

/* ===== Responsive Styles for Mobile ===== */
@media (max-width: 768px) {
  .game-card {
    max-width: 160px;
  }

  .game-title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .game-card {
    max-width: 190px;
  }

  .game-title {
    font-size: 11px;
  }
}
