body {
    max-width: 1500px;
    margin: auto;
}

#content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    padding: 0.5em 1.5em;
}

.top-layer-center {
    z-index: 99;
    width: 100%;
    flex-grow: 1;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.top-layer-content {
    margin: 1.5em;
}

div[data-tabs] {
    margin-bottom: 3em;
}

*:focus {
    outline: none !important;
}

a[data-tab] {
    width: 100%;
    font-size: 1em;
}

button,
.button {
    font-size: 1em;
    width: 100%;
    white-space: normal;
    color: black;
    border-color: gray;
    background-color: #ebf2f5;
}

button:disabled,
button:disabled div,
label.disabled {
    border-color: lightgray;
    color: gray;
    background-color: whitesmoke;
}

button:active,
.button:active {
    filter: brightness(1.5);
    box-shadow: 0 0 10px 2px #004562 !important;
}

button:disabled img,
label.disabled img {
    filter: invert(0.5);
}

.special-key {
    width: 7em;
}

.act-category-btn {
    min-width: 7em;
    width: 10vw;
    display: inline-block;
}

br {
    line-height: 250%;
}

.space-bottom {
    margin-bottom: 0.5em;
}

.space-bottom-2x {
    margin-bottom: 1em;
}

.headerConnectIndicator {
    float: right;
    font-size: 1.5em;
    margin-top: -3em;
}

.green {
    color: green;
}

.red {
    color: red;
}

.text-center {
    text-align: center;
}

.text-normal {
    font-style: normal;
    font-weight: normal !important;
}

.value-bar {
    background-color: #9be7ff;
    height: 100%;
    position: absolute;
    left: 0;
    z-index: -10;
}

.back-layer {
    position: absolute;
    z-index: -1;
}

.full-height {
    height: 100%;
}

.full-width {
    width: 100%;
}

.half-width {
    width: 48% !important;
    float: left;
}

.tbody li {
    list-style-type: none;
    margin: 0 !important;
}

.thead div {
    font-style: italic;
}

.relative {
    position: relative;
}

.float-left {
    float: left;
}

.border-right-blue {
    border-right: dotted blue;
}

.border-right-red {
    border-right: dotted red;
}

.border-right-gray {
    border-right: medium dotted darkgray;
}

#tab-puff-container span,
#tab-puff-container label {
    background-color: white;
    white-space: normal;
}

label {
    display: inline-block;
}

.cursorPosWrapper {
    outline: medium solid;
    background-color: transparent;
    margin-bottom: 2em;
}

.full-vis-size {
    min-height: 200px;
    min-width: 200px;
    height: 20vw;
    width: 20vw;
    max-width: 350px;
    max-height: 350px;
}

@media (prefers-color-scheme: dark) {

    /* This makes it so that within posVis it is inverted. */
    /* ASK: Whether the colour is okay, in both modes (used to be blue). 1% is the best option for both, but the back-layer is not really visible then.*/
    #posVis {
        filter: invert(30%);
    }
}

@media (prefers-color-scheme: dark) {
    #tab-puff-container {
        filter: invert(1%);
    }

    #tabVisBtnSipVis {
        filter: invert(1%);
    }

    #fabi-logo {}

}

.color-lightcyan {
    background-color: #9be7ff;
}

.color-lightred {
    background-color: #FF7B61;
}

.color-lightercyan {
    background-color: #cceff9;
}

.center-div {
    margin-right: auto;
    margin-left: auto;
}

.hidden {
    display: none;
}

button.selected,
.custom-radio:checked~label {
    border-width: 0.2em;
    border-color: #33C3F0;
    background-color: #cceff9;
}

.button-primary.selected {
    border-width: 0.25em;
    border-color: #33C3F0;
    background-color: #0D5F77;
    box-shadow: black;
}

.custom-radio {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.onlyscreenreader {
    display: block !important;
    position: absolute;
    left: -9999px;
}

.btnTransparent {
    background-color: transparent;
    border: 1px solid #bbb;
}