@import url( /wp-content/lib/chunks/addthis.css );
@import url( /wp-content/lib/chunks/singular.css );
@import url( /wp-content/lib/chunks/tables.css );

@import url( /wp-content/lib/chunks/interactives.css );
@import url( /wp-content/lib/chunks/toggle-buttons.css );

#projection path {
	stroke:#7A7B7E;
	stroke-width:0.5px;
	fill:#F3F3F4;
	cursor:pointer;
}
#projection path.outgoing,
#projection path.incoming {
	stroke:#444;
	stroke-width:1px;
}
#projection path:hover {
	stroke:#666;
	stroke-width:1px;
	fill:rgba(163,210,200,1) !important;
}
.tooltip {
	position:absolute;
	z-index:10;
	background:white;
	padding:5px 10px;
	border-radius:5px;
	border:1px solid #333;
	font-family: "franklin-gothic-urw",Verdana,Geneva,sans-serif;
	font-size:1.2em;
	letter-spacing:0.1em;
}
#interactive {
	position: inherit;
}
#map {
	left: 0;
	right: 0;
	background: aliceblue;
	border-top: 1px solid #999;
	border-bottom: 1px solid #ccc;
	-webkit-box-shadow: inset 0px 4px 20px -10px rgba(0, 0, 0, 1);
	box-shadow: inset 0px 4px 20px -10px rgba(0, 0, 0, 1);
}
#map svg {
	display: flex;
}
#map .countries{
	stroke: #999;
	stroke-width:.3px;
}
#map .countries .selected-country-path{
	stroke: black;
	stroke-width: 1px;
}
#menu {
	padding-left:0;
	overflow:auto;
	padding-bottom: 15px;
	padding-top: 12px;
}
#js-after-table-nav {
	width: 100%;
	max-width: 960px;
}
#nav-container {
	padding-left:0;
	overflow:auto;
	z-index: 100;
	border-bottom: 1px dotted #ccc;
	background-color: rgba(255,255,255,0.8);
    font-family: "franklin-gothic-urw",Verdana,Geneva,sans-serif;
}

/*firefox arrow is annoying, let's hide it*/
@-moz-document url-prefix() {
	#js-select-country select {
		-moz-appearance: none;
		text-indent: 0.01px;
		text-overflow: "";
	}
}
/*dropdown button*/
#js-select-country select {
	-webkit-appearance: none;
	appearance: none;
	-webkit-border-radius: 2px;
	-webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
	-webkit-padding-end: 20px;
	-webkit-padding-start: 2px;
	-webkit-user-select: none;
	text-overflow: "";
	background-image: url(http://i62.tinypic.com/15xvbd5.png);
	background-position: 97% center;
	background-repeat: no-repeat;
	border: 1px solid #AAA;
	color: #555;
	font-family: "franklin-gothic-urw",Verdana,Geneva,sans-serif;
	font-size: 16px;
	font-weight: normal;
	margin-bottom:20px;
	overflow: hidden;
	padding: 5px 10px;
	white-space: nowrap;
	width: 100%;
	max-width: 320px;
	height: 35px;
}
#menu li {
	list-style:none;
	float:left;
    font-family: "franklin-gothic-urw", Verdana, Geneva, sans-serif;
}
#menu li:nth-child(n+2) {
	padding: 6px 0;
	color:#888;
	font-size: 13px;
	margin-right:10px;
}
#interactive.w660 h2.sentFrom {
	font-weight: 100;
	text-align: center;
	font-size: 3em;
	margin-bottom: 15px;
}
#table-container {
	display: flex;
}
#data {
	position:relative;
}
#no_data_overlay {
	display:none;
	position:absolute;
	top:80px;
	width: 80%;
	margin: 0 8%;
	padding:10px;
	height:150px;
	background:#fff;
	border:1px solid #ccc;
	z-index:400;
	-webkit-box-shadow:  2px 2px 4px 1px rgba(0, 0, 0, 0.3);
	box-shadow:  2px 2px 4px 1px rgba(0, 0, 0, 0.3);
	text-align:center;
}
#no_data_overlay p {
	font-size: 1.5em;
	line-height: 150%;
}
#data table {
	position:relative;
	overflow:auto;
	width:100%;
	margin-bottom:20px;
	font-family: "franklin-gothic-urw", Verdana, Geneva, sans-serif;
	border: 1px solid #999;
}
#data thead {

}
#data table th {
	cursor:pointer;
	width: 49%;
	background:#f2f3e9;
}
#data th.sorted {
	color: #fff;
	background: #B7B8AF;
}
#data th:not(.sorted):hover {
	background: #E5E2D2;
}
#data tbody {
	height: 464px;
	overflow-y: scroll;
	display: block;
}
#data tbody::-webkit-scrollbar {
	-webkit-appearance: none;
}
#data tbody::-webkit-scrollbar:vertical {
	width: 11px;
}
#data tbody::-webkit-scrollbar-thumb {
	border-radius: 8px;
	border: 2px solid white; /* should match background, can't be transparent */
	background-color: rgba(0, 0, 0, .5);
}
#data tr {
	display:block;
}
#data tbody tr:hover {
	background: rgba(0, 0, 0, .2);
}
#data tr:nth-child(even) {
	background: #eee;
}
#data th,
#data td {
	width:50%;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	display:inline-block;
	padding:8px 12px;
	font-size:14px;
}
#data tbody td:last-of-type {
	text-align:right;
}
td .countyColor,
li .countyColor {
	width:10px;
	height:10px;
	border:1px solid #666;
	margin-right:6px;
    margin-top: 4px;
	float:left;
	-moz-border-radius:50%;
	-webkit-border-radius:50%;
	border-radius:50%;
}
#about p {
	font-size: 14px;
	line-height: 150%;
	margin-bottom:15px;
	font-family: "franklin-gothic-urw",Verdana,Geneva,sans-serif;
}
h2.outgoing,
h2.incoming {
	line-height:150%;
	display: none;
	font-weight: bold;
	margin-bottom: 10px;
	font-size: 2.5em !important;
}
h2.outgoing .highlight,
h2.incoming .highlight {
	background: #dbba5b;
	padding: 1px 10px;
	display: inline;
}
.source {clear:both;}

#switch {
	margin-right:20px;
}

.svg-content-responsive {
    display: inline-block;
    top: 0;
    left: 0;
		height: 100%;
		width: 100%;
		width: calc(100% + 3em);
		margin-left: -30px;
}

/*make spans flash*/
@-webkit-keyframes pulse {
	0%   {background-color: #dbba5b;}
	50%  {background-color: #f3f3f3;}
	100% {background-color: #dbba5b;}
}

/* Standard syntax */
@keyframes pulse {
	0%   {background-color: #dbba5b;}
	50%  {background-color: #f3f3f3;}
	100% {background-color: #dbba5b;}
}

.pulse-text {
	animation-name: pulse;
	animation-duration: 1s;
}

@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   /* IE10+ specific styles go here because Microsoft killed conditionals for 10+ and IE 10+ seem to be the only browsers that use -ms-high-contrast: https://philipnewcomer.net/2014/04/target-internet-explorer-10-11-css/*/
	 .svg-content-responsive {
		 	width: 960px;
			height: 432px;
	 }
}

@media screen and (min-width:675px){
	#data {
		width:50%;
		float:left;
	}
	#about {
		float:left;
		width:50%;
		padding-right:5%;
		-moz-box-sizing:border-box;
		box-sizing:border-box;
	}
	#js-before-table-nav {
		position: absolute;
		width: 100%;
		max-width: 960px;

		/*top: 0px;*/
	}
	#table-container {
		margin-top: 160px;
	}

}
@media screen and (max-width:675px){
	#table-container {
		display: flex;
		flex-direction: column-reverse;
	}
	#data tbody {
		height:400px;
		overflow-y: overlay;
		overflow-x: hidden;
	}
	#data table th {
		width:50%;
	}
	#menu li:nth-child(1) {
		margin-bottom: 0;
	}
	#menu li:nth-child(2) {
		clear: both;
	}
	#js-select-country select {
		width: 100%;
		max-width: 675px;
		margin-top: 0px;
	}
	h2.outgoing,
	h2.incoming {
		font-size: 2em !important;
	}
}
