/* Legend */

/* Legend Defaults */
.leg-item DIV { vertical-align: middle; display: inline-block; margin: 0 10px 1px 0; width: 10px; height: 10px; border: 1px solid #D2D2D2; }
.leg-item { line-height:19px; margin:0; padding:0 !important; list-style:none; background:none !important; }
.leg-item DIV { vertical-align:middle; display:inline-block; margin:0 10px 1px 0; width:10px; height:10px; border:1px solid #d2d2d2; }

.leg-noData DIV { background-color: #EEEEEE; }
.leg-someData DIV { background-color: #5f5f5f; }
.leg-allData DIV { background-color: #2d2d2d; }

.data-attribution{
    vertical-align: bottom;
    float: right;
    margin: 10px 0 0 0 !important;
}

.asset-map-mobile-legend {
    position:relative;
    padding: 10px;
    margin: 0 0 20px 0 !important;
    border: 1px solid #E8E8E8;
    z-index: 999999999;
    width: 180px;
    background-color: #F5F5F5;
    min-height: 100px;
    display: block !important;
}

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

/* Default colors per party/question */
.leg-dem DIV { background-color:#1f365a; }
.leg-gop DIV { background-color:#bd1c00; }
.leg-yes DIV { background-color:#3a9532; }
.leg-no DIV { background-color: #bd1c00; }

/* Candidate specific colors (up to 3) */
.leg-cand-0 DIV { background-color: #bd1c00; }
.leg-cand-1 DIV { background-color: #3a9532; }
.leg-cand-2 DIV { background-color: #54C2C2; }
.party-Dem-0 DIV{ background-color: #004276  !important; }
.party-Dem-1 DIV{ background-color: #199AFF  !important; }
.party-Dem-2 DIV{ background-color: #00D6FF  !important; }
.party-GOP-0 DIV{ background-color: #BD1C00 !important; }
.party-GOP-1 DIV{ background-color: #FF1919 !important; }
.party-GOP-2 DIV{ background-color: #FF7475 !important; }
.party-Grn DIV{ background-color: green !important; }
.party-Ind-0 DIV{ background-color: #8856a7 !important; }
.party-Ind-1 DIV{ background-color: #D48DFF !important; }
.party-Ind-2 DIV{ background-color: #99AA55 !important; }
.party-Uni DIV{ background-color: #4CBB97 !important; }
.party-Yes DIV { background-color:#3a9532 !important; }
.party-No DIV { background-color:#bd1c00 !important; }

/* Tooltips */

/* Tooltip defaults */
.elec-map-element { fill: #ccc; fill-opacity: .8; }
.hasData { fill: #3C3C3C; fill-opacity: 1 !important; }
.allReporting { fill: #090909; fill-opacity: 1; }
.winnerDeclared { fill-opacity: .8 !important; }
.elec-element-highlight{ fill-opacity: .1; }

/* Candidate specific colors (up to 3) */
.party-Yes { fill:#3a9532 !important; }
.party-No { fill:#bd1c00 !important; }
.party-Dem-0 { fill: #1F365A !important; }
.party-Dem-1 { fill: #199AFF  !important; }
.party-Dem-2 { fill: #00D6FF  !important; }
.party-GOP-0 { fill: #BD1C00 !important; }
.party-GOP-1 { fill: #FF1919 !important; }
.party-GOP-2 { fill: #FF7475 !important; }
.party-Grn { fill: green !important; }
.party-Ind-0 { fill: #8856a7 !important; }
.party-Ind-1 { fill: #D48DFF !important; }
.party-Ind-2 { fill: #99AA55 !important; }
.party-Uni { fill: #4CBB97 !important; }
.candidate-0 { fill: #3a9532; }
.candidate-1 { fill: #bd1c00; }
.candidate-2 { fill: #54C2C2; }

/* Mapping defaults */
path { fill-opacity: .6; fill: #a1a1a1; stroke: white; stroke-width: 1px; pointer-events:all; }
path.hasData { fill-opacity: .6; fill: #a1a1a1; stroke: white; stroke-width: 1.5px; pointer-events:all; }
path:hover { fill-opacity: .4;  }

* {
    -webkit-box-sizing: border-box !important;
    -moz-box-sizing: border-box !important;
    box-sizing: border-box !important;
}


/* Results Table Defaults */

.ap-race-precincts{
    font-size:8pt;
}

.elec-table{
    width: 100%;
}
.elec-table td{
    width: 25%;
}

/* Browser Compatibility */
/* d3 Tooltip fix for Safari */
.leaflet-map-pane { height: 100%; width: 100%; position: absolute; }

/* Overrides for legends for the longer attribution and the large key */
.leaflet-bottom.leaflet-right {
    width: 220px;
}

.leaflet-left .leaflet-control {
    margin-bottom: 0px !important;
    margin-left: 0px !important;
}
