
/* Global Styling */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #1a1a2e;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
    overflow-x: hidden;
  
}

.header {
    width: 100%;
    max-width: 1200px;
	padding: 20px 5px;
    text-align: center;
    background-color: #444;
    border-radius: 5px;
    margin-bottom: 10px;
    box-sizing: border-box; /* Pastikan padding dihitung di dalam width */
}


/* Logo */
.logo img {
  max-width: 150px;
  margin: 0 auto;
  display: block;
}

.logo p {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin-top: 10px;
}

.logo {
	margin-bottom:10px;
	
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.btn {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background-color: #ff88cc;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  background-color: #ff66a1;
}

/* Slider Menu */
.game-menu {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.game-menu ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: transform 0.3s ease-in-out;
  white-space: nowrap;
}

.game-menu li {
  display: inline-block;
  text-align: center;
  padding: 10px;
}

.game-menu li img {
  max-width: 50px;
  margin: 0 auto 5px auto;
}

.game-menu li a {
  text-decoration: none;
  font-size: 14px;
  color: #ffddcc;
  display: block;
}

.game-menu li a:hover {
  color: #ff88cc;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 18px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
}

.nav-btn.left {
  left: 0;
}

.nav-btn.right {
  right: 0;
}

.nav-btn:hover {
  background-color: rgba(255, 136, 204, 0.8);
}


/* Game Menu */
.game-menu ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  gap: 30px;
}

.game-menu li a {
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  color: #ffddcc;
}

.game-menu li a:hover {
  color: #ff88cc;
}

/* Container */
.container {
  width: 100%;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card Container */
.card-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 card per baris untuk desktop */
  gap: 20px; /* Jarak antar-card */
  justify-content: center;
  padding: 20px;
  max-width: 1200px; /* Membatasi lebar container */
  margin: 0 auto; /* Center alignment */
  box-sizing: border-box;
}

/* Card */
.card {
  background-color: #444;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 5px 15px;
}

/* Gambar dalam Card */
.card img {
  width: 100%;
  height: auto;
}

/* Card Content */
.card-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Judul Card */
.card h3 {
  font-size: 16px; /* Ukuran font seragam */
  font-weight: bold;
  color: #fff;
  margin: 0px 0;
  text-align: center;
}

/* Pola */
.pola {
  width: 100%;
}

.pola-row {
  display: flex;
  justify-content: space-between;
  background-color: #555;
  padding: 5px 10px;
  margin: 5px 0;
  border-radius: 5px;
  font-size: 11px; /* Ukuran font seragam */
}

/* Button */
.play-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #28a745;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px; /* Ukuran font konsisten */
  font-weight: bold;
  margin-top: 10px;
}

.play-btn:hover {
  background-color: #218838;
}
/* Percent Bar Container */
.percent-bar-container {
  position: relative;
  height: 15px;
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  margin: 0px 0; /* Jarak konsisten */
}

/* Percent Bar */
.percent-bar {
  height: 100%;
  background-color: red; /* Default warna */
  border-radius: 10px 0 0 10px;
  transition: width 1s ease, background-color 0.5s ease;
}

/* Percent Text */
.percent-text {
  position: absolute;
  top: -25px; /* Tempatkan di atas bar */
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px; /* Ukuran font yang seragam */
  font-weight: bold;
  color: #fff;
}


.badge-hot {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff4500;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
  z-index: 2;
}

.badge-popular {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #1e90ff;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
  z-index: 2;
}

.badge-new {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ff5050;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 5px;
  z-index: 2;
}

.card-image {
  position: relative;
}





/* Responsif untuk Mobile */
@media (max-width: 768px) {
  .card-container {
      grid-template-columns: repeat(2, 1fr); /* 1 card per baris untuk layar sangat kecil */
    gap: 15px; /* Jarak antar-card lebih kecil untuk mobile */
    padding: 10px; /* Padding lebih kecil untuk layar kecil */
  }
    .play-btn {
    font-size: 12px; /* Kecilkan ukuran font untuk tombol */
    padding: 8px 16px;
  }
}