body  {
	background:#FFF; 
	font:1em 'Roboto', Tahoma, Helvetica, sans-serif; 
	font-weight:300; color:#000;  
	width:100%; height:100%; 
	min-height:100%;
}

* { border: 0px solid red; }
* { margin: 0; padding: 0; }
* {
	webkit-box-sizing: border-box;
	moz-box-sizing: border-box;
	box-sizing: border-box;
}

circle.circle {
	-moz-transition: 1.5s ease; -ms-transition: 1.5s ease; -o-transition: 1.5s ease; -webkit-transition: 1.5s ease; -khtml-transition: 1.5s ease; transition: 1.5s ease; 
}

circle { /*fill:#f0f0f0;*/ }
path, polyline { fill:none;}
img {display:block;}

a, a:visited  {
	color:#000;
	text-decoration:none;
}

h1 { text-align:center; margin:1em; }

.node { cursor:move; stroke:#000; stroke-width:1.5px; fill: #ccc;}
.fixed { stroke:#000; stroke-width:1.5px;}
.hide { display:none; }

.noselect, .noselect * {
	-webkit-touch-callout: none; /* iOS Safari */
	-webkit-user-select: none;   /* Chrome/Safari/Opera */
	-khtml-user-select: none;    /* Konqueror */
	-moz-user-select: none;      /* Firefox */
	-ms-user-select: none;       /* Internet Explorer/Edge */
	user-select: none;           /* Non-prefixed version, currently not supported by any browser */
}
.noclick {
	pointer-events: none;
}
.click {
	pointer-events: all;
	cursor: pointer; cursor: hand;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
	outline: none;
}

input {
	background-color:transparent;
}

.pad1 { padding: 1em; }
.pad2 { padding: 2em; }

.d3-tip {
  line-height: 1;
  font-weight: bold;
  padding: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 2px;
}

/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
  display: inline;
  font-size: 10px;
  width: 100%;
  line-height: 1;
  color: rgba(0, 0, 0, 0.8);
  content: "\25BC";
  position: absolute;
  text-align: center;
}

/* Style northward tooltips differently */
.d3-tip.n:after {
  margin: -1px 0 0 0;
  top: 100%;
  left: 0;
}

.legend-group {
	display:inline-block;
	font-size:0.9em;
/*	line-height:0.9em; */
	margin-right:1em;
	padding-left:1em;
	position:relative;
}

.legend-icon {
	display:inline-block;
	border-radius: 0.4em;
	width:0.8em;
	height:0.8em;
	/*margin-right:0.5em;*/
	position:absolute;
	top:0.3em;
	left:0px;
}
.legend-button {
	display:inline-block;
	font-size:1em;
/*	line-height:1em; */
	margin-right:0.2em;
	background-color:#444;
	display:inline-block;
	padding:0.5em 1em 0.4em;
	color:#fff;
	cursor: pointer;
	margin-bottom:0.5em;
	border-bottom:0.2em solid #666;
	-k-transition: all 0.5s; /* Safari */
	-o-transition: all 0.5s; /* Safari */
	-ms-transition: all 0.5s; /* Safari */
	-webkit-transition: all 0.5s; /* Safari */
    transition: all 0.5s;
}
.selected-button {
	border-bottom:0.2em solid #f00000;
}
.legend-button:hover {
	background-color:#000;
}




#tooltip {
	color: white;
	opacity: .9;
	background: #333;
	padding: 5px;
	border: 1px solid lightgrey;
	border-radius: 5px;
	position: absolute;
	z-index: 10;
	visibility: hidden;
	white-space: nowrap;
	pointer-events: none;
}

#tooltipsmall {
	color: white;
	opacity: .9;
	background: #333;
	padding: 2px 4px;
	border: 1px solid lightgrey;
	position: absolute;
	z-index: 10;
	visibility: hidden;
/*	white-space: nowrap;	*/
	pointer-events: none;
	font-size:12px;
	min-width:200px;
	max-width:400px;
	
}

#wrapper {
	position: fixed;
	width: 100%;
	height: 100%;
	top:0px;
	right:0px;
	overflow:hidden;
}
#interface {
	position: absolute;
	width: 100%;
	height: 100%;
	top:0px;
	right:0px;
	overflow:hidden;
}
#zoom-wrapper {
	position: absolute;
	width: 100%;
	height: 100%;
	top:0px;
	right:0px;
	overflow:hidden;
}

.title h1 {
	font-size:2em;
	cursor: pointer;
	margin: 0em;
	display: inline;
	font-weight:300;
}


@media ( min-width: 1200px ){
	.title h1 { font-size: 2em;}
}
@media ( max-width: 1200px ){
	.title h1 { font-size: 1.9em;}
}
@media ( max-width: 950px ){
	.title h1 { font-size: 1.8em;}
}
@media ( max-width: 750px ){
	.title h1 { font-size: 1.6em;}
}
@media ( max-width: 450px ){
	.title h1 { font-size: 1.4em;}
}

.title {
	position:absolute;
	overflow:hidden;
	top:0px;
	width:100%;
	padding:1em 1em 0.2em;
}

.legend {
	position:absolute;
	overflow:hidden;
	bottom:0px;
	width:100%;
	padding:0.2em 1em 0.5em
}
.panel {
	background-color:rgba(0,0,0,0)
}
.panel-dark {
	background-color:rgba(0,0,0,0)
}
.panel:hover {
	/*background-color:rgba(0,0,0,0.2)*/
}

.button-reset { opacity:0.6; }
.button-reset:hover ,.button-reset:active { opacity:1; }

#buttons {
	width: 100%;
	position: relative;
	text-align:center;
	margin-top:10px;
	margin-bottom:10px;
}
.button { 
	display: inline-block; 
	border:1px solid #ddd;
	color: #444;
	padding:10px;
	width:18%;
} 
.button:hover { 
	border:1px solid #aaa;
	color: #000;
} 
.select-button {
	background:#eee;
	border:1px solid #ddd;
	color: #000;
	padding:10px;
}
.select-button .selected {
	border-bottom:2px solid red;
}
.bold {font-weight:700;}
#toolLineTxt, #toolLine {
	
	font-family:'Roboto', Tahoma, Helvetica, sans-serif; 
	font-weight:700; 
	font-size:10px;
	pointer-events:none;
}

.fade { opacity:0.65; }

#legends {
	width: 100%;
	
	position: relative;
	text-align:left;
}
.legend-col {
	width:20%;
	display: inline-block;
	vertical-align:top;
}

.selected {
	background:#eee !important;
}
.selected:hover {
	background:#ddd !important;
}


.col50last  {
	height:100%;
}	
.col50 {
	padding-right:12px;
	margin-right:12px;
	border-right:1px solid #bbb;
	min-height:66px;
	vertical-align:center;
	height:100%;
}
.left {
	float:left;
}
.right {
	float:right;
}
.overhidden {
	overflow:hidden;
}
.clear { clear:both; }
.gray {
	background-color:#ddd; padding:12px;
}
.button-ukryj {position:absolute; top:24px; right:60px; padding: 4px 12px; border:1px solid #aaa;}
.button-ukryj:hover {border:1px solid #888;}

#debug {
	display:none;
	font-size:10px;
	position:fixed;
	top:0px; right:0px;
	width:10%;
	height:100%;
	padding:10px;
	background-color:rgba(255,128,128,0.6);
	color:#000;
	overflow-y:scroll;
}

.toggle-switch {
	width:2em;
	height:1em;
	border-radius:0.5em;
	position: relative;
}
.toggle-on { background-color:#8f8; }
.toggle-off { background-color:#ddd; }
.toggle-switch:after {
	position: absolute;
	display: block;
	width: 0.8em;
	height:0.8em;
	border-radius:0.4em;
	top: 0.1em;
	background-color:#fff;
/*	border:0.05em solid #444;*/
	content:"";
	-webkit-box-shadow: 0px 0px 0.2em 0px rgba(0,0,0,1);
	-moz-box-shadow: 0px 0px 0.2em 0px rgba(0,0,0,1);
	box-shadow: 0px 0px 0.2em 0px rgba(0,0,0,1);
}
.toggle-on:after { left: 1.1em; }
.toggle-off:after { left: 0.1em; }
