/* ========== GLOBAL RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
  color: #333;
  background-color: #c1c4c6;
}

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  max-width: 800px;
  margin: auto;
  padding: 1rem;
  background-color: #fff;
}

/* ========== HEADER & FOOTER ========== */
header, footer {
  background-color: #c1c4c6;
  color: #333;
  text-align: center;
}

header .container,
footer .container {
  background: none;
  padding: 0;
  border-radius: 0;
}

/* ========== LOGO ========== */
.logo-container {
  background-color: #2b2a2b;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.1rem 1rem;
  margin-bottom: 1rem;
}

.logo-img,
.popup-logo-img {
  max-height: 70px;
  width: auto;
}

.popup-logo-img {
  max-height: 40px;
}

/* ========== HEADLINE ========== */
h1 {
  font-size: 2rem;
  margin: 0.5rem 0;
}

.jam-realtime {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

/* ========== BUTTON CONTAINER (Login/Daftar) ========== */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 5px;
  margin-bottom: 1rem;
}

.btn {
  padding: 0.5rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background-color: #4b9411;
  color: #f5f5f5;
  border: 0.5px solid #397a06;
  transition: opacity 0.3s;
}

.btn:hover {
  opacity: 0.8;
}

/* ========== GAME GRID ========== */
.games-grid-container {
  background-color: #E4E4E4;
  padding: 1rem;
  margin-top: 1rem;
}

.games-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  margin-bottom: 1.5rem;
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.game-item img {
  width: 100%;
  height: auto;
  border-radius: 15px 15px 0 0;
  z-index: 99;
  display: block;
}

/* ========== MEJA HOKI BUTTON ========== */
.btn-meja-hoki {
  width: 100%;
  height: 48px;
  background-color: #4b9411;
  color: black;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 15px 15px;
  margin-top: -25px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.3rem;
}

.btn-meja-hoki .blink-text {
  animation: blink-text 3s infinite;
}

@keyframes blink-text {
  0%, 100% {
    color: black;
  }
  50% {
    color: white;
  }
}

/* ========== MAIN CONTENT SECTIONS ========== */
main section {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background-color: #f7f7f7;
}

img.responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ========== POPUP OVERLAY & CONTENT ========== */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: popFade 0.3s ease-out;
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

.popup-header {
  background-color: #2b2a2b;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
}

.popup-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  color: #4b9411;
  text-align: center;
}

.popup-content p {
  margin: 0.4rem 0;
}

/* ========== TUTUP BUTTON ========== */
.btn-tutup-container {
  text-align: center;
  margin-top: 1.5rem;
}

.btn-popup-action {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-main {
  padding: 0.6rem 2.3rem;
  background-color: #4b9411;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-tutup {
  padding: 0.6rem 2.3rem;
  background-color: #4b9411;
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ========== ANIMATIONS ========== */
@keyframes popFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .sticky-mobile {
    position: sticky;
    top: 0;
    background-color: #c1c4c6;
    z-index: 999;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 1rem 0.75rem;
  }
}

.provider-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px auto;
}

.provider-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #222;
  border-radius: 8px;
  padding: 10px 15px;
  transition: transform 0.2s ease;
}

.provider-bar a:hover {
  transform: scale(1.05);
}

.provider-bar img {
  width: 120px;
  height: 60px;
  object-fit: contain;
}
