/* Search container styling */
#search-container {
  display: flex;
  position: relative;
  top:10px;
  align-self: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  width: 60%;
  margin-left: 20%;
  margin-right: 20%;
  margin-bottom: 20px;
  margin-top: 20px;
}
@media (max-width: 768px) {
  #search-container{
    top:20px;
    width: 80%;
    height: 100px;
    margin-left: 10%;
    margin-right:10%;
    margin-bottom: 60px;
  }
  #search-tooltip{
    top:110px !important;
  }
}
/* 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: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-height: 500px;
  width: 100%; /* Ensure it uses full container width */
  box-sizing: border-box; /* Include padding and border in width */
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex; /* Flexbox layout */
  flex-wrap: wrap; /* Allow wrapping to the next line */
  gap: 8px; /* Add spacing between tags */
  overflow-y: auto; /* Allow scrolling if tags exceed max height */
}
/* Media queries for smaller screens */
@media (max-width: 768px) {
  #search-tooltip {
    padding: 5px; /* Smaller padding */
  }
  .tooltip-tag {
    font-size: 0.8em; /* Smaller text for tags */
  }
}
.tooltip-tag {
  display: inline-block;
  padding: 5px 10px;
  background: #f5f5f5;
  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 */
}
.fa-search{
  position: relative;
  z-index: 1001;
  right: 20px;
  padding: 5px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .fa-search{
    right: 30px;
  }
}

.fa-search:hover{
  scale: 1.1;
  transition: 0.2s ease-in-out;
  color: #05960a;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


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

  #search-tooltip {
    padding: 4px; /* Minimal padding */
  }
}

.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;
}

#search-panel .tooltip-tag {
    padding: 5px 10px;
    margin: 2px 0;
    background-color: #f5f5f5; /* Light background for tags */
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#search-panel .tooltip-tag:hover {
    background-color: #e0e0e0; /* Slightly darker background on hover */
}
/* 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: 20px; /* 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 Button Styling */
.floating-btn {
  background-color: #58076391; /* 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 */
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
  #floating-buttons {
      bottom: 10px; /* Closer to the edge for mobile */
      right: 10px;
  }

  .floating-btn {
      width: 30px; /* Smaller buttons for mobile */
      height: 30px;
      font-size: 14px; /* Smaller text for mobile */
      box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 480px) {
  #floating-buttons {
      bottom: 8px; /* Slightly closer to the edge for smaller screens */
      right: 8px;
  }

  .floating-btn {
      width: 35px; /* Even smaller buttons for very small screens */
      height: 35px;
      font-size: 12px; /* Smaller text for smaller screens */
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  }
}
/* Floating Search Icon */
#floating-search {
  position: fixed;
  bottom: 10px; /* Distance from the bottom of the viewport */
  left: 10px; /* Distance from the right edge of the viewport */
  background-color: #5807639f; /* Blue background */
  color: #ffffff; /* White icon color */
  border-radius: 50%; /* Make it circular */
  width: 60px; /* Button size */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  cursor: pointer;
  z-index: 1000; /* Ensure it appears above other elements */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#floating-search i {
  position: fixed;
  bottom: 22px; /* Distance from the bottom of the viewport */
  left: 25px; /* Distance from the right edge of the viewport */
  font-size: 24px; /* Icon size */
  pointer-events: none; /* Ensure clicks target the button */
}
#floating-search:hover {
  color: #fffefe; /* Darker blue on hover */
  background-color: #580763; /* Darker shade on hover */
}
/* SUBSCRIBE FORM STYLE */