* {
    box-sizing: border-box;
}

.row {
    margin-left:-5px;
    margin-right:-5px;
}

.column {
    float: left;
    width: 22%;
    padding: 5px;
}

.column2 {
    width: 30%;
}

h2, h3, h4 {
    text-align: center;
}

h2 {
    color: #3b82f6;
}

table {
    border-spacing: 0;
    border: 1px black solid;
    margin: 0 auto;
}

td {
    border: 1px black solid;
    text-align: center;
    vertical-align: top;
}

.highlight {
    background-color: yellow;
}

hr {
    border: 2px solid black;
}

tr.wizard   { background: #c9cfd6; } /* cool grey-blue */
tr.taoist   { background: #cdd6c9; } /* pale jade-grey */
tr.warrior  { background: #d6cdc9; } /* warm stone-grey */

tr.wizard td:first-child  { border-left: 4px solid #6b84a6; }
tr.taoist td:first-child  { border-left: 4px solid #6a8f6a; }
tr.warrior td:first-child { border-left: 4px solid #8f6a4f; }

td.req { background: rgba(0, 0, 0, 0.3); }

.req { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,0.6); cursor: pointer; }
.req-unknown { color: #fff; opacity: .9; }
.req-class { color: #bbb; font-style: italic; }

.req-gem { color: #FFC266; }
.req-boss { color: #9FC7FF; }
.req-currency { color: #F0EC88; }
.req-special { color: #D81438; }
.req-hellmouth { color: #8BFF3A; }

.req-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.req-modal.on {
    display: block;
}

.req-row {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.req-icon {
    float: left;
    padding-right: 10px;
}

.req-where {
    padding-bottom: 10px;
}

.req-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.modal-box {
    position: relative;
    max-width: 1200px;
    width: fit-content;
    margin: 10vh auto;
    background: #000;
    color: #fff;
    padding: 20px;
    border: 1px solid #444;
    border-radius: 6px;
    overflow-x: auto;
    min-width: 200px;
}

.gem-flow {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gem-node {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
}

.gem-node img {
    width: 22px;
    height: 22px;
    image-rendering: pixelated;
}

.gem-qty {
    opacity: 0.9;
    margin-left: 2px;
}

.gem-arrow {
    opacity: 0.7;
    font-weight: bold;
}

.gem-where {
    margin-top: 8px;
    opacity: 0.85;
    font-style: italic;
}

.gem-found{
    margin-left: 12px;
    opacity: 0.85;
    font-style: italic;
    flex: 0 0 auto;
}

.gem-header {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    margin-bottom: 6px;
}

.gem-multi-inputs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.gem-sub-flow {
    opacity: 0.85;
}

.gem-combine-row {
    margin-top: 2px;
}
