/* large screen settings */

@media all and (min-width: 801px) {
    #divTextSize {
        padding-left: 5px;
    }

    #brTextSize {
        display: none;
    }

    #left_area {
        width: 28%;
        float: left;
        padding: 0px 5px 0px 10px;
    }

    #right_area {
        width: 68%;
        float: right;
        padding: 0px 10px 0px 5px;
    }

    .grid_caption_no_link {
        display: none;
    }

    .longlist {
        overflow: auto;
        padding-bottom: 5px;
    }

	#gvCountyStatusMobile {
		display: none;
	}
}

/* small screen settings */

@media all and (max-width: 800px), handheld and (orientation: portrait) {
    #divTextSize {
        padding-left: 5px;
    }

    #left_area {
        width: 97%;
        float: left;
        padding: 0px 5px 0px 5px;
    }

    #right_area {
        width: 97%;
        float: left;
        padding: 0px 5px 0px 5px;
    }

    .grid_caption_link, .grid_caption_div {
        display: none;
    }

    #divGirdCountyResults, #divRepCountyResults {
        width: 100%;
    }

	#maplink {
		display: none;
	}

	#lblMessage {
		display: none;
	}

	#gvCountyStatus {
		display: none;
	}

	#gvCountyStatusMobile {
		display: table;
		padding: 10px;
	}
}

/* printer settings */

@media print {
    #options {
        display: none;
    }

    .longlist {
        overflow: visible;
    }

    .grid_caption_link, .grid_caption_div {
        display: none;
    }
}

/* general map settings */

#svg path:hover {
	fill-opacity: 1;
	stroke-opacity: 1;
	stroke: yellow;
	stroke-width: 2;
}

#svg path {
	fill-opacity: 1;
	stroke-opacity: 1;
	stroke: black;
	stroke-width: 0.5;
}

#divLegend {
	display: none
}

/* tooltip settings */

.tooltip {
	text-decoration:none;
}

.tooltip span {
	display:none;
}

.tooltip:hover span {
	display:block;
	position:fixed;
	overflow:hidden;
}

#tooltip-span {
	background-color: rgba(0,0,0,0.7);
	color: white;
	border-radius: 5px;
	padding: 10px;
}

.tooltip table {
    min-width: 350px;
}

.tooltip-table-header {
	background-color: rgb(79,129,189);
	color: white;
	font-weight: bold;
    border: none;
	padding: 4px;
}

.tooltip-table-cells {
	background-color: rgb(211,223,238);
	color: black;
	text-align: right;
    border: none;
	padding: 4px;
}

/* body settings */

body {
	margin: 0;
	padding: 0;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	min-width: 340px;
}

/* menu settings */

#menu header nav {
	text-align: right;
	background: #fff;
	border-bottom: 3px solid #a50000;
	min-height: 80px;
}

#menu header nav ul {
	padding: 1.1em;
	margin: 0px;
	list-style-type: none;
}

#menu header nav ul li {
	display: inline;
	margin-left: .5em;
	font-weight: 700;
}

#menu header nav ul li:first-child {
	margin-left: 1em;
}

#menu header nav ul li ul {
	display: none;
}

#menu a, #tblDownloads a, .links a {
	color: #333;
	text-decoration: none;
}

#menu a:hover, #tblDownloads a:hover, .links a:hover {
	color: silver;
}

#menu a, a:hover, #tblDownloads a, a:hover, .links a, a:hover {
	-o-transition: color 0.25s ease-in;
	-webkit-transition: color 0.25s ease-in;
	-moz-transition: color 0.25s ease-in;
	transition: color 0.25s ease-in;
}

#menu .border-left {
	border-left: 2px solid #ccc;
	padding-left: 7px;
}

/* progress bar settings */

.progresscon {
    border: 1px solid;
    border-color: darkgrey;
    background-color: dimgray;
    border-radius: 5px;
    overflow: hidden;
}

.progressbar {
    background-color: steelblue;
}

.progresspct {
    width: 98%;
    text-align: right;
    color: white;
    position: relative;
}

/* grid settings */

.grid_caption{
    text-align: left;
    color: white;
    background-color: rgb(23,44,74);
    padding: 5px;
    border: 5px solid white;
}

.grid_caption_link a {
    color: white;
    text-decoration: underline;
}

.grid_caption_link a:hover {
    color: rgb(159,186,225);
    text-decoration: underline;
}

.grid_caption_div {
    border: 1px solid white;
    border-radius: 5px;
    padding: 5px 7px 5px 7px;
    margin: 4px;
    white-space: nowrap;
    color: white;
}

.grid_caption_div:hover {
    color: black;
    background-color: rgb(159,186,225);
}

.grid_table {
    border-collapse: separate; 
    border-spacing: 5px;
    border: none;
}

.grid_table th {
    background-color: rgb(159,186,225);
    font-weight: 100;
    border: none;
}

.grid_table th, .grid_table tr, .grid_table td {
    padding: 5px;
    border: none;
}

.grid_table td {
    padding-top: 2px;
    padding-bottom: 2px;
}

.grid_table_nocolor {
    border-collapse: separate; 
    border-spacing: 5px;
    border: none;
}

.grid_table_nocolor th {
    font-weight: bold;
    border: none;
}

.grid_table_nocolor th, .grid_table_nocolor tr, .grid_table_nocolor td {
    padding: 5px;
    border: none;
}

.grid_table_nocolor td {
    padding-top: 2px;
    padding-bottom: 2px;
}

.td_grid_precinct {
    text-align: right;
}

.td_grid_precinct div {
    display: inline-block;
    min-width: 100px;
    right: 1px;
}

.grid_table tr:nth-child(even) {
    background-color: rgb(234,224,215);
}

/* tab settings */

.tab, .tab:hover, .tabselected {
    border: 1px solid gray;
    padding: 5px 0px 5px 0px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: black;
    float: left;
    min-width: 30%;
    text-align: center;
    position: relative;
    top: 1px;
}

.tab:hover {
    background-color: white;
}

.tabselected {
    background-color: white;
    border-bottom-color: white;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
}

.tab {
    background-color: darkgray;
}

.tabdiv {
    border: 1px solid gray;
    padding: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* div circle settings */

.divcircle {
    width: 30px;
    height: 30px;
    border-radius: 20px;
    border: 1px solid gray;
    box-shadow: rgba(0, 0, 0, .3) 2px 2px;
    margin: 0 auto;
}

/* pop-up settings */

#modalResults
{
    visibility: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px; 
    left: 0px;
}

#modalOptions
{
    visibility: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px; 
    left: 0px;
}

.modalBackground
{
    filter: Alpha(Opacity=40); -moz-opacity:0.4; opacity: 0.4;
    background-color: #999999;
    width: 100%; 
    height: 100%; 
    position: fixed;
    z-index: 500;
    top: 0px; 
    left: 0px;
}

.modalContainer
{
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 750;
}

.modal
{
    background-color: white;
    border: solid 1px black; 
    border-radius: 5px;
    position: relative;
    z-index: 1000;
	margin: 0px;
    padding: 10px;
}

.modalTop
{
    border-radius: 5px;
    width: 100%;
    background-color: transparent;
    text-align: right;
}

.modalBottom
{
    border-radius: 5px;
    width: 100%;
    background-color: transparent;
}

.close{
    color: #fff;
    position: absolute;
    background: rgba(0, 0, 0, .6);
    z-index: 1;
    opacity: .3;
    user-select: none;
    right: 0px;
    top: 0px;
    height: 24px;
    width: 12px;
    padding: 0px 8px 0px 8px;
    border-bottom-left-radius: 5px;
}

.close:hover{
    cursor: pointer;
    opacity: 1;
}

.popup-table-header {
	background-color: rgb(79,129,189);
	color: white;
	font-weight: bold;
    border: 2px solid white;
	padding: 4px;
}

.popup-table-cells {
	background-color: rgb(211,223,238);
	color: black;
	text-align: right;
    border: 2px solid white;
	padding: 4px;
}

.popup-table-cells-left {
	background-color: rgb(211,223,238);
	color: black;
	text-align: left;
    border: 2px solid white;
	padding: 4px;
}

#gvMiscColors {
    margin-top: -5px;
}

/* general settings */

#slider_controls {
	text-align: center;
}

#slider_controls a {
	text-decoration: none; 
	color: steelblue;
}