html, body, div, h1, h2, h3, h4, h5, h6, ul, li, table, iframe {
	margin: 0;
	padding: 0;
}

html { -webkit-text-size-adjust: none; } /* Prevent font scaling in landscape */

body {
	font-family: helvetica, sans-serif;
	color: #333;
	overflow-y: visible;
}
body.no-series { background-color: #eee; }

ul { list-style: none; }

img.figure {
	display: block;
	margin: auto;
	width: 100%;
}

img.logo { 
	margin: 3px 10px; 
}

table {
	border: 2px solid #fff;
}

tr:nth-of-type(odd) td { 
  background: #eee; 
}

th {
	background: #3366cc;
	color: #fff;
	padding: 3px 5px;
}

td {
	background: #d9d9d9;
	padding: 3px;
}

#osd-frame {
	border: none;
	height: 100%;
	width: 100%;
}

#header {
	color: #fff;
	background: #3366CC;
	height: 2em;
	line-height: 2em;
	position: relative;
}

#header h1 {
	font-size: 1.2em;
	text-align: center;
}

#series-suggest-container {
	position: absolute;
	left: 0.5em;
	top: 0em;
}

#series-suggest-container.no-series { 
	position: static;
	display: block;
	text-align: center;
	padding-top: 1em;
	background-color: #eee;
	border-bottom: none;
}

#series-suggest-container.no-series > #series-suggest { 
	border: 1px solid #ccc;
}

.search-input {
	font-size: 1em;
	height: 1.8em;
	width: 12em;
	border: none;
	padding-left: 0.3em;
}

#search-button, #menu-button { display: none; }

#tabs-container {
	border-bottom: 1px solid #666;
	padding-bottom: calc(0.3em - 1px);
	padding-top: 1em;
}

.autocomplete-suggestions {
	overflow: auto;
	padding-bottom: 1px;
}

.autocomplete-suggestion {
	background: #fff;
	border: 1px solid #ccc;
	padding: 2px 5px;
	margin-bottom: -1px;
	cursor: pointer;
}

.autocomplete-selected {
	background: #d6ebff;
}

.no-suggestion-notice {
	background: #fff;
	color: red;
	border: 1px solid #ccc;
	padding: 0.5em;
}

.sde-info {
	margin: 10% auto;
	max-width: 25em;
	padding: 1em 2em;
	border: 1px solid #ccc;
	line-height: 1.5em;
	background-color: #fff;
}

#tabs {
	margin-left: 0.8em;
}

#tabs li {
	display: inline;
}

#tabs li a  {
	padding: 0.3em 0.6em;
	border: 1px solid #666;
	font-weight: bold;
	color: #666;
	text-decoration: none;
	background: #f5f5f5;
}

#tabs li a:hover  {
	color: #3366cc;
	background: #EBF0FA;
}

#tabs li a.active {
	color: #333;
	background: #fff;
	border-bottom: 1px solid #fff;
	cursor: auto;
}

#bd-list li {
	margin: 5px 0;
}

#map-canvas {
	width: 100%;
	height: 400px;
}

#mask {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	z-index: 99;
	background: #000;
	opacity: 0.5;
	filter: alpha(opacity=50);
}

#popup {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: #fff;
	border: 2px solid #3366CC;
	z-index: 100;
	margin-top: 2%;
	margin-right: auto;
	margin-left: auto;
	max-width: 96%;
	max-height: 92%;
}

#popup-content {
	max-height: calc(100% - 24px);
	padding: 10px;
	overflow: auto;
}

#popup-close-x {
	position: absolute;
	top: 5px;
	right: 5px;
	font-size: 1.1em;
	padding: 0 0.3em;
	color: #fff;
	border: 1px solid #a30000;
	background: #cc0000;
	cursor: pointer;
}

#popup img {
	display: block;
	margin: auto;
}

.series-assn-fig {
	margin: 0.5em;
	padding: 0 1em;
	width: calc(50% - 3em - 2px);
	float: left;
	border: 1px solid #ccc;
}

p.img-message {
	text-align: center;
	font-style: italic;
}

p.caption {
	max-width: 50em;
}

.tab-content {
	padding: 10px 10px 0;
	font-size: 0.9em;
}

.tab-content p {
	margin: 10px 0;
	line-height: 130%;
}

 /* ---- CSS for D3 Chart */
 .node circle {
  fill: #999;
}

.node text {
  font: 10px sans-serif;
}

.node--internal circle {
  fill: #555;
}

.node--internal text {
  text-shadow: 0 1px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff;
}

.link {
  fill: none;
  stroke: #555;
  stroke-opacity: 0.4;
  stroke-width: 1.5px;
}

div.tooltip {	
    position: absolute;			
    text-align: left;			
    width: 450px;					
    height: 15px;					
    padding: 2px;		
		background: lightsteelblue;
    font: 10px sans-serif;
    border: 0px;		
    pointer-events: none;			
}

/* --- Media Queries ----- */
@media only screen and (max-width: 1150px) {

#tabs-container {
	border-bottom: none;
}

#tabs li {
	display: inline-block;
	margin-bottom: 1em;
}

#tabs li a.active {
	border-bottom: 1px solid #666;
}

#popup {
	max-width: none;
	max-height: none;
	margin-top: 0;
}

}

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

.app-title {
	display: none;
}

}

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

#search-button, #menu-button {
	position: absolute;
	top: 0;
	display: inline-block;
	font-size: 1.6em;
	padding: 0.1em 0.2em;
}

#search-button {
	left: 0.2em;
	background-color: #234790;
}

#menu-button {
	right: 0.2em;
	background-color: #234790;
}

#search-button.active, #menu-button.active {
	background-color: #193366;
}

#tabs-container { 
	display: none;
	position: absolute;
	z-index: 20;
	background-color: #fff;
	border-bottom: 2px solid #ccc;
}

#series-suggest-container:not(.no-series) { 
	display: none;
	position: absolute;
	top: 2em;
	left:0;
	right: 0;
	padding: 0.2em;
	padding-bottom: 1em;
	z-index: 10;
	background-color: #fff;
	border-bottom: 2px solid #ccc;
}

#series-suggest { 
	border: 1px solid #ccc;
}

.autocomplete-suggestion {
	padding: 5px;
}

.sde-info {
	margin: 1em auto 0;
	padding: 0 1em;
}

#popup {
	border: none;
}

#popup-close-x {
	font-size: 1.5em;
}

/* Force table to not be like tables anymore */
table, thead, tbody, th, td, tr { 
	display: block; 
}

/* Hide table headers (but not display: none;, for accessibility) */
thead tr { 
	position: absolute;
	top: -9999px;
	left: -9999px;
}

tr { border: 1px solid #ccc; }

td { 
	/* Behave  like a "row" */
	border: none;
	border-bottom: 1px solid #fff; 
	position: relative;
	padding-left: 45%; 
}

td:before { 
	/* Now like a table header */
	position: absolute;
	/* Top/left values mimic padding */
	top: 6px;
	left: 6px;
	width: 40%; 
	padding-right: 10px; 
	white-space: nowrap;
	content: attr(data-label);
}

a.report-link {
	display: inline-block;
	margin: 0.3em;
}

}

