/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

.search-container {
  position: relative;
  /* width: 300px; */
}

.result-list {
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: none; /* Initially hide the list */
}

.result-list li {
  padding: 10px;
  cursor: pointer;
}

.result-list li:hover {
  background: #f5f5f5;
}

nav[role="navigation"] a {
  background-color: gray;
  padding: 10px 15px;
  border-radius: 5px;
  color: white;
  text-decoration: none;
}

.toggle-button {
  position: relative;
  width: 30px;
  height: 22px;
  z-index: 101;
}

.bar {
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #333;
  left: 0;
  transition: 0.3s;
}

.bar:nth-child(1) {
  top: 0;
}

.bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.bar:nth-child(3) {
  bottom: 0;
}

.menu-items {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  background-color: #fff;
  padding: 1rem;
  overflow-y: auto;
  width: 80%;
  max-width: 300px;
  box-shadow: -1px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.menu-items.show {
  transform: translateX(0);
}

@media (min-width: 640px) {
  .menu-items {
    position: static;
    height: auto;
    background-color: transparent;
    padding: 0;
    overflow-y: visible;
    width: auto;
    max-width: none;
    box-shadow: none;
  }
}
