@import url('https://files.wediaklup.de/fonts/jetbrains-mono/include.css');

:root {
    --colour-bg: #1f1f1f;
    --colour-fg: #EEE;
    --font-monospace: 'JetBrains Mono', monospace;
    --preview-size: 400px;
}

body {
    background: var(--colour-bg);
    color: var(--colour-fg);
    font-size: 1rem;
    font-family: var(--font-monospace);
}


table.noformat {
    border-spacing: 0;
    border-collapse: separate;
}

table.noformat th {
    text-align: left;
    font-weight: 400;
}

table.noformat td {
    padding-left: 1rem;
    font-weight: 700;
}


/* shall be moved to supercommon.css */
table.prettytable {
    border-collapse: collapse;
}

table.prettytable th,
table.prettytable td {
    border: 1px solid white;
    padding-inline: 0.5em;
}

table.prettytable.simplified tr {
    border-block: 1px solid white;
    border-inline: 0;
}

table.prettytable.simplified tr:first-of-type {
    border-block-start: none;
}

table.prettytable.simplified tr:last-of-type {
    border-block-end: none;
}

table.prettytable.simplified tr td:first-child,
table.prettytable.simplified tr th:first-child {
    border-inline-start: 0;
}

table.prettytable.simplified tr td:last-child,
table.prettytable.simplified tr th:last-child {
    border-inline-end: 0;
}

table.prettytable.simplified th,
table.prettytable.simplified td {
    border-block: 0;
    border-inline: 1px solid white;
}
/* shall be moved to supercommon.css */


a {
    color: #8CDCFE;
}

a:visited {
    color: #9479C0;
}

a:focus {
    color: #CBBA7D;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    flex-flow: wrap;
    gap: 1rem;
    width: 100%;
}

.info {
    border: 1px solid var(--colour-fg);
    padding: 0.5rem;
}

.info h1 {
    margin: 0;
}

.info .subtitle {
    margin-bottom: 0.5rem;
}

.info > span.footer {
    color: #CCC;
    font-style: italic;
}

.info > span.checksum {
    float: right;
}

.sidebar .info + .info {
    margin-top: 1em;
}

.preview {
    border: 1px solid var(--colour-fg);
    padding: 5px;
    height: min-content;
    width: min-content;
    min-width: 30%;
    overflow: auto;
}

.preview a > #content {
    height: 100%;
}

.preview.upload {
    height: auto;
    max-width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

embed {
    max-width: 100%;
    min-height: 75vh;
}

pre {
    text-align: left;
    max-width: 100%;
    height: 100%;
    background: transparent !important;
}

code {
    background: transparent;
}

.tableofcontents {
    padding: 0.5rem;
}

.tableofcontents h1 {
    text-align: center;
    margin: 0;
}

table#edit th {
    text-align: left;
}

input:not(input[type="file"], input[type="submit"]), textarea {
    background: transparent;
    color: var(--colour-fg);
    font-family: var(--font-monospace);
    border: 1px solid var(--colour-fg);
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

input[type="file"]#hidden-upload {
    display: none;
}

button, input[type="submit"] {
    background-color: #333;
    color: var(--colour-fg);
    font-size: 1.5rem;
    padding-block-start: 0.2em;
    padding-block-end: 0.25em;
    padding-inline: 1em;
    font-family: var(--font-monospace);
    cursor: pointer;
}

button[disabled] {
    background-color: #444;
    cursor: default;
}

input[type="submit"] {
    font-size: 1rem;
}

h1 input[type="text"] {
    font-size: 1em;
}

button.inline {
    font-size: unset;
    padding-inline: 3px;
}

button.inline.compact {
    padding-block: 0;
}

select {
    border: 1px solid var(--colour-fg);
    color: var(--colour-fg);
    background: transparent;
}

select option {
    background: #333;
}

div[id$="-completion-container"] {
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    border: 1px solid var(--colour-fg);
    background-color: var(--colour-bg);
    max-height: 30em;
    overflow-y: scroll;
}

[class$="-completion-element"] {
    padding: 0.2em;
    padding-top: 0.05em;
    border-top: 1px solid var(--colour-fg);
    cursor: pointer;
}

[class$="-completion-element"]:hover {
    background-color: #0a0a7d;
}

[class$="-completion-element"] [class$="-completion-title"] {
    font-weight: 700;
    font-size: 1.25em;
}

[class$="-completion-element"] [class$="-completion-id"] {
    float: right;
}

[class$="-completion-element"]:first-child {
    border-top: none;
}

.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}


.navbar {
    float: left;
}



div.scannerField {
    background: #333;
    outline: 1px solid black;
}


div.scannerField input[type="button"]:hover {
    //background: #555;
}


div.scannerField input[type="button"]:active {
    background: #555;
}


img.preview-sized {
    max-width: 99%;
    max-height: 99%;
}


div.scannerPreview {
    width: var(--preview-size);
    height: var(--preview-size);
    display: flex;
    align-items: center;
    justify-content: center;
}

ul.compact {
    list-style-type: '–';
    padding-inline-start: 1em;
    margin-block: 0;
}

ul.compact li {
    padding-inline-start: 0.75em;
}


iframe.bulkFrame {
    width: 100%;
    height: 87vh;
    border: none;
}


label.pin input {
    display: none;
}

label.pin:has(input:checked) {
    color: red;
}

label.pin:hover {
    color: #8CDCFE;
}

label.pin:hover:has(input:checked) {
    color: pink;
}

