html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

@font-face {
    font-family: jetbrainsmono;
    src: url("JetBrainsMono-Regular.ttf")
}
@font-face {
    font-family: jetbrainsmono;
    font-weight: bold;
    src: url("JetBrainsMono-Bold.ttf")
}
@font-face {
    font-family: jetbrainsmono;
    font-style: italic;
    src: url("JetBrainsMono-Italic.ttf")
}

div, ul, ol, li, dl, dt, dd { display: block; padding: 0; margin: 0; }
table { border-spacing: 0; }

html { font-family: Arial, Helvetica, sans-serif; background: #eee; }
body { background: white; margin: 0; padding: 0; }
h1 { font-size: 1.5rem; color: black; margin: 1rem 0; }
h2 { font-size: 1.2rem; font-weight: bold; margin: 1rem 0 0 1rem; }
a { color: #08619d; font-weight: bold; text-decoration: none; }
nav { background: lightgray; display: flex; align-items: center; padding: 0 0.5rem; height: 3rem; }
nav h1 { flex: auto; margin: 0; font-size: 1.7rem; color: black; }
nav h1 a { text-decoration: none; padding: 0.25rem 0.5rem; color: black; }
nav ul  { display: flex; list-style: none; margin: 0; padding: 0; }
nav h1 a img { position: relative; top: 0.3rem; }
nav ul li.username { display: block; padding: 0.5rem; }
nav ul li a, nav ul li span, header .action { display: block; padding: 0.5rem; text-decoration: none; }
.content { width: 100%; }
.content > ul { margin-left: 1rem; }
.content > p { margin-left: 1rem; }
.content > table { margin-left: 1rem; }
.content > header { display: flex; align-items: flex-end; height: 2.5rem; }
.content > header h1 { flex: auto; margin: 0; padding-left: 1rem; }
.flash { margin: 1em 0; padding: 1em; background: #cae6f6; border: 1px solid #377ba8; }
.content:last-child { margin-bottom: 0; }
.content form { margin: 1em 0 0 1rem; width: 40rem; display: flex; flex-direction: column; }
.content label { font-weight: bold; margin-bottom: 0.5em; }
.content label.inline { font-weight: normal; display: inline-block; }
.content input, .content textarea { margin-bottom: 1em; }
input.danger { color: #cc2f2e; }
input[type=submit] { align-self: start; min-width: 10em; }

nav {
    position: sticky;
    top: 0;
}
header {
    position: sticky;
    top: 3rem;
    background: white;
}
.header-row {
    position: sticky;
    top: 5.5rem;
    background: white;
}
