/* ---------- Search Bar ---------- */
.search-bar {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.search-bar form[role='search'] {
  flex: 1;
}

.sort-select {
  width: auto;
  min-width: 8rem;
  margin-bottom: 0;
}

.creature-count {
  display: block;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* ---------- Event List ---------- */
.event-list a {
  border-radius: 5rem;
}

/* ---------- Creature List ---------- */

.creature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.creature-entry {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.creature-entry:hover {
  transform: translateY(-4px);
}

.creature-entry > img.creature-sprite {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.creature-entry > p {
  width: 100%;
  min-width: 0;
  color: inherit;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 0;
}

.creature-entry > p > span.creature-id {
  color: inherit;
  font-size: 0.65rem;
  font-family: monospace;
  /*padding: 0.2rem 0.35rem;
  border: 1px solid currentColor;
  border-radius: 4px;*/
  padding: 0;
  margin: 0.25rem 0;
}

.creature-entry > p > span.creature-name {
  display: block;
  width: 100%;
  color: inherit;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  line-height: 1.2rem;
  min-height: 2.4rem;
}

/* ---------- Creature ---------- */

.creature-flex {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .creature-flex {
    flex-direction: row;
  }
}

.creature-card-container {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  /*padding: 1rem;*/
}

.creature-card {
  width: auto;
  height: 25rem;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.creature-infos dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0rem 0.5rem;
  align-items: center;
}

.creature-infos dl dd {
  font-family: monospace;
}

.discovery-chart-container {
  height: 150px;
  max-width: 350px;
  margin: 0 auto;
  margin-bottom: 0.5rem;
}

.discovery-selector button {
  border-radius: 5rem;
  padding: 0 0.5rem;
}

.first-discoveries p {
  margin-bottom: 0.5rem;
}

.first-discoveries ol {
  margin: 0;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1rem;
  list-style: none;
}

.first-discoveries ol li {
  font-size: 0.7rem;
  margin: 0;
  font-family: monospace;
}
