body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0;
    margin-top: 0;
    font-family: sans-serif;
}

#header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
}

.top-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: #eee;
    margin-bottom: 0.5em;
}

.top-nav > * {
    padding: 0.5em 1em;
    border: solid 1pt #ccc;
}

#admin-nav > * {
    background-color: #ffc366;
    border-color: #e2851e;
}

#annotation-nav > * {
    background-color: #88d8b0;
    border-color: #6cac8c;
}

#footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: small;
    margin-top: auto;
}

#footer-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#footer-nav > * {
    padding: 0.5em 1em;
}

h1 {
    font-family: sans-serif;
}

.row {
    margin-bottom: 0.5em;
}

.container-horizontal-flex {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 1em;
    margin-bottom: 1em;
}

.container-vertical-flex {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 1em;
    margin-bottom: 1em;
}

.form-grid {
    display: grid;
    grid-template-columns: min-content max-content;
}

/* https://www.color-hex.com/color-palette/895 */
/*
button {
    margin: -0.1rem 0 0;
    padding: 0.4rem 0.4rem 0.4rem 3rem;
    border: solid 0.1rem #e8e8e8;
}
*/

.bg-success {
 	  background-color: #88d8b0;
}

.bg-warning {
 	  background-color: #ffcc5c;
}

.bg-danger {
 	  background-color: #ff6f69;
}

.mrl {
    word-break: break-word;
    font-size: smaller;
}

.messages {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: smaller;
}

.message-error {
    color: red;
}

.block {
    background-color: #eee;
    border: solid 1pt #ccc;
    padding-left: 1em;
    padding-right: 1em;
}

.block-title {
    font-weight: bold;
}

.block-expanded:hover {
    background-color: #ddd;
}

.block-collapsed:hover {
    background-color: #ddd;
}

.block-expanded::before {
    content: '▲';
    padding-right: 5px;
}

.block-collapsed::before {
    content: '▼';
    padding-right: 5px;
}

.block-header {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    cursor: pointer;
}

.block-body {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border-top: solid 1pt #ccc;
}

.features-info {
    border-color: lightblue;
    border-style: solid;
    border-width: medium;
}

label, input, select {
    margin-bottom: 0.3em;
    margin-top: 0.3em;
}

label {
    margin-right: 0.5em;
}

.model-name {
    font-family: monospace, monospace;
}

.flashed-message {
    padding: 0.5em;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0.3em;
}

.flashed-message-content {
    width: 100%;
    padding: 0 0.5em;
}

.flashed-message-remove-button {
    align-self: flex-start;
}

.bordered {
    border: solid 1pt #ccc;
    padding: 0.5em;
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1em;
    background: #fff;
}

.nl-prefixed::before {
    content: "NL: ";
}

.mrl-prefixed::before {
    content: "MRL: ";
}

table.pretty-table {
    border-collapse: collapse;
}

table.pretty-table th, table.pretty-table td {
    padding: 0.3em;
    border: solid 1pt black;
}

input[type="checkbox"] {
    max-width: 1em;
}

.page-nav {
    flex-wrap: wrap;
}

.page-nav * {
    margin: 0em 1em;
}
