/*
This would have been cool but we have to support IE so everything is bad.
:root {
  --button-color-primary: #007bff;
  --button-color-secondary: #fff;
}
*/
html {
	margin-left: calc(100vw - 100%);
	margin: 0 10px;
}

html:after {
    content: '';
    position: absolute;
    top: 100%;
    width: 1%;
    height: 1%;
    opacity: 0;
}
* {
	/* box-sizing: border-box; */
}
body {
	font-family: 'Open Sans', sans-serif;
	padding: 0;
	margin: 20px 0;
	background-color: #444;
	background-image: url("../images/backgrounds/blueprint.jpg");
	overflow-x: hidden;
}

.image-container {
	/* height: 100%;
	position: absolute;
	width: 100%; */
	width: calc(100vw - 40px);
	position: relative;
	overflow: hidden;
}
.ui-draggable-handle {
	cursor: grab;
}
.ui-draggable-handle.ui-draggable-dragging {
	cursor: grabbing;
}
.controls {
    position: fixed;
    top: 0;
    left: 50%;
    background-color: #cdcdcd;
    padding: 2px;
	z-index: 1;
	box-shadow: 3px 0px 5px 5px rgba(0,0,0,.6);
    border: 1px solid #888;
	border-top: 0;
	transition: transform .2s, box-shadow .2s;
}
body.logged-in .controls {
	margin-top: 32px;
}
.controls.stowed {
	box-shadow: 0px 0px 0px 0px rgba(0,0,0,.6);
	transform: translatey( -100% );
}
.controls button {
	font-size: 22px;
}
.controls i.toggle {
	position: absolute;
	top: 0;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);

	width: 30px;
	text-align: center;
	background-color: #cdcdcd;

	border: 1px solid #888;
	border-radius: 3px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    border-top: 0;

	cursor: pointer;
}
.controls.stowed i.close {
	display: none;
}
.image-container svg  {
	min-width: 100%;
	height: auto;
	background-color: #fff;
	/* border: 5px solid #444; */
	box-sizing: border-box;
}
.image-container svg .clickable {
	fill: #009add;
	stroke: #646464;
	transition: fill .3s, stroke .3s;
}
.image-container svg .clickable.clickable-active {
    stroke: #009add;
	fill: #d48c39;
}

.link-container {
	position: absolute;
	z-index: 1;
	/* display: none; */
	/* transform: translate( -1px, -1px );
	transform: translate(-3px, -6px);
	transform: translate(6px, 1px); */
}
.link-container.link-container-round {
	border-radius: 100%;
	transform: translate(-51%,-51%);
	transform: translate(-51%, calc(-51% - 3px));
}
.link-container a,
.link-container a.inter-chart-link {
	position: absolute;
	width: 100%;
	height: 100%;
}
.link-container a[data-featherlight] {
	width: 30px;
	height: 38px;
	top: 70%;
	right: 90%;
	font-size: 30px;
	color: black;
	background: white;
	/* box-shadow: 4px -4px 2px white; */
	/* transition: text-shadow .3s; */
	transition: color .3s;
	border: 1px solid;
}
.link-container a[data-featherlight]:hover {

	/* text-shadow: 2px 2px 5px green; */
	color: #d48c39;
}
.link-container a[data-featherlight] i {
	position: absolute;
	top: 4px;
	left: 4px;
}

.tooltip {
	display: none;
	/* position: absolute; */
	/* z-index: 100; */
	font-size: 14px;
	line-height: 1.2;
	border: 1px solid #efefef;
	background-color: #fff;
	position: relative;

	/* min-width: 20vw;
	min-height: 20vw; */
	max-width: 20vw;
}
.tooltip .tooltip-content {
	padding: 1rem;
	overflow-y: scroll;
	max-height: 20vw;
}

.tooltip.tooltip-medium {
	/* min-width: 40vw; */
	/* min-height: 40vw; */
	max-width: 40vw;
}
.tooltip.tooltip-medium .tooltip-content  {
	max-height: 60vh;
}
.tooltip.tooltip-large {
	/* min-width: 60vw; */
	/* min-height: 60vw; */
	max-width: 60vw;
}
.tooltip.tooltip-large .tooltip-content  {
	max-height: 80vh;
}


.tooltip .tooltip-header {
	padding: 4px 8px;
	margin: 0;
    background: blue;
    color: #fff;
    padding: 8px;

	/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#009add+1,2989d8+50,7db9e8+100 */
	background: #009add; /* Old browsers */
	background: -moz-linear-gradient(top,  #009add 1%, #2989d8 50%, #7db9e8 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(top,  #009add 1%,#2989d8 50%,#7db9e8 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(to bottom,  #009add 1%,#2989d8 50%,#7db9e8 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#009add', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */

}




.link-container:hover .tooltip {
	display: inline-block;
	box-shadow: -3px 6px 10px 5px rgba(0,0,0,.4);
}





@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
	/* IE-only styles. Works for IE 10 & IE 11 */

	.image-container {
		display: inline-block;
	}
	.ui-draggable-handle {
		cursor: all-scroll;
	}
	.ui-draggable-handle.ui-draggable-dragging {
		cursor: pointer;
	}
}




.message-container {
    background: #fff;
    max-width: 40%;
    margin: auto;
    border-radius: 10px;
    padding: 3rem;
    margin-top: 5rem;
    position: relative;
}
.message-container .button {
	padding: .5rem 1rem;
	font-size: 1.25rem;
	line-height: 1.5;
	border-radius: .3rem;
}
body.home #main ul {
    list-style: none;
}
body.home #main ul li {}
body.home #main ul li a {

}

.button {
	display: inline-block;
	text-decoration: none;
	font-weight: 400;
	text-align: center;
	white-space: nowrap;
	vertical-align: middle;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	border: 1px solid transparent;
	padding: .375rem .75rem;
	font-size: 1rem;
	line-height: 1.5;
	border-radius: .25rem;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	color: #fff;;
	background-color: #007bff;
	border-color: #007bff;
}

.button:hover {
	color: #007bff;
	background-color: #fff;;
}

html.with-featherlight {
	overflow: auto !important;
}
div.featherlight:last-of-type {
    background: rgba(0, 0, 0, 0.3);
}

div.featherlight .featherlight-content {
	background-color: #cdcdcd;
}

aside#secondary {
	max-width: 115px;
	position: fixed;
	top: 10%;
	right: 0;
	transform: translateX(0%);
	transition: transform .2s;
	z-index: 1;
}
aside#secondary.stowed {
	transform: translateX(100%);
}
aside#secondary a.menu-toggle {
	position: absolute;
	top: 0;
	white-space: nowrap;
	overflow: hidden;
	padding-right: 10px;
	text-align: right;
	font-size: 30px;
	color: #777;
    border: 1px solid;
    padding-left: 10px;
    background-color: #eee;

	border-radius: 5px;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
	border-bottom: 0;

	text-decoration: none;
	transform: translateY(-100%);

	right: 0;

}
aside#secondary.stowed a.menu-toggle {
	right: 100%;
	border-right: 0;
	border-bottom: 1px solid;
	border-top-right-radius: 0;
	border-bottom-left-radius: 5px;
	transition: right .5s .2s;

}
aside#secondary a.menu-toggle i {
    /* position: relative;
    top: 0;
    left: 0; */
}
aside#secondary a.menu-toggle i.open {
	right: 100%;
	display: none;
}
aside#secondary.stowed a.menu-toggle i.close {
	display: none;
}
aside#secondary.stowed a.menu-toggle i.open {
	display: initial;

}
aside#secondary div#mega-menu-wrap-menu-1 ul#mega-menu-menu-1 > li.mega-menu-item {
	display: block;
}
aside#secondary div#mega-menu-wrap-menu-1 ul#mega-menu-menu-1 > li.mega-menu-flyout ul.mega-sub-menu {
    width: auto;
	right: 100%;
	top: 0;
	max-height: 60vh;
	border: 1px solid;
	overflow: auto;
}
aside#secondary div#mega-menu-wrap-menu-1 ul#mega-menu-menu-1 > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
    white-space: nowrap;
}




div.accordion .accordion-section-body {
	padding: 0;
}
.accordion .accordion-section-body a {
	display: block;
	padding: .5rem 1rem;
}
.accordion .accordion-section-body a:nth-child(odd) {
	background: #efefef;
}




/* .link-container.quadrant-bottom-right .tooltip {
	bottom: calc( 100% - 15px );
	bottom: 0;
	right: calc( 100% - 15px );
	right: 100%;
}
.link-container.quadrant-bottom-left .tooltip {
	bottom: calc( 100% - 15px );
	bottom: 0;
	left: calc( 100% - 15px );
	left: 100%;
}
.link-container.quadrant-top-right .tooltip {
	top: calc( 100% - 15px );
	top: 0;
	right: calc( 100% - 15px );
	right: 100%;
}
.link-container.quadrant-top-left .tooltip {
	top: calc( 100% - 15px );
	top: 0;
	left: calc( 100% - 15px );
	left: 100%;
} */
