/* ===== BASE ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Poppins', Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}
/* Scroll funcional sem scrollbar visivel (mesma abordagem do sidebar) */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
body { -webkit-overflow-scrolling: touch; }
body {
  background-image: url('/img/fundo.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #1b1b1b;
}

#particles-js {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background: rgba(27, 27, 27, 0.3);
}

/* ===== LOGO ===== */
.logo {
  max-width: 200px;
  margin: 20px auto;
  display: block;
}

/* ===== TEXTO INTRO ===== */
.intro-text {
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
}
.intro-text h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

/* ===== TÍTULO DAS SEÇÕES ===== */
.titulo-carde h2,
.titulo-final h4 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.titulo-final h4 { font-size: 18px; }
.logo-cards { vertical-align: middle; }

/* ===== CARROSSEL ===== */
.carousel-inner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 400px;
  border-radius: 10px;
}

/* ===== GAME CARDS ===== */
.game-card {
  display: block;
  position: relative;
  border: 2px solid #00cc1b;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: #fff;
  background: #0b0b0b;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 204, 27, 0.35);
}
.game-card img {
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
}
@media (max-width: 768px) {
  .game-card img { height: 230px; }
}
.game-card .play-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== LINKS ÚTEIS ===== */
.custom-menu.container {
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
  padding: 25px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}
.image-container img {
  width: 250px;
  height: auto;
  border-radius: 15px;
  transition: all 0.3s ease;
  max-width: 100%;
}
.image-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px 3px rgba(183, 146, 45, 0.7);
}
.btn-image.mobile { display: none; }
.btn-image.desktop { display: block; }

/* Optional title rendered above each banner (affiliate-set). */
.useful-title {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  margin: 0 0 8px 0;
  padding: 4px 8px;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  line-height: 1.25;
  word-break: break-word;
}
.image-container { display: flex; flex-direction: column; align-items: center; }

@media (max-width: 767px) {
  .btn-image.mobile { display: block; }
  .btn-image.desktop { display: none; }
  /* keep each item at fixed width so 1/2/3 items stay the same size as the 4-item layout */
  .image-container { flex: 0 0 45%; max-width: 45%; text-align: center; }
  .image-container img { width: 100%; max-width: 200px; }
  .useful-title { font-size: 15px; margin-bottom: 7px; }
}

/* ===== BOTÃO MAIS JOGOS ===== */
.more-games-btn {
  margin: 40px 0;
  text-align: center;
}
.more-games-btn button {
  background-color: #b7922d;
  color: white;
  padding: 15px 30px;
  border-radius: 30px;
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.more-games-btn button:hover { background-color: #343a40; }

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: #343a40;
  color: white;
}
