body {
    font-family: Arial, sans-serif;
    margin-top: 5em;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
  }
  
  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  header {
  width: -webkit-fill-available;
  }

      /* Container for the filter box */
  #filter-box-container {
      width: 100%;
    }
    
  /* General Container */
  .search-container {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 20px 10px;
    background: #000000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* Input Wrapper */
  .input-wrapper {
    position: relative;
    width: 80%;
    max-width: 900px;
    display: flex;
    align-items: center;
  }

  /* Search Bar */
  .search-bar {
    width: 100%;
    padding: 15px 60px 15px 20px; /* Add padding for the icons */
    font-size: 18px;
    color: #fff;
    border: 2px solid #ff0000;
    border-radius: 15px;
    background-color: #49494959;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .search-bar::placeholder {
    color: #ffffff;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  .search-bar:focus {
    color: #00ffff;
    border-color: #ff0000;
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
  }

  .search-bar:focus::placeholder {
    opacity: 0;
  }

  .details {
      display: none;
  }
  
  /* Icons Container */
  .icons {
    position: absolute;
    right: 2em;
    display: flex;
    gap: 10px;
  }

  /* Search Icon */
  .search-icon2, .voice-search {
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: transform 0.2s ease;
  }

  .search-icon2:hover, .voice-search:hover {
    transform: scale(1.1);
  }

  /* Bars Placeholder */
  #bars {
    position: absolute;
    right: 8em;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    display: none;
  }

  .bar {
    background: #ff0000;
    height: 10px;
    width: 5px;
    border-radius: 5px;
    animation: sound 0ms -600ms linear infinite alternate;
  }

  /* Animation for bars */
  @keyframes sound {
    0% {
      opacity: 0.35;
      height: 10px;
    }
    100% {
      opacity: 1;
      height: 20px;
    }
  }

  .bar:nth-child(1) { animation-duration: 474ms; }
  .bar:nth-child(2) { animation-duration: 433ms; }
  .bar:nth-child(3) { animation-duration: 407ms; }
  .bar:nth-child(4) { animation-duration: 458ms; }
  .bar:nth-child(5) { animation-duration: 400ms; }
  .bar:nth-child(6) { animation-duration: 427ms; }
  .bar:nth-child(7) { animation-duration: 441ms; }
  .bar:nth-child(8) { animation-duration: 419ms; }
  .bar:nth-child(9) { animation-duration: 487ms; }
  .bar:nth-child(10) { animation-duration: 442ms; }

  /* Hover and focus effect for search bar */
  .search-bar:focus {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
  }

  .carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
    width: 90%;
  }

  .tile-container {
    margin: 10px;
    animation: fadeIn 0.5s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .no-results {
    text-align: center;
    font-size: 18px;
    color: #666;
  }

  @media only screen and (max-width: 767px) {
    .carousel {
      display: flex;
      flex-wrap: wrap; /* Allow wrapping */
      gap: 25px; /* Space between items */
      max-height: 500px; /* Limit height to enable scrolling */
      overflow-x: visible; /* Prevent horizontal scrolling */
      padding: 10px;
    }

    /* Tile container */
    .tile-container {
      flex: 1 1 40%; /* Default: each tile takes full width */
      box-sizing: border-box;
      height: auto;
    }

    /* Tile */
    .tile {
      width: 100%; /* Default: each tile takes full width */
      box-sizing: border-box;
    }
  }
