﻿html, body {
    height: 100%;
    overflow: hidden;
    font-size: 14px;
    min-width: 320px;
}
.btn-primary {
    border: none;
    background: #6ca9dc;
    border-radius: 10px;
    padding: 10px 20px;
}
.btn-primary:hover {
    background: #6ca9dc;
}
.flex-container {
    display: flex;
    height: 100%;
}

.search-box {
    z-index: 500;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.search-form {
    padding: 15px;
    background-color: #fff;
}

.map-tabs {
    padding: 4px;
    background-color: #fff;
    font-size: 20px;
}

    .map-tabs i:hover {
        cursor: pointer;
    }

    .map-tabs a:hover, .map-tabs a:focus {
        text-decoration: none;
        outline: none;
        color: #337ab7;
    }

#polling-locations-list {
    flex: 1;
    overflow-y: auto;
}

    #polling-locations-list li {
        margin-bottom: 15px;
    }

    #polling-locations-list i {
        outline: none;
        font-size: 24px;
    }

        #polling-locations-list i.listing-icon, i.listing-icon {
            outline: none;
            font-size: 14px;
        }

        #polling-locations-list i.small-icon, i.small-icon {
            font-size: 18px;
            padding: 2px;
        }

.polling-location {
    cursor: pointer;
    padding: 10px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

.polling-location-focused {
    background-color: #eeeeee;
    border-top: 1px solid darkgray;
    border-bottom: 1px solid darkgray;
}

.paging-nav, .mobile-paging-nav {
    padding-top: 10px;
    padding-bottom: 10px;
}

    .paging-nav button, .mobile-paging-nav button {
        width: 105px;
    }

.mobile-paging-nav {
    display: none;
}

#div-map {
    flex: 1;
}

a.location-notes {
    border: none;
    outline: none;
    text-decoration: none;
    font-size: 24px;
}

    a.location-notes:focus, a.location-notes:hover, a.location-notes:active a.location-notes:visited {
        color: #cc0000;
    }

/* Start: Bootstrap geocoder styles */
.input-group {
    width: 100%;
}

    .input-group .dropdown-menu {
        width: 100%;
    }

        .input-group .dropdown-menu ul {
            list-style: none;
            padding-left: 10px;
        }

li.geocoder-control-suggestion {
    font-size: 12px;
    padding: 4px;
}

    li.geocoder-control-suggestion:hover, li.geocoder-control-selected {
        background-color: steelblue;
        color: white;
        cursor: pointer;
    }
/* End: Bootstrap geocoder styles */


@media (max-width: 991px) {
    .flex-container {
        flex-direction: column;
    }

    .search-box {
        position: relative;
        top: auto;
        left: auto;
    }

    .search-form {
        border-radius: 0;
        padding: 15px 15px 10px 15px;
    }

    #polling-locations-list {
        display: none;
        flex-basis: 100%;
    }

    .paging-nav {
        display: none;
    }

    .mobile-paging-nav {
        display: block;
    }
}

/* Start: Icon styles */
.fad, .fas {
    font-size: 24px;
    /*text-shadow: 1px 1px 1px #666;*/
}

.green {
    --fa-primary-color: #ffffff;
    color: #00cc00;
}

.red {
    --fa-primary-color: #ffffff;
    color: #cc0000;
}

.yellow {
    --fa-primary-color: #ffffff;
    color: #dddd00;
}

.green-inverted {
    --fa-primary-color: #00cc00;
    color: #ffffff;
}

.red-inverted {
    --fa-primary-color: #cc0000;
    color: #ffffff;
}

.yellow-inverted {
    --fa-primary-color: #dddd00;
    color: #ffffff;
}

.green-car {
    --fa-primary-color: #00cc00;
    --fa-secondary-color: #00cc00;
    color: #00cc00;
}

.red-car {
    --fa-primary-color: #cc0000;
    --fa-secondary-color: #cc0000;
    color: #cc0000;
}

.yellow-car {
    --fa-primary-color: #dddd00;
    --fa-secondary-color: #dddd00;
    color: #dddd00;
}

.red-slash {
    --fa-primary-color: #000000;
    color: #ff0000;
}

.orange-car {
    --fa-primary-color: darkorange;
    --fa-secondary-color: darkorange;
    color: darkorange;
}

div.fa-layers {
    display: inline;
}

.orange-mail {
    --fa-primary-color: #fff;
    --fa-secondary-color: darkorange;
    color: darkorange;
}

.you-are-here {
    color: darkorange;
    --fa-primary-color: gold;
}

.gray {
    color: #666666;
}

.pin-ev {
    color: darkorange;
}

.pin-rep {
    color: #ff0000;
}

.pin-dem {
    color: #0015BC;
}

:root {
    --fa-primary-color: #ffffff;
    --fa-secondary-opacity: 1;
}

.dem-party, .rep-party {
    --fa-primary-color: #0015BC;
    color: #ff0000;
    font-size: 20px;
}

.grayed-party {
    --fa-primary-color: #999;
    color: #999;
    font-size: 20px;
    cursor: pointer;
}

@media screen and (-ms-high-contrast: active), screen and (-ms-high-contrast: none) {
    /* IE10+ specific styles go here */
    .you-are-here {
        color: rebeccapurple;
    }

    .dem-party {
        color: #0015BC;
        font-size: 20px;
    }

    .rep-party {
        color: #ff0000;
        font-size: 20px;
    }
}

/* End: Map markers styles */

/* Start: Party toggle styles */
#party-toggle::before {
    background-color: #0015BC;
}

.custom-switch .party-toggle::after {
    background-color: #ffffff;
}

.custom-control-input:checked ~ .party-toggle::before {
    background-color: #e9141d;
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background-color: #0015bc;*/
    background-color: #127fd6;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 12px;
        width: 12px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #e9141d;
}

input:focus + .slider {
    box-shadow: 0 0 1px #e9141d;
}

input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
}

.slider.round {
    border-radius: 26px;
}

    .slider.round:before {
        border-radius: 50%;
    }
/* End: Party toggle styles */


.aligned-row {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.flip-horizontal {
    transform: scale(-1, 1);
    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    -ms-transform: scale(-1, 1);
    transform: scale(-1, 1);
}

strong.note-highlight {
    background-color: #ffff00;
}
