html, body {
  width: 100%;
  min-width: 0;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  height: 100%;
  scroll-behavior: smooth;
    margin: 0;

}
/* Snow enabled only in season */
/* ❄️ SNOW SEASON ENABLE */
.snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999999;
  overflow: hidden;
  display: none;
}

body.snow-season .snow {
  display: block !important;
}

/* ❄️ Snowflakes */
.snow span {
  position: absolute;
  top: -10%;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #fff 40%, rgba(255,255,255,0.4) 70%, transparent 80%);
  border-radius: 50%;
  opacity: 0.9;
  animation-name: snow-fall, snow-sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

/* ❄️ Random sizes & speeds */
.snow span:nth-child(1)  { left: 5%;  width: 4px; height: 4px; animation-duration: 10s, 4s; }
.snow span:nth-child(2)  { left: 12%; width: 6px; height: 6px; animation-duration: 14s, 5s; }
.snow span:nth-child(3)  { left: 20%; width: 3px; height: 3px; animation-duration: 9s, 3s; }
.snow span:nth-child(4)  { left: 30%; width: 7px; height: 7px; animation-duration: 15s, 6s; }
.snow span:nth-child(5)  { left: 40%; width: 5px; height: 5px; animation-duration: 11s, 4s; }
.snow span:nth-child(6)  { left: 50%; width: 4px; height: 4px; animation-duration: 13s, 5s; }
.snow span:nth-child(7)  { left: 60%; width: 6px; height: 6px; animation-duration: 16s, 6s; }
.snow span:nth-child(8)  { left: 70%; width: 3px; height: 3px; animation-duration: 8s, 3s; }
.snow span:nth-child(9)  { left: 80%; width: 5px; height: 5px; animation-duration: 12s, 4s; }
.snow span:nth-child(10) { left: 90%; width: 4px; height: 4px; animation-duration: 14s, 5s; }
.snow span:nth-child(11) { left: 15%; width: 6px; height: 6px; animation-duration: 18s, 6s; }
.snow span:nth-child(12) { left: 25%; width: 3px; height: 3px; animation-duration: 10s, 3s; }
.snow span:nth-child(13) { left: 55%; width: 7px; height: 7px; animation-duration: 20s, 7s; }
.snow span:nth-child(14) { left: 75%; width: 4px; height: 4px; animation-duration: 12s, 4s; }
.snow span:nth-child(15) { left: 95%; width: 5px; height: 5px; animation-duration: 16s, 6s; }

/* Falling */
@keyframes snow-fall {
  from { transform: translateY(-10vh); }
  to   { transform: translateY(110vh); }
}

/* Wind sway */
@keyframes snow-sway {
  0% { margin-left: 0; }
  50% { margin-left: 20px; }
  100% { margin-left: 0; }
}

/* Theme support */
body.dark .snow span {
  background: radial-gradient(circle, #fff 40%, rgba(255,255,255,0.5) 70%, transparent 80%);
}

body:not(.dark) .snow span {
  background: radial-gradient(circle, #eee 40%, rgba(200,200,200,0.4) 70%, transparent 80%);
}


body {
  --navbar-bg: #fdfefb;
  --navbar-link: #222; /* Black text for light navbar */
  --navbar-menu: #535f6d; /* Black text for light navbar */
  --navbar-box: #fffffc; /* Black text for light navbar */
  --navbar-mod-text: #ab6200; /* Mod badge color */
  --navbar-path: #e9fdf4;
  --navbar-version: #535f6d;
  --navbar-mod: #f6f9bf;
  background: #f9faf9;
  color: #222;
  font-family: Arial, sans-serif;
  margin: 0;
    max-width: 100vw;
    margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0; /* Remove extra bottom padding */
}

body.dark {
  --navbar-bg: #192535; /* Dark navbar for dark mode */
  --navbar-link: #f6f6f8; /* Light text for dark navbar */
  --navbar-menu: #d0d5d9; /* Black text for light navbar */
  background: #111828;
  color: #f5f5f5;
  --navbar-mod: #282022; /* Mod badge color */
  --navbar-mod-text: #ece03f; /* Mod badge color */
  --navbar-path: #0b242b; /* Darker path for dark mode */
  --navbar-box: #1d2938; /* Black text for light navbar */

}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  padding: 0 2.5rem 0 1.5rem;
  min-height: 65px;
  border-radius: 10px 10px 0 0;
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 1px 4px 0 rgba(60,60,90,0.08), 0 1px 2px 0 rgba(60,60,90,0.05);
}
.contact-form {
  background-color: #1e2635;
  padding: 2rem;
  border-radius: 10px;
  max-width: 600px;
  margin: auto;
  justify-content: center;
  
}

.contact-form label {
  display: block;
  color: var(--navbar-link);
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 0.5px solid #ccc; /* Add 1px solid border */
  border-radius: 8px;
  background-color: var(--navbar-box);
  color:#495564;
}


.send-button {
  width: 100%;
  padding: 12px;
  background-color: #a33bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}


/* Left: LOGO & TITLE (like screenshot) */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.navbar-logo {
  width: 38px;
  height: 38px;
  margin-right: 0.6rem;
  margin-left: 7.6rem;
}
.navbar-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.brand-title {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: .5px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.20rem;
}
.brand-title .jar {
  color: #ff03b3;
}
.brand-title .mod {
  color: #00c8ff;
}
.brand-desc {
  font-size: 0.85rem;
  color: var(--navbar-link);
  margin-top: -2px;
  font-size: 0.8rem;
}

/* Center: Menu */
.navbar-center {
  display: flex;
  gap: 2.5rem;
}
.navbar-center a {
  color: var(--navbar-menu);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
  gap: 1.5rem;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}
.navbar-center a:hover {
  color: #22d07a;
}

/* Right: Icons */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.0rem;
}
.nav-icon {
  background: none;
  border: none;
  color: var(--navbar-menu);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0 0.3rem;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  
}.nav-icon {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-icon:focus {
  outline: none;
  box-shadow: none;
}


#darkToggle {
  margin-right: 0.5rem;
  font-weight: bold;
}
#searchToggle {
  margin-right: 10.9rem;
}
.nav-icon:hover {
  color: #22d07a;
}
.navbar-search {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  outline: none;
  font-size: 1.4rem;
  color: #22d07a;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
  margin-left: 5%;
  margin-right: 5%;
  z-index: 1;

}

/* Centered container for app list */
#app-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row on desktop */
  gap: 24px;
  align-items: stretch;
  max-width: 1440px;
  margin: 20px auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1;
}



@media (max-width: 1000px) {
  #app-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); /* Minimum width for 2–3 clean boxes */
    gap: 6px;
    padding: 2px;
    row-gap: 12px;   /* 👈 more space between rows */
    margin: 0 1%;
    
    margin-left: 2px !important;
    margin-top: -0px !important; /* Adjusted top margin */
    margin-right: 3px !important;
  }

  .app-card {
    width: auto !important;
    max-width: auto !important;
    height: auto !important;
    min-height: auto;
    aspect-ratio: unset;
    margin-top: 2px; /* Reduced top margin */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-width: 0 !important;
    min-height: 0 !important;
    margin-right: 2px !important;
  }

  .app-card h3,.app-card ,
  .app-card-title {
    font-size: 10px !important;
    margin: 1px 0 1px 0 !important;
    margin-right: 10px !important;
    margin-top: -1px !important;
        margin-left: 5% !important;

    
  }
  .related-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
   .app-card #cat {
    font-size: 1rem !important;
    margin: 1px 0 1px 0 !important;
    margin-right: auto !important;
    margin-top: 5px !important;
    margin-bottom: -5% !important;
    margin-left: 6% !important;

    
  }

  .app-icon {
    width: auto !important;
    height: auto !important;
    min-height: 0% !important;
    max-height: 100% !important;
    margin-bottom: 1px !important;
    border-radius: 5px 5px 0 0 !important;
    object-fit: contain !important;
        margin-top: 1px !important;

  }
  
  /* Remove any other icon/image rules that set object-fit: contain or fixed heights */
.app-card .app-icon, .app-card img {
  /* ...remove or comment out these lines... */
  /* display: block;
  width: 100%;
  max-width: 100%;
  height: 340px;
  max-height: 340px;
  object-fit: contain;
  margin-bottom: 12px;
  background:var(--navbar-box); */
}
  

  .app-card-desc {
    font-size: 8px !important;
    margin-bottom: 1px !important;
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
        margin-top: 1px !important;

  }

  .app-card .badge {
    font-size: 7px;
    padding: 1px 3px;
  }

  .app-card-info-row {
    font-size: 8px !important;
    margin: 0 auto 0 20px !important;
    gap: 5px !important;
  }
  /* Size / Download (right side) */
.app-size {
  display: flex;
  align-items: right !important; /* Align to right */
  gap: 10px;
  color: #bfc8d6;
  font-size: 1rem;
  font-weight: 500;
  justify-content: right !important; /* Align to right */
  justify-items: right !important; /* Align to right */
}
.app-size::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 1px;
  vertical-align: middle;
  background: no-repeat center/contain;
  background-image: url('data:image/svg+xml;utf8,<svg fill="rgb(191,200,214)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>');
}
}
/* Individual app card styles */
.app-card {
  width: 100%;
  min-width: 220px;
  max-width: 340px;
  min-height: 320px;
  height: 460px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: var(--navbar-box);
  border-radius: 20px;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  border-top: none;
  z-index: 1;
    margin-top: auto;

}



.app-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  transform: translateY(-4px) scale(1.03);
}

/* Icon area inside card: rectangle, larger, but does not affect card size */
.app-card .app-icon, .app-card img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 340px;         /* Rectangle area for icon */
  max-height: 340px;
  object-fit: contain;   /* Show full icon, not cropped */
  margin-bottom: 12px;
  background:var(--navbar-box);
}

.app-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.badge.app-new {
  background: #2196f3;
  left: 12px;
  right: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 6px;
  padding-right: 8px;
}

/* Add time icon before "New" */
.badge.app-new::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background: no-repeat center/contain;
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z" clip-rule="evenodd"/></svg>');
}


/* Mod badge - red, on the right */
.badge.app-mod {
  background: #ff5454;
  right: 12px;
  left: auto;
}

/* Card content wrapper for text */
.app-card-content {
  width: 100%;
  padding: 0 8px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 8px;
  margin-bottom: 8px;
  background: rgba(34, 40, 56, 0.92); /* subtle overlay for separation */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Make card text blue with highest specificity */
.app-card-content .app-card-title,
.app-card-content .app-card-desc,
.app-card .app-card-title,
.app-card .app-card-desc,
div.app-card-content .app-card-title,
div.app-card-content .app-card-desc {
  color: #2196f3 !important;
}


/* Card title styling */
.app-card-title {
  font-size: 1.13rem;
  font-weight: 700;
  color: #2196f3; /* Blue color */
  margin: 10px 0 4px 0;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

/* Card description styling */
.app-card-desc {
  font-size: 0.97rem;
  color: #2196f3; /* Blue color */
  margin: 0 0 10px 0;
  line-height: 1.5;
  word-break: break-word;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Show up to 3 lines */
  -webkit-box-orient: vertical;
  text-shadow: 0 1px 2px rgba(0,0,0,0.13);
}

/* Style for h2 inside .app-card only (does not affect other h2) */
.app-card > h2 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navbar-link);
  margin: 12px 0 6px 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0,0,0,0.13);
  margin-left: 15px; /* Align with card content */
}
.app-card > p {
  font-size: 1rem;
  color: #00d19b;
  margin: 12px 0 6px 0;
  line-height: 1.3;
  margin-top: 1px;
  letter-spacing: 0.01em;
  word-break: break-word;
  text-shadow: 0 1px 2px rgba(0,0,0,0.13);
  margin-left: 15px; /* Align with card content */
}

/* App card version and size row */
.app-card-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between; /* left and right alignment */
  margin: -7px 15px 0 15px; /* shorthand: top, right, bottom, left */
  font-size: 1rem;
  gap: 18px;
}

/* Version (left side) */
.app-version {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--navbar-version);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  
  /* Remove flex: 0 0 auto; */
  /* Remove justify-content: flex-start; */
}

.app-version::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 3px;
  vertical-align: middle;
  background: no-repeat center/contain;
  background-image: url('data:image/svg+xml;utf8,<svg fill="rgb(73,85,99)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M11.3 1.046A1 1 0 0112 2v5h4a1 1 0 01.82 1.573l-7 10A1 1 0 018 18v-5H4a1 1 0 01-.82-1.573l7-10a1 1 0 011.12-.38z" clip-rule="evenodd"/></svg>');
}

/* Size / Download (right side) */
.app-size {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--navbar-version);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: right;
  margin-left: 10px; /* This pushes .app-size to the right */
  /* Remove flex: 0 0 auto; */
  /* Remove justify-content: flex-end; */
}

.app-size::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 3px;
  vertical-align: middle;
  background: no-repeat center/contain;
  background-image: url('data:image/svg+xml;utf8,<svg fill="rgb(73,85,99)" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>');
}
.app-size {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--navbar-version);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: right;
  margin-left: 10px;
  min-width: 0;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 120px; /* allow enough space for large sizes */
  overflow: visible;
}

/* 3. Prevent .app-version from shrinking too much */
.app-version {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--navbar-version);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  min-width: 0;
  white-space: nowrap;
  flex-shrink: 1;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  #app-list {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Show hamburger and hide menu on small screens */
@media (max-width: 700px) {
  .hamburger {
    display: flex;
    width: 24px;
    height: 24px;
    color: #22d07a;
  }
  .navbar-center {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 220px;
    background: var(--navbar-bg);
    z-index: 1001; /* higher than footer */
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 8px rgba(60,60,90,0.07);
    padding: 2rem 1rem 1rem 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  }
  .navbar-center.open {
    display: flex;
    transform: translateX(0);
    z-index: 1001; /* higher than footer */
  }
  /* Mobile menu */
/* Hamburger styling */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 0.5rem;
  z-index: 120000; /* higher than navbar */
 
}

.hamburger-bar {
  width: 16px;
  height: 2px;
  background: #22d07a;
  margin: 2px 0;
  border-radius: 2px;
  transition: 0.3s;
  z-index: 120000; /* higher than navbar */

  
}
  /* Mobile menu */
#mobileMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background-color: var(--navbar-bg);
  z-index: 100001; /* higher than footer */
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.2rem;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  transform: translateX(-100%);
  
}

#mobileMenu.open {
  transform: translateX(0);
  z-index: 120000; /* higher than navbar */
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 26px;
  align-self: flex-end;
  cursor: pointer;
  color: var(--navbar-menu);
  display: none; /* Hide by default (PC screens) */
  z-index: 120000; /* higher than navbar */
}

@media (max-width: 700px) {
  .mobile-menu-close {
    display: block; /* Show only on mobile/tablet screens */
    z-index: 120000; /* higher than navbar */
  }
}

.mobile-menu-divider {
  height: 1px;
  background: var(--navbar-menu);
  margin: 1rem 0;
  
}

.menu-links a {
  display: flex;
  align-items: center;
  padding: 5px 0;
  font-size: 20px;
  font-weight: 600 !important;
  color: var(--navbar-link);
  text-decoration: none;
  z-index: 120000; /* higher than navbar */
}
.mobile-menu-divider {
  height: 1px;
  background-color:var(--navbar-link); /* Light gray line (you can change this color) */
  margin: 1rem;
    width: 100%;
    margin: 0;
  padding: 0;
  z-index: 120000; /* higher than navbar */

}


.menu-links a::before {
  content: '';
  display: inline-block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: -10px;
  background-color: #000000;
  background-size: 24px 24px;
  
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1000000;
}

.menu-links a:nth-child(1)::before { background-color: #4285F4; background-image: url('../images/home.png'); }
.menu-links a:nth-child(2)::before { background-color: #EA4335; background-image: url('../images/ticket.png'); }
.menu-links a:nth-child(3)::before { background-color: #A142F4; background-image: url('../images/smartphone-tablet.png'); }
.menu-links a:nth-child(4)::before { background-color: #FB8C00; background-image: url('../images/open-book.png'); }
.menu-links a:nth-child(5)::before { background-color: #34A853; background-image: url('../images/help.png'); }
/* Use data-cat attribute for dynamic category icons/colors */
.menu-links a[data-cat="Home"]::before {
  background-color: #4285F4;
  background-image: url('../images/home.png');
}
.menu-links a[data-cat="Games"]::before {
  background-color: #EA4335;
  background-image: url('../images/ticket.png');
}
.menu-links a[data-cat="Apps"]::before {
  background-color: #A142F4;
  background-image: url('../images/smartphone-tablet.png');
}
.menu-links a[data-cat="Blog"]::before {
  background-color: #FB8C00;
  background-image: url('../images/open-book.png');
}
.menu-links a[data-cat="FAQ"]::before {
  background-color: #34A853;
  background-image: url('../images/help.png');
}

/* Example for dynamic categories, add more as needed: */
.menu-links a[data-cat="Music"]::before {
  background-color: #009688;
  background-image: url('../images/musical-notes.png');
}
.menu-links a[data-cat="Video"]::before {
  background-color: #e91e63;
  background-image: url('../images/video.png');
}

/* Dynamic category icon from data-icon attribute */
.menu-links a[data-icon][data-cat]:not([data-cat="Home"]):not([data-cat="Games"]):not([data-cat="Apps"]):not([data-cat="Blog"]):not([data-cat="FAQ"])::before {
  background-color: var(--cat-bg, #009688);
  background-image: var(--cat-icon);
}

/* Assign random background colors for categories without a specific color */
.menu-links a[data-icon]:nth-of-type(6n+1)::before { --cat-bg: #009688; }
.menu-links a[data-icon]:nth-of-type(6n+2)::before { --cat-bg: #e91e63; }
.menu-links a[data-icon]:nth-of-type(6n+3)::before { --cat-bg: #3f51b5; }
.menu-links a[data-icon]:nth-of-type(6n+4)::before { --cat-bg: #ff9800; }
.menu-links a[data-icon]:nth-of-type(6n+5)::before { --cat-bg: #8bc34a; }
.menu-links a[data-icon]:nth-of-type(6n+6)::before { --cat-bg: #795548; }
/* ...existing code... */
.navbar {
    flex-direction: row;
    align-items: center;
    min-height: unset;
    padding: 0.7rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

  .navbar-left {
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
    gap: 0.4rem;
  }
  .navbar-logo {
    margin-left: 0.4rem;
    margin-right: 0.4rem;
  }
  .navbar-brand {
    align-items: flex-start;
  }
  .navbar-right {
    margin-top: 0;
    width: auto;
    justify-content: flex-end;
  }
  #darkToggle {
    margin-right: 0.5rem;
    font-weight: bold;
  }
  #searchToggle {
    margin-right: 1.9rem;
  }
}
@media (max-width: 900px) {
  .navbar-center { gap: 1rem; }
  .navbar { padding: 0 1rem; }
}
@media (max-width: 768px) {
  .navbar { padding: 0.5rem 1rem; min-height: 48px;}
  #app-list { margin-top: 4.3rem; }
}
@media (max-width: 600px) {
  .navbar { padding: 0.3rem 0.6rem; }
  .brand-title { font-size: 1.1rem; }
  .breadcrumb-bar {
    width: auto;
    margin: 12px 20px 12px 20px;
  }
}

/* Center-wrapper fills viewport and centers content */
.center-wrapper {
  /* Remove fixed height to avoid excessive empty space */
  /* height: 100vh; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  margin-top: 32px;
  margin-bottom: 32px;
}
/* Center-wrappers fills viewport and centers content */
.center-wrappers {
  /* Remove fixed height to avoid excessive empty space */
  /* height: 100vh; */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  margin-top: 32px;
  margin-bottom: 32px;
}

/* White container that shrink-wraps text */
.white-container {
  background-color: var(--navbar-box);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--navbar-link);
  font-family: Arial, sans-serif;
  text-align: left;

  display: inline-block;   /* shrink to fit content */
  max-width: 100%;
  box-sizing: border-box;
}
.white-containers {
  background-color: var(--navbar-box);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--navbar-link);
  font-family: Arial, sans-serif;
  text-align: left;

  display: block; /* allow it to grow full width if needed */
  width: 100%;    /* full width of parent container */
  max-width: 800px; /* set a larger max width */
  box-sizing: border-box;
  padding: 30px 40px; /* increase padding */
  margin: 0 auto;     /* center it horizontally */
  max-height: 900px;
}



.white-container h2 {
  margin-top: 0;
  color: #222;
}

.white-container ul {
  list-style-type: disc;
  margin-left: 20px;
}

.container h1 {
  
  width: 100%;
  margin-left: 9%;
}

main.container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.site-footer {
  width: 100%;
  background: var(--navbar-box);
  color: var(--navbar-link);
  padding: 40px 20px 20px 20px;
  text-align: center;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  margin-top: auto; /* Push footer to bottom */
}



.footer-icons {
  margin-bottom: 20px;
}

.footer-icons a {
  margin: 0 10px;
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-icons a:hover {
  color: #0a0707;
}

.footer-copy {
  margin-bottom: 15px;
  font-size: 14px;
}
.telegram-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
main.container {
  flex: 1; /* This ensures content pushes footer down */
}

.telegram-float:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}


.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.footer-links a {
  color: var(--navbar-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00d19b;
}

@media (max-width: 900px) {
  .site-footer {
    padding: 30px 10px 15px 10px;
    font-size: 0.97rem;
  }
}
@media (max-width: 600px) {
  .site-footer {
    padding: 20px 5px 10px 5px;
    font-size: 0.93rem;
  }
  .breadcrumb-bar {
    width: auto;
    margin: 12px 20px 12px 20px;
  }
}

/* --- BREADCRUMB BAR --- */
.breadcrumb-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto 24px auto;
  width: 95%;
  max-width: 1200px;
}

.breadcrumb {
  background: var(--navbar-path);
  border-radius: 999px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  width: 100%;
  color: var(--navbar-link);
  box-sizing: border-box;
  min-height: 38px;
}

.breadcrumb a {
  color: #22d07a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s;
  margin: 0 2px;
}

.breadcrumb a:hover {
  color: #00ffb3;
  text-decoration: underline;
}

.breadcrumb-bar .breadcrumb {
  justify-content: flex-start;
  gap: 0.2em;
}

.breadcrumb {
  gap: 0.2em;
}

/* Responsive: shrink padding on mobile */
@media (max-width: 600px) {
  .breadcrumb-bar {
    width: auto;
    margin: 12px 20px 12px 20px;
  }
  .breadcrumb {
    padding: 7px 10px;
    font-size: 0.97rem;
    min-height: 32px;

  }
}

.app-details-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 32px auto;
  flex-wrap: wrap;
  
}
.app-details-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 220px;
  flex: 1 1 220px;
  align-items: flex-start;
}
.app-detail-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #bfc8d6;
}
.app-detail-icon {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-detail-label {
  font-size: 1rem;
  color: #bfc8d6;
  margin-bottom: 2px;
  text-align: left;
}
.app-detail-value {
  font-size: 1.08rem;
  font-weight: bold;
  color: #22d07a;
  margin-top: 2px;
  text-align: left;
  word-break: break-word;
}
@media (max-width: 900px) {
  .app-details-grid {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .app-details-col {
    width: 100%;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .app-details-grid {
    gap: 10px;
    padding: 0 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .app-details-col {
    gap: 20px;
    min-width: 0;
    width: 100%;
    align-items: flex-start;
  }
  .app-detail-item {
    align-items: flex-start;
  }
  
}
.app-card-image-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  height: 320px;         /* Reduce from 180px to 120px */
  max-height: 390px;     /* Reduce max-height */
  min-height: 190px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-bottom: 4px;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
