body {
    background-color: #f8f9fa;
}
.bg-image {
    background-image: url('../../static/images/table-top-2.png');
    background-repeat: repeat;
    min-height: 100vh;
}
header {
    color: white;
    padding: 10px 0;
}
header h3 {
    color: black;
}
.main-div {
    padding-left: 0px;
    padding-right: 0px;
}
.section-div {
    margin-top: 12px;
    padding-left: 48px;
    margin-left: unset;
}
.board-svg {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}
.text-align-right {
    text-align: right;
}
.party-contribution-selection-grid,
.party-contribution-reveal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.party-contribution-revealed-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.party-contribution-choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.party-contribution-card {
    width: 132px;
    aspect-ratio: 3 / 4;
    object-fit: contain;
}
.float-right {
    float: right;
}
.mt-0 {
    margin-top: 0px;
}
.mt-16 {
    margin-top: 16px;
}
.ml-0 {
    margin-left: 0px;
}
.ml-8 {
    margin-left: 8px;
}
.ml-12 {
    margin-left: 12px;
}
.pr-12 {
    padding-right: 12px;
}
.mr-28 {
    margin-right: 28px;
}
.mr-32 {
    margin-right: 32px;
}
.ml-16 {
    margin-left: 16px;
}
.ml-28 {
    margin-left: 28px;
}
.ml-32 {
    margin-left: 32px;
}
.ml-36 {
    margin-left: 36px;
}
.pt-16 {
    padding-top: 16px;
}
.pl-0 {
    padding-left: 0px;
}
.pl-12 {
    padding-left: 12px;
}
.pl-28 {
    padding-left: 28px;
}
.mt-12 {
    margin-top: 12px;
}
.mb-8 {
    margin-bottom: 8px;
}
.mb-12 {
    margin-bottom: 12px;
}
.mb-16 {
    margin-bottom: 16px;
}
.mt-24 {
    margin-top: 24px;
}
.mr-0 {
    margin-right: 0px;
}
.mr-6 {
    margin-right: 6px;
}
.mr-12 {
    margin-right: 12px;
}
.mr-18 {
    margin-right: 18px;
}
@media (max-width: 768px) {
    .second-row {
        margin-top: 24px;
    }
}
.hidden {
    display: none;
}
.pp-select-box {
    align-items: center;
    display: flex;
    padding-left: 5px;
    margin: 5px;
}
.cducsu-text {
    color: black !important;
    font-weight: bold;
}
.cducsu {
    background-color: #6c757d !important;
    fill: black;
    color: white !important;
}
.spd-text {
    color: #c00000 !important;
    font-weight: bold;
}
.spd {
    background-color: #c00000 !important;
    fill: #c00000;
    color: white !important;
}
.fdp-text {
    color: yellow !important;
    font-weight: bold;
    background-color: darkslategrey !important;
}
.fdp {
    background-color: yellow !important;
    fill: yellow;
    color: black !important;
}
.die-linken-text {
    color: pink !important;
    font-weight: bold;
    background-color: darkslategrey !important;
}
.die-linken {
    background-color: pink !important;
    fill: pink;
    color: black !important;
}
.die-grunen-text {
    color: green !important;
    font-weight: bold;
}
.die-grunen {
    background-color: green !important;
    fill: green;
    color: white !important;
    padding-right: 10px;
}
.hover-container {
    position: relative;
    display: inline-block;
}

.hover-card {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    z-index: 10;
    width: 18rem;
}
.hover-container:hover .hover-card {
    display: block;
}
.state-board-row {
    position: relative;
    display: inline-block;
}
.state-board-rotate {
    transform: rotate(180deg);
}
#board1-state-img {
    position: absolute;
    transform: rotate(315deg);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 1)
}
#board2-state-img {
    position: absolute;
    transform: rotate(45deg);
    box-shadow: 4px -4px 8px rgba(0, 0, 0, 1)
}
#board3-state-img {
    position: absolute;
    transform: rotate(135deg);
    box-shadow: -4px -4px 8px rgba(0, 0, 0, 1)
}
#board4-state-img {
    position: absolute;
    transform: rotate(225deg);
    box-shadow: -4px 4px 8px rgba(0, 0, 0, 1)
}
.img-shadow {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 1);
}
.board-state-modal-header {
    background-color: black;
    color: white;
}
.state-modal-img {
    margin-top: 12px;
}
.pop-votes p {
    margin: 0px;
}
.pop-votes .col-2 {
    padding: 0px 6px 0px 0px;
}
.votes-seats {
    padding: 6px 0 0 0;
}
h2 button:focus svg {  
    outline: 2px solid ;
}
.fill-white {
    fill: white;
}
.all-inherit {
    all: inherit;
}
#state-table  {
    background-color: #9ad0e0;
}
#state-table th  {
    background-color: #9ad0e0;
}
#state-table td  {
    background-color: #9ad0e0;
    padding: 0px;
}
#state-board-map {
    background-color: #e8ead4;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
#state-board-map img {
    background-color: #e8ead4;
}
    .pop-votes .row {
    height: 50px;
}
#modal-media-markers {
    border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
    margin-top: 16px;
    padding-top: 16px;
    padding-bottom: 8px;
}
#board-votes {
    border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
    margin-top: 16px;
    padding-top: 16px;
}
#board-public-opinion {
    border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
    margin-top: 16px;
    padding-top: 16px;
}
.modal-key-issue {
    position: relative;
    left: 5px;
    bottom: 30px;
}
.action-section-header {
    max-width: 100%;
    background-color: white;
}
.action-section {
    margin-left: 12px;
    padding-left: 0px;
}
.buy-media-markers {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.buy-media-markers > span {
    flex: none;
}
.buy-media-markers-svg {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 240px;
}
.coalition-matching-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 96px;
    padding: 8px 4px;
}
.coalition-target-card .coalition-matching-cards {
    margin-bottom: 16px;
}
.coalition-target-action {
    display: block;
    margin-top: 8px;
}
.coalition-matching-card {
    display: block;
    flex: 0 0 auto;
    width: 60px;
    max-width: 100%;
    height: 96.45px;
}
.exchange-state-card {
    display: inline-block;
    position: relative;
}
.exchange-key-issue-marker {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 30px;
    height: 30px;
}
.conversion-card-choice {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    vertical-align: top;
}
.conversion-public-opinion-card {
    width: 56px;
    height: 90px;
}
.conversion-card-frame {
    display: inline-block;
    line-height: 0;
    position: relative;
    vertical-align: top;
}
.national-opinion-stack {
    width: 56px;
    height: 90px;
}
.national-opinion-stack-card {
    position: absolute;
    top: 0;
    left: 0;
}
.conversion-match-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 2px solid #111;
    border-radius: 50%;
    background: #ffd400;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.election-state-match-marker,
.election-national-match-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 2px solid #111;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.election-state-match-marker {
    left: -12px;
    background: #198754;
    color: #fff;
}
.election-national-match-marker {
    right: -12px;
    background: #ffd400;
    color: #111;
}
.conversion-contradiction-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -12px;
    bottom: -12px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 2px solid #111;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
.other-players {
    width: 12rem;
}
/* The <header> element sets color: white for the title bar; without this override that
   white is inherited into the modal (which is nested inside <header> in the DOM) and
   becomes unreadable against its light bg-secondary-subtle background. */
#matching-opinion-modal .modal-header,
#matching-opinion-modal .modal-body {
    color: #212529;
}
#matching-opinion-policy-cards,
#matching-opinion-selected-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.matching-opinion-row-group-header {
    background-color: cornsilk !important;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 1;
}
.matching-opinion-tick {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border: 2px solid #111;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}
.matching-opinion-cross {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border: 2px solid #111;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 14px;
    line-height: 1;
}
.board-po-image {
    position: absolute;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
.exchange-pool-search {
    max-width: 28rem;
}
.exchange-pool-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px 8px;
    max-height: 420px;
    overflow-y: auto;
    padding: 4px;
}
.exchange-pool-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-right: 0;
    text-align: center;
}
.exchange-pool-option .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}
.exchange-pool-option[hidden] {
    display: none !important;
}
.exchange-pool-option img {
    width: 56px;
    height: 90px;
    object-fit: contain;
}
.board-coalition-image {
    position: absolute;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
.board-ki-pro-image {
    position: absolute;
    border: 2px solid black;
}
.board-ki-against-image {
    position: absolute;
    border: 2px solid white;
}
.board-sc-image {
    position: absolute;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}
#player-order ul {
    padding-top: 4px;
    border: 0;
}
#player-order li {
    margin: 0 8 0 0;
    border: 1px solid black !important;
    padding: 0;
}
.player-order-div {
    margin-bottom: 8px;
    margin-left: 8px;
    width: 7rem;
}
.player {
    padding: 8px 16px;
    border: 1px solid black;
    display: inline-flex;
    width: -webkit-fill-available;
}
.player-party-membership {
    padding: 8px;
    background-color: white;
    border: 1px solid black;
    display: inline-flex;
    color: black;
}
#player-order .card-body {
    padding: 0px;
}
#player-order a {
    margin: -1px;
}
#player-order .scorecard-link,
#player-order .matching-opinion-link {
    color: white;
    white-space: nowrap;
}
#player-order .matching-opinion-link {
    margin-left: auto !important;
    margin-right: 20px !important;
}
#player-order .scorecard-link:hover,
#player-order .scorecard-link:focus,
#player-order .scorecard-link:visited,
#player-order .matching-opinion-link:hover,
#player-order .matching-opinion-link:focus,
#player-order .matching-opinion-link:visited {
    color: white;
}
#player-order .player-order-label {
    margin-bottom: 8px;
}
#player-order input {
    display: none !important;
}
.players-div {
    padding-left: unset;
    margin-left: 48px;
}
.player-order-transparent {
    border-bottom: 8px solid transparent;
}.player-order-black {
    border-bottom: 8px solid black;
}
.clickable {
    cursor: pointer;
}
.error {
    color: red;
    font-weight: bold;
}
.success {
    color: green;
    font-weight: bold;
}
#flash-messages {
    background-color: white;
    border: 2px solid red;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
    margin-left: 28px;
}
.national-board-rules-help {
    position: relative;
}
.national-board-rules-help summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #6c757d;
    border-radius: 50%;
    color: #495057;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    list-style: none;
}
.national-board-rules-help summary::-webkit-details-marker {
    display: none;
}
.national-board-rules-help summary:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
.national-board-rules-help-popup {
    position: absolute;
    z-index: 1080;
    top: calc(100% + 0.5rem);
    left: 0;
    width: min(24rem, calc(100vw - 3rem));
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
    color: #212529;
    font-size: 0.9rem;
}
#flash-messages ul {
    margin-top: 16px;
    list-style-type: none;
}
#flash-messages li {
    padding: 8px 12px;
}
.shadow-cabinet-svg {
    width: 40px;
    height: 40px;
}
.tile {
    fill: white;
    position: absolute; 
}
.popularity-image img {
    transform: scale(0.75);
    transform-origin: top left;
}
.tick-align {
    text-align: center;
    vertical-align: middle;
}
#actions-hdr {
    border-bottom-style: double !important;
    padding-top: 12px;
}
div .actions {
    border-bottom-style: groove;
    font-size: smaller;
}
.actions ul {
    margin-bottom: 0;
}
#actions-section {
    background-color: lightgrey;
}
