  * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      font-family: 'Poppins';
      background-color: #ffffff;
      color: #333333;
    }
   .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}


        .header {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
            gap: 20px;
            position: relative;
        }

          .back-arrow {
            position: absolute;
            left: 0;
            width: 24px;
            height: 24px;
            cursor: pointer;
            color: #666;
            transition: color 0.3s ease;
        }

        .back-arrow:hover {
            color: #4ade80;
        }

         .logo {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-top: 30px;
         
        }
      .logo svg {
    width: 420px; /* or any desired width */
    height: auto;
    max-width: 100%;
}
       

        .logo-icon {
            margin-right: 8px;
        }


    /* Search */
    .search-container {
      display: flex;
      justify-content: center;
      margin-bottom: 20px;
    }
    #searchInput {
      width: 350px;
      padding: 12px 20px;
      border: none;
      border-radius: 24px;
      background-color: #f2f2f2;
      font-size: 16px;
      color: #333;
    }

    /* Search results overlay */
    .search-results {
      display: none;
      margin-bottom: 40px;
    }
    .search-results.active {
      display: block;
    }
    #searchResultsGrid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 24px;
   

    }
#searchResultsGrid.single-result {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

#searchResultsGrid.single-result .game-card {
  max-width: 320px;
  width: 100%;
}
    /* Card grid */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 24px;
    }
    .card {
      background-color: #ffffff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      display: flex;
      flex-direction: column;
    }
    .card-image {
  background-color: #fff;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* crop overflow if needed */
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
}
    .card-body {
      padding: 16px;
      flex-grow: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .game-title {
      font-size: 16px;
      font-weight: 600;
      color: #333;
    }
   @media (max-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  #searchResultsGrid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  .card {
    width: 100% !important;
  }
     .logo svg {
    width: 250px; /* or any desired width */
    height: auto;
    max-width: 100%;
}
 .logo {
          
            margin-top: 10px;
         
        }
}
