.modal {
    z-index: 20000;
}

.payload {
    font-family: monospace;
}

.pdfviewer {
    height: 80vh;
}

.navbar.sticky-top {
    z-index: 10000;
}

.back-top {
    position: fixed;
    right: 30px;
    bottom: 16px;
    z-index: 10000;
}

.diff {
    font-family: monospace;
    border: 1px solid #0b2e13;
    white-space: pre-wrap;
    height: 110px;
    overflow: auto;
    resize: vertical;
    line-height: 0;
}

.diff p {
    padding: 0;
    margin: 0;
    line-height: 1.5em;
}

.flex-even {
    flex: 1;
}

.btn-active-success.active {
    color: #fff !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-active-danger.active {
    color: #fff !important;
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.table-validation .vertical-header {
    height: 13em;
    vertical-align: middle;
    overflow: hidden;
}

.table-validation .vertical-header div {
    width: 0;
    margin: auto;
    position: relative;
    bottom: -6em;
}

.table-validation .vertical-header span {
    transform: rotate(-90deg);
    white-space: nowrap;
    text-align: center;
    display: block;
}

.pages {
    font-size: 0.9em;
    width: 75em;
    min-width: max-content;
    background-color: white;
}

.page-number, .page-line {
    border: 1px solid #dfdfdf;
}

.page-number {
    text-align: center;
    color: #ababab;
    padding: 4px;
}

.page-line:not(.page-header) + .page-header {
    border-top: 1px solid #dfdfdf;
}

.page-header + .page-line:not(.page-header) {
    border-top: 1px solid #dfdfdf;
}

.page-header pre {
    color: #5686a3;
}

.page-line {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: none;
    border-top: none;
    font-size: 0.8em;
}

.page-line:last-of-type {
    border-bottom: 1px solid #dfdfdf;
}

.page-line:nth-child(odd) {
    background-color: #f1f1f1;
}

.page-line .line-number, .page-line .section-number {
    background-color: #e5dcd7;
    display: inline-block;
    width: 1.6em;
    color: #999;
    padding: 0 0.1em;
}

.page-line .line-number {
    user-select: none;
}

.page-line .section-number {
    text-align: right;
    width: 3em;
    user-select: none;
}

.page-line.page-header .section-number {
    color: #d3d3d3;
}

.page-line .section-number.section-header {
    color: #004989;
    font-weight: bold;
}

.page-line.page-header span {
    color: #74abdb;
}

.page-line pre {
    margin: 0;
    flex-grow: 1;
    letter-spacing: -0.05em;
    overflow: hidden;
}

.page-line pre.result-muted {
    opacity: 0.6;
}

.section-header pre {
    font-weight: bold;
    color: #ffffff;
    background: #006699;
    padding-top: 0.2em;
}

.subsection-header pre {
    color: #004e6c;
    font-weight: bold;
}

.subsubsection-header pre {
    color: #008d9d;
}

.page-line i {
    background-color: #cbcdda;
    color: #000000;
    font-style: normal;
}

.page-line i.highlight {
    background-color: #1f34c0;
    color: white;
    text-decoration: none;
}

.property-display.highlight, tr.highlight td, tr.highlight th {
    background: #b0e1ff;
}

.validation-fix {
    margin: -4px 10px -7px 7px;
}

.sticky-top {
    top: 65px;
}

.sticky-top.navbar {
    top: 0;
}

.anchor {
    display: block;
    position: relative;
    top: -60px;
    visibility: hidden;
}

.toc {
    font-size: 0.7em;
}

.toc-title {
    font-size: 0.8em;
    color: #767676;
    padding: 0.5em 0 0.6em;
}

.sds-actions {
    height: 0;
    text-align: right;
    z-index: 1040;
}

.table-compact td {
    padding: 0;
}

th.table-header-fix button.btn-block {
    color: white;
}

.nav-item.active {
    background: #0B7FC7;
}

fieldset.form-category > div {
    padding: 0 2em 0.5em;
}

fieldset.form-category legend {
    color: #767676;
    padding: 0.1em;
    border-bottom: 1px solid #dfdfdf;
    margin: 1em 0;
    font-weight: bold;
}

.sidus-logo span {
    /*color: #401885;*/
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2em;
    line-height: 1em;
    margin-left: 0.5em;
    vertical-align: middle;
}

audio {
    height: 20px;
}

.alert-negative, .alert-negative-alt {
    background-color: #1a1a1abd;
    border-color: #424242;
    color: #dadada;
}

.alert-negative-alt {
    background-color: #483633;
}

.alert-darker {
    background-color: #9d9d9fa6;
    border-color: #464646;
    color: #000000;
}

button + .auto-hide {
    display: none;
}

.absolute-right {
    position: absolute;
    right: 0;
}

.color-white {
    color: #b6b6b6;
}

.carousel-control-next, .carousel-control-prev {
    width: 10%;
    top: 50px;
    bottom: 50px;
}

.image-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.tile {
    position: relative;
    overflow: hidden;
    height: 400px;
    opacity: 80%;
    filter: grayscale(25%);
    transition: opacity 0.5s, filter 1s, box-shadow 0.2s;
    border: 1px solid #2a2a2a;
    border-radius: 10px 10px;
    display: inline-block;
    margin: 20px 20px 0;
}

.tile-campaign {
    width: 280px;
}
.tile-scenario {
    width: 600px;
}

.tile:hover {
    text-decoration: none;
    opacity: 100%;
    filter: grayscale(0);
}

.tile-campaign:hover, .tile-scenario:hover {
    box-shadow: 0 0 11px 0 #fffdbe7a;
}

.tile-illustration {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
}

.tile-illustration img {
    object-fit: cover;
    min-width: 100%;
    min-height: 100%;
    max-height: 100%;
}

.tile-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    font-size: 1.2em;
    text-align: center;
    border-radius: 0 0 10px 10px;
    font-family: 'Crimson Text', serif;
}

.tile-title .subtitle {
    display: block;
    font-size: 0.8rem;
}

.tile-info {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 0.8em;
    padding: 10px;
    text-align: right;
    font-family: 'Crimson Text', serif;
    border-radius: 0 0 0 10px;
}

.featured-campaign {
    background: rgb(0, 0, 0);
    width: 100%;
    display: block;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.featured-campaign .tile-illustration {
    /*noinspection CssInvalidPropertyValue*/
    -webkit-mask-image: linear-gradient(130deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.3) 70%);
    mask-image: linear-gradient(130deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.3) 70%);
}

.featured-campaign .tile-illustration img {
    max-height: initial;
}

.featured-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: right;
    /*noinspection CssInvalidPropertyValue*/
    -webkit-mask-image: linear-gradient(180deg, #000 75%, #0000 98%);
    mask-image: linear-gradient(180deg, #000 75%, #0000 98%);
    padding: 1.5rem 2rem;
    text-shadow: 0 0 4px black;
}

.featured-title {
    color: white;
    padding-top: 2rem;
    padding-bottom: 1rem;
    font-size: 2.3rem;
    font-family: 'Crimson Text', serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.featured-title .subtitle {
    display: block;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.featured-cta {
    text-align: left;
    font-size: 1.5rem;
    color: white;
}

.featured-content .summary {
    padding-left: 50%;
    color: white;
    text-overflow: ellipsis;
}

@media (max-width: 1000px) {
    .featured-cta {
        font-size: 1.2rem;
        padding-bottom: 0;
    }
    .featured-title {
        font-size: 1.8rem;
    }
    .featured-title .subtitle {
        font-size: 1.2rem;
    }
    .featured-content .summary {
        padding-left: 0;
        text-align: left;
    }
}

img.img-bw {
    filter: grayscale(100%);
}

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

.featuring {
    text-align: center;
    font-family: 'Forum', serif;
    padding-bottom: 2rem;
}
.featuring h3 {
    color: #424242;
    margin-top: 1.5rem;
}

.navbar-dark {
    background-color: rgba(26, 26, 26, 0.53);
}

.select2-container--default .select2-selection--single {
    padding: 4px 8px;
    height: auto;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 6px;
}

.carousel-item img {
    color: white;
}
