@import url("https://fonts.googleapis.com/css?family=Roboto:300,400&subset=latin,latin-ext");

:root {
	--background-color: #1a1a1a;
	--text-color: #cfd4dc;
	--link-color: #03a9f4;							/* lightBlue-500 */
	--logo-color: #ffffff;							/* white */
	--button-color: #b0bec5;						/* blueGrey-200 */
	--button-hover-color: #eceff1;					/* blueGrey-50  */
	--slider-background: #eceff1;					/* blueGrey-50  */
	--slider-border-color: #b0bec5;					/* blueGrey-200 */
	--slider-handle-color: #03a9f4;					/* lightBlue-500 */
	--slider-connect-color: #4fc3f7;				/* lightBlue-300 */
	--slider-active-color: #ffffff66;				/* rgba(255, 255, 255, 0.4) */
	--slider-tooltip-color: #ffffff;				/* white */
	--slider-tooltip-backg: #01579b;				/* lightBlue-900 */
	--help-cover-color: #ffffffb3;					/* rgba(255, 255, 255, 0.7) */
	--kbd-shadow-color: #ffffffcc;					/* rgba(255, 255, 255, 0.8) */
	--largetext-color: #b0bec5;						/* blueGrey-200 */
	--crosshair-color: rgb(69, 90, 100, 0.3);		/* blueGrey-700 */
}

html[data-theme='light'] {
	--background-color: #ffffff;
	--text-color: #263238;
	--link-color: #03a9f4;							/* lightBlue-500 */
	--logo-color: #1e4a88;							/* KSH blue */
	--button-color: #546e7a;						/* blueGrey-600 */
	--button-hover-color: #263238;					/* blueGrey-900 */
	--slider-background: #eceff1;					/* blueGrey-50  */
	--slider-border-color: #b0bec5;					/* blueGrey-200 */
	--slider-handle-color: #03a9f4;					/* lightBlue-500 */
	--slider-connect-color: #4fc3f7;				/* lightBlue-300 */
	--slider-active-color: #8080804d;				/* rgba(128, 128, 128, 0.3); */
	--slider-tooltip-color: #ffffff;				/* white */
	--slider-tooltip-backg: #01579b;				/* lightBlue-900 */
	--help-cover-color: #000000b3; 					/* rgba(0, 0, 0, 0.7) */
	--kbd-shadow-color: #000000cc;					/* rgba(0, 0, 0, 0.8) */
	--largetext-color: #455a64;						/* blueGrey-700 */
	--crosshair-color: rgb(176, 190, 197, 0.3);		/* blueGrey-200 */
}

#chart .highcharts-legend-item,
#chart .highcharts-axis,
#chart .highcharts-axis-labels,
#chart .highcharts-data-label {
	fill: var(--text-color);
}
#chart .highcharts-rendertext {
	fill: var(--largetext-color);
}
#chart .highcharts-crosshair {
	stroke: var(--crosshair-color);
}

#chart .highcharts-data-label {
	opacity: 0;
	animation: fadeIn 0.2s ease-in-out 1s forwards;
}
@keyframes fadeIn {
	  0% { opacity: 0; }
	100% { opacity: 1; }
}

* { outline: none; }

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
	font: 400 16px/1.5 Roboto, "Helvetica Neue", Arial, sans-serif;
	overflow: hidden;
	background: var(--background-color);
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#page {
	position: absolute;
	width: 100%;
	height: 100%;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

/* a cím és a light/dark váltó */
header {
	justify-content: center;
}

header h1 {
	margin: 0 3rem;
	font-size: 1.5rem;
	font-weight: 300;
	text-align: center;
	line-height: 1.2;
	color: var(--text-color);
}

header .subtitle {
	margin: 0 3rem 0.5rem;
	font-size: 1rem;
	font-weight: 300;
	text-align: center;
	color: var(--text-color);
}

@media (max-width:800px) {
	header h1 {
		font-size: 1.2rem;
	}
	header .subtitle {
		font-size: 0.9rem;
	}
}

@media (max-width:600px) {
	header h1 {
		font-size: 1rem;
	}
	header .subtitle {
		font-size: 0.8rem;
	}
}

#lightMode {
	position: absolute;
	top: 2px;
	right: 2px;
	height: 32px;
	width: 32px;
	margin: 0;
	padding: 0;
	cursor: pointer;
	background: none;
	border: none;
	z-index: 999;
}

#lightMode #dark { display: none; }

#lightMode.light #light { display: none; }
#lightMode.light #dark  { display: block; }

#lightMode svg {
	height: 100%;
	width: 100%;
}

#lightMode path {
	fill: var(--button-color);
}

#lightMode:hover path {
	fill: var(--button-hover-color);
}

/* ide jön a grafikon */
#chart {
	flex-grow: 1;
}

/* logó - évcsúszka - súgó gomb */
footer {
	height: 4rem;

	display: flex;
	justify-content: space-between;
}

footer #kshlogo {
	margin: 0.5rem;
}

footer #kshlogo svg {
	height: 3rem;
	opacity: .6;
}

footer #kshlogo svg path {
	fill: var(--logo-color);
}

footer #kshlogo:hover svg {
	opacity: .8;
}

footer #helpShow {
	width: 2rem;
	height: 2rem;
	margin: 1rem 0.5rem;
	font-size: 1.25rem;
	cursor: pointer;
	background: none;
	border-radius: 50%;
	border: 2px solid var(--button-color);
	color: var(--button-color);
}

footer #helpShow:hover {
	color: var(--button-hover-color);
	border-color: var(--button-hover-color);
}

footer #slider-wrapper {
	width: 100%;
	text-align: center;
}

footer #slider {
	position: relative;
	display: inline-block;
	width: 90%;
}

@media (max-width:800px) {
	footer #kshlogo {
		display: none;
	}
	footer #slider-wrapper {
		padding-left: 1rem;
		text-align: left;
	}
	footer #slider {
		width: 95%;
	}
}

#sliderYear {
	height:10px;
	margin-right: 60px;
}

#sliderYear .noUi-handle::before,
#sliderYear .noUi-handle::after {
	display: none; /* nem kellenek vonalak a fogóra */
}

#sliderYear.noUi-target { /* a csúszka háttere */
	background: var(--slider-background);
	border: 1px solid var(--slider-border-color);
	border-radius: 4px;
	box-shadow: none;
}

#sliderYear .noUi-connect { /* az aktív rész háttere */
	background: var(--slider-connect-color);
}

#sliderYear .noUi-handle { /* a fogó */
	height: 24px;
	width: 24px;
	top: -10px;
	right: -12px;
	background: var(--slider-handle-color);
	box-shadow: none;
	border: none;
	border-radius: 50%;
	cursor: e-resize;
}

#sliderYear .noUi-active { /* az aktív fogó */
	box-shadow: var(--slider-active-color) 0px 0px 2px 8px;
}

#sliderYear .noUi-pips { /* a csúszka alatti számok */
	font-size: 14px;
	color: var(--button-color);
}

#sliderYear .noUi-marker,
#sliderYear .noUi-marker-sub,
#sliderYear .noUi-marker-large { /* a csúszka alatti vonalak */
	background: var(--button-color);
}
#sliderYear .noUi-marker-large {
	height: 12px;
}

#sliderYear .noUi-tooltip {
	display: none;
	position: absolute;
	bottom: -44px;
	margin-bottom: 3px;
	padding: 5px 10px;
	font-size: 14px;
	text-align: center;
	white-space: nowrap;
	color: var(--slider-tooltip-color);
	border: none;
	border-radius: 4px;
	background: var(--slider-tooltip-backg);
}
#sliderYear .noUi-tooltip::after {
	content: '';
	position: absolute;
	top: -8px;
	left: 50%;
	margin-left: -8px;
	border-width: 0 8px 8px 8px;
	border-style: solid;
	border-color: transparent transparent var(--slider-tooltip-backg) transparent;
}

#sliderYear .noUi-active .noUi-tooltip {
	display: block;
	z-index: 999;
}

#animPlay {
	position: absolute;
	top: 0;
	right: 0;
	height: 44px;
	width: 44px;
	margin: 0;
	padding: 10px;
	cursor: pointer;
	background: none;
	border: 2px solid var(--button-color);
	border-radius: 50%;
	touch-action: none;
}

#animPlay #pause { display: none; }

#animPlay.play #play  { display: none; }
#animPlay.play #pause { display: block; }

#animPlay:hover {
	border-color: var(--button-hover-color);
}

#animPlay svg {
	height: 100%;
	width: 100%;
}

#animPlay path {
	fill: var(--button-color);
}

#animPlay:hover path {
	fill: var(--button-hover-color);
}

#help {
	display: block;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background-color: var(--help-cover-color);
	z-index: 999;
}

#help.show {
	transition: opacity ease-in-out 0.5s;
	visibility: visible;
	opacity: 1;
}

#help.hide {
	transition: opacity ease-in-out 0.5s, visibility linear 0s 0.5s;
	visibility: hidden;
	opacity: 0;
}

#helpContent {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90vw;
	max-width: 60rem;
	height: 90vh;
	max-height: 90vh;
	color: var(--text-color);
	background: var(--background-color);
	overflow-y: auto;
}

#helpContent header, #helpContent p {
	margin: 0;
	padding: 0.5rem 1rem;
}

#helpContent header {
	display: flex;
	justify-content: space-between;
	position: sticky;
	top: 0;
	background: var(--background-color);
}

#helpContent header button {
	font-size: 2rem;
	color: var(--button-color);
	background: transparent;
	border: 0;
	cursor: pointer;
}

#helpContent header button:hover {
	color: var(--button-hover-color);
}

#helpContent h2 {
	margin: 0;
	padding: 0;
	font-size: 1.666rem;
}

#helpContent p {
	font-size: 1rem;
}

#helpContent a {
	margin: 0 2px;
	color: var(--link-color);
	text-decoration: none;
	background-image: linear-gradient(to right, var(--text-color) 50%, var(--link-color) 50%);
	background-size: 200% 1px;
	background-repeat: no-repeat;
	background-position: 100% 100%;
	transition: background-position .3s;
}

#helpContent a:hover {
	background-position: 0% 100%;
}

#helpContent table {
	padding: 0 1rem 1rem 1rem;
}

#helpContent th {
	text-align: left;
}

#helpContent td {
	padding-left: 1rem;
}

#helpContent kbd {
	display: inline-block;
	margin: 2px 0;
	padding: 4px;
	font: 400 0.9em/1 Roboto, "Helvetica Neue", Arial, sans-serif;
	white-space: nowrap;
	color: var(--background-color);
	background: var(--text-color);
	border: 1px solid var(--text-color);
	border-radius: 3px;
	box-shadow: 0px 2px 1px var(--kbd-shadow-color), 0 2px 1px var(--kbd-shadow-color) inset;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#helpContent kbd.arrow {
	width: 0.9rem;
	text-align: center;
}

/* nouislider.min.css */
.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;right:0;height:100%;width:100%;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{top:-100%;width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;right:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;right:-6px;bottom:-17px}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background:#FAFAFA;border-radius:4px;border:1px solid #D3D3D3;box-shadow:inset 0 1px 1px #F0F0F0,0 3px 6px -5px #BBB}.noUi-connects{border-radius:3px}.noUi-connect{background:#3FB8AF}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #D9D9D9;border-radius:3px;background:#FFF;cursor:default;box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #EBEBEB,0 3px 6px -3px #BBB}.noUi-active{box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB}.noUi-handle:after,.noUi-handle:before{content:"";display:block;position:absolute;height:14px;width:1px;background:#E8E7E6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background:#B8B8B8}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#CCC}.noUi-marker-sub{background:#AAA}.noUi-marker-large{background:#AAA}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);padding-left:25px}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0,50%);transform:translate(0,50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #D9D9D9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%,0);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);top:50%;right:120%}.noUi-horizontal .noUi-origin>.noUi-tooltip{-webkit-transform:translate(50%,0);transform:translate(50%,0);left:auto;bottom:10px}.noUi-vertical .noUi-origin>.noUi-tooltip{-webkit-transform:translate(0,-18px);transform:translate(0,-18px);top:auto;right:28px}