html {
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: "Segoe UI", "Roboto", sans-serif;
    font-size: 11pt;
    min-height: 100vh;
    background-color: black;
}

body {
    width: 100%;
    padding: 0;
    margin: 0;
    min-height: 100vh;
}

sup {
    font-size: smaller;
    vertical-align: super;
}

sub {
    font-size: smaller;
    vertical-align: sub;
}

b {
    font-weight: bold;
}

p {
    margin-bottom: 0.5em;
}

a {
    text-decoration: none;
}

code {
    font-family: monospace;
}

a.real-link {
    text-decoration: underline;
}

a.image {
    display: block;
    width: 100%;
}

abbr[title] {
    text-decoration: underline dotted;
}

abbr.no-under[title] {
    text-decoration: none
}

div.page div.titlebar {
    width: 100%;
    margin-bottom: 16px;
    height: auto;
}

div.page div.titlebar h2 {
    display: inline;
}

div.page div.titlebar span.spectrality {
    font-size: 200%;
}

div.page div.titlebar span#location {
    font-size: 10pt;
}

div.page div.titlebar div.controls {
    float: right;
}

div.page div.titlebar div.controls a {
    text-decoration: none;
}

div.page div.titlebar div.controls img {
    width: 32px;
    height: 32px;
}

div.page {
    padding: 1.5em;
    background-image: url("/static/solid.png");
    background-color: hsl(0, 0%, 40%);
    background-blend-mode: screen;
    min-height: calc(100vh - 88px);
    height: 100%;
}

h2 {
    font-size: 24pt;
}

h3 {
    font-size: 18pt;
    clear: both;
}

a.object-link {
    font-weight: bold;
}

span.name {
    font-weight: bold;
}

span.count {
    font-size: 80%;
    color: darkgreen;
}

.empty { color: grey; }
.forbidden { color: darkred; }

/* A box with a title <h3> and a table */
div.infobox {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
}

span.update {
    font-weight: bold;
}

span.sun {
    padding: 0 5px;
    font-weight: bold;
}

span.arrow {
    display: inline-block;
}

div.full-width {
    width: 100%;
    display: grid;
    gap: 1em;
}

div.page div.inner {
    display: grid;
    gap: 1em;
    width: 100%;
    height: 100%;
}

div.page div.sighting {
    display: grid;
    grid-template-columns: 2fr 5fr;
}

div.page div.info {
    display: flex;
    flex-direction: column;
    gap: 5mm;
    flex: 0 0;
}

div.content {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

div.page div.preview {
    flex: 1 0 500px;
}

a.preview {
    margin: auto;
}

video.preview {
    width: 100%;
}

div.page div#map {
    width: 100%;
    height: calc(100vh - 175px);
    background: repeating-linear-gradient(
        -45deg,
        hsl(0, 0%, 90%),
        hsl(0, 0%, 90%) 20px,
        hsl(0, 0%, 95%) 20px,
        hsl(0, 0%, 95%) 40px
    );
}

div#tags > form > label {
    display: none;
}

div.info-panel {
    display: grid;
    grid-template-columns: 1fr 1280px;
    gap: 5mm;
}

img.chart {
    border: 1px solid black;
}

img.sighting-type {
    width: 24px;
    height: 24px;
}

table.clock {
    float: left;
    width: 150px;
}

table.clock td {
    text-align: right;
    font-weight: 500;
    font-size: 120%;
}

th.clock-tz {
    width: 50px;
    text-align: right;
}

td.clock {
    min-width: 200px;
}

div.update {
    font-size: 160%;
    min-width: 15mm;
    text-align: center;
    display: inline-block;
    color: white;
    background-color: gray;
    border-radius: 3mm;
    padding: 2mm;
    margin-left: 1em;
    font-weight: 500;
}

div.update > span {
    display: block;
    position: relative;
    top: 60%;
    height: 100%;
    vertical-align: middle;
}

div.page a.navigation {
    text-decoration: none;
}

form.datetime p {
    display: inline-block;
}

form.datetime input {
    display: inline-block;
}

div.equipartitioned {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 5mm;
}

div.grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: min-content min-content min-content;
}

div.partition {
}

div.section {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

div.tabs {
    position: relative;
    min-height: 1000px; /* This part sucks */
    height: fit-content;
    clear: both;
    top: 8px;
}

div.tab {
    float: left;
}

div.tab label {
    background: #eee;
    padding: 0.3em 0.6em;
    border: 1px solid #ccc;
    margin-left: -1px;
    position: relative;
    left: 1px;
}

div.tab [type=radio] {
    display: none;
}

/* The Alt+N hint shortcuts.js writes into every tab label, from the tab's own position. Quiet
   enough to ignore until it is wanted. */
div.tab label kbd.shortcut {
    font-size: 80%;
    color: hsl(0, 0%, 45%);
    background-color: hsl(0, 0%, 97%);
    border: 1px solid hsl(0, 0%, 80%);
    border-radius: 3px;
    padding: 0 0.25em;
}

div.tab-content {
    position: absolute;
    top: 21px;
    left: 0;
    background: white;
    right: 0;
    bottom: 0;
    padding: 1em;
    border: 1px solid #ccc;
    height: 1032px;
    overflow: hidden;
}

div.tab-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

div.tab-content > * {
    max-width: fit-content;
}

div.tab-content span.no-video {
    display: block;
    align-self: center;
    vertical-align: middle;
    color: gray;
}

div.page div.tabs img.sighting {
    height: 1000px;
}

img.sighting.empty {
    opacity: 0.25;
}

[type=radio]:checked ~ label {
    background: #fff;
    border-bottom: 1px solid white;
    z-index: 2;
}

[type=radio]:checked ~ label ~ div.tab-content {
    z-index: 1;
}

a.action {
    display: inline-block;
    background: green;
    color: white;
    border: 1mm solid green;
    border-radius: 0.5mm;
}