@media (max-width: 768px) {
  .recent-searches {
      /* position: fixed; */
      bottom: 0;
      left: 0;
      right: 0;
      background-color: var(--card-background);
      border-radius: 5px 5px 0 0;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
      padding: 20px;
      z-index: 1000;
      /* Remove transform property temporarily to see if it affects functionality */
      /* transform: translateY(100%); */
      transition: transform 0.3s ease-in-out;
  }



    .recent-searches.show {
        transform: translateY(0);
    }

    .recent-searches h3 {
        margin-bottom: 15px;
        margin-top: 10px;
        font-size: 18px;
    }

    #recentSearchesList {
        max-height: 50vh;
        overflow-y: auto;
    }

    #recentSearchesList li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #recentSearchesList li:last-child {
        border-bottom: none;
    }

    .city-name {
        flex-grow: 1;
        padding-right: 10px;
    }

    .delete-search {
        background: none;
        border: none;
        color: var(--error-color);
        font-size: 20px;
        padding: 5px 10px;
        cursor: pointer;
    }

    #clearRecentSearches {
        display: block;
        width: 100%;
        padding: 12px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 5px;
        margin-top: 15px;
        font-size: 16px;
        cursor: pointer;
    }
    .footer {
        padding: 0.5rem;
        font-size: 0.8rem;
      }
    }

/* Example CSS for mobile devices */
@media (max-width: 600px) {
    .search-container {
    padding: 12px;
    font-size: 18px;
    }
  
    .search-input {
      width: 100%;
      font-size: 16px;
    }
  
    .search-button {
      width: 100%;
      padding: 12px;
      font-size: 18px;
    }
  
    .weather-display {
      font-size: 14px;
    }
  }
  
  .footer {
    padding: 0.3rem;
    font-size: 0.7rem;
  }

  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .footer a {
    color: inherit;
    text-decoration: none;
    margin: 0 0.5rem;
  }
  
  @media (max-width: 400px) {
    .footer {
      justify-content: center;
    }
    
    .footer a {
      margin: 0.2rem 0.3rem;
    }
  }

  @media (max-width: 768px) {
    body.weather-clear,
    body.weather-cloudy,
    body.weather-rainy,
    body.weather-snowy,
    body.weather-stormy {
      background-size: 200% 200%;
    }
  }