/* Reset and global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --body-bg: #1a013b;
  --text-color: #000000;
  --bg-color: #ffffff;
  --border-color: #000000;
  --divider-color: #000000;
  --box-bg: #ffffff;
  --primary-color: #0d6efd;
  --card-bg: #ffffff;
  --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --container-bg: #0073dd;
  --container-max: 425px; 
}

/* Dark theme variables */
body.dark {
  --body-bg:#1a013b;
  --text-color: #ffffff;
  --bg-color: #0073dd;
  --border-color: #ffffff;
  --container-bg: #0073dd;
  --divider-color: #ffffff;
  --box-bg: #ffffff;
  --primary-color: #66b2ff;
  --card-bg: #1e1e1e;
  --card-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.05);
  --padding: 12px;
  --line-height: 1.7;
  --max-width: 428px;
}

/* Body layout */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: var(--body-bg);
  color: var(--text-color);
  font-family: Arial, sans-serif;
}

/* Main Container */
.container {
  position: relative;
  width: 100%;
  max-width: 425px;
  margin: auto;
  background-color: var(--container-bg);
  min-height: 100vh;
  overflow: hidden;
  border-radius: 0px;
}

/* Header */
.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, #ffcc00, #ffcc00); 
  padding: 15px;
  margin-bottom: 5px;
  color: white;
  position: relative;
  z-index: 5; /* keep header below sidebar now */
}

.menu-btn,
.notify-btn {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 0 10px;
}

.search-box input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
}

/* Notification button hidden state */
.notify-btn.hidden {
  display: none;
}

.promo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.promo-link:hover {
  transform: scale(1.08);
}

.promo-gif {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

/* ✅ Sidebar fixed neatly inside container */
/* ✅ Sidebar inside container (slides within container only) */
.side-menu {
  position: absolute; /* stays relative to .container now */
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: linear-gradient(to bottom, #0073dd, #0073dd);
  padding: 15px;
  display: flex;
  flex-direction: column;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.4);
  z-index: 20;
  overflow-y: auto;

  /* 👇 Hidden inside container by default */
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

/* ✅ Visible state */
.side-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

/* ✅ Mobile fix — same logic, full height */
@media (max-width: 480px) {
  .side-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 70%;
    height: 100vh;
    max-width: none;
    border-radius: 0 12px 12px 0;
    z-index: 1000;
  }
}
/* Close Button */
.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  align-self: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
}

/* Menu Items */
.menu-items {
  display: flex;
  flex-direction: column;
}

.menu-items a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: black;
  text-decoration: none;
  font-size: 15px;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-items a:hover {
  background: #f2f2f2;
  transform: translateX(5px);
}

/* Content area
.container h3 {
  margin-left: 20px;
  margin-top: 30px;
}

.container p {
  margin: 0 20px 40px;
} */

.grid_pat{
  width: 100%;
  display:flex;
  flex-direction: row;
  align-items:center;
  background: linear-gradient(to bottom, #ffcc00, #ffcc00); 
  justify-content:space-between;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;

}

.grid_pat h2{
  font-size:18px;
  color:#000000;
  font-weight:500
}

/* Game Grid Section */
.game-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 equal columns */
  gap: 8px;
  padding: 12px;
  margin: 0;
  justify-items: center;
  align-items: center;
}

/* Each game tile */
.game-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #111; /* subtle dark placeholder */
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Thumbnail wrapper */
.game-item .thum {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Image */
.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: opacity 0.4s ease, filter 0.3s ease;
}

/* Placeholder blur effect (before load) */
.placeholder-img {
  filter: blur(10px);
  opacity: 0.7;
  background: #222;
  animation: pulse 1.5s infinite ease-in-out;
}

/* Remove blur after load */
.game-item img:not(.placeholder-img) {
  filter: none;
  opacity: 1;
  animation: none;
}

/* Subtle placeholder pulse animation */
@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 0.4; }
  100% { opacity: 0.7; }
}

/* Responsive (auto adjust to 2 cols on small screens) */
@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .game-item {
    border-radius: 10px;
  }
}
/* === GAME INFO CARD === */
.game-card {
  display: flex;
  height: 80px;
  align-items: center;
  background: var(--container-bg);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-3px);
}

/* Thumbnail */
.game-thumb-box {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  margin-left: 10px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.game-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Info Text */
.game-info {
  display: flex;
  width: 100%;
  margin-left: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.game-info .game-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px; /* fits your container */
}

.game-info .game-category {
  font-size: 13px;
  color: #ffffff;

}

  .install-btn {
    display: block;
    width: 100%;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    background: linear-gradient(to bottom, #ffcc00, #ffcc00);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
  }

  .install-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
  }

  /* === GAME INFO LIST === */
.info-list {
  list-style: none;
  margin: 13px 12px 0px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--box-bg);
  color: #000000;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.info-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Left side (icon + label) */
.info-left {
  display: flex;
  align-items: center;
  gap: 0px;
  font-weight: 600;
  font-size: 14px;
}

/* SVG icons */
.info-left .icon {
  width: 0px;
  height: 0px;
  fill: currentColor;
  opacity: 0.9;
}

/* Right side (value text) */
.info-right {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  color: #000000;
  opacity: 0.85;
  white-space: nowrap;
}

/* === TAGS SECTION === */
.tags-section {
  padding: 10px 15px 20px;
}

.tags-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

/* Tag wrapper */
.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Individual tag */
.tag-item {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-color);
  background: var(--container-bg);
  cursor: default;
  transition: all 0.2s ease-in-out;
}

/* Hover effect */
.tag-item:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* === DESCRIPTION SECTION === */
.desc-section {
  padding: 10px 15px 25px;
}

.desc-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.desc-box {
  background: var(--box-bg);
  border-radius: 10px;
  padding: 12px 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  line-height: 1.6;
  color: var(--text-color);
  font-size: 14px;
  text-align: justify;
}

.desc-box p {
  margin: 0;
  white-space: normal;
}

.desc-box a {
  color: var(--primary-color);
  text-decoration: none;
  word-break: break-all;
}

.desc-box a:hover {
  text-decoration: underline;
}

/* Dark Mode */
body.dark .desc-box {
  background: #0073dd;
  box-shadow: 0 1px 3px rgba(255,255,255,0.05);
}

/* === HOW TO PLAY SECTION === */
.howto-section {
  padding: 10px 15px 25px;
}

.howto-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 8px;
}

.howto-box {
  background: var(--box-bg);
  border-radius: 10px;
  padding: 12px 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.howto-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
}

/* Dark mode */
body.dark .howto-box {
  background: #0073dd;
  box-shadow: 0 1px 3px rgba(255,255,255,0.05);
}


/* === RATINGS SECTION === */
.ratings-section {
  padding: 10px 15px 25px;
}

.ratings-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.ratings-box {
  display: flex;
  gap: 15px;
  background: var(--box-bg);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Left side - average rating */
.ratings-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
}

.ratings-left .average {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  line-height: 1;
}

.ratings-left .total {
  font-size: 13px;
  color: #000000;
}

/* Right side - bar list */
.ratings-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #000000;
}

.bar {
  flex: 1;
  height: 10px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
}

.bar .fill {
  height: 100%;
  background: #0073dd; /* your gradient purple */
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* Rate Now box */
.rate-now {
  text-align: center;
  background: var(--box-bg);
  border-radius: 10px;
  padding: 12px 15px;
  margin-top: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.rate-now h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}

.rate-now p {
  font-size: 13px;
  color: #000000;
  margin: 0;
}

/* Dark Mode */
body.dark .ratings-box,
body.dark .rate-now {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(255,255,255,0.05);
}

body.dark .bar {
  background: #333;
}
/* 🎮 Game Iframe Section */
.iframe_box {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  transition: height 0.4s ease-in-out;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Mask and overlay */
.mask_thum {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  pointer-events: none; /* ✅ allow clicks to pass through */
}

/* Action (Play + Thumb) */
.action {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: auto;
}

/* Thumbnail */
.action .thum {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}
.action .thum img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
}

/* Play Button */
.play-btn {
  background: linear-gradient(135deg, #7b2ff7, #9c4eff);
  color: #fff;
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: 0.3s ease;
  position: relative;
  z-index: 5; /* ✅ always above everything */
  pointer-events: auto;
}
.play-btn:hover {
  background: linear-gradient(135deg, #8b4fff, #aa6fff);
}

/* Expanded iframe */
.iframe_box.active {
  height: 600px;
}
.iframe_box.active .mask_thum,
.iframe_box.active .action {
  opacity: 0;
  pointer-events: none;
}

/* Game container fix */
.game-container {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: relative;
  z-index: 1; /* ⬇ below play button initially */
  pointer-events: none; /* 🧩 prevent blocking clicks */
}
.iframe_box.active .game-container {
  opacity: 1;
  pointer-events: all; /* ✅ enable interaction only when active */
  z-index: 3;
}

/* Iframe styling */
.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  display: block;
}
/* Carousel container */
.game-carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  margin: 10px auto;
}

/* Carousel track */
.carousel-slides {
  display: flex;
  gap: 15px;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

/* Each slide */
.carousel-slide {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

/* Default image look */
.carousel-slide img {
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
  height: 280px;
  transition: transform 0.3s ease-in-out;
}

/* Landscape images */
.carousel-slide.landscape img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Portrait images */
.carousel-slide.portrait img {
  width: auto;
  height: 420px;
  object-fit: contain;
}

/* Buttons */
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-button.left { left: 10px; }
.carousel-button.right { right: 10px; }

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.8);
}


/* Container for the "Get the Game" section */
.get-the-game-container {
  padding: 0px 20px;
  background: var(--bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Section Title */
.get-game-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color);
}

/* Get Game Buttons */
.get-game-btn {
  margin-bottom: 20px;
}

.get-game-btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: #68a0fa; /* Default color for Google Play button */
}

.get-game-btn a:hover {
  background-color: #34a853;
}

.google-play-btn {
  background-color: #34a853; /* Google Play button color */
}

.app-store-btn {
  background-color: #333333; /* App Store button color */
}

.get-game-btn i {
  margin-right: 10px;
  font-size: 20px;
}

/* Links below the buttons */
.get-game-btn .google-link,
.get-game-btn .app-link {
  font-size: 14px;
  color: #777;
  margin-top: 5px;
}

/* Verified Antivirus Info */
.antivirus-info {
  font-size: 14px;
  color: #777;
  padding: 10px 0;
}

/* 🔍 SEARCH RESULTS LIST */
.search-results {
  width: 100%;
  padding: 15px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-results li {
  display: flex;
  align-items: flex-start;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.search-results li:hover {
  background: #252525;
  transform: translateY(-2px);
}

.search-results .thum {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 15px;
}

.search-results .thum img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-results dl {
  flex: 1;
  color: #fff;
}

.search-results dt h3 {
  font-size: 16px;
  margin-bottom: 5px;
  color: #fff;
}

.search-results .type {
  font-size: 13px;
  color: #bbb;
  margin-bottom: 6px;
}

.search-results .des {
  font-size: 13px;
  line-height: 1.4;
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* show only 2 lines */
  -webkit-box-orient: vertical;
}

/* ❌ NO RESULT SECTION */
.no-result-box {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 15px;
  color: #ccc;
}

.no-result-box img {
  width: 160px;
  height: auto;
  margin-bottom: 20px;
  opacity: 0.9;
}

.no-result-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.no-result-box p {
  font-size: 14px;
  color: #aaa;
}


/* === FOOTER STYLING === */
.footer {
  margin-top: auto; /* pushes footer to bottom */
  width: 100%;
  background: linear-gradient(to bottom, #ffcc00, #ffcc00); 
  color: #000000;
  text-align: center;
  padding: 30px 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

/* ensure footer stays inside .container layout */
.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* keeps footer at bottom */
}

.footer-content dl {
  margin-bottom: 15px;
}

.footer-content dt {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-content dd {
  font-size: 14px;
  line-height: 1.6;
  color: #000000;
  max-width: 360px;
  margin: 0 auto;
}

.footer-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 18px 0;
  font-size: 20px;
  color: #000000;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 12px;
}

.footer-nav a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #000000;
  text-decoration: underline;
}

.footer-copy {
  font-size: 13px;
  color: #000000;
  margin-top: 5px;
}
.banner_ad {
  margin-bottom:5px;
  display:flex;
  justify-content: center;
  align-items:center;
  flex-direction:column}

.banner_ad::before {
  content:"Advertisement";
  font-size:12px;
  margin-top:1px;
  color:#ffffff}

    /* Pop up for ads show in index page */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    opacity: 0;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 1000;
    pointer-events: none;
}

.popup-content {
    position: relative;
    height: auto;
    border: 1px solid #888;
    color: #fff;
    border-radius: 5px;
    margin: 0 auto;
    width: 600px;
    padding: 10px;
    position: absolute;
    pointer-events: auto;
    z-index: 1001;
}

.close-popup {
    outline: none;
    background-color: #ffffff;
    border: 1px solid #000;
    border-radius: 20%;
    color: #000;
    cursor: pointer;
    font-family: arial;
    font-size: 25px;
    font-weight: 700;
    height: 30px;
    line-height: 25px;
    margin-bottom: 10px;
    position: relative;
    text-align: center;
    width: 30px;
    z-index: 1003;
}

@media screen and (max-width: 640px) {
    .popup-content {
        width: 350px;
    }
}

@media screen and (max-width: 470px) {
    .popup-content {
        width: 100%;
    }
}





