﻿/* DEFAULTS
----------------------------------------------------------*/

body {
    background: #b6b7bc;
    font-size: .80em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    margin: 0px;
    padding: 0px;
    color: #696969;
    height: 100vh;
}

body > form {
    height: 100%;
}

a:link, a:visited {
    color: #034af3;
}

a:hover {
    color: #1d60ff;
    text-decoration: none;
}

a:active {
    color: #034af3;
}

p {
    margin-bottom: 10px;
    line-height: 1.6em;
}

/* HEADINGS   
----------------------------------------------------------*/

h1, h2, h3, h4, h5, h6 {
    font-size: 1.5em;
    color: #666666;
    font-variant: small-caps;
    text-transform: none;
    font-weight: 200;
    margin-bottom: 0px;
}

h1 {
    font-size: 1.6em;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

h2 {
    font-size: 1.5em;
    font-weight: 600;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

/* this rule styles <h1> and <h2> tags that are the 
first child of the left and right table columns */
.rightColumn > h1, .rightColumn > h2, .leftColumn > h1, .leftColumn > h2 {
    margin-top: 0px;
}

/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/
.page {
    display: grid;
    grid-template-rows: min-content auto;
    height: 100%;
    padding: 0px 10px;
}

.header {
    display: flex;
    flex-wrap: wrap;
    grid-row: 1;
}

.main {
    display: grid;
    grid-template-rows: auto min-content;
    grid-row: 2;
}

.main-collapsed {
    grid-template-columns: 1fr;
}

.main-expanded {
    grid-template-columns: 190px 1fr;
}

.filter-container {
    padding-right: 5px;
}

.map-and-diagram-container {
    border-left: 1px solid #aaaaaa;
    padding: 10px 0px 0px 25px;
}

/* TAB MENU   
----------------------------------------------------------*/

.nav {
    padding-top: 10px;
}

.navbar {
    flex-grow: 1;
    margin-bottom: 0px !important;
    position: initial !important;
}

.navbar-nav.navbar-right:last-child {
    margin-right: 0px !important;
}

.navbar-default {
    background-color: #163f6d !important;
    border-color: #163f6d !important;
}

.navbar-default .navbar-brand {
    color: #ecf0f1 !important;
}

.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus {
    color: #ffffff !important;
}

.navbar-default .navbar-text {
    color: #ecf0f1 !important;
}

.navbar-default .navbar-nav > li > a {
    color: #ecf0f1 !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #ffffff !important;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #ffffff !important;
    background-color: #80c9ff !important;
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    color: #ffffff !important;
    background-color: #163f6d !important;
}

.navbar-default .navbar-toggle {
    border-color: #80c9ff !important;
}

.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background-color: #80c9ff !important;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #ecf0f1 !important;
}

.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
    border-color: #ecf0f1 !important;
}

.navbar-default .navbar-link {
    color: #ecf0f1 !important;
}

.navbar-default .navbar-link:hover {
    color: #ffffff !important;
}

/* MENU FIXES - Only needed for ASP.NET Menu control
----------------------------------------------------------*/

div.menu > ul > li {
    display: inline-block;
    list-style: none;
}

div.menu ul li ul {
    display: none;
}

img[alt='Skip Navigation Links'] {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* FORM ELEMENTS
----------------------------------------------------------*/

fieldset {
    margin: 1em 0px;
    padding: 1em;
    border: 1px solid #ccc;
}

fieldset p {
    margin: 2px 12px 10px 10px;
}

fieldset.login label, fieldset.register label, fieldset.changePassword label {
    display: block;
}

fieldset label.inline {
    display: inline;
}

legend {
    font-size: 1.1em;
    font-weight: 600;
    padding: 2px 4px 8px 4px;
}

input.textEntry {
    width: 320px;
    border: 1px solid #ccc;
}

input.passwordEntry {
    width: 320px;
    border: 1px solid #ccc;
}

div.accountInfo {
    width: 42%;
}

/* myModal
----------------------------------------------------------*/

#myModal .chosen-container, #myModal .chosen-select {
    float: left;
    margin-right: 10px;
    width: 250px !important;
}

#myModal .form-horizontal label {
    float: left;
    width: 150px;
}

#myModal .form-horizontal .selection label {
    float: none;
}

#myModal .form-horizontal button {
    float: left;
    margin-right: 10px;
    width: 150px;
}

#shortdesc {
    float: left;
    margin-right: 10px;
    width: 410px;
}

/* MISC  
----------------------------------------------------------*/

.clear {
    clear: both;
}

.title img {
    height: 68px;
}

.loginDisplay {
    font-size: 1.1em;
    display: block;
    text-align: right;
    padding: 10px;
    color: White;
}

.loginDisplay a:link {
    color: white;
}

.loginDisplay a:visited {
    color: white;
}

.loginDisplay a:hover {
    color: white;
}

#dvLoginPanel {
    padding: 15px;
}

#dvLoginPanel .controls {
    margin-top: 10px;
}

#signinpanel {
    padding: 15px 15px 10px 15px;
    margin: 0px 10px;
}

.failureNotification {
        font-size: 1.2em;
        color: Red;
    }

.bold {
    font-weight: bold;
}

.submitButton {
    text-align: right;
    padding-right: 10px;
}

/* Application Specific
----------------------------------------------------------*/

/* Bootstrap clips the streetview address box if we don't override its box-sizing */
.gm-iv-address {
    box-sizing: content-box !important;
    -webkit-box-sizing: content-box !important;
}

.welcome {
    width: 100%;
    padding-left: 10px;
    background-color: #FAFAFA;
    border: 1px solid #bbb;
    overflow: auto;
    margin-bottom: 25px;
}

.welcome h3 {
    text-align: center;
}

.instructions-container {
    width: 101%; /* Horizontal scroll bar appears if width not set and 101% roughly aligns with map */
}

.instructions {
    width: 1000px;
}

.tutorial-popup {
    display: none;
}

.ui-dialog *, *:before, *:after {
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}

.tutorial-popup p {
    text-align: justify;
}

.tutorial-image {
    width: 90%;
    overflow-y: scroll;
}

.createoredit-popup {
    display: none;
}

.createoredit-popup p {
    text-align: justify;
}

.disclaimer {
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
    width: 100%;
    background-color: #efefef;
    padding: 6px 8px 6px 10px;
    border-left: 6px solid #999;
    border-top: 100px;
}

.wait-popup {
    background: url(../Images/wait.gif) no-repeat center center rgba(255, 255, 255);
    display: none;
    height: 100%;
    left: 0px;
    opacity: 0.6;
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 15;
}

.detail_wait_image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 290px;
}

.selections {
    border: 1px;
}

.selection {
    white-space: nowrap;
    padding: 0px 8px 8px 8px;
}

.selection-label {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

#template {
    width: 100px;
}

.external-buttons {
    float: right;
    width: 100px;
}

.border {
    float: left;
    width: 2%;
}

.detail {
    flex: 10 1 auto;
    height: 720px;
    width: 100%;
}

#map-canvas {
    flex: 1 1 auto;
    height: 300px;
    border-width: 3px;
    margin-bottom: 5px;
    margin-right: 0px;
}

.hide {
    display: none;
}

.chosen-single,
.chosen-container {
    border-color: Black !important;
}

.filter-container .chosen-single,
.filter-container .chosen-container {
    display: block !important;
    width: 100% !important;
}

.map-and-diagram-options {
    margin-bottom: 15px;
}

#divCurrentLocation {
    margin-top: 25px;
}

#locationbutton {
    box-shadow: 1px 1px 3px grey;
}

#divExpandCollapseContainer {
    background-color: #163f6d;
    border: 1px solid #aaaaaa;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 368px;
    width: 20px;
}

#divExpandCollapseContainer:hover {
    background-color: steelblue;
}

.expand-collapse-arrow {
    padding-left: 5px;
}

.expand-collapse-arrow-bottom-collapse {
    padding-bottom: 36px;
}

.expand-collapse-arrow-bottom-expand {
    padding-bottom: 30px;
}

.expand-collapse-container-left {
    left: 189px;
}

.expand-collapse-container-no-left {
    left: 0px;
}

#expand-collapse-text {
    transform: rotate(270deg);
}

.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner > table,
.dataTables_scrollHeadInner > table > thead {
    width: 100% !important;
}

@media (max-width: 1299px) {
    .nav {
        padding-top: 0px;
    }

    .navbar {
        order: 3;
        width: 100%;
    }

    .title-graphic {
        margin-left: auto;
    }

    .filter-container {
        padding-top: 5px;
    }

    .instructions {
        width: 680px;
    }

    #divExpandCollapseContainer {
        top: 420px;
    }
}

@media (max-width: 999px) {
    .instructions {
        width: 480px;
    }
}

@media (max-width: 991px) {
    #myModal .modal-dialog {
        max-width: 700px !important;
        width: auto !important;
    }

    #myModal .chosen-container,
    #myModal .chosen-select {
        width: 200px !important;
    }

    #myModal .form-horizontal button {
        width: 130px;
    }

    #shortdesc {
        width: 360px;
    }
}

@media (max-width: 767px) {
    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #ecf0f1 !important;
    }

    .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
    .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
        color: #ffffff !important;
    }

    .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
    .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
    .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
        color: #ffffff !important;
        background-color: #80c9ff !important;
    }
}

/* Styles for Mobile Devices */
@media only screen and (max-width: 600px) {
    .title img {
        height: 50px;
    }

    .title-graphic img {
        width: 315px;
    }

    /*for navbar*/
    /*general nav bar styles*/
    .navbar {
        background-color: transparent !important;
        border: none !important;
    }

    .navbar-home, #menu-about, #menututorial {
        z-index: 1;
        float: left;
        width: calc(100% / 3);
        text-align: center;
        background-color: #163f6d;
        border: 2px inset gray;
        border-left-width: 1px;
        border-right-width: 1px;
    }

    #signinuser, #menucreateoredit {
        background-color: #163f6d;
        border: 2px inset gray;
        border-top: 0px;
        border-left-width: 1px;
        border-right-width: 1px;
        float: left;
        text-align: center;
        width: calc(100% / 2);
    }

    .ui-dialog {
        max-width: 400px !important;
        width: 80% !important;
        left: 0px !important;
        margin: 0% 10% !important;
    }

    #menusignin {
        background-color: #163f6d;
        z-index: 1;
        float: left;
        width: 100%;
        text-align: center;
    }

    .navbar-default .navbar-nav a:hover,
    .navbar-default .navbar-nav > .open > a:focus {
        background-color: steelblue !important;
    }

    /*for location inputs, and selection checkboxes/buttons*/
    #showCounty, #showRoute, #showSegment, #showMileMarker {
        width: 100%;
    }

    /*styling for dropdowns if site is read as desktop*/
    #county_chosen, #route_chosen, #segment_chosen, #mileMarker_chosen {
        width: 100% !important;
    }

    .instructions {
        width: 95%;
    }

    #divExpandCollapseContainer {
        top: 440px;
    }

    .dropdown-menu {
        background-color: #fff !important;
        border: 1px solid rgba(0,0,0,.15) !important;
        box-shadow: 0 6px 12px rgb(0 0 0 / 18%) !important;
        left: 32% !important;
        position: absolute !important;
        top: 83px !important;
    }

    /*end main content*/
}

@media (max-width: 520px) {
    .title img {
        height: 47px;
    }

    .title-graphic img {
        width: 290px;
    }
}

/*styles for larger mobile screens + landscape*/
/*same styles as smaller screen query but changes the dropdown inputs sizes*/
@media only screen and (min-width: 601px) and (max-width: 720px) {
    .title {
        float: none;
        text-align: center;
        padding-left: 0px;
    }

    .title img {
        height: 50px;
    }

    .title-graphic img {
        width: 315px;
    }

    .navbar {
        background-color: transparent !important;
        border: none !important;
    }

    .navbar-home, #menu-about, #menututorial {
        z-index: 1;
        float: left;
        width: calc(100% / 3);
        text-align: center;
        background-color: #163f6d;
        border: 2px inset gray;
        border-left-width: 1px;
        border-right-width: 1px;
    }

    #signinuser, #menucreateoredit {
        background-color: #163f6d;
        border: 2px inset gray;
        border-top: 0px;
        border-left-width: 1px;
        border-right-width: 1px;
        float: left;
        text-align: center;
        width: calc(100% / 2);
    }

    .ui-dialog {
        max-width: 400px !important;
        width: 80% !important;
        left: 0px !important;
        margin: 0% calc((100vw - 400px) / 2) !important;
    }

    #menusignin {
        background-color: #163f6d;
        z-index: 1;
        float: left;
        width: 100%;
        text-align: center;
    }

    .navbar-default .navbar-nav a:hover,
    .navbar-default .navbar-nav > .open > a:focus {
        background-color: steelblue !important;
    }

    /*styling for dropdowns if site is read as desktop*/
    #county_chosen, #route_chosen, #segment_chosen, #mileMarker_chosen {
        width: auto !important;
    }

    .map-and-diagram-options {
        float: none;
        margin-right: 0px;
    }

    .instructions {
        width: 100%;
    }

    #divExpandCollapseContainer {
        top: 440px;
    }

    .dropdown-menu {
        background-color: #fff !important;
        border: 1px solid rgba(0,0,0,.15) !important;
        box-shadow: 0 6px 12px rgb(0 0 0 / 18%) !important;
        left: 32% !important;
        position: absolute !important;
        top: 83px !important;
    }
}

/*First is for largest mobile / landscape screens before tablet size*/
/*Second is weird way to target it but hits all mobile devices that are landscape and
    browser width extends into tablet/desktop range*/
/*As of 8/10/22 largest screen width (which is browser height when landscape) is 432px (Microsoft Lumia 1520)
    iPhone 12 Pro Max is 428px screen width*/
@media only screen and (min-width: 721px) and (max-width: 767px), (max-height: 440px) and (min-width: 768px) {
    .title {
        padding-left: 0px !important;
    }

    .title-graphic {
        padding-right: 0px !important;
    }

    .navbar {
        border-radius: 4px;
        width: 100%;
    }

    .navbar-nav > li > a {
        padding: 15px !important;
    }

    .navbar-right {
        float: right !important;
    }

    .navbar-nav {
        display: flex;
        flex-flow: row nowrap;
    }

    .dropdown-menu {
        position: absolute !important;
        right: 0;
        float: left !important;
        background-color: #fff !important;
        border: 1px solid rgba(0,0,0,.15) !important;
        box-shadow: 0 6px 12px rgb(0 0 0 / 18%) !important;
    }

    /*styling for dropdowns if site is read as desktop*/
    #county_chosen, #route_chosen, #segment_chosen, #mileMarker_chosen {
        width: auto !important;
    }
}

/*general styles that don't need to change regardless of mobile size*/
@media only screen and (max-width: 767px), (max-height: 440px) and (min-width: 768px) {
    .navbar-nav {
        margin: 0px !important;
    }

    /*when not signed in*/
    .controls {
        display: flex;
        flex-flow: row wrap;
        justify-content: space-evenly;
    }

    /*edit templates modal*/
    #myModal .modal-content {
        height: 90vh;
        min-width: 250px;
    }

    #myModal .modal-header {
        min-height: 40px;
    }

    #myModal .modal-body {
        height: 80%;
        overflow: auto;
    }

    #myModal .modal-footer {
        height: 10vh;
        min-height: 66px;
    }

    #myModal .form-horizontal .chosen-container,
    #myModal .form-horizontal .chosen-select,
    #myModal .form-horizontal label,
    #shortdesc {
        margin-bottom: 5px;
        width: 100% !important;
    }

    #myModal .form-horizontal .selection {
        float: left;
        margin-top: 5px;
        width: 100%;
    }

    #myModal .dataTables_scrollBody {
        height: auto !important;
    }

    /*end edit templates modal*/

    /*inputs*/

    .chosen-select {
        box-sizing: border-box;
        cursor: pointer;
        position: relative;
        display: block;
        overflow: hidden !important;
        padding: 0 0 0 8px;
        height: 25px;
        border: 1px solid black;
        border-radius: 5px;
        background: -webkit-linear-gradient(top, #fff 20%, #f6f6f6 50%, #eee 52%, #f4f4f4 100%);
        background-clip: padding-box;
        box-shadow: 0 0 3px #fff inset;
        color: #444;
        text-decoration: none;
        white-space: nowrap;
        line-height: 24px;
    }

    .selection button {
        box-shadow: 1px 1px 3px grey;
    }

    .detail {
        height: 800px !important;
        width: 100% !important;
        min-width: 100px !important;
        padding-bottom: 100px;
        padding-right: 0px !important;
    }

    /*for google map*/
    #map-canvas {
        width: 100% !important;
        min-width: 100px !important;
        padding-left: 0px !important;
    }
}
/* End Styles for Mobile Devices*/

/* Styles for Printing*/
@media print {
    /* changes the element size when data boxes in mapcore cause an overflow */
    .detail {
        height: auto;
    }

    /* rotate and move down page to simulate landscape */
    .header {
        position: absolute;
        right: -300px;
        top: 600px;
        transform: rotate(90deg);
    }

    .navbar {
        display: none;
    }

    /* adjust display for visible content to expand entire width */
    .main {
        grid-template-columns: 1fr;
    }

    /* hides left section and expand/collapse link */
    .filter-container,
    #divExpandCollapseContainer {
        display: none;
    }

    /* hide border that divides left section and map */
    .map-and-diagram-container {
        border: none;
    }

    /* places the map on a different page from SLD, rotates, and resizes to maximize what is displayed */
    #map-canvas {
        height: 1450px;
        page-break-after: always;
        position: relative;
        transform: rotate(90deg);
        width: 1450px;
    }

    #mc-map {
        left: 0;
        position: absolute;
        top: 600px;
    }

    #segmentInfo {
        width: 100%;
    }

    /* hides the dropdowns and buttons for segment selection*/
    .selection {
        display: none;
    }
}
/* End Styles for Printing*/