body {
  font-family: sans-serif;
  padding: 2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th {
  text-transform: capitalize;
}

th,
td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: left;
}

.missing-data {
  color: #999;
  font-style: italic;
}

input,
select {
  padding: 0.5rem;
  margin: 0.5rem 0;
}

#monsterDetail {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  background: #f9f9f9;
  position: relative;
}

#monsterDetail h2 {
  margin-top: 0;
}

.hidden {
  display: none;
}

.abilities {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.abilities div {
  min-width: 80px;
  text-align: center;
  background: #eee;
  border-radius: 4px;
  padding: 4px;
}

.back-button {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  background-color: #eee;
}

.back-button:hover {
  background-color: #ddd;
}

.clickable-row {
  cursor: pointer;
}

.warning {
  background-color: #fff3cd;
  color: #856404;
  padding: 8px;
  margin: 10px 0;
  border-radius: 4px;
  border-left: 4px solid #ffeeba;
  font-weight: bold;
}

#monsterDetail h3 {
  margin-bottom: 5px;
  color: #333;
  font-size: 1.3em;
}
