﻿/******************************************************
    SHARED STYLES FOR PUBLIC REPORT MAPS
*******************************************************/


html,
body,
#viewDiv { padding: 0; margin: 0; height: 100%; width: 100%; overflow: hidden; }

.sassy-theme .esri-widget,
.sassy-theme .esri-widget--button,
.sassy-theme .esri-menu,
.sassy-theme .esri-popup__main-container,
.sassy-theme .esri-popup .esri-popup__pointer-direction,
.sassy-theme .esri-popup .esri-popup__button,
.sassy-theme .esri-button,
.sassy-theme .esri-input,
.sassy-theme .esri-widget a {
    background-color: #E8F5F6;
    color: #000000;
}

    .sassy-theme .esri-widget--button:focus,
    .sassy-theme .esri-widget--button:hover,
    .sassy-theme .esri-menu li:focus,
    .sassy-theme .esri-menu li:hover {
        background-color: #E8F5F6;
        color: #000000;
    }

    .sassy-theme .esri-button:focus,
    .sassy-theme .esri-button:hover {
        color: #E8F5F6;
    }

.sassy-theme .esri-search__input::-moz-placeholder {
    color: #000000;
    opacity: 1;
}

.sassy-theme .esri-search__input:-ms-input-placeholder {
    color: #000000;
}

.sassy-theme .esri-search__input::-webkit-input-placeholder {
    color: #000000;
}


#map_title_bar { position: absolute; top: 0; width: 100%; height: 64px; background-color: #0f4578; color: #fff; z-index: 100; }
#map_title_bar { display: -ms-grid; display: grid; -ms-grid-columns: 60px 1fr; -ms-grid-rows: 44px 20px; grid-columns: 60px 1fr; grid-rows: 44px 20px; grid-template-columns: 60px 1fr; grid-template-rows: 44px 20px; }

#nav_btn { height: 64px; width: 60px; display: inline-block; cursor: pointer; transition: 0.5s; }
#nav_btn { -ms-grid-column: 1; -ms-grid-row: 1; -ms-grid-row-span: 2; grid-column: 1 / 2; grid-row: 1 / 3; }
#nav_btn:hover { background-color: #3e6a93; transition: 0.5s; }
#nav_btn.closed { background-image: url('https://cceo.comalcounty.gov/Report/img/menu_white.png'); background-size: 36px 36px; background-position: center; background-repeat: no-repeat; }
#nav_btn.open { background-image: url('https://cceo.comalcounty.gov/Report/img/close_white.png'); background-size: 36px 36px; background-position: center; background-repeat: no-repeat; }

#map_title_bar h1 { margin: 0 0 0 10px; font-family: sans-serif; -ms-grid-column: 2; -ms-grid-row: 1; grid-column: 2 / 3; grid-row: 1 / 2; }
#map_title_bar span { margin-left: 10px; width:fit-content; font-family: sans-serif; font-size: 12px; -ms-grid-column: 2; -ms-grid-row: 2; grid-column: 2 / 3; grid-row: 2 / 3; }

#nav_menu_dropdown { position: absolute; top: 64px; left: 0px; width: 200px; z-index: 100; }
#nav_menu_dropdown.closed { display: none; }
#nav_menu_dropdown .nav_menu_item { height: 36px; width: 200px; background-color: #e1e1e1; display: -ms-grid; display: grid; -ms-grid-columns: 60px 1fr; -ms-grid-rows: 36px; grid-columns: 60px 1fr; grid-rows: 36px; grid-template-columns: 60px 1fr; grid-template-rows: 36px; }
#nav_menu_dropdown .nav_menu_item span { display: block; }
#nav_menu_dropdown #menu_item_legend .nav_menu_item_icon { -ms-grid-column: 1; -ms-grid-row: 1; grid-column: 1 / 2; grid-row: 1 / 2; }
#nav_menu_dropdown #menu_item_legend .nav_menu_item_icon { width: 58px; height: 36px; background-image: url('https://cceo.org/Report/img/bulleted_list_black.png'); background-size: 24px 24px; background-position: center; background-repeat: no-repeat; }
#nav_menu_dropdown .nav_menu_item span:last-child { margin: 10px; -ms-grid-column: 2; -ms-grid-row: 1; grid-column: 2 / 3; grid-row: 1 / 2; }


/* Close button added to Legend Widget */
#legend_header { height: 26px; width: 100%; margin-bottom: -2px; background-color: #0f4578; border-radius: 3px 3px 0 0; }
#close_legend_btn { height: 26px; width: 25px; position: absolute; right: 0; background-image: url('https://cceo.org/Report/img/close_white.png'); background-size: 20px 20px; background-position: center; background-repeat: no-repeat; cursor: pointer; }

/* Class added to the Legend widget to allow closing */
.esri-ui .esri-legend.closed { display: none; }


/*  Popup box when map is clicked
*******************************************************/
.popup-wrap { width: 100%; height: 100%; display: none; position: absolute; top: 0px; left: 0px; content: ''; background: rgba(0,0,0,0.20); z-index: 1000; }
.popup-box { width: 350px; padding: 5px 10px; transform: translate(-50%, -50%) scale(0.5); position: absolute; bottom: -4%; left: 50%; box-shadow: 0px 2px 16px rgba(0,0,0,0.5); border-radius: 3px; background: #fff; text-align: center; }

.popup-box h2, .popup-box h3 { color: #888; font-size: 21px; font-family: sans-serif; }
.popup-box p a { color: #f5f5f5; display: inline-block; font-size: 20px; padding: 5px; margin: 0 10px; width: 80px; background-color: grey; border-radius: 20px; text-decoration: none; font-family: Calibri; font-weight: bold; }
.popup-box p a:first-child { background-color: #0f4578; }
.popup-box p a:hover { box-shadow: 0px 0px 6px black; }



/*  Adopt A Roadway TEST popup
*******************************************************/
.popup-box .popup-close { color: #f5f5f5; display: inline-block; font-size: 20px; padding: 5px; margin: 0 10px; width: 80px; background-color: grey; border-radius: 20px; text-decoration: none; font-family: Calibri; font-weight: bold; }
.popup-box .popup-close { background-color: #0f4578; }
.popup-box .popup-close { box-shadow: 0px 0px 6px black; }

.sassy-theme .esri-popup div.icon-container { display: none !important; }




.transform-in, .transform-out {
    -webkit-transition: all ease 0.5s;
    transition: all ease 0.5s;
}

.transform-in {
    display: block;
    -webkit-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
}

.transform-out {
    -webkit-transform: translate(-50%, -50%) scale(0.5);
    transform: translate(-50%, -50%) scale(0.5);
    display: none;
}





/*  ESRI OVERRIDES
*******************************************************/
.esri-legend .esri-legend__service .esri-legend__layer-caption { display: none; }
/*.esri-legend .esri-legend__service .esri-widget__header { display: none; } */


.esri-legend .esri-legend__service .esri-legend__layer { margin-left:0; }
.esri-legend .esri-legend__layer .esri-legend__layer-table { margin-bottom: 5px; } /* Removes extra space below line items */

/* Reduces the width of the legend when viewed on smaller screens */
.esri-view .esri-view-root .esri-ui .esri-ui-corner .esri-legend { width: 230px; }

/* Reduces the line height of the legend items */
.esri-legend .esri-legend__service .esri-legend__layer-table .esri-legend__layer-row { height: 18px; padding-top:0; padding-bottom:0; }
.esri-legend .esri-legend__service .esri-legend__layer-table .esri-legend__layer-row .esri-legend__layer-cell { font-size:11px; padding-top:0; padding-bottom:0; }












@media screen and (max-width:978px) {
    .popup-box h3 {
        color: #888;
        font-size: 16px;
    }

    .popup-box {
        width: 300px;
        padding: 20px 40px;
    }

    .esri-ui-corner .esri-legend {
        min-width: 130px;
        padding: 0;
        border-radius: 8px;
    }

    /* Reduces the width of the legend when viewed on smaller screens */
    .esri-view .esri-view-root .esri-ui .esri-ui-corner .esri-legend {
        width: 190px;
    }

    .esri-legend .esri-legend__service {
        padding: 8px 4px 0px 4px;
    }

    .esri-legend__layer .esri-legend__layer-table {
        margin-bottom: 2px;
    }

    /*
    .esri-legend__layer-table .esri-legend__layer-caption {
        display: none;
    }
    */

    .esri-legend__layer-body .esri-legend__layer-cell {
        min-width: 0;
    }

    @import "http://fonts.googleapis.com/css?family=Droid+Serif";
    /* Above line is used for online google font */

    h2 {
        text-align: center;
        font-size: 24px
    }

    hr {
        margin-bottom: 30px;
    }

    p {
        color: #000;
        font-size: 16px;
        font-weight: 700;
    }


    #button {
        border: 1px solid #0c799e;
        width: 250px;
        padding: 10px;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        border-radius: 3px;
        background: linear-gradient(to bottom,#59d0f8 5%,#49c0e8 100%);
        cursor: pointer;
    }

    .button1 {
        border: 1px solid #0c799e;
        width: 250px;
        padding: 10px;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        border-radius: 3px;
        background: linear-gradient(to bottom,#59d0f8 5%,#49c0e8 100%);
        cursor: pointer;
    }

        #button:hover {
            background: linear-gradient(to bottom,#49c0e8 5%,#59d0f8 100%);
        }

    input[type=text] {
        margin-top: 5px;
        margin-bottom: 20px;
        width: 96%;
        border-radius: 5px;
        border: 0;
        padding: 5px 0;
    }

    #name, #email {
        padding-left: 10px;
    }

    input[type=submit] {
        width: 30%;
        border: 1px solid #59b4d4;
        background: #0078a3;
        color: #eee;
        padding: 3px 0;
        border-radius: 5px;
        margin-left: 33%;
        cursor: pointer;
    }

        input[type=submit]:hover {
            border: 1px solid #666;
            background: #555;
            color: #fff;
        }

    .ui-dialog .ui-dialog-content {
        padding: 2em;
    }




    input[type=text] {
        margin-top: 5px;
        margin-bottom: 20px;
        width: 100%;
        border-radius: 5px;
        border: 0;
        padding: 5px 0;
    }

    input[type=email] {
        margin-top: 5px;
        margin-bottom: 20px;
        width: 100%;
        border-radius: 5px;
        border: 0;
        padding: 5px 0;
    }

    input[type=number] {
        margin-top: 5px;
        margin-bottom: 20px;
        width: 100%;
        border-radius: 5px;
        border: 0;
        padding: 5px 0;
    }

    input[type=tel] {
        margin-top: 5px;
        margin-bottom: 20px;
        width: 100%;
        border-radius: 5px;
        border: 0;
        padding: 5px 0;
    }

    input[type=checkbox] {
        width: 10%;
        border: 1px solid #59b4d4;
        color: #eee;
        padding: 10px 0;
        border-radius: 5px;
        margin-left: 5%;
        cursor: pointer;
    }

    input[type=submit] {
        width: 33%;
        border: 1px solid #59b4d4;
        background: #0078a3;
        color: #eee;
        padding: 3px 0;
        border-radius: 5px;
        margin-left: 10%;
        cursor: pointer;
    }

        input[type=submit]:hover {
            border: 1px solid #666;
            background: #555;
            color: #fff;
        }

    input[type=reset] {
        width: 33%;
        border: 1px solid #59b4d4;
        background: #0078a3;
        color: #eee;
        padding: 3px 0;
        border-radius: 5px;
        margin-left: 5%;
        cursor: pointer;
    }

    .ui-dialog .ui-dialog-content {
        padding: 2em;
    }

    div.container { /*background-color:blue;*/
        width: 960px;
        height: 610px;
        margin: 50px auto;
        font-family: 'Droid Serif',serif;
        position: relative;
    }

    div.main {
        width: 320px;
        margin-top: 35px;
        float: left;
        padding: 10px 55px 25px;
        background-color: rgba(204,204,191,0.51);
        border: 15px solid #fff;
        box-shadow: 0 0 10px;
        border-radius: 2px;
        font-size: 13px;
        text-align: center;
    }


    html,
    body,
    #mapViewDiv {
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        font-family: sans-serif;
    }

    .panel-container {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .panel-side {
        padding: 2px;
        box-sizing: border-box;
        width: 300px;
        height: 100%;
        position: absolute;
        top: 0;
        right: 0;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.6);
        overflow: auto;
        z-index: 60;
    }

    .sidenav, .sidenav2 {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0; /*background-color: #f2f2f2;*/
        background-color: #f2f2f2;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 0;
    }

        .sidenav a, .sidenav2 a {
            color: #f1f1f1;
            display: block;
            background-color: #005ce6;
            width: auto;
        }

        .sidenav .form-header, .sidenav2 .form-header {
            background-color: #005ce6;
            display: flex;
            flex-direction: row;
        }

        .sidenav h3, .sidenav2 h3 {
            font-size: 25px;
            color: #f1f1f1;
            display: inline-block;
            height: 60px;
            margin: 0 0 0 18px;
            padding: 15px 0;
        }

        .sidenav .closebtn {
            margin: 0;
            padding: 0;
            height: 60px;
            width: 50px;
            text-decoration: none;
            background-image: url('../images/arrow-left.png');
            background-size: 30px 30px;
            background-position: center;
            background-repeat: no-repeat;
            margin-left: 10px; /*margin-left: 28px;*/
        }

        .sidenav2 .closebtn {
            margin: 0;
            padding: 0;
            height: 60px;
            width: 50px;
            text-decoration: none;
            background-image: url('../images/arrow-left.png');
            background-size: 30px 30px;
            background-position: center;
            background-repeat: no-repeat;
            margin-left: 10px; /*margin-left: 85px;*/
        }










    @media screen and (max-height: 450px) {


        .sidenav {
            padding-top: 15px;
        }

            .sidenav a {
                font-size: 20px;
            }
    }

    /*side 2*/

    /*
        .sidenav2 {
            height: 100%;
            width: 0;
            position: fixed;
            z-index: 1;
            top: 0;
            left: 0;
      background-color: #f2f2f2;
            background-color: #f2f2f2;
            overflow-x: hidden;
            transition: 0.5s;
            padding-top: 00px;
        }

            .sidenav2 a {
                padding: 8px 8px 8px 8px;
                text-decoration: none;
                font-size: 25px;
                color: whitesmoke;
                display: block;
                transition: 0.1s;
                background-color: #005ce6;
                width: auto;
                height: 40px;
            }

*/


    @media screen and (max-height: 450px) {
        .sidenav2 {
            padding-top: 15px;
        }

            .sidenav2 a {
                font-size: 20px;
            }
    }





}

