@font-face {
    font-family: NotoColorEmojiLimited;
    unicode-range: U+1F1E6-1F1FF;
    src: url(/noto-color-emoji.ttf);
}

:root {
    --background-color: #201C21;
    --box-color: #2F3031;
    --bar-color: #2F3031;
    --text-color: #AFA0AB;

    --col-lg: #807483;
    --col-dg: #625964;
    --col-r: #D15C5C;
    --col-m: #F95E92;
    --col-g: #7EB581;
    --col-o: #B98B6F;
    --col-y: #DBBB80;
    --col-b: #7EA3B5;
    --col-p: #B16C99;

    --border-color: #4D464F;
    --background-hover-color: #FFFFFF0D;
}

@property --link-color {
    syntax: "<color>";
    inherits: true;
    initial-value: #2982A9;
}

@property --link-hover-color {
    syntax: "<color>";
    inherits: true;
    initial-value: #29ADC2;
}

@property --button-text-color {
    syntax: "<color>";
    inherits: true;
    initial-value: white;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: 'NotoColorEmojiLimited', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    font-weight: 400;
    margin: 0;
    display: flex;
    justify-content: center;
}

div {
    display: flex;
    flex-direction: column;
}

div.content {
    padding: 1em;
    width: 100%;
    max-width: 900px;
    align-items: center;
}

div.content > h1,
div.content > h2 {
    align-self: center;
}

h1,
h2,
h3 {
    margin: 0 0 0.5rem 0;
}

.lgray {
    color: var(--col-lg);
}

.dgray {
    color: var(--col-dg);
}

.red {
    color: var(--col-r);
}

.magenta {
    color: var(--col-m);
}

.green {
    color: var(--col-g);
}

.orange {
    color: var(--col-o);
}

.yellow {
    color: var(--col-y);
}

.blue {
    color: var(--col-b);
}

.purple {
    color: var(--col-p);
}

.success {
    --link-color: #1B7E43;
    --link-hover-color: #2F9D37;
}

.danger {
    --link-color: #9F3232;
    --link-hover-color: #D13030;
}

a,
a:visited {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    color: var(--link-hover-color);
}

hr {
    width: 100%;
    border: none;
    border-top: solid 1px var(--border-color);
}

p {
    margin-block: 0;
}

code {
    font-family: monospace, monospace;
}

small {
    font-size: 0.7em;
}

.box {
    width: 100%;
    margin: 0;
    padding: 1em;
    border: 1px solid var(--border-color);
    border-radius: 0.5em;
}

.break {
    margin-bottom: 0.5em;
}

.spaced {
    margin: 6px 0;
}

.fit {
    width: fit-content;
}

.stretch {
    width: 100%;
}

.multiline {
    display: block;
    white-space: pre-wrap;
}

.spread {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.module {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

a.button,
button,
input[type=submit],
input[type=button],
input[type=text],
input[type=email],
input[type=password],
input[type=date],
textarea,
select {
    padding: 10px;
    border: solid 1px var(--border-color);
    margin: 6px 0;
    border-radius: 4px;
    color: var(--text-color);
}

a.button,
button,
input[type=submit],
input[type=button] {
    cursor: pointer;
    background: var(--link-color);
    color: var(--button-text-color);
    font-weight: bold;
    border: solid 1px transparent;
}

a.button:hover,
button:hover,
input[type=submit]:hover,
input[type=button]:hover {
    border: solid 1px var(--button-text-color);
}

input[type=text],
input[type=email],
input[type=password],
input[type=date],
textarea,
select {
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    width: 100%;
}

option {
    background: var(--background-color);
    color: var(--text-color);
}

input[readonly],
.dottedborder {
    border-style: dashed;
}

input[readonly]:focus-visible {
    outline: none;
}

label.required::after {
    content: " *";
    color: var(--col-r);
}

table, th, td {
    border: 1px solid var(--border-color);
    border-collapse: collapse;
}

th, td {
    padding: 0.3em;
}

table {
    width: 100%;
}

thead {
    position: sticky;
    top: 0;
    background-color: var(--background-color);
}

th {
    text-align: left;
}

input[type=checkbox] {
    width: 100%;
}

/* Website specific styling */

.avatar {
    border-radius: 50%;
    width: 3em;
    height: 3em;
}

.small-avatar {
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
}

a.profile img {
    border-radius: 50%;
    width: 3em;
    height: 3em;
    position: absolute;
    right: 6px;
    top: 6px;
}

.inline-img {
    height: 1.2em;
    vertical-align: sub;
}

.role {
    background: color-mix(in srgb, currentColor 15%, transparent);
    padding: 0.05em 0.3em;
    border-radius: 0.3em;
}