/* css/class-selector.css
   Single source for the class picker. Used by the Introduction class page
   (index.html) and the Talents view (talents.html). Values are the ones that
   actually rendered before cleanup. */

.cp-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    padding: 0;
}

.cp-class-btn {
    --cls-color: #c9a227;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    width: 108px;
    min-width: 108px;
    min-height: 78px;
    padding: 7px 5px;
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #e6e6e6;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 120ms, color 120ms, box-shadow 120ms;
}

.cp-class-btn img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--cls-color);
    background: #000;
    transition: transform 120ms, box-shadow 120ms;
    box-shadow: 0 0 23px rgba(128, 124, 112, 0.4);
}

.cp-class-btn span {
    white-space: nowrap;
    overflow-wrap: normal;
    color: var(--cls-color);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.cp-class-btn:hover {
    border-color: var(--cls-color);
}

.cp-class-btn:hover img {
    transform: scale(1.04);
    box-shadow: 0 0 12px var(--cls-color);
}

.cp-class-btn.is-active {
    border-color: var(--cls-color);
    box-shadow: 0 0 12px color-mix(in srgb, var(--cls-color) 45%, transparent);
}

.cp-class-btn.is-active img {
    box-shadow: 0 0 14px var(--cls-color);
}