html {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 1.1em;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    height: 100%;
}

body {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 0;
    background: var(--body-color);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-y: hidden;
}

body.page-1 {
    background: var(--palette-1);
}

body.page-2 {
    background: var(--palette-2);
}

body.page-3 {
    background: var(--palette-3);
}

body.page-4 {
    background: var(--palette-4);
}

#root {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    padding-left: calc(100vw - 100%);
}

#root>*:not(svg) {
    max-width: var(--body-width);
    width: -webkit-fill-available;
    margin: 0em var(--page-margin) 0em var(--page-margin);
}

.scroll-area {
    height: 100%;
    overflow-y: scroll;
    background: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}


.scroll-area::-webkit-scrollbar {
    display: none;
}

.desktop {
    display: None;
}

.mobile {
    display: block;
}

@media screen and (min-width: 650px) {
    .desktop {
        display: block;
    }

    .mobile {
        display: None;
    }

    html {
        font-size: 1em;
    }
}

@media screen and (min-width: 900px) {
    html {
        font-size: 1.3em;
    }
}

/* remove decoration from interactive elements */
a,
a:visited {
    text-decoration: none;
    color: var(--anchor-color);
    transition: color 0.2s ease
}

a.action:hover {
    text-decoration: none;
}

button {
    margin: 0;
}

input {
    margin-bottom: 0.5em;
    font-size: 1em;
}

input[type=button],
input[type=submit],
input[type=reset],
div.content-wrapper div.button,
button {
    background: var(--button-color);
    color: var(--text-color);
    transition: background-color 0.1s ease;
}

div.button>a {
    color: var(--text-color);
}

input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover,
div.button:hover,
button:hover {
    background: var(--button-color-hover);
}

input[type=button],
input[type=submit],
input[type=reset],
div.button,
button,
select {
    border: none;
    font-family: var(--font-family);
    font-weight: 550;
    font-size: 1em;
    cursor: pointer;
    padding: 10px 20px;
}

select {
    background: var(--select-color);
}

select[multiple] {
    background: var(--white);
    border: 1px solid var(--text-col-light);
    padding: 5px 10px 5px 5px;
    min-width: 10em;
}

select[multiple] option {
    padding: 5px;
    border-radius: calc(var(--border-radius) * 1);
    margin: 1px 0px;
}

select[multiple] option:checked,
select[multiple] option:hover {
    background: var(--box-highlight)
}

div.button {
    width: fit-content;
    height: fit-content;
    display: inline-block;
}


input[type=text],
input:focus-visible[type=text],
input:focus[type=text],
input[type=password],
input:focus-visible[type=password],
input:focus[type=password] {
    border: none;
    outline: none;
    border-bottom: 1px solid var(--input-underline-color);
    padding: 5px 0px;
    margin-bottom: 1.8em;
    width: 100%;
}

div.button-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

select {
    margin-bottom: 1.8em;
    margin-top: 0.8em;
}

option {
    background: white;
    color: black;
}

/* headlines & text */

h1.title {
    font-size: var(--h1-font-size);
    line-height: 0.9;
    margin-top: 0;
}

h2.title {
    font-size: var(--h2-font-size);
    line-height: 0.9;
    margin-top: 0;
    margin-bottom: 1.5em;
    text-align: end;
}

h3.category {
    font-size: 2.5em;
    margin: 0 0 0 var(--h3-margin);
}

h3 {
    font-size: var(--h3-font-size);
    font-weight: 500;
    color: var(--text-color)
}

h3.page.mobile {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-color);
}

h4.title.mobile,
h3.page.mobile {
    margin: 0.2em 20px;
}

h4.title.mobile {
    font-size: 0.8em;
    font-weight: 500;
    color: var(--mobile-title-color);
}

.new-line {
    white-space: pre-line;
}

.error-message {
    color: var(--error-color);
}

.ok-message {
    color: var(--success-color);
    font-weight: bold;
}

.start {
    text-align: start
}

.center {
    text-align: center
}

.end {
    text-align: end
}

/* flex classes */
.flex {
    display: flex;
}

.flex-right {
    flex-direction: row-reverse;
    text-align: right;
}

.flex-column {
    flex-direction: column;
}

.flex-spacing {
    justify-content: space-between;
}

main {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    margin: .8em .8em 0em .8em;
    height: calc(100% - 2em);
}

@media screen and (min-width: 650px) {
    main {
        margin: 2em 2em 0em 2em;
    }
}

.content-backdrop {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: var(--max-width);
    background: rgba(0, 0, 0, 0);
    width: 100%;
}

div.central {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0);
}

div.content-wrapper div {
    background: rgba(0, 0, 0, 0);
}

div.content-wrapper div.content {
    -webkit-box-shadow: var(--shadow);
    box-shadow: var(--shadow);
    padding: 1em 0 2em 0;
    margin-bottom: .75em;
    border-radius: var(--border-radius);
    background: var(--background-color);
}

@media screen and (min-width: 650px) {
    div.content-wrapper div.content {
        margin-bottom: 1em;
    }
}

div.page-title {
    padding: 0.5em;
}

div.page-title>h3 {
    margin: 0em;
}

.mobile-filtered {
    display: none
}

@media screen and (min-width: 650px) {

    div.page-title,
    div.page-title>h3 {
        display: none;
    }
}


@media screen and (min-width: 900px) {

    th.mobile-filtered,
    td.mobile-filtered {
        display: table-cell;
    }
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
    background: rgba(0, 0, 0, 0);
}

@media screen and (min-width: 900px) {
    .content-wrapper {
        gap: 1em;
    }
}

.parent {
    position: relative;
}

form {
    margin: 1em 2em;
}

/* Icons */
i.icon {
    vertical-align: middle
}

i.icon>svg {
    transform: translateY(-4px);
    vertical-align: middle;
    height: 1.05em;
    border-radius: calc(var(--border-radius) * 2);
    padding: 4px;
    margin: -4px;
}

i>svg {
    stroke: var(--svg-color);
}

i>svg.profile-placeholder {
    stroke-width: 1.5
}

i.logo>svg {
    fill: var(--svg-color);
}

i.no-translate>svg {
    transform: translateY(0);
}