body {
  font-family: Arial, sans-serif;

  background-image: url('/bg.webp'); /* Replace with your actual image file name */
  /* darken the image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #333;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.881); /* Added a white background with transparency */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}
header {
  width: 100%;
  background: rgba(0, 0, 0, 0.7); /* Added transparency to make text readable over the background image */
  color: #fff;
  padding: 10px 0;
  text-align: center;
}

header h1 {
  margin: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav li {
  margin: 0 15px;
}

nav a {
  color: #000000;
  text-decoration: none;
  font-size: 18px;
}

nav a:hover {
  text-decoration: underline;
}

input[type="text"],
input[type="password"],
input[type="username"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #218838;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  padding: 10px;
  background: #f9f9f9;
  margin-bottom: 10px;
  border-radius: 4px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  margin: 10px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 200px;
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  width: 100%;
}

#search-box {
  width: 100%; /* Ensure the search box takes the full width of the container */
}

.dropdown {
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  width: 100%; /* Match the width of the search container */
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none; /* Hide by default */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  cursor: pointer;
}

.dropdown-item img {
  max-height: 50px;
  margin-right: 10px;
}

.dropdown-item button {
  width: auto;
  padding: 5px 10px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dropdown-item button:hover {
  background-color: #218838;
}

.logout-button {
  background-color: #dc3545;
  margin-top: 10px;
}

.logout-button:hover {
  background-color: #c82333;
}