.tag {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 4px; /* Reduce padding to make tags smaller */
    margin: 1px;
    border-radius: 4px;
    border: 1px solid #bbb;
    background: #f4f4f4;
    text-align: center;
    font-family: Arial, sans-serif;
}

/* Make tag names smaller */
.tag-name {
    font-size: 10px; /* Reduce font size */
    font-weight: bold;
    display: block;
    font-weight: normal;
    color: #FFFF00;
}

/* Colors for different categories */
.tag-name[data-category="General"] {
    font-weight: bold;
    color: #000000;
}
.tag-name[data-category="Artist"] {
    font-weight: bold;
    color: #0a0;
}
.tag-name[data-category="Copyright"] {
    font-weight: bold;
    color: #d0d;
}
.tag-name[data-category="Character"] {
    font-weight: bold;
    color: rgb(0, 104, 0);
}
.tag-name[data-category="Species"] {
    font-weight: bold;
    color: #ed5d1f
}
.tag-name[data-category="Invalid"] {
    font-weight: bold;
    color: #FF0000;
}
.tag-name[data-category="Meta"] {
    font-weight: bold;
    color: #ed5d1f;
}
.tag-name[data-category="Lore"] {
    font-weight: bold;
    color: #171aec;
}


details {
    width: auto;
}

summary {
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

details[open] summary {
    color: #ccc;
}
