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/ZYQ7F14L/e89d2cfe43ed515afc6fa94297caaed0.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: 70px;
  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 {
  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: #ad0000; /* merah */
}

.btn-login:hover {
  background-color: #c00000;
}

.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, #00d400 20%, #00d400 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: #800000;
  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: #1e1e1e2f;
  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 6px 8px rgba(0, 0, 0, 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 {
  height: 23px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2b2f36, #1b1e24);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.6);
}

/* Isi bar */
.rtp-fill {
  --c1: #28d17c;
  --c2: #1ca85e;
  width: calc(var(--rtp) * 1%);
  height: 100%;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  position: relative;
  display: flex;
  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 glossy */
.rtp-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgb(255, 255, 255) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Teks persentase */
.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;
}

/* Animasi cahaya bergerak */
@keyframes shine {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.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;
  }
}
