#reset-icon/* Body */
body {
    padding: 0px;
    margin: 0px;
    height: 100%;
}

html {
    height: 100%;
}


hr {
    border-top: 1px solid #888;
}


#output-table td:nth-child(1) {
    width: 30%
}
#output-table td:nth-child(2) {
    width: 70%;

}
#output-table th:nth-child(1) {
    width: 30%
}
#output-table th:nth-child(2) {
    width: 70%
}
#gutter-output-table th:nth-child(1) {
    width: 30%
}
#gutter-output-table th:nth-child(2) {
    width: 70%
}


th,td {
    font-size: 16px;
    text-align: left;
    vertical-align: top;
}

th {
    font-weight: bold;
    font-size: 16px;
}

td {
    padding-top: 10px;
    padding-bottom: 10px;
}

tr {
    transition: background-color 0.5s ease;
    background-color: #fff
}

table {
    width: 100%;
}

h3 {
    font-size: 24px
}


/* Widget Container */
#widget-container {
    position: relative;
    height: 100%;
    width: 100%;
    text-align: center;
}

/* Output container */
.output-container {
    display: flex;
    position: relative;
    min-height: 30%;
    justify-content: center;
    flex-direction: row;
    align-content: flex-start;
    flex-wrap: wrap;
}

.output-table-wrapper {
    width: 40%;
    padding-right: 20px;
    margin-left: 20px
}

.output-tables {
    border-spacing: 0px;
}

/* Map */
#gmap, #map {
    position: relative;
    min-height: 100%;
    width: 100%;
    z-index: 1;
    float: top;
}

.map-container-leaflet {
    visibility: hidden;
}

.map-container-google {
    display: block;
    visibility: visible;
}

/* Leaflet attribution */
.leaflet-control-attribution {
    display: none;
}

/* help popup */
.popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content */
.popup-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 40%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    max-height: 80%
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* The Close Button */
.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.popup-header {
    padding: 2px 16px;
    background-color: #003C60;
    color: white;
    text-align: center!important;
}


.popup-body {
    padding: 2px 16px;
    overflow: auto;
}



#roof-pitch-help-icon {
    margin-left:5px;
    margin-bottom: 5px;
    cursor:pointer;
    color:#AAA
}
#roof-pitch-help-icon:hover {
    color: #888;
}

#roof-pitch-selector{
    padding-top: 50px;
    padding-bottom: 50px;
}

.roof-pitch-icon {
    width: 75px;
    height: 75px;
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    opacity: 0.9;
}
.roof-pitch-icon:hover {
    opacity: 1;
}

#roof-pitch-help-image {
    height: 500px;
    width: auto;
}

/* necessary to align map tiles correctly */
.leaflet-tile {
    text-align:left !important;
}

#searchBox{
    z-index: 1000;
    display: block;
    background-color: #fff;
    font-size: 15px;
    font-weight: 300;
    text-overflow: ellipsis;
    height: 42px;
    transition: display 0.5s;
    transition: width 0.5s;
    padding: 0.5rem 1rem;
    color: #0b0a12;

}
#searchBox:hover, #searchBox:focus {
    padding-left: 20px;
}

.action-icons {
    height: 40px;
    width: 40px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    right: 10px;
    cursor: pointer;
    z-index: 1000;
    color: #6d6d6d;
}

.enabled {
    color: #ff8930 !important;
}

.leaflet-control-locate.leaflet-bar.leaflet-control {
    display: none;
}

#search-icon {
    top: 11px;
    line-height: 42px;
    height: 42px;
    width: 100px;
    background: #0071BC;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    position: absolute;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
    font-size: 15px;
    font-weight: 800;
}

#measure-icon, #reset-icon {
    top: 25px;
    line-height: 42px;
    height: 42px;
    width: 100px;
    color: #00426A;
    background: #fff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    position: absolute;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
    font-size: 15px;
    font-weight: 800;
}

#measure-icon {
    width: 150px;
}

#measure-icon img, #reset-icon img{
    height: 17.5px;
}

#draw-gutter-icon {
    top: 145px;
    line-height: 30px;
}

#draw-roof-icon {
    top: 100px;
}

#draw-roof-svg {
    width: 100%;
    height: auto;
}

#my-location-icon {
    top: 55px;
}


.material-icons {

    vertical-align: middle;
}

td > i.material-icons {
    margin-top: 0px;
    padding-left: 20px;
    color: #6d6d6d;
    font-family: Open Sans;
    font-size: 18px;
    cursor: pointer;
    vertical-align: bottom;
}
td > i.material-icons:hover {
    color: #000
}

/* Leaflet Draw customization */
#map > div.leaflet-pane.leaflet-map-pane > div.leaflet-pane.leaflet-marker-pane div {
    max-width: 12px;
    max-height: 12px;
    margin-left: -6px !important;
    margin-top: -6px !important;
    border-radius: 50%;
}

#snackbar {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    margin-left: -125px; /* Divide value of min-width by 2 */
    background-color: #333; /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 5000; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    bottom: 20px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
    visibility: visible; /* Show the snackbar */

    /* Add animation: Take 0.5 seconds to fade in and out the snackbar.
    However, delay the fade out process for 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 20px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 20px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 20px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 20px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}


/* Tooltip text */
.action-icons .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #fff;
    color: #6d6d6d;
    text-align: center;

    border-radius: 2px;
    line-height: 30px;
    opacity: 0;
    transition: opacity 0.5s;
    position: absolute;
    z-index: 1;
    vertical-align: middle;
    right: 105%;
    cursor: auto;
}







/* Ensure responsive */
@media only screen and (min-resolution: 117dpi) and (max-resolution: 119dpi), only screen and (min-resolution: 131dpi) and (max-resolution: 133dpi), only screen and (min-resolution: 145dpi) and (max-resolution: 154dpi), only screen and (min-resolution: 162dpi) and (max-resolution: 164dpi), only screen and (min-resolution: 169dpi) {
    #touch_logo {
        display: inherit;
    }
    #mouse_logo {
        display: none;
    }
    /*touch-specific css here */

    #map > div.leaflet-pane.leaflet-map-pane > div.leaflet-pane.leaflet-marker-pane > div:nth-child(2){
        background-color: red;
        max-width: 12px;
        max-height: 12px;
        margin-left: -6px !important;
        margin-top: -6px !important;
    }



}
@media only screen and (min-resolution: 165dpi) and (max-resolution: 168dpi), only screen and (min-resolution: 155dpi) and (max-resolution: 160dpi), only screen and (min-resolution: 134dpi) and (max-resolution: 144dpi), only screen and (min-resolution: 120dpi) and (max-resolution: 130dpi), only screen and (max-resolution: 116dpi) {
    #touch_logo {
        display: none;
    }
    #mouse_logo {
        display: inherit;
    }
    /*click-specific css here */

    #map > div.leaflet-pane.leaflet-map-pane > div.leaflet-pane.leaflet-marker-pane > div:nth-child(2):hover {
        background-color: red;
        max-width: 14px;
        max-height: 14px;
        margin-left: -7px !important;
        margin-top: -7px !important;
    }



    .action-icons:hover {
        color: #000;
        background-color: #d6e5ff
    }


}
@media (min-width: 541px){
    /* Big view stuff goes here.
          /* Show the tooltip text when you mouse over the tooltip container */
    .action-icons:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

    .tooltip .tooltiptext::after {
        content: " ";
        position: absolute;
        top: 50%;
        left: 100%; /* To the right of the tooltip */
        margin-top: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent transparent black;
    }
}
@media (max-width: 540px) {
    /* Smaller view stuff goes here. */
    #gutter-output-table {
        padding-left: 0px;
    }

    #roof-pitch-help-image {
        height: 250px;
        width: auto;
    }

    .output-table-wrapper {
        width: 100%;
        margin: auto;
        border-right: none !important;
        padding-right: 0px;
        margin-left: 0px;
        padding-bottom: 20px;
        margin-top: 20px;
        padding-left: 0%;
    }


    .output-container {
        flex-direction: column;
        justify-content: center;
    }

    .roof-pitch-icon {
        width: 80px;
        height: 80px;
        margin-left: 5px;
        margin-top: 3px;
        margin-bottom: 3px;
    }

}


