:root,
[data-bs-theme=light] {
    --color-page-background: antiquewhite;
    --color-accent: #db882b;
    --color-surface-dark: #261300;
    --color-surface-dark-hover: #3a1d00;
    --color-border-strong: brown;
    --color-surface-light: #f7d4ae;
    --color-border-light: #d8b38a;
    --color-transparent: transparent;
    --color-dropcap: #903;
    --color-map-highlight-fill: #ff00ff;
    --color-map-highlight-stroke: #ffffff;
    --color-dotted-rule-top: #8c8b8b;
    --color-dotted-rule-bottom: #fff;
}

[data-bs-theme=dark] {
    --color-page-background: #261300;
    --color-accent: antiquewhite;
    --color-surface-dark: #db882b;
    --color-surface-dark-hover: #3a1d00;
    --color-border-strong: brown;
    --color-surface-light: #f7d4ae;
    --color-border-light: #d8b38a;
    --color-transparent: transparent;
    --color-dropcap: #903;
    --color-map-highlight-fill: #ff00ff;
    --color-map-highlight-stroke: #ffffff;
    --color-dotted-rule-top: #8c8b8b;
    --color-dotted-rule-bottom: #fff;
}

body {
    padding-top: 70px;
    padding-bottom: 20px;
    background-color: var(--color-page-background);
}

a {
    text-decoration: none;
    color: var(--color-accent);
}

a:hover {
    text-decoration: underline overline;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

input,
select,
textarea {
    max-width: 280px;
}

.navbar {
    background-color: var(--color-surface-dark);
}

.navbar-nav .nav-link,
.navbar-brand,
.theme-toggle,
.navbar-brand:visited
 {
    color: var(--color-accent);
}

    .navbar-brand:hover,
    .navbar-brand:focus,
    .nav-link:hover,
    .nav-link:focus,
    .theme-toggle:hover,
    .theme-toggle:focus {
        background-color: var(--color-accent);
        color: var(--color-surface-dark);
        text-decoration: none;
        border-radius: 10px;
    }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 10px;
    background: none;
    box-shadow: none;
    font: inherit;
    line-height: inherit;
}

.theme-toggle-icon {
    display: inline-block;
    min-width: 1.25rem;
    text-align: center;
    font-size: 1.25rem;
    line-height: 1;
}

.theme-toggle-text {
    display: none;
}

@media (max-width: 991.98px) {
    .theme-toggle {
        justify-content: flex-start;
        margin-left: 0;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .theme-toggle-icon {
        display: none;
    }

    .theme-toggle-text {
        display: inline;
    }
}

button,
input[type=button],
input[type=submit] {
    color: var(--color-accent);
    border-radius: 10px;
    border: 3px solid var(--color-border-strong);
    background-color: var(--color-surface-dark);
}

.btn,
.btn-primary,
.btn.btn-primary,
a.btn,
a.btn-primary {
    color: var(--color-accent);
    border-radius: 10px;
    border: 3px solid var(--color-border-strong);
    background-color: var(--color-surface-dark);
    border-color: var(--color-border-strong);
}

.btn:hover,
.btn:focus,
.btn:active,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-check + .btn:hover,
.btn-check + .btn:focus,
.btn-check:checked + .btn,
a.btn:hover,
a.btn:focus,
a.btn-primary:hover,
a.btn-primary:focus {
    color: var(--color-accent);
    background-color: var(--color-surface-dark-hover);
    border-color: var(--color-border-strong);
    box-shadow: none;
    text-decoration: none;
}

.dropcap::first-letter {
    color: var(--color-dropcap);
    float: left;
    font-size: 75px;
    line-height: 45px;
    padding-top: 13px;
    padding-right: 8px;
    padding-left: 3px;
}

@media screen and (min-width: 1228px) {
    .body-content {
        padding: 0;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

.statstable {
    font-size: large;
}

.statstable tr td:first-child {
    min-width: 325px;
    text-align: left;
}

.statstable tr:last-child td {
    font-weight: bolder;
}

.statstable tr td {
    min-width: 100px;
    text-align: right;
}

.statstable tr th {
    text-align: center;
}

.mappers {
    font-size: large;
}

.mappers td,
.mappers th {
    padding: 15px;
}

div.map,
img.map {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.map-frame {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
    max-width: 1280px;
}

.responsive-map {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.map-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.map-highlight-shape {
    fill: var(--color-map-highlight-fill);
    fill-opacity: 0.2;
    stroke: var(--color-map-highlight-stroke);
    stroke-opacity: 0.4;
    stroke-width: 3;
}

.panel-heading {
    background-color: var(--color-surface-light) !important;
}

.panel {
    background-color: var(--color-transparent) !important;
}

.accordion-item {
    background-color: var(--color-transparent);
    border: 1px solid var(--color-border-light);
}

.accordion-button,
.accordion-button:not(.collapsed) {
    background-color: var(--color-surface-light);
    color: var(--color-surface-dark);
    box-shadow: none;
}

.accordion-button:hover,
.accordion-button:focus,
.accordion-button:not(.collapsed):focus {
    background-color: var(--color-surface-light);
    color: var(--color-surface-dark);
    box-shadow: none;
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
    opacity: 1;
}

.accordion-body {
    background-color: var(--color-transparent);
    color: inherit;
}

.dotted-rule {
    border-top: 1px dotted var(--color-dotted-rule-top);
    border-bottom: 1px dotted var(--color-dotted-rule-bottom);
}
