* {
  box-sizing: border-box;
}

body {
  background: #f2f7ff;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 15px; /* ✅ Add padding here instead */
}

.container2 {
  width: 100%;
  max-width: 100%;  /* ✅ No max-width here */
  padding: 0;        /* ✅ Remove extra padding */
  margin: 0;         /* ✅ Remove auto margin */
}

.site-header {
  width: 100%;
  max-width: 480px;       /* Limit width */
  margin: 0 auto 8px;    /* Center it horizontally and add bottom space */
 background: linear-gradient(135deg, #2871fa 25%, #6717cd 75%);
  padding: 10px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-img {
  max-height: 50px;
  width: auto;
}

.category-box-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
}

.custom-category-box {
  background: #e8faff;
  border: 2px solid #00c3ff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 195, 255, 0.1);
}

.custom-category-box .category-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #005fa3;
  margin-bottom: 15px;
}

.category-buttons {
  display: flex;
  justify-content:space-around;
  /*gap: 10px;*/
  flex-wrap: nowrap;
  width: 100%;
}

.playcusBtnOption2 {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
  text-align: center;
  border-radius: 30px;
  background: linear-gradient(145deg, #005fa3, #002a4d);
  color: #fff;
  border: 2px solid #00c3ff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}


.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.card-box {
  width: calc(50% - 8px);
}

.card-content {
  background: #ffffffcc;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-box:hover .card-content {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.featured-image img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.featured-image img:hover {
  transform: scale(1.05);
}

.game-name p {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  text-align: center;
  margin: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playcusBtnOption {
  background: linear-gradient(145deg, #005fa3, #002a4d);
  color: #fff;
  border: 2px solid #00c3ff;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 195, 255, 0.6), 0 5px 15px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;

  /* 👇 Add these lines */
  white-space: nowrap;
  text-overflow: ellipsis;
}
.playcusBtnOption:hover {
  background: #007acc;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.9), 0 8px 20px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 195, 255, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 195, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 195, 255, 0); }
}

.shimmer-effect {
  background: linear-gradient(to right, #ffffff 10%, #00c3ff 30%, #ffffff 50%);
  background-size: 200% auto;
  animation: shimmer 2s linear infinite;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
}

@media (max-width: 480px) {
  .card-box {
    width: calc(50% - 8px); /* ✅ Show 2 cards per row */
  }

  .category-buttons {
    /*flex-direction: column;*/
    gap: 10px;
  }
}

.more-games-wrapper {
  text-align: center;
  margin: 20px 0;
}

.playcusBtnSimple {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, #005fa3, #002a4d);
  border: 2px solid #00c3ff;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(0, 195, 255, 0.6), 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}



.gsc-control-cse {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}



.gsc-search-button-v2 {
  background: linear-gradient(145deg, #005fa3, #002a4d) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 30px !important;
  margin-left: 8px !important;
  padding: 8px 16px !important;
  cursor: pointer;
}

.search-container {
  margin-top: 15px;      /* space above the search bar */
  margin-bottom: 15px;   /* space below the search bar */
  text-align: center;
}


.ads-center {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  width: 100%;
}


    .button-container {
      display: flex;
      justify-content: center;
      margin-bottom: 20px;
      visibility: visible; /* Ensure the container is visible */
    }
    .animated-btn {
      background: linear-gradient(45deg, #ff6a00, #ee0979);
      color: white;
      border: none;
      padding: 15px 35px;
      font-size: 1.2rem;
      font-weight: 600;
      border-radius: 30px;
      cursor: pointer;
      box-shadow: 0 8px 15px rgba(238,9,121,0.3);
      animation: zoomInOut 1.5s ease-in-out infinite;
      visibility: visible; /* Ensure the button is visible */
    }
    @keyframes zoomInOut {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }
 

