body { margin:0; padding:0; }

html, body {
    height: 100vh;/*TODO may need to use 100% for Chrome bug workaround?*/
    width: 100vw;
}

body {
    grid-template-columns: max-content auto;
    display:grid;
}

#map.smallmap {
    height: 100vh;
    width: 65vw;
    min-width: 500px;
}

#details {
    text-align: center;
    padding: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.selector {
    list-style-type: none;
}

.selector, .selector li {
    margin: 0;
    padding: 0;
}

.selector input[type='radio'] {
    display: none;
}

.selector input + label {
    background-color: #fff;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    text-decoration: none;
    color: #000;
    display: block;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    font: bold 22px 'Lucida Console', Monaco, monospace;
    text-indent: 1px;
}

.selector input:checked + label {
    background-color: #a9cdeb;
}

.selector li label {
    border-bottom: 1px solid #ccc;
}

.selector li:first-child label {
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
}

.selector li:last-child label {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    border-bottom: none;
}

.widget {
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    color: rgba(0, 0 0, 0.87);
    background-clip: padding-box;
    box-sizing: border-box;
    box-shadow: none;
}

#ui {
    max-width: 30em;
    box-shadow: none;
    padding: 10px;
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-gap: 5px;
    font-size: 14px !important;
}

#ui label {
    text-align: right;
    align-items: center;
    display: flex;
}

#chart-content > div.dropdown {
    margin: 1em 0;
}


#request-wrapper {
    margin: 0 auto;
}

#request-wrapper-inner {
    display: flex;
    justify-content: space-between;
}

.invisible {
  flex: 0 1 auto;
  width: 5em;
  visibility: hidden;
}

#request {
    flex: 0 1 auto;
    margin: 1em 0;
    display: inline-block;
    height: 3em;
}

#apu {
    flex: 0 1 auto;
    margin: 1em 0;
    width: 5em;
    overflow: hidden;
    display: inline-block;
    text-align: left;
    height: 3em;
    line-height: 1em;
    padding: 1em 0;
}

#chart {
    margin:top
    width: 100%;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

#tab-select > button.active {
    font-weight: bold;
}

#json-content, #error-content {
    width: 100%;
}

#json-content > *, #error-content > * {
    margin: 1em 0;
}

.json {
    font-family: 'Lucida Console', Monaco, monospace;
    margin: 1em;
    overflow-x: hidden;
    text-overflow: ellipsis;
    text-align: left;
    background-color: #f5f6f7;
}

img.completed {
    filter: grayscale(100);
}

/* hacks to override Leaflet overriding Semantic UI's font settings*/
.ui.dropdown > .text {
    font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
}

#details-footer > a {
    margin: 1em;
}

#details-footer {
    margin-top: auto;
}

#tab-content-wrapper {
    margin-bottom: auto;
    min-height: calc(100vh - 9em);
    overflow: auto;
}

input.coord-changer {
    line-height: 1rem !important;
    font-size: 1rem !important;
    margin-right: 5px !important;
}

.changer-wrapper > div:first-child {
    margin-bottom: 5px;
}

#change-coords {
    line-height: 1rem !important;
    font-size: 1rem !important;
    padding: 0.8571428571428571em 1.5em !important;
    margin-right: 0;
}
