#map_canvas {
	position: absolute; 
	top: 10px; 
	left: 2px;
	padding: 10px 10px 30px;
}
#map_enlarge_close { position: absolute; top: 10px; right: 10px; z-index: 500; background: transparent url('/images/bg_close.gif') no-repeat; display: none; width: 17px; height: 17px; }
.map_image { display: block; }
#map_container.no_spin { background: none; }
#mymap, #pickups {
	display: block;
}
#mymap {
	overflow: hidden;
}

/* Styles for d3 map */

path {
	stroke-linejoin: round;
	stroke-linecap: round;
}

.map_background {
	fill: none;
	pointer-events: all;
}

.districts {
	fill: #ddd;
	cursor: pointer;
	stroke: #fff;
	stroke-width: .125;
}

.districts :hover {
	fill-opacity: 0.5;
}

.districts .active {
	fill-opacity: 0.5;
}

.districts .safe_gop {
	fill: #ddd;
}
.districts .likely_gop {
	fill: #CC3333;
}
.districts .leans_gop,
.districts .leaning_gop {
	fill: #FF9999;
}
.districts .toss_up {
	fill: #606060;
}
.districts .leans_dem,
.districts .leaning_dem {
	fill: #9999FF;
}
.districts .likely_dem {
	fill: #3333CC;
}
.districts .safe_dem {
	fill: #ddd;
}

.district-boundaries {
	pointer-events: none;
	fill: none;
	stroke: #eee;
	stroke-width: .5px;
}

.states {
	fill: #000;
	fill-opacity: 0;
	cursor: pointer;
	stroke: #fff;
	stroke-width: 2px;
}

.states :hover {
	fill-opacity: 0.2;
}

#map_zoom_out {
	padding: 2px 4px;
	display: none;
	position: absolute;
	z-index: 1000;
	background: #fff;
	border: 1px solid #CCC;
	font: 11px Arial,Helvetica,sans-serif;
	cursor: pointer;
	-webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
}
#map_zoom_out:hover {
	background: #ddd;
}

#map_district_squares {
	display: none;
	position: absolute;
	z-index: 1000;
	width: 220px;
}
#map_district_squares a.square {
	border: 1px solid #ccc;
	background: #ccc;
	color: #000;
	padding: 0 3px;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	margin-top: 5px;
	margin-right: 5px;
	width: 48px;
	-webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
	box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.75);
}
#map_district_squares a.square.safe_gop {
	background: #ddd;
}
#map_district_squares a.square.likely_gop {
	background: #CC3333;
	color: #fff;
}
#map_district_squares a.square.leaning_gop,
#map_district_squares a.square.leans_gop {
	background: #FF9999;
	color: #fff;
}
#map_district_squares a.square.toss_up {
	background: #606060;
	color: #fff;
}
#map_district_squares a.square.leaning_dem,
#map_district_squares a.square.leans_dem {
	background: #9999FF;
	color: #fff;
}
#map_district_squares a.square.likely_dem {
	background: #3333CC;
	color: #fff;
}
#map_district_squares a.square.safe_dem {
	background: #ddd;
}

/* On writeup pages (ex: Current House - 115th congress) */

.writeup .districts,
.writeup .states,
.writeup #map_zoom_out {
	cursor: auto;
}

.writeup .districts :hover {
	fill-opacity: 0;
}
.writeup .states :hover {
	fill-opacity: 0;
}
.writeup #map_zoom_out:hover {
	background: #ccc;
}