.error {
    color: red;
    margin-bottom: 5px;
    text-align: center;
}

:root {
    --comparison-guild1-bg: rgb(173, 231, 207);
    --comparison-guild2-bg: pink;
    --comparison-win-bg: rgb(149, 196, 149);
    --comparison-loss-bg: rgb(255, 177, 177);
    --comparison-neutral-bg: lightyellow;
}

[data-bs-theme="dark"] {
    --comparison-guild1-bg: #263f33;
    --comparison-guild2-bg: #423038;
    --comparison-win-bg: #1d472e;
    --comparison-loss-bg: #512b2b;
    --comparison-neutral-bg: #4a4324;
}

#guild1,
#guild2 {
    color: var(--bs-body-color);
}

#guild1 {
    background-color: var(--comparison-guild1-bg);
}

#guild2 {
    background-color: var(--comparison-guild2-bg);
}

#guild1.comparison-win,
#guild2.comparison-win {
    background-color: var(--comparison-win-bg);
}

#guild1.comparison-loss,
#guild2.comparison-loss {
    background-color: var(--comparison-loss-bg);
}

#guild1.comparison-neutral,
#guild2.comparison-neutral {
    background-color: var(--comparison-neutral-bg);
}

a {
    text-decoration: none;
}

#T_guild1-battlefield-heatmap-data thead, 
#T_guild2-battlefield-heatmap-data thead,
#T_guild1-battlefield-layout-data thead, 
#T_guild2-battlefield-layout-data thead,
#compare-guilds-guild1-battlefield-players-data thead,
#compare-guilds-guild2-battlefield-players-data thead,
#compare-guilds-guild1-battlefield-layout-data thead,
#compare-guilds-guild2-battlefield-layout-data thead {
    display: none;
}

#compare-guilds-guild1-battlefield-layout-data th,
#compare-guilds-guild2-battlefield-layout-data th {
    text-align: center !important;
}

/* .table-striped {
    --bs-table-striped-bg: #e6e8e9;
} */

td.clickable {
    cursor:pointer;
}

td.clickable:hover {
    background-color: #88b7f5 !important;
    color: #000000 !important;
}

td.casualties_1 {
    background-color:#FFDFBF !important;
}

td.casualties_2 {
    background-color:#E77D22 !important;
}

td.casualties_1,
td.casualties_2 {
    color: #212529 !important;
}

.custom-popover {
    --bs-popover-max-width: 300px;
    --bs-popover-font-size: 12px;
}

.custom-popover-tbl {
    --bs-popover-max-width: 500px;
    --bs-popover-font-size: 9px;
}

a.btn:not(a.btn-img) {
    --bs-btn-padding-y: 0rem;
    --bs-btn-font-size: 13px;
    --bs-link-color: var(--bs-body-color) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--bs-secondary-color) !important;
}

.custom-img-popover {
    --bs-popover-max-width: 400px;
    --bs-popover-max-height: 550px;
}

a.btn-img {
    --bs-btn-padding-y: 0rem;
    --bs-btn-font-size: 16px;
    --bs-link-color: var(--bs-body-color) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--bs-secondary-color) !important;
}

figcaption {
    font: bolder sans-serif;
    text-align: center;
    font-size: 24px;
  }

#best-defensive-lineups-table {
    width: 100%;
    table-layout: auto;
    font-size: 0.8125rem;
}

#best-defensive-lineups-table th,
#best-defensive-lineups-table td {
    padding: 0.25rem 0.4rem;
    vertical-align: middle;
    white-space: nowrap;
}

#best-defensive-lineups-table th:nth-child(5),
#best-defensive-lineups-table td:nth-child(5) {
    max-width: 20rem;
    white-space: normal;
}

#best-defensive-heroes-menu {
    width: max-content;
    min-width: 12rem;
    max-width: 18rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

#best-defensive-heroes-menu .form-check-label {
    overflow-wrap: anywhere;
}

.account-form-actions .account-form-action,
.viewer-action-button {
    min-width: 5.5rem;
    text-align: center;
}

.viewer-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.account-form-actions .account-form-action {
    min-width: 9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.viewer-form-actions .viewer-form-action {
    box-sizing: border-box;
    width: 9rem;
    height: 2.5rem;
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

a.btn:not(a.btn-img).viewer-form-action {
    text-decoration: none !important;
}

a.btn:not(a.btn-img).account-form-action {
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-font-size: 1rem;
    text-decoration: none !important;
}

a.btn:not(a.btn-img).viewer-action-button {
    --bs-btn-padding-y: 0.25rem;
    --bs-btn-font-size: 0.875rem;
    text-decoration: none !important;
}