html {
    background: #282828;
}

body {
    font-family: Arial, Segoe UI, Calibri, serif;
    color: whitesmoke;
    background: #121212;
    /*max-width: 1000px;*/
    padding: 1pt 0;
    margin: 0 auto;
    min-height: calc(100dvh - 12px);

    overflow: hidden;

    --login-background-color: #121212;

    /*position: relative;*/
}

select {
    max-width: 100%;
}

button {
    cursor: pointer;
}

h1, h2 {
    text-align: center;
    padding: 10px;
    border-radius: 15px;
    background-color: #282828;
    margin-top: 15px;
}

a[href^="https://"]:not(.hide-ext-href):after {
    content: " ↗";
}
.ext-href:after {
    content: " ↗";
}

header {
    max-width: 1000px;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

main {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

footer {
    max-width: 1000px;
    box-sizing: border-box;
    margin-top: 30px;
    padding: 15px;
    border-radius: 15px;
    background-color: #282828;
    text-align: center;
    margin-left: auto;
    margin-right: auto;

    /*position: absolute;*/
    /*bottom: 10px;*/
    /*left: 0;*/
    /*right: 0;*/
}

article:not(:first-of-type) {
    margin-top: 30px;
    padding-top: 10px;
    border-top: 2px solid grey;
}

a {
    color: inherit;
}

a:visited {
    color: inherit;
}

label:hover {
    cursor: pointer;
}

table {
    border-collapse: collapse;
}

h4 {
    margin-bottom: 10px;
}

th {
    padding-left: 5px;
    padding-right: 5px;
}

td:has(~ td input, ~ td select) > label {
    font-weight: bold;
}



.grid-menu {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 40%), 1fr));
}

.grid-menu > * {
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #282828;
    border-radius: 10px;
    aspect-ratio: 1;

    text-align: center;
    padding: 10px;
    text-decoration: inherit;
    font-weight: bold;
}

.grid-menu .material-symbols-outlined {
    font-size: 60px;
}

a.material-symbols-outlined {
    text-decoration: none;
}

.material-symbols-outlined {
    vertical-align: middle;
}

.center {
    text-align: center;
    /*margin-left: auto;*/
    /*margin-right: auto;*/
    /*display: block;*/
    /*width: fit-content;*/
}




.grid-table {
    border-collapse: collapse;
    border: 1px solid lightgray;
}
.grid-table td {
    padding: 5px;
    border: 1px solid lightgray;
}
.grid-table > thead {
    padding: 5px;
    border: 1px solid lightgray;
    border-bottom: 3px solid lightgray;
    font-weight: bold;
}
.grid-table > tfoot {
    padding: 5px;
    border: 1px solid lightgray;
    border-top: 3px solid lightgray;
}

.grid-input {
    width: calc(100% - 8px);
}

.props-table td {
    padding: 5px;
}
.props-table td:first-child {
    min-width: 200px;
}
.props-table > thead {
    padding: 5px;
    border-bottom: 3px solid lightgray;
    font-weight: bold;
}



.msg-info {
    color: whitesmoke;
}
/*.msg-info*/
.msg-low-warning, a.msg-low-warning {
    color: #ffff66;
}
.msg-mid-warning, a.msg-mid-warning {
    color: #ffAA00;
}
.msg-high-warning, a.msg-high-warning {
    color: orangered;
}
.msg-error, a.msg-error {
    color: red;
    font-weight: bold;
}
.msg {
    text-decoration: none;
}
.msg:hover[href] {
    text-decoration: underline;
}

.removable:hover {
    text-decoration: line-through;
    cursor: pointer;
}

#error #warnings #message-container {
    text-align: center;
}



.login-btn {
    align-items: center;
    align-content: center;
    text-align: center;
    cursor: pointer;
    width: fit-content;
    border-radius: 5px;
    margin: 5px;
}
.btn-submit {
    background-color: #224386;
    border-color: #224386;
    color: whitesmoke;
    font-weight: bold;
}
.btn-submit:hover {
    background-color: #1e3c79;
    border-color: #1e3c79;
}
.btn-cancel {
    background-color: darkred;
    border-color: darkred;
    color: whitesmoke;
}
.btn-cancel:hover {
    background-color: #750000;
    border-color: #750000;
}
.login-btn:disabled {
    background-color: #5e5e5e;
    border-color: #5e5e5e;
    color: darkgray;
}


.hidden {
    display: none;
}

.nowrap {
    white-space: nowrap;
}

.monospace, .price-input, .num-cell {
    font-family: 'Fira Code', Consolas, monospace;
}

.num-cell {
    text-align: right;
}


.art-href {
    color: inherit;
    text-decoration: none;
}

.description {
    font-style: italic;
    color: grey;
    font-weight: normal;
    /*text-align: justify;*/
}

.sortable-table {

}
.default-desc { }

.sortable-table th {
    cursor: pointer;
}

.sort-asc-key, .sort-desc-key {
    font-weight: bold;
}
.sort-asc-key:before {
    content: "▲"
}
.sort-desc-key:before {
    content: "▼"
}

.discounted {
    background: linear-gradient(to left top, transparent 46.5%, currentColor 48.5%, currentColor 51.5%, transparent 53.5%);
}

input::-webkit-outer-spin-button.no-arrows,
input::-webkit-inner-spin-button.no-arrows {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number].no-arrows {
    -moz-appearance: textfield;
}

.price-input {
    width: 60px;
    text-align: right;
}
input::-webkit-outer-spin-button.price-input,
input::-webkit-inner-spin-button.price-input {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number].price-input {
    -moz-appearance: textfield;
}

.options-table {
    border: none;
    margin: 10px 0
}
.options-table td {
    vertical-align: top;
}
.options-table tr:not(:first-of-type) > td {
    padding-top: 5px;
}
.options-table tr:not(:last-of-type) > td {
    padding-bottom: 5px;
}
.options-table td:not(:first-of-type) {
    padding-left: 5px;
}
.options-table td:not(:last-of-type) {
    padding-right: 5px;
}
.options-table td:first-of-type {
    font-weight: bold;
}
.options-table td:first-of-type > * {
    /*width: 300px;*/
}
.options-table td:nth-child(2) {
    text-align: center;
    min-width: 15%;
}
.options-table td:nth-child(2) > * {
    width: 100%;
}

.stream-grid {
    display: grid;
    gap: min(5pt, 1%);
    /*margin: 1em;*/
    text-align: center;
    height: calc(100vh - 1pt);
    justify-content: space-between;
}

.stream-grid > div {
    /*border: 3px solid black;*/
    border-radius: 20pt;
    vertical-align: center;
    position: relative;
    background: black;
    overflow: hidden;
    /*width: max-content;*/
    /*height: max-content;*/
    /*aspect-ratio: 16 / 9;*/
}

.stream-grid > div > div, .stream-cell > * {
    width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.stream-cell {
    cursor: pointer;
}

.loading-video {
    padding: 1em;
    width: max-content !important;
    border-radius: 1em;
    background: rgba(30, 30, 30, 0.8);
}

.regular-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.regular-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.regular-grid-5 {
    grid-template-columns: repeat(4, 1fr);
}

.cell-2x2 {
    grid-row: span 2;
    grid-column: span 2;
}

.cell-3x3 {
    grid-row: span 3;
    grid-column: span 3;
}

.cell-3x2 {
    grid-row: span 2;
    grid-column: span 3;
}

.cell-4x4 {
    grid-row: span 4;
    grid-column: span 4;
}


.rotate-progress {
    position: absolute;
    z-index: 1;
    left: 5pt;
    top: 5pt;
    cursor: pointer;
}

.rotate-progress polygon {
    transition: fill 0.3s;
}

.rotate-progress:hover:not(:active) polygon {
    fill: #94b1ff;
}

.rotate-progress:active polygon {
    fill: #112f80;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.1s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}
