/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

html,
body {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #f8f8f8;
}

.page-wrap {
    min-height: 100%;
    /* equal to footer height */
    margin-bottom: -3rem;
}

.page-wrap:after {
    content: "";
    display: block;
}

.footer,
.page-wrap:after {
    margin: 0;
    padding: 0;
    height: 3rem;
    line-height: 3rem;
    /* Vertically center the text there */
}

:root {
    --padding-container: 0.5rem;
    --margin-bottom-container: 1.5rem;
    color-scheme: only light;
}

#content-container {
    margin-top: 1rem;
    padding-left: var(--padding-container);
    padding-right: var(--padding-container);
    padding-bottom: var(--padding-container);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.map-container {
    margin-left: calc(-1 * var(--padding-container));
    margin-bottom: calc(-1 * (var(--padding-container) + var(--margin-bottom-container)));
    width: calc(100% + 2 * var(--padding-container));
}

.fa-blank {
    visibility: hidden !important;
}

dl.side-by-side {
    display: grid;
    grid-template-columns: max-content auto;
}

@media screen and (min-width: 1024px) {
    .navbar {
        height: 70px;
    }

    .navbar-brand img {
        height: 31px;
    }
}

@media (max-width: 1023px) {
    .navbar-brand img {
        width: 145px;
        height: auto;
    }

    .columns {
        margin-left: 0rem;
        margin-right: 0rem;
    }

    .column {
        padding-left: 0rem;
        padding-right: 0rem;
    }

    .content h2 {
        margin-bottom: 0.35em;
    }

    #content-container {
        margin-top: 0.7rem;
    }
}

table.wrap-cells td {
    word-wrap: break-word;
}

.wrap-cells {
    table-layout: fixed;
}

#map {
    width: 100%;
    height: 100%;
    max-height: 800px;
}

.custom-map-control-button {
    background-color: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    margin: 10px;
    padding: 0 0.5em;
    font: 400 18px Roboto, Arial, sans-serif;
    overflow: hidden;
    height: 40px;
    cursor: pointer;
}

.custom-map-control-button:hover {
    background: rgb(235, 235, 235);
}

/* when on small screen shunt the right hand buttons down so they don't overlap the left hand map type buttons */
@media screen and (max-width: 460px) {
    .first-custom-map-control-button {
        margin-top: 60px;
    }
}

.custom-map-div {
    background-color: #fff;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
    margin: 10px;
    padding: 0.5em;
    font: 400 18px Roboto, Arial, sans-serif;
    overflow: hidden;
    max-width: 80%;
}

#instructions-div ul {
    margin-left: 1.5em;
    margin-top: 0.5em;
}

.loader-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #fff;
    opacity: 0;
    z-index: -1;
    transition: opacity .3s;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0px;

    .loader {
        height: 80px;
        width: 80px;
        border-color: black;
        border-right-color: transparent;
        border-top-color: transparent;
    }

    &.is-active {
        opacity: 0.5;
        z-index: 1;
    }
}

#legend {
    font-family: Arial, sans-serif;
    background: #fff;
    padding: 10px;
    margin: 10px;
    border: 3px solid #000;
}

#legend h3 {
    margin-top: 0;
}

#legend img {
    vertical-align: middle;
}

.text-input {
    max-width: 30em;
}

.numeric-input {
    max-width: 10em;
}

.draggable-marker:focus-visible {
    outline: 0px;
}

.width-100 {
    width: 100px !important;
}

.max-width-25 {
    max-width: 25% !important;
}

.header-background {
    background-color: #2e323a;
}

.tile {
  align-items: stretch;
  display: block;
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  min-height: min-content;
}

.tile.is-parent {
  padding: 0.75rem;
}

.menu-background {
    background: #2e323a !important;
}

.width-fit-content {
    max-width: fit-content;
}

li:hover a {
    background-color: #f8f8f8 !important;
    color: #2e323a !important;
}

.transparent {
    background-color: transparent !important;
}

.title-padding {
    padding: 55px 0px 0px 55px;
}

.sub-title-padding {
    padding: 0px 0px 0px 55px;
}

.title-filter-padding {
    padding: 110px 0px 0px 0px;
}

tr:hover {
    background-color: #f8f8f8 !important;
}

table, th, td {
    border: 3px solid #f8f8f8;
}

.alerts-canvas {
    canvas{
        width: 80% !important;
        margin: auto;
    }
}

.p-2 {
    padding: 2rem !important;
}

.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.navbar-link:not(.is-arrowless)::after {
    border-color: lightgrey;
}

.navbar-dropdown .navbar-item:not(.is-active,.is-selected) {
    background-color: #2e323a !important;
}

.error-message-color {
    color: black;
}

.error-message-alignment {
    text-align: left;
}

a.navbar-item:hover:not(.is-active,.is-selected) {
    background-color: white !important;
    color: #2e323a !important;
}

.min-width {
    min-width: 100%
}

.min-height-85pc {
    min-height: 85%;
}

.charts {
    width: 50%;
}

.gm-style-iw button[title="Close"] {
    display: none !important;
}

.min-width-fit-content {
    min-width: fit-content
}

.height-fit-content {
    height: fit-content;
}

/* Apply scroll bar styles for Webkit (Chrome, Safari, Edge) */
.responsive-iframe::-webkit-scrollbar {
    width: 20px;
    height: 20px;
}

.responsive-iframe::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.responsive-iframe::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.responsive-iframe::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* For Firefox Scroll bar */
iframe {
    scrollbar-width: thick;
    scrollbar-color: #888 #f1f1f1;
}

iframe {
    width: 100%;
    height: 85vh;
    border: none;
    overflow: auto;
}

.column-word-break {
    word-break: break-all
}

.speed-circle {
    width: 100px;
    height: 100px;
    line-height: 80px;
    border-radius: 50%;
    font-size: 40px;
    color: black;
    text-align: center;
    background: #fff;
    border: 10px solid red;
}

.traffic-analysis-chart-legend {
    align-items: center;
    justify-content: center;
}

.expand:hover {
    cursor: pointer;
}

.display-none {
    display: none;
}

.display-inline {
    display: inline !important;
}

.black-color {
    color: black;
}
