img {
    vertical-align: top;
}
/*MAIN CONTAINER*/
body{
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px !important;
}
.airqual {
    width: 100%;
    height: 100vh;
    overflow: visible;
}
.container {
    width: 100% !important;
    background-color: #03304f;
}

/*GENERAL STYLES*/
.airqual sup {
    color: #000;
}


a.active {
    color: #14527b;
}
li a:hover::after{
    width:100%;
}
li a:after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #179bd9;
    transition: width 0.3s;
}


/*
NAVBAR
 */
.navbar {
    border: none;
}
.navbar-header {
    background-color: #03304f;
}
.navbar-default {
    border-color: #03304f !important;
    background-color: #03304f;
}
.navbar-nav {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    margin-right: 50px !important;
    margin-left: 0px !important;
    height: 100%;
}

.navbar-collapse {

}

.navbar-default .navbar-brand {
    font-family: "Kaushan Script","Helvetica Neue",Helvetica,Arial,cursive;
    color: #44aedf;
    padding: 0 0;
    background-color: #03304f;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus,
.navbar-default .navbar-brand:active,
.navbar-default .navbar-brand.active {
    color: #fec503;
}

.navbar-default .nav li a{
    color: white !important;
    text-align: center
}

.navbar-default navbar-nav > li > a:hover::after {
    width: 100%;
}
.navbar-default navbar-nav > li > a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #179bd9;
    margin-top: 7px;
    transition: width 0.3s;
}

.navbar-default .navbar-collapse {
    border: none;
    background-color: #03304f;
    /*border-color: rgba(255,255,255,.02);*/
}

.navbar-default .navbar-toggle {
    border-color: #14527b;
    background-color: #03304f;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: white !important;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #14527b;
}

.navbar-default .nav li a {
    text-transform: uppercase;
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    color: #fff;
    padding: 15px 10px;
}

.navbar-default .nav li a:hover,
.navbar-default .nav li a:focus {
    outline: 0;
    color: #14527b;
}

.navbar-default .navbar-nav>.active>a {
    border-radius: 0;
    color: #fff;
    background-color: #14527b;
}

.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
    color: #fff;
    background-color: #14527b;
}

@media(max-width:768px) {
    li a::after{
        height: 0px;
    }
}

@media(min-width:1014px) {
    .navbar-default {
        padding: 25px 0;
        border: 0;
        background-color: #03304f;
        -webkit-transition: padding .3s;
        -moz-transition: padding .3s;
        transition: padding .3s;
    }

    .navbar-default .navbar-brand {
        font-size: 2em;
        -webkit-transition: all .3s;
        -moz-transition: all .3s;
        transition: all .3s;
    }

    .navbar-default .navbar-nav>.active>a {
        border-radius: 3px;
    }

    .navbar-default.navbar-shrink {
        padding: 0 0;
        background-color: #03304f;
    }

    .navbar-default.navbar-shrink .navbar-brand {
        font-size: 1.5em;
    }
}
#blebox-logo {
    height: 35px;
    margin-left: 50px;
    margin-top: 7.5px;
    margin-bottom: 7.5px;
}


/*INFO WINDOWS*/
#info-window-pm10, #info-window-pm25 {
    display: none;
    position: fixed; /* Stay in place */
    z-index: 100000; /* Sit on top */
    left: 370px;
    top: 20%;
    width: 450px;
    height: auto;
    right: 5%;
}
#info-window-pm25 p, #info-window-pm25 a, #info-window-pm25 label {
    color: #000;
}
#info-window-pm10 p, #info-window-pm10 a, #info-window-pm10 label {
    color: #000;
}
.modal {
    bottom: auto !important;
}
.modal-content {
    background-color: #fefefe;
    padding-top: 30px;
    padding-left: 50px;
    padding-right: 50px;
    padding-bottom: 50px;
    border: 1px solid #888;
    text-align: justify;
}
.modal .modal-content .closebtn:hover, .closebtn:focus {
    color: #bbb;
    cursor: pointer;
}
.modal .closebtn {
    position: relative;
    float: right;
    font-size: 20px;
}
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 2px 0;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}

/* ALERT DIALOG */
#dialog-alert-markers, #dialog-alert-sensor {
    display: none;
    z-index: 1003;
    font-family: "Lato";
    border-radius: 5px !important;

}
#dialog-alert-markers p, #dialog-alert-sensor p {
    color: black;
}
.ui-widget.ui-widget-content {
    border:2px solid #14527b !important;

}
.ui-widget-header {
    background: #6f0808 !important;
    color: white !important;
    font-family: "Lato" !important;
    font-weight: normal !important;
}
.ui-corner-all {
    border-radius: 5px !important;
}

/* MAP FRAME */

.airqual .map-frame {
    position: relative;
    width: 100%;
    height: 100%;
}
.airqual .map-frame #booblemap {
    /*width: 100%;*/
    /*height: 100%;*/
    left: 0;
    right: 0px;
    top: 50px;
    bottom: 0px;
    position: absolute;
    overflow: hidden;
    background-color: #e5e3df; }
/*.airqual .map-frame #booblemap .gm-style-iw div div {*/
    /*padding: 15px 15px  30px  15px; }*/
.airqual .map-frame #booblemap .gm-style-iw div div h4 {
    color: #44aedf;
    /*margin: 10px 10px 20px -1px;*/
    text-decoration: underline;
    text-transform: uppercase;
    cursor: pointer; }
.airqual .map-frame #booblemap .gm-style-iw div div h4:before {
    content: "thfgdhdhd";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("../img/marker.png");
    background-position: left center; }
.airqual .map-frame #booblemap .gm-style-iw div div p {
    margin: 3px 0; }


/* SIDEBAR STYLES */
.sidebar {
    font-size: 12px;
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1002;
    top: 50px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 10px;
    margin-right: 10px;
    color: #000 !important;
}
.sidebar a {
    text-decoration: none;
    font-size: 15px;
    color: #000;
    display: block;
}
.sidebar p  {
    color: #000 !important;
    margin: 0 0 9px;
    font-size: 16px;
}
.sidebar label  {
    color: #000 !important;
    font-weight: 600;
    padding-bottom: 5px;
}
.sidebar .closebtn {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 25px;
}
.sidebar .closebtn:hover, .closebtn:focus {
    color: #bbb;
    cursor: pointer;
}
.sidebar .headline {
    text-align: center;
    color:#000;
}

#sensor-name {
    font-size: 22px;
    width: 90%;
}

table th {
    padding: 9px 10px;
    text-align: left;
}
/* PRODUCER TABLE */
.producerTable{
    width: 100%;
    text-align: left;
}

/* PM TABLE*/
.pmTable{
    width: 90%;
    margin-bottom:5px;
    margin-left:10px;
    text-align: left;
    font-size: 13px;
}
.link{
    text-decoration: underline;
}
.link:hover {
    color: #bbb;
    cursor: pointer;
}
.trend-icon {
    width: 20px;
    height: 20px;
}

/* LABEL TABLE */
.labelTable{
    width: 50%;
    margin-left:25%;
    margin-right:25%;
    text-align:center;
}
#pm25Label{
    border: 3px solid #000;
    /*background-color: #169cd9;*/
}
#pm10Label{
    border: 3px solid #999;
}
.myButton {
    color: black;
    text-align: center;
    display: inline-block;
    font-size: 12px;
    cursor: pointer;
    font-weight: 400 !important;
    margin-left:2px;
    margin-right:2px;
    border-radius: 4px;
    padding: 4px 10px;!important;
    background-color: #ccc;
}

#generate-sensor-link {
    width: 70%;
    margin-left: 15%;
    margin-right: 15%;
    background: #03304f;
    border-radius: 20px;
    height: 40px;
    max-width: 320px;
    color: #eee;
    font-weight: 600;
    font-size: 13px;
}

/* PM CHART*/
#pmColumnChart {
    width: 480px;
    height: auto;
}


@media only screen and (max-width: 1014px) {
    .navbar-nav {
        margin-right: 20px !important;
    }
    #blebox-logo {
        margin-left: 20px;
    }
    .sidebar {
        border-right: solid 2px #14527b;
    }
    #sensor-name {
        font-size: 18px;
    }
    .labelTable {
        width: 100%;
        margin:0;
    }
}

@media only screen and (min-width: 480px) and (max-width: 640px) {
    #info-window-pm10, #info-window-pm25 {
        width: auto;
        right: 5%;
        left:auto;
        max-width: 450px;
    }
}

@media only screen and (orientation: landscape) {
    #info-window-pm10, #info-window-pm25 {
        width: auto;
        max-width: 450px;
    }
    .sidebar {
        bottom: 0;
        border-right: solid 2px #14527b;
    }
}
@media only screen and (max-height: 480px) and (orientation: landscape) {
    #info-window-pm10 p, #info-window-pm25 p {
        font-size: 12px;
    }
    #info-window-pm10 label, #info-window-pm25 label {
        font-size: 13px;
    }
    #generate-sensor-link {
        font-size: 12px;
    }
}

/*@media only screen and (max-height: 640px) and (orientation: landscape) {*/
    /*#info-window-pm10, #info-window-pm25 {*/
        /*width: auto;*/
        /*right: 5%;*/
        /*top: 80px;*/
        /*left: 30%;*/
    /*}*/
    /*.modal-content {*/
        /*padding-top: 5px;*/
        /*padding-left: 30px;*/
        /*padding-right: 30px;*/
        /*padding-bottom: 30px;*/
    /*}*/

    /*#on-top-bar{*/
        /*height: 30px;*/
    /*}*/
    /*#link-to-main-page {*/
        /*color: white;*/
        /*font-size: 15px;*/
    /*}*/
    /*#blebox-logo {*/
        /*height: 28px;*/
    /*}*/
/*}*/
@media only screen and (max-width: 400px) and (orientation: landscape) {
    #info-window-pm10 p, #info-window-pm25 p {
        font-size: 12px;
    }
    #info-window-pm10 label, #info-window-pm25 label {
        font-size: 13px;
    }
    #sensor-name {
        font-size: 13px;
    }

    #on-top-bar{
        height: 30px;
    }
    #link-to-main-page {
        color: white;
        font-size: 15px;
    }
    #blebox-logo {
        height: 30px;
        width: 30px;
    }
    .producerTable{
        font-weight: 400;
    }
    .pmTable{
        font-weight: 400;
    }

}

@media only screen and (max-width: 800px){
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
        float: right;
        display: block;
        padding: 0 16px;
    }
    .topnav.responsive {position: relative;}
    .topnav.responsive a {
        float: none;
        display: none;
        text-align: left;
    }
    .topnav.responsive .icon {
        position: absolute;
        display: block;
        right: 0;
        top: 0;
    }

}

@media only screen and (min-width: 481px) and (orientation: portrait) {
    .sidebar {
        bottom: 0;
        /*top: 0;*/
        bottom-right: solid 2px #14527b;
    }
}

@media only screen and (max-width: 481px) and (orientation: portrait) {
    #info-window-pm10, #info-window-pm25 {
        left: 10%;
        top: 10%;
        width: 80%;
    }
    #info-window-pm10 p, #info-window-pm25 p {
        font-size: 12px;
    }
    .modal-content {
        padding-top: 5px;
        padding-left: 30px;
        padding-right: 30px;
        padding-bottom: 30px;
        font-size: 14px;
    }
    .sidebar {
        bottom: 0;
        height:55%;
        border-top:solid 2px #14527b;
        border-right: none;
    }
    #sensor-name {
        font-size: 15px;
    }
    table {
        max-width: 100%;
    }
    .producerTable{
        width: 45%;
        float: left;
        font-size: 12px;
    }
    .pmTable{
        width: 45%;
        right:5%;
        display: inline-block;
        margin-bottom: 5px;
        margin-left: 0;
        font-size: 12px;
    }
    .trend-icon {
        width: 16px;
        height: 16px;
        display: inline-block;
    }
    table th {
        padding: 3px 3px;
        font-weight: 600;
    }
    #headline-1, #headline-2, #headline-units, #vendorLogo {
        display: none;
    }
    .chartjs-render-monitor {
        height: 200px;
    }
    #generate-sensor-link {
        font-size: 12px;
    }
}

#legend {
    overflow: hidden;
    text-align: left;
    display: table-cell;
    vertical-align: middle;
    position: relative;
    color: rgb(86, 86, 86);
    font-family: Roboto, Arial, sans-serif;
    user-select: none;
    font-size: 12px;
    background-color: rgb(255, 255, 255);
    padding: 2px 10px;
    border-radius: 2px;
    background-clip: padding-box;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
    min-width: 68px;
    border-left: 0px;
    margin: 10px;
}

#legend h2 {
    font-size: inherit;
    margin: 0;
    padding: 2pt;
    text-align: left;

}

#legend ul {
    list-style-type: none;
    padding-left: 0px;
}

#legend ul li {
    margin: 0;
    padding: 2pt;
}

#legend ul li span.circle {
    float: left;
    border: 2px solid black;
    border-radius: 50%;
    height: 1em;
    width: 1em;
    margin: 0.5pt 5pt 0.5pt 0pt;
    padding: 0pt;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    display: inline-block;
}