body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: #f9f9f9;
}

.container {
  max-width: 900px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 10px;
}

.search-container {
  text-align: center;
  margin-bottom: 20px;
}

#search-input {
  width: 90%;
  max-width: 400px;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  position: relative;
}

.tag-filters::before {
  content: "Click tags to filter:";
  display: block;
  font-size: 0.9em;
  margin-bottom: 10px;
  color: #444;
  width: 100%;
  text-align: center;
}

.tag {
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #eee;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s, transform 0.2s;
  border: 1px solid #ccc;
  font-weight: 500;
  position: relative;
}

.tag:hover {
  background-color: #ccc;
  transform: scale(1.05);
}

.tag.active {
  background-color: #007BFF;
  color: white;
  border-color: #0056b3;
}

.tag.active::after {
  content: "✖";
  opacity: 0.8;
}

/* Item styles */
.item {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.item h2 {
  margin: 0 0 10px;
}

.item .tags {
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

.item .description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.item.expanded .description {
  margin-top: 10px;
  max-height: 500px; /* allow long content to expand */
}
