@font-face {
    font-family: Montserrat;
    src: url("./montserrat/Montserrat-Thin.ttf");
    font-style: normal;
    font-weight: 400;
}

@font-face {
    font-family: Montserrat;
    src: url("./montserrat/Montserrat-Regular.ttf");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: Montserrat;
    src: url("./montserrat/Montserrat-Bold.ttf");
    font-style: normal;
    font-weight: bold;
}

@font-face {
    font-family: Roboto;
    src: url("./roboto/Roboto-Regular.ttf");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: 'FontWithASyntaxHighlighter';
    src: 
        url('./FontWithASyntaxHighlighter-Regular.woff2') 
        format('woff2')
    ;
}

:root {
    --background-color: #181728;
    --surface-color: #21212b;
    --text-color: white;
    --debug-color: rgb(167, 167, 167);
    --title-color: white;
    --accent-color: rgb(0, 221, 188);
    --dark-accent-color: rgb(2, 159, 136);
    --accent-background: linear-gradient(to bottom right, rgb(2, 159, 136), rgb(89, 125, 132));

    --error-color: rgb(255, 181, 181);
    --dark-error-color: rgb(164, 0, 0);
    --danger-color: rgb(164, 0, 0);

    --warning-color: rgba(255, 149, 0, 0.414);

    background: var(--background-color);
    font-family: roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.5;

    accent-color: var(--accent-color);
}

body, html {
    margin: 0;
    padding: 0;
}

body {
    margin-bottom: 50px;
    margin-top: 50px;
}

@media screen and (max-width: 800px) {
    body {
        margin-top: 0;
        margin-bottom: 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: Montserrat, sans-serif;
    color: var(--title-color);
    margin-top: 0;
    margin-bottom: 0;
}

main {
    width: 100%;
}

main nav {
    padding-top: 15px;
    padding-bottom: 15px;
    color: var(--text-color);
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: stretch;
    gap: 15px;
}

@media screen and (max-width: 800px) {
    main nav :first-child {
        padding-left: 5px;
    }

    main nav :last-child {
        padding-right: 5px;
    }
}

main nav > * {
    margin-top: 0;
    margin-bottom: 0;
}

a {
    color: inherit;
}

main nav a, main nav button {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    justify-content: start;
    align-items: center;
    gap: 5px;
}

main nav a {
    text-transform: uppercase;
}

main nav a > ltbl-icon, main nav button > ltbl-icon {
    font-size: 1.5em;
}

main > *,
body > #outdated-alert {
    width: 100%;
    box-sizing: border-box;

    max-width: 800px;

    margin-left: auto;
    margin-right: auto;
}

#outdated-alert {
    margin-bottom: 50px;
    padding: 15px;
    background: var(--warning-color);
    border-radius: 15px;
    color: rgba(255,255,255, 0.75);
}

#outdated-alert p {
    margin: 0;
}

#outdated-alert p:not(:last-child) {
    margin-bottom: 1ex;
}

#outdated-alert strong,
#outdated-alert a {
    text-decoration: none;
    font-weight: bold;
    color: rgba(255,255,255, 1);
}

:is(section, header, footer, article, nav):first-child {
    margin-top: 0;
}

:is(section, header, footer, article, nav):last-child {
    margin-bottom: 0;
}

dialog {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--surface-color);
    color: var(--text-color);
    border: none;
    border-radius: 15px;

    width: 100%;

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0px 5px rgba(0, 0, 0, 0.5);;
}

dialog form[method="dialog"] {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

dialog form[method="dialog"] > button {
    margin: 0 !important;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 600px) {
    dialog {
        max-width: 100%;
        height: 100vh;
    }
}

/* loading */

#main-loading {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 25px;
    height: 25px;

    z-index: 2000;

    color: transparent;
    pointer-events: none;
    opacity: 1;
    visibility: visible;

    transition-duration: 50ms;
    transition-delay: 500ms;
    transition-property: opacity visibility;
}

#main-loading[hidden] {
    display: block;
    transition: 1s;
    transition-delay: 0s;
    opacity: 0;
    visibility: hidden;
}

@keyframes loading {
    from { transform: rotate(0);}
    to { transform: rotate(360deg);}
}

#main-loading::before {
    content: "";
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background: conic-gradient(var(--background-color), var(--accent-color));
    display: block;

    position: absolute;
    top: 0;
    left: 0;

    animation: linear 0.5s loading infinite;
    animation-play-state: running;
}

#main-loading[hidden]::before {
    animation-play-state: paused;
}

#main-loading::after {
    content: "";
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border-radius: 100%;
    background: var(--background-color);
    display: block;

    position: absolute;
    top: 5px;
    left: 5px;
}

/* forms */

.help-text {
    margin: 0;
}

input, select, textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
    padding: 8px;
    margin-bottom: 0.5em;
    overflow: hidden;
}

input, select, textarea {
    background: transparent;
    border: solid 1px rgb(90, 90, 90);
    border-radius: 0 3px 3px 0;
    padding-left: 12px;
    font-family: inherit;

    color: inherit;
}

textarea {
    line-height: 1.5;
}

input:active, input:focus, textarea:focus {
    outline: solid 2px var(--dark-accent-color);
}

.form-control:active > input,
.form-control:hover > input,
.form-control:active > textarea,
.form-control:hover > textarea  {
    border-color: var(--dark-accent-color);
}

.form-control {
    margin-bottom: 15px;
}

.array-form-control > label {
    padding-bottom: 5px;
}

.form-control:active > label,
.form-control:hover > label {
    color: var(--accent-color);
}

.boolean-form-control {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 5px;
}

.boolean-form-control input {
    width: 1em;
    height: 1em;
}

.boolean-form-control .label-block {
    flex: 1;
}

ltbl-array-input-item {
    margin-left: 5px;
    padding-left: 15px;
    padding-bottom: 15px;
    padding-top: 15px;
    border-left: 1px solid rgb(90, 90, 90);
}

form .object-form-control :not(ltbl-array-input-item) > .object-form-control > .object-content {
    margin-left: 5px;
    padding-bottom: 15px;
    padding-top: 15px;
    padding-left: 15px;
    border-left: 1px solid rgb(90, 90, 90);
}

ltbl-array-input-item > .object-form-control > .object-content {
    margin-top: 15px;
}

.array-form-control:active > ltbl-array-input-item,
.array-form-control:hover > ltbl-array-input-item,
.object-form-control:active > .object-content,
.object-form-control:hover > .object-content {
    border-color: var(--dark-accent-color) !important;
}

ltbl-array-input-item::part(toolbar) {
    background: rgb(90, 90, 90);
    color: inherit;
}

ltbl-markdown-input {
    position: relative;
    border: solid 1px rgb(90, 90, 90);
}

ltbl-markdown-input::part(actionbar) {
    background: rgb(90, 90, 90);
    margin: 1ex;
    border-radius: 5px;
    color: white !important;
    border: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

ltbl-markdown-input:not(:focus-within)::part(actionbar) {
    display: none;
}

button,
ltbl-localized-input::part(remove-button),
ltbl-localized-input::part(add-button),
ltbl-array-input-item::part(remove-button),
ltbl-array-input::part(add-button) {
    background: rgb(90, 90, 90);
    border: solid 1px transparent;
    color: inherit;
    font-size: inherit;
    border-radius: 5px;
    cursor: pointer;
}

button {
    padding: 10px;
}

button:hover {
    border-color: var(--dark-accent-color);
    color: var(--accent-color);
}

button:active {
    border-color: var(--dark-accent-color);
    outline: 3px solid var(--dark-accent-color);
}

button:disabled {
    opacity: 0.8;
    cursor: default;
}

button.danger-btn {
    text-transform: uppercase;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

button.danger-btn:hover {
    border-color: white;
}

form > button:last-child {
    display: block;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
}

main > nav:last-child {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

input.file-name {
    padding: 0;
    border: none;
    outline: none !important;
}

ltbl-localized-input::part(toolbar) {
    background: none;
    color: rgba(255, 255, 255, 0.5);
    height: 37px;
}

ltbl-localized-input::part(remove-button) {
    margin: 1ex;
    width: calc(100% - 2ex);
    height: calc(100% - 2ex);
}

/* Sections */

.debug {
    color: var(--debug-color);
    --title-color: var(--debug-color);
}

section,
header {

    background-color: var(--surface-color);
    padding: 20px;
    border-radius: 15px;
    overflow: hidden;

    margin-bottom: 25px;

}

@media screen and (max-width: 800px) {
    section,
    header {
        border-radius: 0;
    }
}

header > * {
    margin: 0;
}

header small {
    text-transform: uppercase;
    font-size: 0.75em;
    font-family: Montserrat, sans-serif;
    font-weight: bold;
}

/* ITEM */

[data-page="item"] header {
    padding: 0;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
}

[data-page="item"] .item-type {
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5)
}

[data-page="item"] header .item-thumbnail {
    grid-column: 1;
    grid-row: 1;
    padding: 15px;
}

[data-page="item"] #upload-progress {
    width: 100%;
    margin-top: 1em;
}

/* LIST */

[data-page="database"] header {
    background: none;
    position: relative;

    display: grid;
    grid-template-columns: 1fr min-content;
    grid-auto-rows: min-content;

    justify-content: start;
    align-items: start;
}

[data-page="database"] header > * {
    grid-column: 1;
}

[data-page="database"] header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 25px;
    width: 150px;
    border-bottom: solid 1px var(--dark-accent-color);
}

[data-page="database"] header > #main-settings-button {
    grid-column: 2;
    grid-row: 1;
    display: block;
}

#main-settings-button {
    padding: 10px;
    cursor: pointer;
    border-radius: 100%;
    font-size: 1.25em;
    line-height: 1;
}

#main-settings-button:hover,
#main-settings-button:focus {
    background: rgba(255, 255, 255, 0.1);
}


#main-settings-button img {
    height: 1em;
    display: inline-block;
    vertical-align: middle;
}

@media screen and (max-width: 800px) {
    [data-page="database"] header {
        text-align: center;
    }

    [data-page="database"] header::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

[data-page="database"] section {
    background:none;
    padding: 0;
    border-radius: 0;
}

[data-page="database"] .object-type {
    background: var(--surface-color);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[data-page="database"] .object-type > * {
    padding: 15px 25px;
    display: block;
}

[data-page="database"] .object-type > *:first-child {
    padding-top: 25px;
    flex: 1;
}

[data-page="database"] .object-type > *:first-child:last-child {
    padding-bottom: 25px;
}

[data-page="database"] .object-type > a {
    text-decoration: none;
    background: url("../icons/next.svg"), rgba(255, 255, 255, 0);
    background-size: 1.5em 1.5em;
    background-repeat: no-repeat, no-repeat;
    background-position: center right 15px;
}

[data-page="database"] .object-type > a:hover {
    background-color:rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

[data-page="database"] .object-type > a:first-child {
    background-position: top 73px right 15px;
    background-image: none;
}

[data-page="database"] .object-type > a > img {
    height: 1.5em;
    width: 1.5em;
    object-fit: scale-down;
    display: inline-block;
    vertical-align: middle;
    margin-right: 1ex;
}

[data-page="database"] .object-type h1 {
    font-size: 2rem;
}

[data-page="database"] .object-type p {
    margin: 0;
}

.object-type {
    position: relative;
}

.object-type .toolbar {
    position: absolute;
    top: 0;
    right: 0;
    padding: 7.5px;
}

.object-type .toolbar > * {
    padding: 0;
}

.object-type .toolbar a {
    padding: 7.5px;
    cursor: pointer;
    border-radius: 40px;
}

.object-type .toolbar a:hover,
.object-type .toolbar a:focus {
    background: rgba(255, 255, 255, 0.1);
}

[data-page="database"] .type-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 25px;
}

[data-page="database"] .display-list > * {
    margin-bottom: 25px;
}

[data-page="database"] .preview-wrapper {
    max-width: 100%;
}

@media screen and (max-width: 800px) {
    [data-page="database"] .type-section {
        grid-template-columns: 1fr;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    [data-page="database"] .preview-wrapper {
        border-radius: 0;
    }

    [data-page="database"] .display-list > * {
        margin-bottom: 0;
    }

}

.object-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 15px;
    margin-top: 20px;
}

.item {
    background: rgb(90, 90, 90);
    border-radius: 25px;
    overflow: hidden;
}

.item h1 {
    font-size: 1.5rem;
    white-space: break-word;
}

.item > a {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.item > a > * {
    margin: 0;
}

.item .thumbnail-container {
    width: 100%;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.item.raw-json {
    background: var(--surface-color);
    border: solid 1px rgb(90, 90, 90);
    border-left-width: 6px;
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;

    position: relative;
}

.item.raw-json pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    font-family: "FontWithASyntaxHighlighter", monospace;
    font-size: 0.8rem;
    background: repeating-linear-gradient(transparent, transparent 1.4em, rgba(255,255,255,0.05) 1.4em, rgba(255,255,255,0.05) 2.8em);
    line-height: 1.4;
    padding: 0 10px;
}

.item.raw-json .thumbnail-container {
    padding: 0;
    padding-bottom: 10px;
}

.item.raw-json h3 {
    padding: 5px 10px;
    font-size: 1rem;
    margin-bottom: 10px;
    font-family: monospace;
    font-weight: normal;
}

.item.raw-json::after {
    content: "JSON";
    position: absolute;
    bottom: 5px;
    right: 15px;
    font-family: monospace;
    font-size: 2rem;
    opacity: 0.2;
    text-transform: uppercase;
    font-weight: bold;
    pointer-events: none;
}

/* previews */

.preview-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;

    width: 100%;
    max-width: 100%;
    
    padding-left: 0;
    padding-right: 0;

    background: transparent;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: proximity;
}

.preview-list > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    margin-right: 25px;
}

.preview-wrapper {
    border-radius: 25px;
    background: var(--surface-color);

    aspect-ratio: 16 / 9;
    width: 100%;

    border: none;
    overflow: hidden;
}

.preview-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.preview-wrapper iframe {
    min-width: 100%;
    min-height: 100%;
    border: none;

    transform-origin: 0 0;
    transform: scale(calc( 700px / var(--preview-prefered-width) ));
    pointer-events: none;

    opacity: 0.65;
    transition: linear 0.3s opacity;
}

.preview-list::before {
    content: "";
    display: block;
    width: max(calc( ( 100vw - 800px ) / 2), 25px);
    height: 100%;
    flex-shrink: 0;
}

.preview-wrapper .resolution {
    font-family: monospace;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.2rem;
    z-index: 10;
    transition: linear 0.3s opacity;
}

.preview-wrapper .info {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: calc( 100% - 30px );
    font-size: 2rem;
    z-index: 15;
    transition: linear 0.3s opacity;
}

.preview-wrapper .info small {
    display: block;
    font-weight: normal;
}

.preview-wrapper a::before {
    content: "";
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background: linear-gradient(20deg, rgba(255,255,255,0.3), transparent 50%);
}

.preview-wrapper:focus iframe, .preview-wrapper:hover iframe {
    opacity: 1;
}

.preview-wrapper:focus .info,
.preview-wrapper:hover .info,
.preview-wrapper:focus .resolution,
.preview-wrapper:hover .resolution {
    opacity: 0;
}

/* LOGIN */

.modal-form {
    max-width: 500px;
    background: var(--surface-color);
    border-radius: 25px;
    padding: 25px;
    box-sizing: border-box;
}

.modal-form h1 {
    font-weight: 400;
}

.modal-form h1, .modal-form h1 + p {
    opacity: 0.75;
    text-align: center;
}

.modal-form h1 + p {
    margin-bottom: 50px;
}

.modal-form button {
    margin-top: 25px;
}

.error {
    color: var(--error-color);
    background: var(--dark-error-color);
    border: solid 3px var(--error-color);
    font-weight: bold;
}

.error hr {
    margin-top: 1em;
    margin-bottom: 1em;
    border-color: var(--error-color);
}

.error > * {
    margin: 0;
}

.modal-form #login-error {
    border-radius: 10px;
    padding: 10px;
}

.modal-form #login-error:empty {
    display: none;
}

@media screen and (max-width: 500px) {
    .modal-form {
        border-radius: 0;
        padding: 25px;
        height: 100vh;
    }
}

[data-page="login"] {
    margin: 0
}

[data-page="login"] main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0;
}

/* view page */

[data-page="view"] {
    margin-top: 250px;
}

[data-page="view"] header {
    --expanded: max(calc(1 - (var(--scroll-top, 0) / 200)), 0);

    background: color-mix(in hsl, transparent calc(var(--expanded) * 100%), var(--surface-color));
    padding-top: max(15px, calc(var(--expanded) * 75px ));
    padding-bottom: max(15px, calc(var(--expanded) * 25px ));
    border-radius: 0;
    position: fixed;

    box-shadow: 0 0 min(calc((1 - var(--expanded)) * 15px), 15px) rgba(0, 0, 0, 0.5);

    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;

    z-index: 1000;
}

[data-page="view"] header > * {
    display: block;
    max-width: 850px;
    width: 100%;
    padding: 0 25px;
    margin: 0 auto;
    box-sizing: border-box;
}

[data-page="view"] header h1 + p {
    max-height: calc(var(--expanded) * 5em);
    opacity: var(--expanded);
}

[data-page="view"] header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: max(calc( ( 100vw - 800px ) / 2), 25px);
    width: 150px;
    border-bottom: solid 1px var(--dark-accent-color);
    opacity: var(--expanded);
}

[data-page="view"] .item {
    margin-bottom: 15px;
    margin-top: 15px;
}

[data-page="view"] section > section {
    padding: 0;
    margin-bottom: 0;
}

[data-page="view"] section > section:first-of-type {
    margin-top: 25px;
}

[data-page="view"] section > section > h3 {
    margin: 0;
    opacity: 0.75;
}

[data-page="view"] section h3 small, [data-page="view"] section h2 small {
    display: block;
    font-weight: normal;
    opacity: 0.7;
}

[data-page="view"] #main-toolbar {
    position: absolute;
    left: calc(50vw - 400px - 1.5rem);
    transform: translateX(-100%);
    top: max(calc(15px + 0.75rem), calc((var(--expanded) * 75px) + 0.75rem));
    width: max-content;
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 950px) {
    [data-page="view"] #main-toolbar {
        position: unset;
        transform: unset;
    }

    [data-page="view"] header > * {
        padding-left: 0;
        padding-right: 0;
    }
}

/* home */

[data-page="home"] {
    margin-top: 0;
}

[data-page="home"] main {
    min-height: 100vh;
    box-sizing: border-box;

    padding-top: 25px;
    padding-bottom: 25px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

[data-page="home"] main > * {
    max-width: 400px;
}

[data-page="home"] main > h1 {
    line-height: 1.2em;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1em;
}

[data-page="home"] main > h1 img {
    width: 2em;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5em;
}

[data-page="home"] #event-set-list {
    padding: 5px 0;
}

[data-page="home"] #event-set-list > * {
    padding: 10px 15px;
}

[data-page="home"] .empty-state {
    text-align: center;
}

[data-page="home"] .empty-state strong {
    font-size: 1.5em;
    font-weight: 400;
}

[data-page="home"] .event-set {
    background: url("../icons/event-set-chevron.svg") no-repeat;
    background-position: right 10px center;
    background-size: 2em 2em;
}

[data-page="home"] .event-set a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

[data-page="home"] .event-set:hover {
    background-image: url("../icons/event-set-chevron-active.svg");
    background-color: rgba(255, 255, 255, 0.1);
}

[data-page="home"] .event-set:hover h1 {
    color: var(--accent-color);
}

[data-page="home"] .event-set a > *:last-child {
    margin-bottom: 0;
}

[data-page="home"] .event-set a .description:empty {
    display: none;
}

[data-page="home"] #hidden-databases {
    text-align: center;
    background: none;
    opacity: 0.5;
    padding: 0;
    margin: 0;
    margin-top: -10px;
    font-size: 0.8em;
}

[data-page="home"] #session {
    text-align: center;
    background: none;
    opacity: 0.5;
}

[data-page="home"] #session a {
    text-decoration: none;
}

@media screen and (max-width: 800px) {
    [data-page="home"] #event-set-list {
        border-radius: 25px;
    }
}

@media screen and (max-width: 400px){
    [data-page="home"] main {
        justify-content: flex-start;
    }

    [data-page="home"] #event-set-list {
        flex: 1;
        border-radius: 0;
    }
}

/* toolbar */

#main-footerbar {
    position: fixed;
    right: 0;
    bottom: 0;
    width: max-content;
    box-sizing: border-box;
    max-width: 100%;
    position: fixed;
    font-size: 0.9rem;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 0.2em;
    padding: 0.5em 1em;
    gap: 1ex;
    color: color-mix(in hsl, currentColor, black 25%);
    z-index: 100;
}

#main-footerbar:empty {
    display: none;
}

#main-footerbar > * {
    padding: 0.25em 0;
}

#main-footerbar > .badge {
    padding: 0.25em 0.75em;
}

#main-footerbar > button {
    border-radius: 1em;
    padding: 0.25em 0.75em;
    background-color: transparent;
    border: none;
    color: inherit;
}

#main-footerbar > button:hover {
    background-color: color-mix(in hsl, var(--badge-color, currentColor), transparent 75%);
}

#main-footerbar > button:active {
    background-color: color-mix(in hsl, var(--badge-color, currentColor), transparent 50%);
    outline: none;
}

.badge {
    border-radius: 1em;
    padding: 0.25em 0.75em;
    background: var(--surface-color);
}

/* settings */

[data-page="settings"] .empty {
    text-align: center;
}

[data-page="settings"] section .settings-form {
    margin-top: 1.5em;
}

[data-page="settings"] section h2 a {
    text-decoration: none;
    color: inherit;
}

[data-page="settings"] main > hr {
    border: none;
    height: 100px;
}