/* General formatting */
body {
	padding: 0 10px;
	font: 18px/1.5 -apple-system, BlinkMacSystemFont, "avenir next",avenir, "Segoe UI", "lucida grande", "helvetica neue", helvetica, "Fira Sans",roboto, noto, "Droid Sans", cantarell, oxygen, ubuntu, "franklin gothic medium", "century gothic", "Liberation Sans",
	sans-serif;
}

h1, h2, h3 {
	line-height: 1.2
}

/* Your text should be in a nice narrow column */
.content-column {
	max-width: 650px;
	margin: 40px auto;
}

/* But your visualization should be full-width and full-height */
.vis-holder {
  width: 100%;
  height: 100%;
}

.vis-svg {
  background-color: #f4f1f0;
}

/* Fork on GitHub ribbon via https://codepo8.github.io/css-fork-on-github-ribbon/# */  
#forkongithub a{
	background:#00F;
	color:#fff;
	text-decoration:none;
	font-family:arial,sans-serif;
	text-align:center;
	font-weight:bold;
	padding:5px 40px;
	font-size:1rem;
	line-height:1.4rem;
	position:relative;
	transition:0.5s;
}
#forkongithub a:hover{
	background:#118;
	color:#fff;
}
#forkongithub a::before,#forkongithub a::after{
	content:"";
	width:100%;
	display:block;
	position:absolute;
	top:1px;
	left:0;
	height:1px;
	background:#fff;
}
#forkongithub a::after{
	bottom:1px;
	top:auto;
}
@media screen and (min-width:1000px){
	#forkongithub{
		position:absolute;
		display:block;
		top:0;
		right:0;
		width:200px;
		overflow:hidden;
		height:200px;
		z-index:9999;
	}
	#forkongithub a{
		width:200px;
		position:absolute;
		top:60px;
		right:-60px;
		transform:rotate(45deg);
		-webkit-transform:rotate(45deg);
		-ms-transform:rotate(45deg);
		-moz-transform:rotate(45deg);
		-o-transform:rotate(45deg);
		box-shadow:4px 4px 10px rgba(0,0,0,0.8);
	}
}

/*visualization placeholder*/
.vis-holder{
	margin: auto;
	width: 100%;
	height: 700px;
}

/*heatmaps placeholder*/
.maps{
	margin: auto;
	width: 100%;
	height: 450px;
}

/*placeholder for a row of contents*/
.row{
	width: max(100%, 1100px);
	height: 80px;
}

/*colorbar placeholder*/
.bar-row{
	position: absolute;
	width: 410px;
	height: 60px;
	margin-left: max(calc(50% - 200px), 368px);
}

/*heatmap on the left*/
.left{
	position: absolute;
	margin-left: max(calc(50% - 448px - 20px), 100px);
	width: 448px;
	height: 64px;
	text-align: center;
}

/*heatmap on the right*/
.right{
	position: absolute;
	margin-left: max(calc(50% + 20px), 588px);
	width: 448px;
	height: 64px;
	text-align: center;
}

.left-caption{
	float: left;
	margin-left: max(calc(50% - 600px), 0px);
}

.scrollbar{
	float: left;
	margin-left: max(calc(50% - 400px), 150px);
	width: 650px;
	height: 80px;
}

/*play button*/
.play{
	position: absolute;
	float: right;
	width: 50px;
	height: 50px;
	margin-top: 10px;
	margin-right: 50px;
}

.frame-id{
	float: left;
	margin-left: 10px;
	width: 100px;
	height: 50px;
}

.button-holder{
	position: absolute;
	margin-left: max(860px, 78%);
	width: 100px;
	height: 60px;
}

/*placeholder for the row of zoom in vector field*/
.zoom-row{
	width: max(100%, 1100px);
	height: 300px;
}

/*vector field on the left*/
.zoom-left{
	position: absolute;
	margin-left: max(calc(50% - 448px - 20px), 100px);
	width: 448px;
	height: 300px;
	text-align: center;
}

/*vector field on the right*/
.zoom-right{
	position: absolute;
	margin-left: max(calc(50% + 20px), 588px);
	width: 448px;
	height: 300px;
	text-align: center;
}

.box {
	position: relative;
	width: 900px;
	margin: 2em auto;
}

/*disable brushing resizing and regeneration*/
/*cite: https://stackoverflow.com/questions/41177180/disable-brush-resize-dc-js-d3-js*/
/*cite: https://bl.ocks.org/EfratVil/5edc17dd98ece6aabc9744384e46f45b*/
.handle {
	pointer-events: none;
}

.overlay {
	pointer-events: none;
}

.checkboxes label {
	display: inline-block;
	padding-right: 10px;
	white-space: nowrap;
  }
.checkboxes input {
vertical-align: middle;
}
.checkboxes label span {
vertical-align: middle;
font-size: medium;
}


.axis text {
    font-size: 15px;
}

.parameter-value text {
	font-size: 15px;
}


button {
	background-color: rgba(154, 142, 142, 0.797);
	border: none;
	color: rgb(250, 250, 250);
	padding: 4px 8px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	margin: 4px 2px;
	cursor: pointer;
  }

#button-play{
	padding: 4px 16px;

}

.expl{
	font-size: 10px;
	color: gray;
	margin-left: max(calc(50% - 600px), 0px);
}