/* Search container styling: starts centered */
#search-container {
  display: flex;
  position: fixed;
  z-index: 2000;
  bottom: 60px; /* Align to the bottom */
  right: 50%; /* Start centered */
  transform: translateX(50%); /* Center horizontally */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  width: 60%; /* Adjust width as needed */
  margin: 0; /* Remove extra margins */
  transition: all 0.5s ease; /* Smooth transition */
}

/* Search bar container */
#search-bar {
  display: flex;
  align-items: center;
  background-color: #f3f3f3;
  border: 2px solid #ccc;
  border-radius: 50px;
  padding: 10px 20px;
  width: 500px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), inset 0 -2px 5px rgba(255, 255, 255, 0.2);
  transition: border-color 0.3s, box-shadow 0.3s;
}
@media (max-width: 768px) {
  #search-bar{
    width: 100%;
  }
}
/* Search bar focus effect */
#search-bar:focus-within {
  border-color: #4caf50;
  border-width: 5px;
}
#search-box {
    width: 450px;
    padding: 15px;
    border-radius: 25px; /* Smooth rounded corners for a modern look */
    position: sticky;
    z-index: 1000;
    transition: all 0.3s ease-in-out; /* Smooth transition for hover and focus */
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    color: #333;
    /* Outset shadow for a popping-out effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 
    0 -4px 6px rgba(255, 255, 255, 0.15);

}
@media (max-width: 768px) {
  #search-box{
    width: 100%;
  }
}
/* Focus effect for the search box */
#search-box:focus {
    outline: none; /* Remove default outline */
    border-color: #0056b3; /* Darker shade of border color on focus */
    background: linear-gradient(145deg, #f9f9f9, #ffffff); /* Slightly brighter gradient */
}
/* Placeholder text styling */
#search-box::placeholder {
  color: #aaa;
  font-style: italic;
}
/* Hover effect for the search box */
#search-box:hover {
    border-color: #0069d9; /* Add a lighter hover border */
}

#search-tooltip {
  background-color: white;
  bottom: 70px;
  border-radius: 10px;
  padding: 5px;
}
.tooltip-tag {
  margin: 2px;
  gap: 5px;
  display: inline-block;
  padding: 5px 10px;
  background: #cf56b12d;
  border-radius: 3px;
  font-size: 0.9em;
  cursor: pointer;
  white-space: nowrap; /* Prevent text from breaking within tags */
  flex: 1 1 auto; /* Allow flexible growth/shrinkage based on space */
  max-width: calc(100% - 16px); /* Prevent tags from exceeding container width */
  box-sizing: border-box; /* Include padding in size calculation */
}

.tooltip-tag:hover {
    background-color: #e0e0e0; /* Hover effect */
}

@media (max-width: 480px) {
  #search-bar {
    padding: 6px 8px; /* Reduce padding further */
  }
}

.highlight {
    border: 2px solid #00ff6e4c; /* Neon border for matched items */
    background-color: rgba(0, 255, 21, 0.228); /* Subtle highlight effect */
    transition: background-color 0.3s ease, border 0.3s ease;
    padding: 2px;
    border-radius: 5px;
}
/* Container for logo and title */
#logo-title-container {
  display: flex;
  gap: 10px; /* Space between logo and title */
  margin-bottom: 20px; /* Space below the logo-title section */
  align-items: center;
}
@media (max-width: 768px) {
  #logo-title-container{
    margin: 10px;
  }

}
/* Logo styling */
#logo {
  width: auto; /* Restrict the logo size */
  height: 50px; /* Maintain aspect ratio */
}
/* Search title styling */
#search-title {
  font-family: 'Orbitron', sans-serif; /* Futuristic font */
  font-size: 36px;
  font-weight: bold;
  color: #1f1e1e;
}
/* Media queries for smaller screens */
@media (max-width: 768px) {
  #search-title {
    font-size: 24px; /* Adjust title font size */
    margin-bottom: 10px;
  }
  #search-title {
    font-size: 20px; /* Further reduce title size */
  }
}
/* Floating Button Container */
#floating-buttons {
  position: fixed;
  bottom: 70px; /* Distance from the bottom of the screen */
  right: 20px; /* Distance from the right edge of the screen */
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  gap: 10px; /* Space between buttons */
  z-index: 1000; /* Ensure it's above other elements */
}

/* Floating arrow Styling */
.floating-btn {
  background-color: #580763ab; /* Primary button color */
  color: #fff; /* Text color */
  border: none;
  border-radius: 50%; /* Make buttons circular */
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-btn:hover {
  background-color: #580763; /* Darker shade on hover */
  transform: scale(1.1); /* Slight zoom on hover */
}

.floating-btn:active {
  transform: scale(0.95); /* Slight shrink on click */
}

/* Outer container for the filter menu */
#filter-menu-container {
  background-color: #33333375;
  padding: 5px;
  display: flex;
  align-items: center;
  position: fixed;
  bottom: 5px; /* Align to the bottom */
  width: 100%; /* Full width */
  z-index: 2000;
  gap: 10px; /* Space between arrows and menu */
}

/* Wrapper to handle horizontal scrolling */
#filter-menu-wrapper {
  overflow: hidden;
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* The dynamic filter menu */
#filter-menu {
  display: flex;
  gap: 10px; /* Space between buttons */
  white-space: nowrap; /* Prevent wrapping */
  transition: transform 0.5s ease; /* Smooth scrolling */
  overflow: hidden;
}

/* Style for dynamically added buttons */
#filter-menu button {
  padding: 10px 15px;
  background-color: #580763ab; /* Blue background */
  color: #ffffff; /* White text */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s, box-shadow 0.3s;
}

#filter-menu button:hover {
  background-color: #580763; /* Darker blue on hover */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
}

/* Left and right arrows */
.arrow {
  background-color: #580763ab;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.arrow:hover {
  background-color: #580763;
  color: #fff;
}
.arrow i {
  font-size: 16px; /* Adjust icon size */
  color: #fff; /* Default icon color */
}
.arrow:hover i {
  font-weight: bolder; /* Change icon color on hover */
}

/* Ensure arrows are always visible */
#left-arrow {
  visibility: hidden; /* Initially hidden if at the start */
}

#right-arrow {
  visibility: visible; /* Initially visible if content overflows */
}



