body {
    height: 100vh;
    background-color: #323232;
    margin: 0;
    display: flex;
    flex-flow: column;
    font-family: 'Montserrat', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

#top_bar {
    width: 100%;
    height: 38px;
    display: flex;
}

#top_bar img {
    height: 24px;
    margin: 8px;
}

.logo_separator {
    width: 2px;
    height: 28px;
    border-radius: 2px;
    background-color: #616161;
    margin-top: 6px;
}

#title {
    margin-top: 2px;
    margin-left: 6px;
    font-size: 1.8em;
    font-family: 'Red Hat Display', sans-serif;
}

#content {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    overflow: hidden;
}

#side_bar {
    box-sizing: border-box;
    width: 320px;
    resize: horizontal;
    flex-grow: 0;
    padding: 0px 6px 6px 6px;
    display: flex;
    flex-direction: column;
}

#map {
    flex-basis: auto;
    flex-grow: 1;
}

#status {
    font-size: 1.2em;
    padding-top: 6px;
    margin: 0 8px 0 auto;
    color: #e90000;
}

.sensor_selector {
    margin-top: 2px;
    padding: 4px;
    background-color: #1f1f1f;
    border-radius: 2px;
    border: none;
    color: white;
    font-size: 1.2em;
    width: 100%;
}

.side_box {
    background-color: #404040;
    border-radius: 2px;
    margin-top: 8px;
    font-weight: normal;
    padding: 8px 9px;
}


.block_title {
    display: inline-block;
    font-size: 18px;
    margin-bottom: 4px;
    width: 100%;
}

.map_popup button {
    display: block;
    margin-top: 4px;
    width: 100%;
}

.fa-crosshairs {
    color: white;
}

.name_row {
    display: flex;
}

.name_row input {
    flex-grow: 1;
    margin-left: 8px;
}

.sensor_info_box {
    flex-grow: 0;
}

.sensor_info_box>* {
    margin-top: 6px;
}

.sensor_controls {
    display: flex;
    flex-direction: row;
    gap: 4px;
    margin-top: 12px;
}

.sensor_controls_column {
    display: flex;
    flex-direction: column;
    /* padding: 4px; */
    gap: 8px;
    flex-basis: 0;
    flex-grow: 1;
}

.sensor_controls_column button {
    flex-grow: 1;
    flex-basis: 0;
    font-size: 14px;
    padding: 4px;
}

.method_row button {
    float: right;
    width: 80px;
}

.sensor_events {
    overflow-y: auto;
    overflow-x: visible;
    flex-grow: 1;
    flex-shrink: 1;
}

.sensor_event {
    background-color: #363636;
    margin-top: 8px;
    border-radius: 2px;
    padding: 8px 9px;
}

.event_timestamp {
    color: #a5a5a5;
    min-width: 90px;
    float: right;
    text-align: right;
    font-size: 0.8em;
}

/* Popup */

.popup_meta {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.popup_stats {
    flex-grow: 1;
}

.popup_controls {
    flex-grow: 0;
}

.image_container {
    display: flex;
    padding-top: 8px;
}

.image_container img {
    height: 200px;
}

.crossqueue-popup .leaflet-popup-content {
    width: unset !important;
}

/* Dialog */
dialog:modal {
    border: none;
    border-radius: 4px;
}

dialog p {
    margin: 4px;
    font-size: 1.1em;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog_buttons_area {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
}

.dialog_buttons_side {
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 4px;
}

.dialog_buttons_side button {
    padding: 0.5em 1em;
    background-color: #e7e7e7;
    border: #888 1px solid;
    border-radius: 2px;
}

.dialog_field {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.dialog_field label {
    width: 6em;
    text-align: end;
}

.sensor_all_images_button {
    float: right;
}

.follow_box {
    padding: 8px;
}

.queried_span {
    color: #e97c00;
    float: right;
}