.icon {
    margin: 0 4px;
    vertical-align: text-top;

    filter: invert(20%);
    @media (prefers-color-scheme: dark) {
        filter: invert(100%);
    }
}
button .icon {
    filter: invert(100%);
}
a[role="button"] .icon {
    filter: invert(100%);
}
a:not([role="button"]) .icon {
    filter: invert(25%) sepia(92%) saturate(1382%) hue-rotate(176deg) brightness(102%) contrast(99%);
    @media (prefers-color-scheme: dark) {
        filter: invert(60%) sepia(58%) saturate(5130%) hue-rotate(172deg) brightness(101%) contrast(105%);
    }

    &:hover {
        text-decoration: underline;
    }
}
button.danger, a[role=button].danger {
    background-color: #790000;
    border-color: #460000;
}

h2.danger {
    background-color: #790000;
    padding: 0.5em;
    border-radius: 4px;
    border: 1px solid #460000;
}

.logo {
    height: 3.25rem;
    @media (prefers-color-scheme: dark) {
        filter: brightness(150%) contrast(80%);
    }
}
.big-logo {
    height: 8rem;
}
body > header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.25rem;
}
.full-width {
    width: 100%;
}
.center {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.card-table th {
    width: 20%;
    text-align: right;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    & > h5 {
        margin: 0;
    }
}
.muted {
    color: #666;
}
.flash {
    text-align: center;
    position: fixed;
    z-index: 50;
    width: 100%;
    top: 0;
    /** make flash disappear after 10 seconds */
    animation: fadeOut 4s forwards 10s;
    & > .close {
        position: absolute;
        right: 16px;
    }
}
.flash__progressbar {
    width: 100%;
    height: 4px;
    background-color: #8a8a8a;
    animation: progressBar 10s forwards;

    &.error {
        background-color: #870000;
    }
    &.notice {
        background-color: #005795;
    }
    &.success {
        background-color: #008800;
    }
    &.warning {
        background-color: #8a6d00;
    }
}
@keyframes fadeOut {
    to {
        top: -100%;
    }
}
@keyframes progressBar {
    to {
        width: 0;
    }
}
.hamburger-menu {
    height: 100%;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    margin: 0 1rem;
    overflow: hidden;
}

.menu > li > a {
    display: inline-flex;
}

.menu-button-container {
    display: none !important;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: #fff;
    position: absolute;
    height: 4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

@media (max-width: 767px) {
    .menu-button-container {
        display: flex !important;
    }
    .menu {
        position: absolute;
        top: 0;
        z-index: 100;
        left: 0;
        margin: 75px 0 0 0 !important;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    #menu-toggle:checked ~ .menu li {
        border: 1px solid #333;
        height: 2.5em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }
    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: white;
        background-color: #222;
    }
    .menu > li:not(:last-child) {
        border-bottom: 1px solid #444;
    }
}

.hide {
    @media (max-width: 767px) {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .button-group-break {
        flex-direction: column;

    }

    .button-group-break > a {
        border-radius: var(--pico-border-radius) !important;
        margin-bottom: var(--pico-spacing);
    }
}

.participant-card-name {
    max-width: calc(100% - 145px);
}