#toolbar {
    background: #f27100;
    padding: 0.1em;
    font-family: sans-serif;
    font-size: 70%;
}
#toolbar button {
    margin: 5px;
}
#toolbar form {
    display: inline-block;
}
#geonotes {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
#info-bubble {
    position: absolute;
    top: 0;
    left: 0;
    background: #cc4;
    color: blue;
    font-family: sans-serif;
    font-size: 80%;
    z-index: 10000;
}
#main {
    display: flex;
    height: 100%;
    min-height: 0; /* HACK: https://moduscreate.com/blog/how-to-fix-overflow-issues-in-css-flex-layouts/ */
}
#slippymap {
    margin: 0;
    flex: 75%;
}
#slippymap-leaflet {
    width: 100%;
    height: 100%;
}

#tags {
    margin: 0;
    padding-left: 1em;
    height: 100%;
    flex: 25%;
    max-width: 20em;
    border: 1px solid olive;
    overflow-y: scroll;
    overflow-x: visible;
}
#list-of-tags {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
#list-of-tags .tag {
    clear: both;
}
.rename-button { /* TODO: Fix rule to be specific to the pencil button for tag rename */
    border: 0;
    background: transparent;
    margin-left: -0.5em;
}
.tag-name {
    font-size: 75%;
    font-family: sans-serif;
}
.tag-elementCount {
    font-size: 70%;
    color: silver;
    float: left;
    text-align: right;
    width: 1em;
    margin-right: 3px;
}
.tag-filter-actions {
    font-size: 80%;
    float: right; /* TODO: Convert to flex */
}
.tag-filter-actions button {
    display: inline-block;
    float: right;
    width: 1.3em;
    border: 0;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    margin: 0;
    margin-right: 1px;
    padding: 0; 
    text-align: center;
    background: transparent;
}
.tag-filter-actions button:active {
    border: 0;
    padding-top: 1px;
    padding-left: 1px;
}

.tag-chosen-true {
    font-weight: bold;
}
.tag-chosen-false {
    font-weight: normal;
}

.do-not-display {
    display: none; 
}
.marker-popup {
    background: inherit;
}
.marker-popup .marker-remove {
    float: right;
    border: 1px solid #ccc;
}
.marker-popup .marker-title textarea { 
    font-family: sans-serif;
    font-size: 130%;
    font-weight: bold;
}

.marker-popup textarea {
    border: 0;
    padding: 1px;
    width: 100%;
    resize: none;
}
.marker-popup input {
    border: 0;
    padding: 1px;
}
.marker-popup textarea:focus, 
.marker-popup textarea:hover,
.marker-popup input:focus,
.marker-popup input:hover {
    border: 1px solid #ccc;
    padding: 0;
    background: #ddd;
    resize: vertical;
}
.marker-popup .marker-links a {
    float: left;
    font-size: 80%;
    margin-right: 0.1em;
    padding-right: 0.1em;
    border-right: 1px solid silver;
}
.marker-popup .marker-comment {
    font-style: italic;
}
.marker-popup .marker-comment textarea {
    font-family: sans-serif;
    font-size: 90%;
}
.marker-popup .marker-tags {
    display: block;
    border: 1px solid #ccc;
    border-radius: 0.4em;
    padding: 1em;
}
.marker-popup .marker-tags .marker-one-tag {
    display: block;
    margin-right: 1em;
    margin-bottom: 0.2em;
    border: 1px solid #ccc;
    border-radius: 0.2em;
}
.marker-remove-tag-action {
    border: 0;
    background: inherit;
    margin: 0;
    padding: 0;
}
.marker-remove-tag-action:active {
    background: #ccc;
}
.marker-popup select {
    border: 1px solid #ccc;
    border-radius: 0.2em;
    width: 3em;
    font-size: inherit;
}
.marker-popup .uuid,
.marker-popup .last-updated 
.marker-popup .lat-lng {
    font-family: monospace;
    font-size: 70%;
}


#connection-status {
    background: #b3fff1;
    font-family: sans-serif;
    padding-left: 1em;
}
#connection-status button {
    border: 1px outset #aaa;
}
#connection-messages { 
    display: inline;
}
#connection-progress {
    display: inline;
    font-size: 60%;
}
#connection-pct-outer {
    position: absolute;
    width: 200px;
    height: 20px;
    right: 2px;
    bottom: 2px;
    border: 1px solid black;
    background: white;
}
#connection-pct-inner {
    background: #218a77;
    overflow-x: visible;
    height: 100%;
    width: 0%;
    text-align: center;
    color: white;
    text-shadow:: 2px 2px 4px black;
}
#mouse_latlng {
    font-size: 90%;
    background: white;
}
#mouse_latlng th {
    text-align: left;
}
#mouse_latlng td {
    width: 10em;
    text-align: right;
}
table.dms td {
    margin: 0;
    padding: 0;
}
table.dms td.d {
    width: 2em;
    max-width: 2em;
}
table.dms td.m {
    width: 2em;
    max-width: 2em;
}
table.dms td.s {
    width: 4em;
    max-width: 4em;
}