:root {
    --primary-color: #d32128;
    --primary-color-dark: #a3191f;
    --secondary-color: #242323;
    --object-color: #ec2d0a;
    --object-color-light: #ff6a55;

    --primary-font: 'Bebas Neue', sans-serif;
    --secondary-font: 'Jost', sans-serif;
}

:root,
[data-bs-theme="light"] {
    --bs-body-font-family: var(--secondary-font);

    --bs-primary: var(--primary-color);
    --bs-primary-rgb: 211, 33, 40;
    --bs-link-color: var(--primary-color);
    --bs-link-color-rgb: 211, 33, 40;
    --bs-link-hover-color: var(--primary-color-dark);
    --bs-link-hover-color-rgb: 163, 25, 31;
    --bs-focus-ring-color: rgba(211, 33, 40, 0.25);
}

[data-bs-theme="dark"] {
    --bs-body-bg: var(--secondary-color);
    --bs-body-bg-rgb: 36, 35, 35;
    --bs-body-color: #f1f1f1;
    --bs-body-color-rgb: 241, 241, 241;
    --bs-secondary-color: #c4c4c4;
    --bs-secondary-color-rgb: 196, 196, 196;
    --bs-secondary-bg: #3d3c3c;
    --bs-secondary-bg-rgb: 61, 60, 60;
    --bs-tertiary-bg: #302f2f;
    --bs-tertiary-bg-rgb: 48, 47, 47;
    --bs-border-color: #5a5959;

    --bs-primary: var(--object-color-light);
    --bs-primary-rgb: 255, 106, 85;
    --bs-link-color: var(--object-color-light);
    --bs-link-color-rgb: 255, 106, 85;
    --bs-link-hover-color: #ff8f7e;
    --bs-link-hover-color-rgb: 255, 143, 126;

    color: var(--bs-body-color);
}

.btn-primary {
    --bs-btn-bg: var(--secondary-color);
    --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-focus-shadow-rgb: 211, 33, 40;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-disabled-bg: var(--secondary-color);
    --bs-btn-disabled-border-color: var(--secondary-color);
}

[data-bs-theme="dark"] .btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--primary-color-dark);
    --bs-btn-hover-border-color: var(--primary-color-dark);
    --bs-btn-active-bg: var(--primary-color-dark);
    --bs-btn-active-border-color: var(--primary-color-dark);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(211, 33, 40, 0.2);
}

.form-check-input:checked {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.pagination {
    --bs-pagination-color: var(--secondary-color);
    --bs-pagination-hover-color: var(--primary-color);
    --bs-pagination-active-bg: var(--secondary-color);
    --bs-pagination-active-border-color: var(--secondary-color);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(211, 33, 40, 0.2);
}

.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--secondary-color);
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--secondary-color);
}


body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--primary-color) url(../img/red_bg.jpg) center / cover fixed;
}

img {
    max-width: 100%;
    height: auto;
}

.main {
    flex: 1 0 auto;
}

.main.home-main {
    background-color: var(--secondary-color);
}

.card-row {
    min-height: calc(100vh - 17rem);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.card-row .card,
.events-page,
.page-contact {
    border: 0;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.3);
}

.events-page {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
}

@media (max-width: 575.98px) {
    .events-page {
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
    }
}

.page,
.page-sections {
    --bs-body-color: #fff;
    --bs-secondary-color: rgba(255, 255, 255, 0.8);
    --bs-border-color: rgba(255, 255, 255, 0.45);
    --bs-link-color-rgb: 255, 255, 255;
    --bs-link-hover-color-rgb: 255, 255, 255;

    padding-top: 3rem;
    padding-bottom: 4rem;
    color: var(--bs-body-color);
}

.page {
    --bs-gutter-x: 2rem;
}

.page,
.page-intro,
.bio .box {
    font-size: 1.125rem;
    line-height: 1.65;
}

.container.page {
    max-width: 46rem;
}

.page a:not(.btn):hover,
.page-sections a:not(.btn):hover {
    text-decoration-thickness: 2px;
}

.page code,
.page-sections code {
    color: inherit;
}

.page > h1 {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.1;
    text-wrap: balance;
}

.page-banner {
    position: relative;
    min-height: min(700px, 75vw);
    background: #ddd 65% center / cover no-repeat;
}

.page-banner p,
.page-banner h1 {
    position: absolute;
    right: 5%;
    bottom: 5%;
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 0 5px #fff;
    text-transform: uppercase;
}

.page-banner-short {
    min-height: min(400px, 50vw);
    background-position: center 40%;
}

.page-banner-short h1 {
    right: auto;
    left: 5%;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.page-band {
    --bs-link-color-rgb: 255, 255, 255;
    --bs-link-hover-color-rgb: 255, 255, 255;

    padding: 2rem 0;
    background: #0f0f0f url(../img/silhouettes.png) center / cover;
    color: #fff;
}

.page-band .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.page-band img {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.page-band h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 4rem);
    line-height: 1.05;
    text-wrap: balance;
}

.page-band .box {
    margin-top: 0.75rem;
    font-size: 1.125rem;
}

.page-band .visually-hidden + .box {
    margin-top: 0;
}

.page-sections > section + section {
    margin-top: 3rem;
}

.page-sections > .box-edit,
.page-sections > .box-missing {
    margin-top: 2rem;
}

.page-panel {
    padding: 1.25rem 1.5rem;
    border: 1px solid #fff;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 1.125rem;
}

@media (min-width: 768px) {
    .page-band .container {
        flex-direction: row;
        justify-content: space-around;
        text-align: left;
    }
}

.bios-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bios-title h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    text-wrap: balance;
}

.page-intro {
    max-width: 46rem;
    margin-bottom: 3rem;
}

.bio h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
}

/* Every picture is cut to one shape, so the rows line up. The fist stands in where there is no picture.
   "!important" is for the sizes the editor writes on a picture itself. */
.bio-picture:empty {
    aspect-ratio: 7 / 4;
    border-radius: var(--bs-border-radius);
    background: var(--secondary-color) url(../img/fist.png) center / auto 45% no-repeat;
}

.bio-picture figure {
    width: 100% !important;
    margin: 0;
}

.bio-picture img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 7 / 4 !important;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.35);
    object-fit: cover;
    object-position: 50% 25%;
}

.bio-picture figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.partners .box {
    font-size: 1.125rem;
}

.partners h3 {
    margin: 1.75rem 0 0.25rem;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.partners h3:first-child {
    margin-top: 0;
}

.partners p {
    margin-bottom: 0.25rem;
}

.partners p a {
    font-style: italic;
    text-decoration: none;
    text-transform: uppercase;
}

.partners p a::before {
    margin-right: 5px;
    content: "\00BB";
}

.partners p a:hover {
    text-decoration: underline;
}

.page-contact {
    margin-top: 2.5rem;
    padding: 2rem;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-size: 1rem;
    line-height: var(--bs-body-line-height);
}

.page-contact h2,
.board h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.page-contact-note {
    margin: 1rem 0 0;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

.card-header h1,
.dashboard-header > h1,
.events-toolbar h1,
.events-month-list h2,
.event-page-header h1,
.page > h1,
.page-band h1,
.bios-title h1 {
    font-family: var(--primary-font);
    letter-spacing: 0.5px;
}

.card-header h1 {
    margin: 0.5rem;
    font-size: 2rem;
    line-height: 1.1;
}

footer {
    padding: 1.25rem 0;
    background-color: var(--secondary-color);
    font-size: 0.85rem;
}

footer p {
    margin: 0;
    color: #c4c4c4;
}

.icon-button {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background-color 200ms ease-in-out, color 200ms ease-in-out;
}

.icon-button:hover,
.icon-button:focus-visible {
    background-color: #fff;
    color: var(--secondary-color);
}

.icon-button:focus-visible {
    outline: 2px solid var(--object-color-light);
    outline-offset: 3px;
}

.icon-button-dark {
    background-color: var(--secondary-color);
}

.icon-button-dark:hover,
.icon-button-dark:focus-visible {
    background-color: var(--primary-color);
    color: #fff;
}


#navbar_info {
    padding: 0.5rem;
    background-color: #fff;
}

#navbar_info .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column-reverse;
}

.social_info img {
    display: block;
    width: 100%;
    max-width: 350px;
}

.social_net_navbar a {
    font-size: 2rem;
    text-decoration: none;
}

.social_net_navbar a i {
    transition: transform 250ms ease-out;
}

.social_net_navbar a:hover i {
    transform: scale(1.1);
}

.social_net_navbar a:nth-child(1) {
    color: #1da1f2;
}

.social_net_navbar a:nth-child(2) {
    color: #ff0000;
}

.social_net_navbar a:nth-child(3) {
    color: #1877f2;
}

.social_net_navbar a:nth-child(4) {
    color: #c32aa3;
}

.navbar {
    border: none;
    background-color: var(--secondary-color);
}

.navbar-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-right: 0.75rem;
}

.navbar .navbar-nav .nav-link {
    color: #ddd;
    font-family: var(--primary-font);
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 250ms ease-in-out;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus-visible {
    color: var(--object-color-light);
}

.navbar .navbar-nav .nav-link.whats-new-btn {
    border: 0;
    border-radius: 5px;
    background-color: var(--object-color);
    color: #fff;
    white-space: nowrap;
}

.navbar .navbar-nav .nav-link.whats-new-btn:hover,
.navbar .navbar-nav .nav-link.whats-new-btn:focus-visible {
    color: #fff;
    text-shadow: 0 0 3px #fff;
}

@media (min-width: 768px) {
    #navbar_info .container {
        flex-direction: row;
    }
}

@media (min-width: 992px) {
    .navbar .navbar-nav .nav-item {
        padding: 15px 10px;
    }

    .navbar .navbar-nav .nav-link.whats-new-btn {
        padding-inline: 0.75rem;
        animation: whats-new-animation 1s ease-in-out infinite alternate;
    }

    @keyframes whats-new-animation {
        from {
            transform: translateY(0);
        }

        to {
            transform: translateY(-5px);
        }
    }
}

@media (min-width: 1200px) {
    .navbar .navbar-nav .nav-link {
        font-size: 19px;
    }
}


.home_primary {
    min-height: 700px;
    padding: 0;
    background: #ddd url(../img/banner.jpg) center 0% / cover fixed;
}

.home_primary .container {
    position: relative;
    min-height: inherit;
}

.home_primary .title {
    width: fit-content;
    color: #fff;
    font-family: var(--secondary-font);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* The words over the photograph: a heading in them is the large line, as the quotation is. */
.home_primary .box h1,
.home_primary .box h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.6rem, 5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    text-wrap: balance;
}

.home_primary .title > img {
    position: relative;
    top: 50px;
    width: 100%;
    max-width: 350px;
}

.home_primary .newsletter-btn {
    position: absolute;
    right: 50%;
    bottom: 20px;
    width: 80%;
    transform: translateX(50%);
    border-color: transparent;
    border-radius: 0;
    background-color: var(--secondary-color);
    font-family: var(--primary-font);
    font-size: 20px;
    letter-spacing: 1px;
    text-shadow: none;
    text-transform: uppercase;
}

.home_primary .newsletter-btn:hover,
.home_primary .newsletter-btn:focus-visible {
    background-color: #000;
}

.home_primary .newsletter-btn i {
    color: var(--object-color);
}

.home_secondary {
    display: flex;
    min-height: 300px;
    align-items: center;
    padding: 40px 20px;
    background: var(--primary-color) url(../img/red_bg.jpg) center / cover;
}

.home_events,
.home_board {
    padding: 60px 20px;
}

.section-heading,
.home_secondary .row > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-heading h2,
.home_secondary h2,
.home_contact h2 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: var(--primary-font);
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.home_secondary p,
.home_secondary li {
    margin: 0;
    color: #fff;
    font-family: var(--secondary-font);
    font-size: 18px;
    word-break: break-word;
}

.home_secondary a:not(.btn) {
    color: #fff;
}

.home_secondary .box {
    width: 100%;
}

.home-more {
    align-self: flex-start;
    margin-top: 1.25rem;
}

.home_contact {
    padding: 60px 20px;
    background: var(--primary-color) url(../img/red_bg.jpg) center / cover;
    color: #fff;
    text-align: center;
}

.home_contact p {
    margin-bottom: 1.25rem;
    font-size: 18px;
}

.board-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
    gap: 1.5rem 1rem;
    margin: 0 0 1.75rem;
    padding: 0;
    color: #fff;
    list-style: none;
    text-align: center;
}

.board-preview li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-preview .member-photo {
    width: 6rem;
    height: 6rem;
    margin-bottom: 0.6rem;
}

.board-preview span:not(.member-photo) {
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
}

.member-photo {
    display: block;
    width: 7rem;
    height: 7rem;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

.member-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    font-family: var(--primary-font);
    font-size: 2rem;
    letter-spacing: 1px;
}

.board {
    margin-top: 2.5rem;
}

.board .member-initials {
    background-color: var(--secondary-color);
}

.board-members {
    display: grid;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.board-members li {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.board-members h3 {
    margin: 0;
    font-size: 1.25rem;
}

.board-members p:last-child {
    margin-bottom: 0;
}

.member-role {
    margin: 0 0 0.5rem;
    color: var(--bs-secondary-color);
}

.board-past {
    margin: 0;
    padding-left: 1.25rem;
}

@media (max-width: 575.98px) {
    .board-members li {
        grid-template-columns: 4.5rem minmax(0, 1fr);
        gap: 1rem;
    }

    .board-members .member-photo {
        width: 4.5rem;
        height: 4.5rem;
    }

    .board-members .member-initials {
        font-size: 1.4rem;
    }
}

[data-reveal] {
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-waiting {
    opacity: 0;
    transform: translateY(1.5rem);
}

@media print {
    .reveal-waiting {
        opacity: 1;
        transform: none;
    }
}

.home_last {
    min-height: 200px;
    padding: 40px 0;
    text-align: center;
}

.home_last .lives_matter {
    width: 100%;
    max-width: 350px;
}

.home_last .lives_collage {
    width: 100vw;
    max-width: 100%;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .section-heading {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    .home_secondary .section-heading,
    .page-sections .section-heading {
        align-items: center;
    }

    .section-heading img {
        padding-right: 1rem;
    }

    .home_primary .newsletter-btn {
        right: 0;
        bottom: 5%;
        width: auto;
        transform: none;
    }

    .container {
        max-width: 1200px;
    }
}

@media (max-width: 767.98px), (hover: none) {
    body,
    .home_primary {
        background-attachment: scroll;
    }
}


.btn-sm {
    padding-right: 0.375rem;
    padding-left: 0.375rem;
}

#jsTable_wrapper > .row {
    margin-right: 0;
    margin-left: 0;
}

#jsTable_wrapper > .row.flex-nowrap > * {
    width: auto;
}

#jsTable_wrapper > .row.flex-nowrap > .flex-grow-1 {
    flex: 1 1 0;
    min-width: 0;
}

#jsTable_filter .form-control {
    width: 100%;
    margin-left: 0;
}

#jsTable_length .form-select {
    width: auto;
}

@media (max-width: 767.98px) {
    .page-item {
        flex: 1;
    }
}

.message-wrapper {
    top: 0.75rem;
    z-index: 1032;
    margin: 0 8px;
    pointer-events: none;
}

.alert-message {
    margin: 4px 0;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
    animation: message-in 300ms ease-out;
    pointer-events: auto;
}

@media (min-width: 992px) {
    .message-wrapper {
        margin: 0 25%;
    }
}

@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
}

#dashboard {
    position: fixed;
    inset: 0;
    z-index: 1100;
    overflow-y: auto;
    background-color: rgba(var(--bs-body-bg-rgb), 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
}

#dashboard.visible {
    opacity: 1;
    visibility: visible;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 4rem 0 3rem;
}

.dashboard-header > h1 {
    margin: 0;
    font-size: 2.5rem;
}

.dashboard-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 4rem;
    padding: 0;
    list-style: none;
}

.dashboard-body > li {
    display: flex;
    flex: 1 1 10rem;
    flex-direction: column;
    max-width: 14rem;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-tertiary-bg);
}

.dashboard-body > li > i {
    padding: 2rem 1rem 1.25rem;
    color: var(--secondary-color);
    font-size: 3.5rem;
    text-align: center;
}

.dashboard-body > li > p {
    margin: 0;
    padding: 0 1rem 1.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.dashboard-body > li > a {
    margin-top: auto;
    border-width: 1px 0 0;
    border-radius: 0;
    padding-block: 0.75rem;
}


.box::after {
    display: table;
    clear: both;
    content: "";
}

.box > :last-child:not(.box-edit),
.box > :nth-last-child(2):has(+ .box-edit) {
    margin-bottom: 0;
}

.box figure.image {
    display: table;
    clear: both;
    margin: 1rem auto;
    text-align: center;
}

.box figure.image img {
    display: block;
    margin: 0 auto;
}

.box figure.image figcaption {
    display: table-caption;
    caption-side: bottom;
    padding: 0.5rem;
    font-size: 0.85em;
    opacity: 0.8;
}

.box .image-style-side,
.box .image-style-align-right {
    float: right;
    max-width: 50%;
    margin: 0.25rem 0 1rem 1.5rem;
}

.box .image-style-align-left {
    float: left;
    max-width: 50%;
    margin: 0.25rem 1.5rem 1rem 0;
}

.box .image-style-block-align-left {
    margin-left: 0;
}

.box .image-style-block-align-right {
    margin-right: 0;
}

.box figure.table {
    --bs-table-bg: transparent;
    --bs-table-color: currentColor;

    display: table;
    margin: 1rem auto;
}

.box figure.table table {
    border-collapse: collapse;
}

.box figure.table th,
.box figure.table td {
    padding: 0.4rem 0.6rem;
    border: 1px solid currentColor;
}

.box blockquote {
    padding-left: 1rem;
    border-left: 3px solid currentColor;
}

.box-edit {
    margin-top: 0.75rem;
}

.box-missing {
    padding: 1rem;
    border: 1px dashed var(--bs-warning);
    border-radius: var(--bs-border-radius);
    text-align: center;
}

.box-missing > p {
    margin-bottom: 0.75rem;
}

.form-trap {
    position: absolute;
    left: -200vw;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ck.ck-editor__editable {
    min-height: 12rem;
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
