﻿/* Colors & Constants */

body {
    --main-width: 800px;
    --footer-height: 50px;
    --footer-margin: 20px;
    --body-top-margin: 100px;
}

/* Tags */

b {
    font-weight: 500;
}

h1 {
    margin: 0;
    padding: 0.5em 0px 0.25em 0px;
    font-size: 30px;
    line-height: 1.2em;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

    h1 span {
        display: block;
        font-size: 75%;
        font-style: italic;
        font-weight: 200;
    }

h2 {
    margin: 0;
    padding: 0.5em 0px 0.25em 0px;
    font-size: 22px;
    line-height: 1em;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

    h2 span {
        display: block;
        font-size: 75%;
        font-style: italic;
        font-weight: 200;
    }

h3 {
    margin: 0;
    padding: 0.5em 0px 0.25em 0px;
    font-size: 18px;
    line-height: 1em;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
}

a {
    cursor: pointer;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 400;
    /*    display: flex;
    align-items: center;*/
    gap: 5px;
}

    a:-webkit-any-link {
        cursor: pointer;
        text-decoration: none;
        color: var(--primary-color);
        /*        display: flex;
        align-items: center;*/
        gap: 5px;
    }

    a.nav-link:-webkit-any-link:hover {
        color: var(--primary-color-highlight);
        transition: color 250ms linear;
    }

    a:hover, a.nav-link:hover {
        color: var(--primary-color-highlight);
        transition: color 250ms linear;
    }

    a.nav-link {
        color: var(--text-color);
    }

        a.nav-link:-webkit-any-link {
            color: var(--text-color);
        }

/*p {
    margin-block-end: 0.5em;
    margin-block-start: 0.5em;
}*/

button {
    padding: 10px;
    min-width: 100px;
    --size: 20px;
    font-size: var(--size);
    line-height: var(--size);
    text-align: center;
    color: var(--text-color);
    border: none;
    background-color: var(--background-color-shade);
    border-radius: 8px;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

    button:hover {
        cursor: pointer;
        /*color: var(--primary-color-hover);*/
    }

em {
    padding: 2px;
    color: white;
    font-style: initial;
    background-color: var(--primary-color);
}

input[type=text], input[type=number], select {
    height: 20px;
    line-height: 20px;
    border: none;
    font-size: 16px;
    color: var(--text-color);
    background: var(--background-color-shade);
    border-bottom: 1px solid var(--primary-color);
}

    input[type=text]:focus-visible, input[type=number]:focus-visible, select:focus-visible {
        outline: none;
    }

select {
    height: 23px;
}

/* General */

.css-background-transition, .css-background-transition * {
    transition: border-bottom 500ms linear, background-color 500ms linear;
}

body {
    font-size: 16px;
    line-height: 24px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    padding-top: var(--body-top-margin);
    margin: 0;
    color: var(--text-color);
    background-color: var(--background-color);
}

.content {
    margin-left: auto;
    margin-right: auto;
    width: var(--main-width);
    max-width: var(--main-width);
}

@media only screen and (max-width: 800px) {
    .content {
        width: auto;
        max-width: none;
        margin-left: 20px;
        margin-right: 20px;
    }
}

.footnote {
    font-size: 14px;
    padding-left: 4px;
    vertical-align: super;
}
