body {
    font-family: 'PT Sans', sans-serif;
    margin: 0 auto;
    -webkit-text-size-adjust: 100%;
    background-color: #333;
    cursor: context-menu;
}

#county-wrapper {
    background-color: #0F2C52;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    box-shadow: #000 1px 1px 1em;
}

.candidate-bar {
    border-radius: 3px;
    position: relative;
}

.county {
    background-color: #0F2C52;
    /*background-color: #000;*/
    color: white;
    margin: 1em auto;
    min-width: 500px;
}

svg {
    min-width: 400px;
    min-height: 400px;
}

.missouri {
    width: 500px;
}

#countyNumber {
    color: black;
    min-width: 570px;
}

.dough-percent {
    font-size: 16px;
    left: -4px;
    position: relative;
    text-align: center;
    bottom: 70px;
    width: 100%;
    color: #000;
}

.raceName {
    font-size: 1.6em;
    font-weight: bold;
    text-align: center;
    height: 112px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    /*margin-bottom: 2em;*/
    /*cursor: pointer;*/
    /*height: 300px;
	margin: auto auto;
	max-width: 300px;
	align-items: center; */
}


/*#raceName:after {
    padding-left: 5px;
    font-family: 'Font Awesome 5 Free';
    content: '\f074';
}*/

.countyName {
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    width: 100%;
	text-transform: capitalize;
    /*height: 300px;
	margin: auto auto;
	max-width: 300px;
	align-items: center; */
}

.electionName {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

.name{
	text-align: center;
	margin: auto;
}

.electionStatus {
    color: #FFF;
    margin-bottom: .5em;
    margin-top: .4em;
    font-weight: bold;
    max-width: 80%;
    margin: auto;
    font-size: .9em;
    text-align: center;
    padding: 1em 0;
}

.lastUpdate {
    font-size: .9em;
    text-align: center;
    padding: 1em 0;
    color: white;
}

.raceInfo {
    margin: auto;
    text-align: center;
    min-width: 300px;
}

.my-legend .legend-title {
    /*text-align: left;*/
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 90%;
}

.my-legend .legend-scale ul {
    margin: 0 auto;
    padding: 0;
    /*padding: 0;
    float: left;
    list-style: none;*/
}

    .my-legend .legend-scale ul li {
        display: inline-block;
        width: 60px;
        margin: 6px 1px;
        text-align: center;
        font-size: 80%;
        list-style: none;
    }

.my-legend ul.legend-labels li span {
    display: block;
    float: left;
    height: 15px;
    width: 100%;
    border-radius: 10%;
}

.my-legend .legend-source {
    font-size: 70%;
    color: #999;
    clear: both;
}

.my-legend a {
    color: #777;
}

.my-legend {
    max-width: 380px !important;
    min-width: 380px !important;
    margin: 0 auto;
    text-align: center;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 2%;
}

#map {
    /*background-color: #DDDDDD;*/
    /*min-height: 100vh;*/
    padding: 1em;
    max-width: 50%;
    min-width: 570px;
    margin: 0 auto;
}

.map-container {
    background-color: #DDD;
    border-radius: 2%;
    padding-bottom: 1em;
    box-shadow: #666 2px 2px 1em;
}

.info-header {
    background-color: #0F2C52;
    justify-content: space-evenly;
    align-items: center;
    padding: 1em 0;
    margin: auto;
}

.select-race {
    /*width: 40%;
    background-color: #FAA437;
    color: #000;
    text-align: center;
    padding: 1.7em;
    font-weight: bold;
    border-radius: 10px;
    min-height: 5em;
    cursor: pointer;*/
    text-align: center;
    background-color: #0F2C52;
}

.select-race-img {
    /*max-width: 50%;*/
    cursor: pointer;
    margin-bottom: .5em;
}

    .select-race-img:hover {
        box-shadow: rgba(255, 255, 255, .3) 1px 1px .5em;
    }

.hover-container {
    width: 100%;
    height: 0px;
    text-align: right;
}

.hover-info {
    color: #000;
    text-align: center;
    padding: 1em;
    font-weight: bold;
    border-radius: 10px;
    min-height: 5em;
    position: relative;
    max-width: 200px;
    display: inline-block;
    top: -20px;
    left: -25px;
}

.clear-selected-county {
    cursor: pointer;
    color: #2780E3;
    text-decoration: underline;
}

    .clear-selected-county:hover {
        color: #1a6dca;
    }

.county-filter {
    display: none;
}

#county-selected-message,
#race-filter-message {
    text-align: center;
    font-weight: bold;
}

#clear-county-filter {
    text-align: center;
    font-weight: bold;
}

.modal-footer {
    text-align: center;
    margin: auto;
}

#ddlRaceSelection {
    width: 80%;
    margin-bottom: 1em;
}

#raceSelctionModal {
    text-align: center;
}

.candidate-line {
    box-shadow: #CCC 1px 1px .2em;
}

.candidate-line h1{
	max-width: 600px;
}

#precinctChart {
    margin-top: -2em;
    margin-left: -7px;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #fff;
    margin: .5em auto;
    padding: 0;
    max-width: 80%;
}

.precinct-chart-container {
    margin-left: 1em;
}

.hover-text {
    padding: 1em;
    text-align: center;
    font-weight: bold;
}

.county-name-map {
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

.hover-text {
    max-width: 400px;
    margin: 0 auto;
}

#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none;
    width: 100%; /* Full width (cover the whole page) */
    height: 30%; /* Full height (cover the whole page) */
    border-style: solid;
    border-width: 12.5px;
    border-color: #FAA437;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    color: #FFFFFF;
    background-color: rgba(0,0,0, 0.75); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}

#overlayContent {
    font-size: large;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#mapContainerVertical, #countyNumberContainerVertical {
    width: 70%;
    margin: auto;
}

@media only screen and (max-width: 670px) {
	#mapContainerVertical, #countyNumberContainerVertical {
		width: 100%;
		margin: auto;
	}
}

#tabularVertical {
    margin: auto;
    width: 200px;
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
}
