:root {
    --text-header-font-family: Verdana, Geneva, Tahoma, sans-serif;
    --text-header-size: 30px;
    --text-subheader-font-family: var(--text-header-font-family);
    --text-subheader-size: 24px;
    --text-body-font-family: Arial, Helvetica, sans-serif;
    --text-body-normal-size: 18px;
    --text-body-small-size: 15px;

    --default-pad: 4px;

    --page-width: 800px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --colour-background-primary: #333333;
        --colour-background-secondary: #474747;
        --colour-background-tertiary: #576063;
        --colour-text-normal: #ffffff;
        --colour-text-invert: #000000;
        --colour-text-alternate: #bfbfbf;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --colour-background-primary: #cccccc;
        --colour-background-secondary: #b8b8b8;
        --colour-background-tertiary: #89979c;
        --colour-text-normal: #000000;
        --colour-text-invert: #ffffff;
        --colour-text-alternate: #404040;
    }
}

.container {
    display: flex;
    background-color: var(--colour-background-primary);
}

.container.altbg {
    background-color: var(--colour-background-secondary);
}

.container.row {
    flex-direction: row;
}

.container.row > * {
    margin-top: 0px;
    margin-bottom: 0px;
    padding-left: var(--default-pad);
    padding-right: var(--default-pad);
}

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

.container.column > * {
    margin-left: 0px;
    margin-right: 0px;
    padding-top: var(--default-pad);
    padding-bottom: var(--default-pad);
}

.container.even_fill > * {
    flex: 1;
}

.navbar {
    width: 100%;
    background-color: var(--colour-background-secondary);
}

.navbar .button {
    padding: 4px 10px;
    background-color: inherit;
    border: none;
}

.navbar .button.selected {
    text-decoration: underline;
}

.navbar .button:hover {
    background-color: var(--colour-background-tertiary);
    text-decoration: underline dotted;
}

.navbar .button.selected:hover {
    background-color: var(--colour-background-tertiary);
    text-decoration: underline;
}

.display_centered {
    max-width: var(--page-width);
    width: 100%;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    margin : 0px;
    padding: 0px;
}

h2 {
    margin : 0px;
    padding: 0px;
}

p {
    margin : 0px;
    padding: 0px;
}

.text {
    font-family: var(--text-body-font-family);
    font-size: var(--text-body-normal-size);
    text-decoration: none;
    color: var(--colour-text-normal);
}

.text.small {
    font-size: var(--text-body-small-size);
}

.text.bold {
    font-weight: bold;
}

.text.header {
    font-family: var(--text-header-font-family);
    font-size: var(--text-header-size);
    color: var(--colour-text-normal);
}

.text.subheader {
    font-family: var(--text-subheader-font-family);
    font-size: var(--text-subheader-size);
    color: var(--colour-text-normal);
    font-weight: bold;
}

.text.colour_invert {
    color: var(--colour-text-invert);
}

.text.colour_alt {
    color: var(--colour-text-alternate);
}

#profile_picture {
    border-radius: 50%;
    max-height: calc(var(--text-header-size) + 5px);
}

table {
    border: 1px solid var(--colour-background-tertiary);
    border-collapse: collapse;
}

th {
    border: 1px solid var(--colour-background-tertiary);
    border-collapse: collapse;
}

td {
    border: 1px solid var(--colour-background-tertiary);
    border-collapse: collapse;
}