#map-wrapper[map_type_mode='default'] .toggle-user-generated,
#map-wrapper[map_type_mode='default'] .toggle-saved,
#map-wrapper[map_type_mode='user-generated'] .toggle-default,
#map-wrapper[map_type_mode='user-generated'] .toggle-saved,
#map-wrapper[map_type_mode='user-generated'] .toggle-default-saved,
#map-wrapper[map_type_mode='saved'] .toggle-default,
#map-wrapper[map_type_mode='saved'] .toggle-unsaved,
#election-details[map_view_mode='current_house'] .toggle-current {
    display: none !important;
}

#map-wrapper[map_view_mode='current_senate'] .toggle-interactive,
#map-wrapper[map_view_mode='future_senate'] .toggle-interactive,
#map-wrapper[map_view_mode='current_governor'] .toggle-interactive,
#map-wrapper[map_view_mode='future_governor'] .toggle-interactive,
#map-wrapper[map_view_mode='current_house'] .toggle-interactive,
#map-wrapper[map_view_mode='future_house'] .toggle-interactive,
#map-wrapper[map_view_mode='timeline_map'] .toggle-interactive,
#map-wrapper[map_view_mode='evotes_change'] .toggle-interactive,
#map-wrapper[map_view_mode='evotes_change'] .toggle-interactive #split_votes_wrapper,
#map-wrapper[map_type_mode='user-generated'] .toggle-saved-visibility,
#map-wrapper[map_type_mode='default'] .toggle-saved-visibility {
    visibility: hidden !important;
}

#map-wrapper[map_view_mode='current_senate'] #timeline-wrapper,
#map-wrapper[map_view_mode='future_senate'] #timeline-wrapper,
#map-wrapper[map_view_mode='current_governor'] #timeline-wrapper,
#map-wrapper[map_view_mode='future_governor'] #timeline-wrapper,
#map-wrapper[map_view_mode='current_house'] #timeline-wrapper,
#map-wrapper[map_view_mode='future_house'] #timeline-wrapper {
    visibility: hidden !important;
}

#map-wrapper[map_view_mode='disabled_interactive'] #color_palette,
#map-wrapper[map_view_mode='disabled_interactive'] #select_map_wrapper * {
    visibility: hidden !important;
}

#map-wrapper[map_view_mode='disabled_interactive'] #party_vote_container .dropdown-menu,
#map-wrapper[map_view_mode='disabled_interactive'] #party_vote_container .dropdown-toggle::after {
    display: none !important;
}

#map-wrapper[map_view_mode='timeline_map'] #small_states .toggle-interactive,
#map-wrapper[map_view_mode='timeline_map'] #special_elections.toggle-interactive,
#map-wrapper .toggle-interactive #district_hover,
#map-wrapper .toggle-interactive #split_votes_wrapper {
    visibility: visible !important;
}

#map-wrapper[map_type_mode='saved'] #select_map_wrapper .toggle-default.toggle-table-view {
    display: block !important;
    visibility: visible !important;
}

#map-wrapper[map_type_mode='saved'] #select_map_wrapper .toggle-default.toggle-table-view * {
    visibility: visible !important;
}

#map-wrapper[map_view_mode='disabled_interactive'] .state {
    cursor: default;
}

#map-wrapper .wait-loading {
    opacity: 0;
}

#map-wrapper #loading img {
    opacity: .5;
}

#map-wrapper label {
    font-weight: bold;
    text-align: center;
    display: block;
}

#map-wrapper #map_tools {
    line-height: 1.2em;
}

#map-wrapper #date_created {
    position: absolute;
    bottom: -20px;
    visibility: visible;
}

#map-wrapper[map_view_mode="timeline_map"] #date_created {
    visibility: hidden;
}

#map-wrapper #date_created p {
    font-weight: normal;
}

#map-wrapper.house-map[map_type_mode="saved"] .house-map-wrapper {
    padding-bottom: 12px !important;
}

#map-wrapper.house-map #date_created p {
    padding: 5px;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    #map-wrapper.house-map[map_type_mode="saved"] .house-map-wrapper {
        padding-bottom: 0 !important;
    }

    #map-wrapper.house-map #date_created {
        bottom: unset;
    }
}

@media only screen and (max-width: 767px) {
    #map-wrapper #date_created {
        bottom: -30px;
    }

    #map-wrapper #map_tools {
        margin-top: 10px;
    }
}


/*---- PARTY COUNT ----*/
#party_vote_container {
    font-size: 1.1em;
    font-weight: bold;
}

#party_vote_container #dem_container {
    text-align: left;
}

#party_vote_container #rep_container {
    text-align: right;
}

#party_vote_container .dem-ev-wrapper,
#party_vote_container .rep-ev-wrapper {
    display: inline-block;
}

#party_vote_container #dem_ev {
    padding-left: 10px;
}

#party_vote_container #rep_ev {
    padding-right: 10px;
}

#party_vote_container #rep_ev_range {
    margin-left: -10px;
    padding-right: 10px;
    display: inline-block;
}

#party_vote_container .party-breakdown-wrapper {
    display: inline-block;
}

#party_vote_container .party-breakdown,
#election_tables .party-breakdown {
    font-size: .6em;
    display: inline-block;
    text-align: center;
    line-height: 20px;
    vertical-align: text-top;
}

#election_tables .party-breakdown {
    width: 18px;
    height: 16px;
    line-height: 16px;
}

#party_vote_container .dem_ev_as_dem.party-breakdown {
    margin-left: 10px;
}

#party_vote_container .rep_ev_as_rep.party-breakdown {
    margin-right: 10px;
}

@media only screen and (max-width: 469px) {

    #dem_container .dropdown,
    #rep_container .dropdown {
        display: flex;
        flex-flow: column;
    }

    #party_vote_container .dem-ev-wrapper,
    #party_vote_container .rep-ev-wrapper {
        display: block;
        order: 2;
    }

    #party_vote_container #dem_ev,
    #party_vote_container #rep_ev,
    #party_vote_container #rep_ev_range,
    #party_vote_container #dem_ev_range {
        padding-left: 0;
        padding-right: 0;
    }

    #party_vote_container #rep_ev,
    #party_vote_container #rep_ev_range {
        padding-right: 3px;
    }

    #ev_slider_container #count_tri_up.count_tri {
        top: 68px !important;
    }
}


/*---- COUNTER BAR ----*/
#ev_slider_container #ev_bar {
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0;
}

#ev_slider_container #ev_bar_container {
    overflow: hidden;
    height: 32px;
}

#ev_slider_container #ev_bar .slider_color {
    padding: 5px 0;
    display: inline-block;
    font-size: 14.4px;
}

#ev_slider_container #ev_bar .slider_color .note {
    font-weight: 400;
}

#ev_slider_container #ev_bar #d_no_race_color {
    border-right: 2px solid #fff;
}

#ev_slider_container #ev_bar #r_no_race_color {
    border-left: 2px solid #fff;
}

#ev_slider_container #ev_bar #d_no_race_color span {
    margin-left: 5px;
}

#ev_slider_container #ev_bar #r_no_race_color span {
    margin-right: 5px;
}

#ev_slider_container .count_tri {
    font-size: 1.5em;
    line-height: 0.8em;
    float: none;
    position: absolute;
    left: 50%;
    margin: 10px 0 0 -8px;
    color: #000;
}

#ev_slider_container #count_tri_down.count_tri {
    margin-top: -16px;
}

#ev_slider_container[party_winner="D"] .count_tri,
#ev_slider_container[party_winner="D4"] .count_tri {
    color: #244999;
}

#ev_slider_container[party_winner="R"] .count_tri,
#ev_slider_container[party_winner="R4"] .count_tri {
    color: #D22532;
}

#ev_slider_container #count_tri_up.count_tri {
    top: 45px;
}

@media only screen and (max-width: 575px) {

    #d_no_race_ev,
    #r_no_race_ev {
        float: none;
    }
}

#party_vote_container .dropdown-toggle,
#party_vote_container .dropdown-menu {
    cursor: pointer;
}

#party_vote_container .dropdown-menu {
    max-height: 300px;
    overflow-y: scroll;
}

#party_vote_container .dropdown-menu .dropdown-item:active {
    background: #ddd !important;
}

/*---- ZOOM BUTTONS ----*/
#map-display-wrapper .zoom-buttons {
    padding-top: 2px;
}

#map-display-wrapper #no-election-notes .footnote {
    padding-bottom: 2px;
}

/*---- MAP VIEW ----*/
#map_view_switcher {
    text-align: center;
}

#map_view_switcher .view_mode {
    border-radius: 0;
}

#map_filter_switcher .dropdown-toggle:hover {
    text-decoration: underline;
}

#map_logo {
    position: absolute;
    top: 70%;
    right: 11%;
    width: 6%;
    z-index: 1000;
}

#map_logo img {
    max-width: 60px;
}

/*---- MAP LIBRARY ----*/
#starting_view {
    position: relative;
}

#starting_view select {
    padding-left: 5px;
}

#starting_view_description {
    text-align: center;
    padding-top: 5px;
}

#starting_view_description a {
    display: block;
}

#map-wrapper #active-map-wrapper,
#map-wrapper #color-legend-wrapper {
    z-index: 10;
    position: relative;
}

#map-wrapper #active-map-wrapper p,
#map-wrapper #color-legend-wrapper p,
#map-wrapper #no-election-notes p {
    margin-bottom: -10px
}

/*---- HOUSE HOVER ----*/
#district_details {
    border: 1px solid #dae0e5;
    border-radius: 5px;
    padding: 5px;
    min-height: 145px;
}

#district_details table {
    font-size: 0.9em;
}

#district_details #state_rep_selected {
    font-weight: bold;
    font-size: 1.1em;
    margin: 4px 0;
}

#district_details #state_term {
    font-size: 0.8em;
    line-height: 1.2em;
    margin: 4px 0;
}

#district_details #state_retired_notes {
    font-size: 0.8em;
    line-height: 1.2em;
}

/*---- COLOR PALETTE ----*/
#color_palette label {
    margin-bottom: .8rem;
}

#palette_wrapper {
    float: left;
    width: 100%;
    border: 1px solid #dae0e5;
    border-radius: 5px;
    position: relative;
}

#palette_wrapper .btn {
    border: 1px solid #dae0e5;
    padding: 3px 8px;
}

#palette_wrapper .btn.disabled {
    background: #fff !important;
    opacity: 1;
    cursor: default;
    color: #ccc;
}

#palette_wrapper table {
    width: 98%;
    margin: 0 1% 3px;
    overflow: hidden;
}

#palette_wrapper .palette {
    text-align: center;
    border-width: 2px;
    border-style: solid;
    border-color: #fff;
    cursor: pointer;
    margin: 3px;
    height: 25px !important;
}

#palette_wrapper .palette.selected {
    border: 2px solid #fff !important;
}

#palette_wrapper .palette.selected:before {
    content: "\2713";
    color: #fff;
}

#palette_wrapper table#palette-chooser td.label {
    font-size: 8pt;
    text-align: center;
    white-space: nowrap;
}

#palette_wrapper table#palette-chooser .text {
    font-size: 8pt;
    line-height: 1em;
}

#palette_wrapper table#palette-chooser tfoot.palette-ind {
    text-align: center;
}

#palette_wrapper table#palette-chooser tfoot.palette-ind td.buffer {
    display: none;
}

#palette_wrapper table#palette-chooser tfoot.palette-ind .party-cube {
    display: inline-block;
    cursor: pointer;
    font-size: 8pt;
}

#palette_wrapper.parties_color_palette table#palette-chooser td.label {
    font-size: 10pt;
    text-align: left;
}

#palette_wrapper.parties_color_palette table#palette-chooser td.palette {
    height: 30px;
}

#palette_wrapper table#palette-chooser td.palette {
    width: 36px !important;
}

#palette_wrapper span .color-option {
    font-size: 14px;
}

#palette_wrapper #palette-helper {
    position: absolute;
    right: 0;
    font-size: 1.5em;
    margin-top: -5px;
}

#palette_wrapper table#palette-chooser #independent,
#palette_wrapper table#palette-chooser #palette_i {
    display: none;
}

#palette_wrapper table#palette-chooser.show_3P #independent,
#palette_wrapper table#palette-chooser.show_3P #palette_i {
    display: table-cell;
}

#palette_wrapper .palette-3p-msg {
    font-size: 8pt;
    font-weight: normal;
    margin-bottom: 5px;
}

#palette_wrapper.parties_color_palette table#palette-chooser td.toggle-candidates {
    display: none;
}

@media only screen and (max-width: 575px) {

    .presidential-map #palette_wrapper[color_mode='palette-3'] table#palette-chooser,
    .presidential-map #palette_wrapper[color_mode='palette-4'] table#palette-chooser {
        table-layout: fixed;
    }

    .presidential-map #palette_wrapper[color_mode='palette-3'] table#palette-chooser td {
        width: 20% !important;
    }

    .presidential-map #palette_wrapper[color_mode='palette-4'] table#palette-chooser td {
        width: 16% !important;
    }
}

@media only screen and (min-width: 1200px) {
    #color_palette label {
        margin-top: 4px;
    }

    #palette_wrapper {
        min-height: 225px;
    }

    #palette_wrapper table {
        display: block;
        width: 100%;
        margin: 0 0 3px;
    }

    #palette_wrapper table tbody {
        display: flex;
    }

    #palette_wrapper table tr {
        width: 33%;
    }

    #palette_wrapper.parties_color_palette table tr.palette-labels {
        width: 66%;
    }

    #palette_wrapper table tr.palette-labels {
        order: 2;
    }

    #palette_wrapper table tr.palette-labels td {
        height: 33px;
        line-height: 34px;
    }

    #palette_wrapper table tr.palette-dem {
        order: 1;
    }

    #palette_wrapper table tr.palette-rep {
        order: 3;
    }

    #palette_wrapper table tr.palette-rep td {
        float: right;
        margin: 2px 3px 1px;
    }

    #palette_wrapper table#palette-chooser td.label,
    #palette_wrapper table#palette-chooser td.palette {
        display: block;
    }

    #palette_wrapper table#palette-chooser td.palette {
        width: 32px !important;
        height: 30px !important;
    }

    #palette_wrapper table #palette_t,
    #palette_wrapper table #palette_i {
        margin: 30px 3px 3px 40px;
        position: relative;
    }

    #palette_wrapper table#palette-chooser tfoot.palette-ind {
        display: block;
    }

    #palette_wrapper table#palette-chooser tfoot.palette-ind td {
        display: table-cell;
    }

    #palette_wrapper table#palette-chooser tfoot.palette-ind td p {
        width: 124px;
    }

    #palette_wrapper[color_mode="palette-1"] table#palette-chooser tfoot.palette-ind td.buffer,
    #palette_wrapper[color_mode="palette-2"] table#palette-chooser tfoot.palette-ind td.buffer,
    #palette_wrapper[color_mode="palette-3"] table#palette-chooser tfoot.palette-ind td.buffer {
        display: table-cell;
    }

    #select_map_wrapper button {
        font-size: 0.9em;
    }

    .presidential-map #palette_wrapper {
        min-height: 250px;
    }

    .presidential-map #palette_wrapper.parties_color_palette {
        min-height: unset;
    }

    .historical-presidential-map #palette_wrapper table tr.palette-labels td {
        line-height: unset;
    }

    .historical-presidential-map #palette_wrapper table tr.palette-labels td div {
        height: 33px;
    }

    .historical-presidential-map #palette_wrapper table tr.palette-labels td div span {
        height: 33px;
        line-height: 1em;
        display: table-cell;
        vertical-align: middle;
    }

    #palette_wrapper table#palette-chooser.show_3P #independent,
    #palette_wrapper table#palette-chooser.show_3P #palette_i {
        display: block;
    }

    #palette_wrapper table#palette-chooser.show_3P #tossup.label {
        margin-left: -60px;
    }

    #palette_wrapper table#palette-chooser.show_3P #palette_t {
        margin-left: 3px;
    }

    #palette_wrapper table#palette-chooser.show_3P #independent.label {
        margin: -33px 0 3px 45px;
    }

    #palette_wrapper table#palette-chooser.show_3P #palette_i {
        margin: -33px 0 3px 75px;
    }

    #starting_view select {
        font-size: 0.8em;
    }
}

@media only screen and (min-width: 1400px) {
    #palette_wrapper table#palette-chooser td.palette {
        width: 36px !important;
        height: 30px !important;
    }

    #palette_wrapper table#palette-chooser tfoot.palette-ind td.palette {
        width: 32px !important;
    }

    #palette_wrapper table #palette_t,
    #palette_wrapper table #palette_i {
        margin: 30px 3px 3px 49px;
    }

    #palette_wrapper table#palette-chooser.show_3P #tossup.label {
        margin-left: -90px;
    }

    #palette_wrapper table#palette-chooser.show_3P #independent.label {
        margin: -33px 0 3px 60px;
    }

    #palette_wrapper table#palette-chooser.show_3P #palette_i {
        margin: -33px 0 3px 95px;
    }

    #select_map_wrapper button {
        font-size: 1em;
    }
}

#other_legend {
    float: left;
    width: 100%;
    color: #fff;
    background-color: #454545;
    font-size: .9em;
}

#color_palette.simple_color_palette #palette_wrapper table tr td {
    float: unset !important;
    margin: 0 auto;
}

#convert_colors_wrapper {
    max-width: 145px;
    border: 1px solid #dae0e5;
    border-radius: 5px;
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    #convert_colors_wrapper {
        margin-left: -20px;
    }
}


/*---- OVERVIEW TABLES ----*/
.elections-overview {
    border-radius: 8px;
    overflow: hidden;
}

.elections-overview h4 {
    font-size: 1.2em;
    margin-bottom: 0;
    background: transparent !important;
    border: none !important;
    color: #000 !important;
    cursor: default !important;
    width: 100%;
    font-weight: bold;
    border-radius: 0;
}

.elections-overview table {
    margin: 0;
}

.elections-overview table th {
    font-weight: bold;
    border-top: 1px solid #6c757d;
    padding-top: 8px;
}

.elections-overview table th,
.elections-overview table td {
    text-align: center;
}

.elections-overview table td:first-child {
    text-align: left;
    font-weight: bold;
}


/*---- D3 MAP ----*/
svg path {
    stroke-linejoin: round;
}

svg body {
    background: transparent;
}

svg .state_info,
#map_text .state_info {
    text-align: center;
    font-size: 8pt;
    line-height: 8.5pt;
    color: white;
    font-weight: bold;
    width: 100%;
    height: 100%;
}

#map_text .state_info.state_info_15 {
    color: black;
}

svg .state_abbr,
#map_text .state_abbr {
    display: block;
}

svg .e_votes {
    display: none;
}

svg .state {
    cursor: pointer;
}

svg .state-boundaries {
    fill: none;
    stroke: #fff;
    stroke-width: 1.5px;
    stroke-linejoin: round;
    stroke-linecap: round;
    pointer-events: none;
}

svg .district-boundaries {
    pointer-events: none;
    fill: none;
    stroke: #fff;
    stroke-width: 0.5px;
}

svg .state_info.state_info_15 {
    color: black;
}

svg .state_info.state_info_15 .e_votes_split {
    color: white;
}

.presidential-map svg .e_votes,
.delegate-map svg .e_votes {
    display: inline;
}

/*---- SMALL STATES, SPLIT VOTES ----*/
#small_states {
    position: absolute;
    top: 40%;
    right: 0;
}

#small_states tr.sm-state {
    color: #fff;
    cursor: pointer;
}

#small_states tr.sm-state td {
    line-height: normal !important;
    height: 24px;
    border-bottom: 4px solid #fff;
}

#small_states .e_votes_split {
    float: left;
    text-align: center;
    width: 15px;
    font-size: 6pt;
    font-weight: bold;
}

.special-states .map_text,
.special-states .state_info {
    display: block;
    font-weight: bold;
    vertical-align: middle;
    padding-left: 3px;
    padding-right: 3px;
    visibility: hidden;
}

.special-states .sp-full {
    cursor: pointer;
    width: 20px;
    height: 20px;
    line-height: 20px;
    display: none;
}

.delegate-map #small_states.territories1 {
    top: 85%;
    left: 55%;
}

.delegate-map #small_states.territories2 {
    top: 85%;
    left: 65%;
}

.delegate-map .special-states .sp-full {
    width: 28px;
}

.presidential-map .special-states .sp-full,
.delegate-map .special-states .sp-full {
    display: flex;
    /*flex-direction: column;*/
    justify-content: center;
}

.presidential-map .special-states .e_votes,
.delegate-map .special-states .e_votes {
    color: #fff;
    text-align: center;
    padding: 0;
    display: inline-block;
    width: 100%;
    line-height: unset !important;
}

.presidential-map .special-states .e_votes+.e_votes,
.delegate-map .special-states .e_votes+.e_votes {
    display: none;
}

.presidential-map #split_votes .split_votes-header td {
    padding: 0;
}

.presidential-map #split_votes .split_votes-header .map_text {
    padding: 0;
}

.presidential-map #split_votes .sp-state .map_text {
    color: #fff;
}

.presidential-map #split_votes .sp-double {
    width: 40px;
}

.presidential-map #split_votes .special-states {
    width: max-content;
}

.presidential-map #split_votes .special-states .map_text,
.presidential-map #split_votes .special-states .state_info {
    font-size: 8pt !important;
    line-height: 1.2em !important;
}

.presidential-map #split_votes .special-states .e_votes {
    line-height: unset !important;
}

.presidential-map #split_votes .special-states tr.split-state td {
    padding: 2px 2px 4px;
}

.presidential-map #split_votes .special-states td.shaded {
    background: #e3e3e3;
}

.state_info .e_votes_split {
    display: inline-block;
    width: 15px;
    height: 15px;
    line-height: 15px;
    margin-right: 1px;
    margin-top: 1px;
}

@media only screen and (max-width: 1199px) {
    #split_votes {
        width: 150px;
        margin: 13px auto 0;
        border: 1px solid #dae0e5;
        border-radius: 5px;
        padding: 5px;
    }
}

@media only screen and (max-width: 991px) {

    .presidential-map svg .text_50,
    .presidential-map svg .text_33,
    .delegate-map svg .text_50,
    .delegate-map svg .text_33 {
        display: none;
    }

}

@media only screen and (max-width: 767px) {
    svg .state-boundaries {
        stroke-width: 1px;
    }

    #small_states tr.sm-state {
        display: none;
    }

    #small_states tr.sm-state.vp {
        display: inherit !important;
    }

    #small_states tr.sm-state td {
        height: 19px;
    }

    .senate-map #small_states {
        right: 30%;
        bottom: 5%;
        top: unset;
    }

    .presidential-map #small_states tr.sm-state,
    .delegate-map #small_states tr.sm-state {
        display: table-row;
    }

    .presidential-map #small_states .special-states .sp-full,
    .delegate-map #small_states .special-states .sp-full {
        width: 17px;
        height: 17px;
        line-height: 17px;
    }

    .delegate-map #small_states .special-states .sp-full {
        width: 22px;
    }

    .special-states .map_text,
    .special-states .state_info {
        padding-left: 2px;
        padding-right: 2px;
    }

    .state_info .e_votes_split {
        width: 12px;
        height: 12px;
        line-height: 12px;
    }

    #map_logo {
        right: 8%;
    }

    .presidential-map #map_logo {
        right: 25%;
        top: 85%;
    }

    .delegate-map #map_logo {
        right: 18%;
        top: 18%;
    }

}

@media only screen and (max-width: 479px) {
    svg .state-boundaries {
        stroke-width: 0.6px;
    }

    #small_states td {
        height: 14px;
        border-bottom: 2px solid #fff;
    }

    .presidential-map #small_states tr.sm-state {
        position: relative;
        z-index: 999;
    }

    .presidential-map #small_states .special-states .sp-full,
    .delegate-map #small_states .special-states .sp-full {
        width: 12px;
        height: 12px;
        line-height: 12px;
    }

    .delegate-map #small_states .special-states .sp-full {
        width: 16px;
    }

    .special-states .map_text,
    .special-states .state_info {
        padding-left: 1px;
        padding-right: 1px;
    }

    .state_info .e_votes_split {
        width: 9px;
        height: 9px;
        line-height: 9px;
    }
}

@media only screen and (max-width: 360px) {
    .presidential-map #small_states tr.sm-state {
        overflow: hidden;
        height: 12px;
        white-space: nowrap;
    }

    .presidential-map #small_states tr.sm-state td {
        line-height: 10px !important;
    }

    .presidential-map #small_states .special-states .sp-full {
        height: 10px;
        line-height: 10px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .presidential-map #split_votes {
        margin-left: -15px;
    }
}

div.state-tooltip {
    position: absolute;
    text-align: center;
    padding: 2px;
    background: #fff;
    border: 1px solid #ddd;
    pointer-events: none;
    font-size: 12px !important;
    z-index: 99999;
}

@media only screen and (max-width: 991px) {
    div.state-tooltip {
        display: none !important;
    }
}

/*--- LIVE RESULTS MAP ----*/
.live-results-map #small_states {
    top: 48%;
    right: 0;
}

.live-results-map #d_no_race_color .note,
.live-results-map #r_no_race_color .note {
    opacity: 0;
    display: inline-block;
    width: 0;
}

/*--- SPECIAL ELECTIONS ---*/
/*-- add all the other states here, as needed --*/
#special_elections .special_election {
    color: white;
    text-align: center;
    padding: 1%;
    position: absolute;
    border: 1px solid #fff;
    cursor: pointer;
    background: #ddd;
    visibility: hidden;
}

#special_elections .special_election_GA {
    top: 69%;
    left: 75%;
    width: 4%;
}

#special_elections .special_election_MN {
    top: 23%;
    left: 52%;
}

#special_elections .special_election_MS {
    top: 70.5%;
    left: 62.5%;
}

#special_elections .special_election_NE {
    top: 37.5%;
    left: 46%;
}

#special_elections .special_election_OK {
    top: 58%;
    left: 50%;
}

/*---- HISTORICAL SPLIT VOTES ----*/
#split_votes_totals tr.hidden {
    display: none;
}

#split_votes_totals th.party-header {
    min-width: 60px;
}

#split_votes_totals th.toggle-candidates,
#split_votes_totals td.toggle-candidates {
    display: none;
}

#split_votes_totals input {
    text-align: right;
}

#split_votes_totals a.btn {
    color: #444;
}

#split_votes_totals a.text-muted {
    color: #BBB !important;
}

#split_votes_totals .no_electoral_votes,
#split_votes_totals .unassigned {
    display: none;
}

/*---- MODAL ----*/
#shareEmbedModal {
    font-size: 0.9em;
}

#shareEmbedModal img {
    width: 100%;
    margin-bottom: 15px;
}

#shareEmbedModal h4 {
    margin-bottom: 0;
}


/*---- FANCY RADIO BUTTON STYLES ----*/
.frb-group {
    margin-bottom: 15px;
    text-align: center;
}

.frb input[type="radio"]:empty,
.frb input[type="checkbox"]:empty {
    display: none;
}

.frb input[type="radio"]~label:before,
.frb input[type="checkbox"]~label:before {
    font-family: FontAwesome;
    content: '\f096';
    position: absolute;
    top: 50%;
    margin-top: -14px;
    left: 15px;
    font-size: 1.2em;
}

.frb input[type="radio"]:checked~label:before,
.frb input[type="checkbox"]:checked~label:before {
    content: '\f046';
}

.frb input[type="radio"]~label,
.frb input[type="checkbox"]~label {
    position: relative;
    cursor: pointer;
    width: 100%;
    border: 1px solid #D4DADF;
    border-radius: 5px;
    background: #f8f9fa;
    color: #212529;
    margin: 0;
}

.frb input[type="radio"]~label:focus,
.frb input[type="radio"]~label:hover,
.frb input[type="checkbox"]~label:focus,
.frb input[type="checkbox"]~label:hover {
    background: #e2e6ea;
}

.frb input[type="radio"]:checked~label,
.frb input[type="checkbox"]:checked~label {
    color: #fff;
    background: #316f31;
}

.frb input[type="radio"]:empty~label span,
.frb input[type="checkbox"]:empty~label span {
    display: inline-block;
}

.frb input[type="radio"]:empty~label span.frb-title,
.frb input[type="checkbox"]:empty~label span.frb-title {
    font-weight: bold;
    margin: 5px 5px 0 10px;
}

.frb input[type="radio"]:empty~label span.frb-description,
.frb input[type="checkbox"]:empty~label span.frb-description {
    margin: 0 5px 5px 10px;
    font-weight: normal;
}

.frb-inactive input[type="radio"]~label {
    cursor: default;
    background: #e2e6ea !important;
    color: #999;
}

.frb-inactive input[type="radio"]~label:before,
.frb-inactive input[type="checkbox"]~label:before {
    font-family: FontAwesome;
    content: '\f096';
    position: absolute;
    top: 50%;
    margin-top: -14px;
    left: 15px;
    font-size: 1.2em;
    color: #ccc;
    cursor: not-allowed !important;
}

#elected-officials-switcher .frb-title,
#polls-view-switcher .frb-title {
    line-height: 1.1em;
}

#live_results_switcher .frb a {
    text-decoration: none;
    color: #000;
}

.view-mode-helper.active_view {
    color: #fff;
    background: #316f31;
    border-radius: 5px;
}

@media only screen and (max-width: 991px) {
    .frb~.frb {
        margin-top: 5px;
    }

    #elected-officials-switcher .frb-title,
    #polls-view-switcher .frb-title {
        min-height: 35px;
        line-height: 30px;
    }

    #map_view_switcher .frb-title.full-height {
        margin-bottom: 5px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .frb-group {
        margin-top: 50px;
    }

    #map_filter_switcher .frb-group,
    #map_view_switcher.e-vote_switch .frb~.frb {
        margin-top: 0;
    }
}

@media only screen and (min-width: 992px) {
    .frb.first input~label {
        border-right: none;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .frb.middle input~label {
        border-right: none;
        border-radius: 0;
    }

    .frb.last input~label {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    #elected-officials-switcher .frb-title,
    #polls-view-switcher .frb-title {
        margin: 10px 0 10px 20px;
        min-height: 35px;
    }

    #elected-officials-switcher #governor_map .frb-title {
        line-height: 35px;
    }

    #map_view_switcher .frb-title.full-height {
        line-height: 35px;
        margin: 10px 0 10px 20px;
        min-height: 35px;
    }
}

/*---- HOUSE MAP TABLE VIEW ----*/
#table-view-races div.label {
    color: #fff;
    font-weight: bold;
    padding: 10px 0;
}

#table-view-races div.totals {
    color: #fff;
    font-weight: bold;
}

#table-view-races div.totals>div {
    padding: 10px 0;
}

#table-view-races div.districts {
    padding: 10px;
}

#table-view-races div.districts .district {
    padding: 2px 0;
}


/*---- TIMELINE PLAYER ----*/
#timeline-player-buttons button {
    color: white;
    min-width: 46px;
    margin-top: 16px;
    margin-right: 2px;
    border: none !important;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background-color: #444;
    border: none;
    padding: 6px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
#timeline-player-buttons button:hover {
    color: #fff;
}
#timeline-player-buttons button[disabled='disabled'] {
    color: #d1d1d1 !important;
    cursor: default;
}
#prev_map, #next_map {
    color: white;
    border: 1px;
    background-color: #444;
    padding: 6px 18px;
    border-radius: 9999px;
}
#prev_map {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
#next_map {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
#timeline-player-buttons button[timeline_action="start"] {
    border-top-left-radius: 9999px;
    border-bottom-left-radius: 9999px;
    width: 80px;
}
#timeline-player-buttons button[timeline_action="end"] {
    border-top-right-radius: 9999px;
    border-bottom-right-radius: 9999px;
    width: 80px;
}
#timeline-player-buttons button.active {
    background-color: #fff;
    color: #3498db;
    cursor: pointer;
}
#timeline-player-buttons .play-backward .fa-play {
    transform: rotate(180deg);
}
.ui-slider-handle {
    border: 1px solid #555;
    border-radius: 50%;
    background: #444!important;
    cursor: grab!important;
}
.ui-state-active .ui-icon-background {
    border: none !important;
    border-color: #555 !important;
    background-color: #555 !important;
}
.ui-slider-horizontal .ui-state-default {
    border: none !important;
    border-color: #555 !important;
    background-color: #555 !important;
}
#timeline_slider {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to bottom, #858585, #656565);
    background-color: #656565;
    margin-top: 15px;
    margin-bottom: 18px;
    cursor: pointer;
}


/*---- SIMULATION ----*/
#simulation_btn_wrapper .sim_btn {
    min-width: 160px;
}

#simulation_speed_wrapper .input-group-text {
    color: #000;
    background-color: #fff;
}

#simulation_speed_wrapper #simulation_speed_buttons {
    font-size: 1.75em;
    display: flex;
    line-height: 1em;
}

#simulation_speed_wrapper .sim_speed_btn {
    cursor: pointer;
    color: #BBB;
}

#simulation_speed_buttons .sim_speed_btn.active {
    color: #000;
}

#simulation_speed_buttons .sim_speed_btn .fa-angle-right::before {
    font-weight: bold;
}


/*---- STARTING MAP BLOCKS ----*/
#map-wrapper #starting_maps .starting_map {
    vertical-align: bottom;
}

#map-wrapper #starting_maps .starting_map:hover {
    background: #f4f4f4;
    cursor: pointer;
}

#map-wrapper[map_type_mode='default'] #starting_maps .starting_map.active {
    border: 1px solid #AAA !important;
    background: #ededed !important;
}

#map-wrapper #starting_maps .starting_map.disabled {
    display: none;
}

#map-wrapper #starting_maps .starting_map .starting_map_thumb {
    width: 100%;
    max-width: 140px;
}

#map-wrapper #starting_maps_description {
    min-height: 50px;
}

#map-wrapper[map_type_mode='default'] #starting_maps_description {
    visibility: visible;
}

#map-wrapper[map_type_mode='user-generated'] #starting_maps_description {
    visibility: hidden;
}


/*---- CONTEST ----*/
#contest_instructions ol {
    display: block;
    padding: 0 0 0 22px;
    list-style: none;
    overflow: hidden;
    counter-reset: numList;
}

#contest_instructions ol li {
    margin-right: 44px;
    margin-bottom: 5px;
    float: left;
    position: relative;
    font-size: 16px;
    line-height: 18px;
    width: 100%;
}

#contest_instructions ol li::before {
    counter-increment: numList;
    content: counter(numList);
    float: left;
    position: absolute;
    left: -22px;
    text-align: center;
    color: #fff;
    line-height: 18px;
    font-size: 8pt;
    width: 18px;
    height: 18px;
    background: #000;
    -moz-border-radius: 999px;
    border-radius: 999px
}

#contest_instructions ol li.no-tossups.valid::before,
#contest_instructions ol li.no-gradients.valid::before {
    content: "\2713 ";
}

#submit_button[disabled='disabled'] {
    opacity: 0.3;
}