body {
    --bs-body-font-family: monospace;
}

.bg-dark {
    background-color: #1c1c1c !important;
}

#you {
    border: 1px solid black;
}

button.agentcard {
    width: 50px;
    height: 40px;
    margin: 3px;
    position: relative;
}

span.card-shortcut {
    position: absolute;
    bottom: 0;
    right: 3px;
    font-size: 0.6em;
    line-height: 1;
    opacity: 0.75;
}

button.agentcard.btn-primary {
    --bs-btn-bg: #0d6efd;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: #17458a;
    --bs-btn-disabled-border-color: #17458a;
    --bs-btn-disabled-color: #fff;
}

button.agentcard.btn-danger {
    --bs-btn-bg: #cb0000;
    --bs-btn-border-color: #8b0000;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #a30000;
    --bs-btn-hover-border-color: #a30000;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #720000;
    --bs-btn-active-border-color: #720000;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: #8b0000;
    --bs-btn-disabled-border-color: #8b0000;
    --bs-btn-disabled-color: #fff;
}

button.our-selected {
    border: 4px solid silver;
}

button.their-selected {
    border: 4px solid gold;
}

button.mission {
    --bs-btn-bg: #25bf25;
    --bs-btn-border-color: #25bf25;
    --bs-btn-hover-bg: limegreen;
    --bs-btn-hover-border-color: limegreen;
    --bs-btn-active-bg: limegreen;
    --bs-btn-active-border-color: limegreen;
    --bs-btn-disabled-bg: #487d48;
    --bs-btn-disabled-border-color: #487d48;
    width: 2em;
    padding: 0;
    margin: 1px;
}

.history-table {
    max-height: 60vh;
    overflow-y: auto;
}

.history-table thead th {
    position: sticky;
    top: 0;
    background-color: #1c1c1c;
}

/*
 * The game log lives in a fixed right-hand sidebar when the viewport is
 * wide enough for it to clear the centered board. Otherwise it is only
 * shown as a modal, opened by the Game log button.
 */
.game-history {
    display: none;
}

@media (min-width: 1600px) {
    .game-history {
        display: block;
        position: fixed;
        top: 80px;
        right: 12px;
        width: 250px;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
    }

    .game-history .history-table {
        max-height: none;
    }

    .history-toggle {
        display: none;
    }

    .history-modal {
        display: none !important;
    }
}

footer.site-footer a {
    color: #6ea8fe;
    text-decoration: none;
}

footer.site-footer a:hover {
    text-decoration: underline;
}
