@font-face {
    font-family: Gotham;
    src: url("GothamMedium.otf") format("opentype");
}

html {
    font-size: 16px !important; /* prevent calcite css loading after this and overwriting things to make everything WAY too small */
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

html body,
html body #app {
    font-size: 14px;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body #app .dashboard {
    font-family: 'Gotham', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 0;
    margin: 0;
}

body #app .dashboard #app-wrapper {
    background: #f2f2f2;
}

/* arc doesn't like it when you style the map, so we'll select the first column */
#app-wrapper > .col-sm-5 {
    border-right: 1px solid #d7d7d7;
}

#loading-overlay {
    position: absolute;
    height: 100vh;
    width: 100vw;
    background-color: rgba(100, 100, 100, 0.5);
    z-index: 99999;
    display: flex;
    font-size: 4rem;
    justify-content: center;
    align-items: center;
}

#loading-overlay.hidden,
.hidden {
    display: none !important;
}

body #app .dashboard>.container-fluid,
.container-fluid>div[class^="col-"] {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    height: 100%;
}

.chart-wrapper {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    margin-bottom: 10px;
}

.chart-wrapper .chart-title {
    border-bottom: 1px solid #d7d7d7;
    color: #666;
    font-size: 14px;
    font-weight: 200;
    padding: 7px 10px 4px;
}

.chart-wrapper .chart-stage {
    overflow: hidden;
    padding: 5px 10px;
    position: relative;
}

.chart-wrapper .chart-footer {
    border-top: 1px solid #d7d7d7;
    color: #666;
    font-size: 14px;
    font-weight: 200;
    padding: 7px 10px 4px;
}

#app-sidebar .row {
    margin: 0;
}

#app-wrapper {
    height: 100vh;
    position: absolute;
    width: 100%;
}

#app-sidebar {
    padding: 10px 10px 0px 10px;
    right: 0;
    height: 100%;
    display: flex;
    flex-flow: column;
}

#app-sidebar .chart-wrapper {
    border: medium none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}

.maplibregl-popup-content table {
    width: 100%;
}

.maplibregl-popup-content table tr td {
    padding-right: 10px;
}

.maplibregl-popup-content table tr:nth-child(even) {
    background: #f5f5f5;
}

.maplibregl-popup-content {
    max-width: 250px;
    font-family: 'Gotham Rounded SSm A', 'Gotham Rounded SSm B', 'Gotham', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.maplibregl-popup-content tr:last-child td:last-child {
    line-height: normal;
}

.maplibregl-popup-content h5 {
    font-size: 24px;
}

.chart-stage>.dc-chart {
    float: none;
    text-align: center;
}

.reset .icon {
    /* I thought that this icon looked better rotated, but we want the underline on the bottom so we have to wrap it in it's own span to avoid changing the underline */
    transform: rotate(90deg);
    display: inline-flex;
    font-size: 1.5rem;
    position: relative;
    /* idk why, the icon size was really wide causing positioning within the <a> to be off, so fix it */
    left: 50%;
}

.reset {
    display: flex;
    width: 1.25rem;
    height: 1.25rem;
    background-color: white;
    z-index: 1;
    position: absolute;
    right: 0.5rem;
    top: 6px;
}
.reset:hover {
    text-decoration: none !important;
}

.sidebar-header-bar {
    margin-bottom: 10px;
    flex: 0 1 auto;
}

.sidebar-header-bar select {
    height: 32px;
    border: 1px solid #ccc;
}

.sidebar-header-bar select,
#reportrange {
    border-radius: 3px;
}

.sidebar-header-title {
    font-size: 25px;
    font-weight: 500;
}

.sidebar-header-subtitle {
    font-size: x-small;
}


/*row chart labels as black text*/

.dc-chart g.row text {
    fill: black;
}

/* possible fix for dc legend alignment. looks better in chrome & firefox, looks worse in safari */
g.dc-legend  text {
    /* mathematical looks better than central or middle for some reason (probably the math)*/
    alignment-baseline: mathematical;
}

.sidebar-content {
    flex: 1 1 auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.sidebar-content div[class^="col-"] {
    padding-left: 5px;
    padding-right: 5px;
}

.sidebar-container {
    height: 100%;
}

.ob-count {
    font-size: x-large;
}

.ob-count-words {
    vertical-align: text-bottom;
}

.upper-right-icon {
    font-size: xx-large;
    position: absolute;
    z-index: 9;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#auth-button {
    margin-top: 10px;
    position: absolute;
    right: 10px;
    overflow: hidden;
}

#auth-button>img {
    width: 100%;
    vertical-align: unset;
}

.page-switch-icon {
    margin-top: 10px;
    position: absolute;
    right: 10px;
    display: none;
}

.upper-right-icon:hover {
    background-color: #f2f2f2;
}

/* be more specific about font-family to avoid it being overridden */
div.tooltip[role="tooltip"] {
    font-family: inherit;
}

.upper-right-icon>i.fa {
    font-size: 30px;
    line-height: 40px;
    width: 40px;
    height: 40px;
    text-align: center;
    position: absolute;
}

#features-table-container {
    max-height: 200px;
    overflow: scroll;
}

#obs-data-table {
    width: 100%;
    text-align: left;
}

#obs-data-table>thead>tr {
    background-color: #ddd;
    position: sticky;
    top: 0;
}

#obs-data-table>tbody>tr:nth-child(odd) {
    background-color: #f2f2f2;
}

#obs-data-table>tbody>tr>td:first-child,
#obs-data-table>thead>tr>th:first-child {
    padding-left: 3px;
}

#obs-data-table>tbody>tr>td:last-child {
    padding-right: 3px;
}

#ob-type-select,
#ob-type-select>select,
#avy-type-select,
#avy-type-select>select {
    width: 100%;
    text-align: center;
}

.fa-list {
    font-size: large;
    padding-top: 8px;
}

#zone-bar-chart .axis.x text {
    transform: translate(-15px, 12px) rotate(-27deg);
}

.avy-rose-part {
    fill: #d4d4d4;
    stroke: black;
    stroke-miterlimit: 10;
    cursor: pointer;
}

.avy-rose-part.hovered {
    fill: #e7e7e7;
}

.avy-rose-part.not-selected {
    fill: white;
}

.avy-rose-part text {
    fill: black;
    font-size: 26px;
    cursor: pointer;
}

.cardinal-direction {
    font-size: 35px;
}

.rose-multiselector {
    cursor: pointer;
}

#time-bar-chart .axis.x text {
    -webkit-transform: translate(-15px, 12px) rotate(-55deg);
    transform: translate(-15px, 12px) rotate(-55deg);
}

#download-button {
    margin-left: -12px;
    padding-top: 5px;
    cursor: pointer;
}

.dc-table-head:not(:nth-child(1)) {
    cursor: pointer;
}

.dc-table-head {
    font-weight: initial;
}

.sort-icon {
    padding-left: 5px;
}

.table-cell {
    padding-left: 5px;
    padding-right: 5px;
    width: fit-content;
}

.table-cell.trigger-cell {
    color: white;
    width: 100%;
    text-align: center;
}

a.zoom-to-obs:hover, a.zoom-to-obs:focus {
    text-decoration: none;
}

.pie-row .chart-wrapper {
    min-height: 248px;
}

#na-link {
    background-image: unset;
    width: 99px;
    height: 33px;
}

.spider-marker {
    width: 14px;
    height: 14px;
    margin-left: -7px;
    margin-top: -7px;
    opacity: 1;
    border-radius: 50%;
    border: 1px solid white;
}

#features-table-pagination {
    display: flex;
    margin-top: 0.25rem;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0.25rem;
}

.map-control {
    display: flex;
}

.map-control:not(:first-child) {
    margin-top: 0.5rem;
}

@media (max-width: 767px) {
    .page-switch-icon {
        display: block;
    }

    #auth-button {
        margin-top: 60px;
    }
}

@media (min-width: 768px) {
    .col-sm-8>.tooltip {
        display: none !important;
    }
}