@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700&subset=latin,latin-ext");

html, body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	font: 400 16px/1.5 "Roboto Condensed", "Arial Narrow", sans-serif;
	color: #455a64;
	background-color: #fff;
	-webkit-touch-callout: none;
	  -webkit-user-select: none;
	   -khtml-user-select: none;
	     -moz-user-select: none;
	      -ms-user-select: none;
	          user-select: none;
}

html {
	box-sizing: border-box;
	-ms-overflow-style: scrollbar;
}

*, *::before, *::after {
	box-sizing: inherit;
}

.nojs {
	display: none !important;
}

/* maga az oldal és a főbb elemek */
#page {
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-flex-wrap: nowrap;
	    -ms-flex-wrap: nowrap;
	        flex-wrap: nowrap;
	-webkit-justify-content: flex-start;
	          -ms-flex-pack: start;
	        justify-content: flex-start;
	-webkit-align-items: center;
	     -ms-flex-align: center;
	        align-items: center;

	height: 100%;
}

#page > header,
#page > footer {
	flex: 0 0 auto;
	width: 100%;
	margin: 0 auto;
}

#page > main {
	flex: 1 0 auto;
	width: 100%;
}

#page > header {
	margin-top: 5px;
	padding-bottom: 5px;
	text-align: center;
}

h1 {
	margin: 0;
	font-size: 1.6666rem;
	font-weight: 300;
}

#page > header > div {
	height: 5px;
}

#page > header div span {
	display: inline-block;
	width: 20%;
	height: 100%;
}

#page > header > div span:nth-child(1) { background: #0081c9; }
#page > header > div span:nth-child(2) { background: #fcb131; }
#page > header > div span:nth-child(3) { background: #231f20; }
#page > header > div span:nth-child(4) { background: #00a651; }
#page > header > div span:nth-child(5) { background: #ee2e4e; }

#page > footer {
	position: relative;
	max-width: 1200px;
	padding: 5px;
}

#kshlogo {
	opacity: .7;
	-webkit-transition: opacity 0.2s ease-out;
	   -moz-transition: opacity 0.2s ease-out;
	    -ms-transition: opacity 0.2s ease-out;
	     -o-transition: opacity 0.2s ease-out;
	        transition: opacity 0.2s ease-out;
}

#kshlogo:hover {
	opacity: 1;
}

#kshlogo img {
	border: none;
}

#buttons {
	display: block;
	position: absolute;
	bottom: 8px;
	right: 0;
	height: 34px;
	padding: 0;
}
#buttons button {
	position: relative;
	width: 34px;
	height: 34px;
	margin-left: .25em;
	padding: 0;
	border-width: 1px;
	border-style: solid;
	border-radius: 50%;
	background-color: #fff;
	outline: none;
	cursor: pointer;
	overflow: hidden;
	opacity: .8;
	-webkit-transition: opacity 0.2s ease-out;
	   -moz-transition: opacity 0.2s ease-out;
	    -ms-transition: opacity 0.2s ease-out;
	     -o-transition: opacity 0.2s ease-out;
	        transition: opacity 0.2s ease-out;
}
#buttons button:hover {
	opacity: 1;
}
#buttons svg {
	width: 32px;
	height: 32px;
}
#buttons button:nth-child(1) { border-color: #0081c9; }
#buttons button:nth-child(2) { border-color: #c47e04; }
#buttons button:nth-child(3) { border-color: #231f20; }
#buttons button:nth-child(4) { border-color: #00a651; }
#buttons button:nth-child(5) { border-color: #ee2e4e; }
#buttons button:nth-child(1) svg { fill: #0081c9; }
#buttons button:nth-child(2) svg { fill: #c47e04; }
#buttons button:nth-child(3) svg { fill: #231f20; }
#buttons button:nth-child(4) svg { fill: #00a651; }
#buttons button:nth-child(5) svg { fill: #ee2e4e; }

/* a grafikon helye */
#chart {
	width: 100%;
	max-width: 1200px; 
	height: 90%;
	min-height: 400px;
	margin: .5em auto 0;
}

@media (max-width: 1220px) {
	#chart {
		padding-left: .5em;
		padding-right: .5em;
	}
}

/* az export gomb elrejtése */
.highcharts-button {
	display: none;
}

/* a beállítási lehetőségek sávja */
#tools {
	max-width: 1200px;
	text-align: center;
	margin: 0 auto;
	padding: 0 10px;
}

/* nem és mutató választó */
.switch {
	display: inline-block;
	position: relative;
	margin-top: .5em;
	padding: 0;
	font-size: 18px;
	line-height: 2;
	vertical-align: top;
	border: 0;
	border-radius: 3px;
	background-color: #cfd8dc;
	overflow: hidden;
}

#sex-switch {
	width: 15em;
}

#item-switch {
	width: 20em;
	margin-left: 1em;
}

.switch::after {
	content: '';
	clear: both;
	display: table; 
}

.switch *,
.switch *:before,
.switch *:after {
	box-sizing: border-box;
}

.switch input {
	position: absolute;
	opacity: 0;
	-webkit-appearance: none;
	   -moz-appearance: none;
	    -ms-appearance: none;
	        appearance: none;
}

.switch label {
	display: block;
	position: relative;
	float: left;
	margin: 0;
	padding: 0;
	text-align: center;
	color: #37474f;
	z-index: 2;
	cursor: pointer;
	-webkit-touch-callout: none;
	  -webkit-user-select: none;
	   -khtml-user-select: none;
	     -moz-user-select: none;
	      -ms-user-select: none;
	          user-select: none;
	-webkit-transition: color 0.2s ease-out;
	   -moz-transition: color 0.2s ease-out;
	    -ms-transition: color 0.2s ease-out;
	     -o-transition: color 0.2s ease-out;
	        transition: color 0.2s ease-out;
}

.switch span {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	padding: 0;
	z-index: 1;
	width: 10px;
	height: 100%;
	background-color: #455a64;
	-webkit-transition: left .4s cubic-bezier(0.65,  0.00, 0.35, 1.00);
	-webkit-transition: left .4s cubic-bezier(0.65, -0.25, 0.35, 1.25);
	   -moz-transition: left .4s cubic-bezier(0.65, -0.25, 0.35, 1.25);
	    -ms-transition: left .4s cubic-bezier(0.65, -0.25, 0.35, 1.25);
	     -o-transition: left .4s cubic-bezier(0.65, -0.25, 0.35, 1.25);
	        transition: left .4s cubic-bezier(0.65, -0.25, 0.35, 1.25);
}

.switch-3 label, .switch-3 span {
	width: 33.33333%;
}
.switch-4 label,.switch-4 span {
	width: 25%;
}

.switch label:nth-child(2),
.switch label:nth-child(4),
.switch-4 label:nth-child(6) {
	border-right: 1px solid #fff;
}

.switch input:checked + label {
	color: #fff;
}

.switch-3 input:checked:nth-child(3) + label ~ span { left: 33.33333%; }
.switch-3 input:checked:nth-child(5) + label ~ span { left: 66.66666%; }
.switch-4 input:checked:nth-child(3) + label ~ span { left: 25%; }
.switch-4 input:checked:nth-child(5) + label ~ span { left: 50%; }
.switch-4 input:checked:nth-child(7) + label ~ span { left: 75%; }

@media (max-width: 901px) {
	.switch {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	#item-switch {
		margin-left: auto;
	}
}

/* rendezései szempont */
.select {
	display: inline-block;
	margin-top: .5em;
	margin-left: .5em;
	padding: 0;
	font-size: 18px;
	border: 0;
}

.select label {
	line-height: 2;
	vertical-align: top;
}

.select-wrapper {
	display: inline-flex;
	position: relative;
	width: 8em;
	height: 2em;
	line-height: 2;
	background: #cfd8dc;
	border-radius: 5px;
	overflow: hidden;
}

/* reset select */
select {
	-webkit-appearance: none;
	   -moz-appearance: none;
	    -ms-appearance: none;
	        appearance: none;
	outline: 0;
	box-shadow: none;
	border: 0 !important;
	background: #cfd8dc;
	background-image: none;
}
/* IE nyíl */
select::-ms-expand {
	display: none;
}

select {
	flex: 1;
	padding: 0 .5em;
	font: 400 18px/2 "Roboto Condensed", "Arial Narrow", sans-serif;
	color: #37474f;
	cursor: pointer;
	outline: none;
}

option {
	font: 400 18px/2 "Roboto Condensed", "Arial Narrow", sans-serif;
	color: #37474f;
	cursor: pointer;
}

/* lefele nyíl */
.select-wrapper::after {
	content: '\25BC';
	position: absolute;
	top: 0;
	right: 0;
	padding: 0 0.5em;
	background: #b0bec5;
	color: #37474f;
	border-left: 1px solid #fff;
	pointer-events: none;
	-webkit-transition: color 0.2s ease-out;
	   -moz-transition: color 0.2s ease-out;
	    -ms-transition: color 0.2s ease-out;
	     -o-transition: color 0.2s ease-out;
	        transition: color 0.2s ease-out;
}
.select-wrapper:hover::after {
	color: #0081c9;
}

/* régi böngésző és/vagy nincs JS */
#outdated, #noscript {
	width: 100%;
	padding: 5px;
	font-size: 1.2em;
	text-align: center;
	color: #fff;
	background: #df2125;
}

#outdated a, #noscript a {
	color: #fff;
	text-decoration: underline;
}

/* súgó */
#infoPanel {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 999;
}

#infoPanel.show {
	display: block;
}

#infoPanel-cover {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: #fff;
	opacity: .8;
	filter: alpha(opacity=80);
}

#infoPanel-content {
	position: relative;
	width: 80vw;
	max-width: 1000px;
	max-height: 90vh;
	margin: 5vh auto;
	padding: .5em;
	background: #fff;
	border: 2px solid #607d8b;
	overflow-x: auto;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #607d8b #cfd8dc;
	-webkit-touch-callout: text;
	  -webkit-user-select: text;
	   -khtml-user-select: text;
	     -moz-user-select: text;
	      -ms-user-select: text;
	          user-select: text;
}
#infoPanel-content::-webkit-scrollbar {
	width: 12px;
}
#infoPanel-content::-webkit-scrollbar-track {
	background: #cfd8dc;
}
#infoPanel-content::-webkit-scrollbar-thumb {
	background-color: #607d8b;
	border-radius: 6px;
	border: 2px solid #cfd8dc;
}

#infoPanel-close {
	position: absolute;
	top: 0;
	right: 0;
	padding: 0 .2em;
	font-size: 2em;
	color: #607d8b;
	cursor: pointer;
}

#infoPanel-close:hover {
	color: #455a64;
	background: #eceff1
}

/* az infopanelek tartalmai */
#infoPanels {
	display: none;
}

#infoPanel-main h2 {
	margin: 0 0 .5em 0;
	padding: 0;
	font-size: 1.5rem;
	font-weight: 300;
}
#infoPanel-main h3 {
	margin: 1em 0 0;
	padding: 0;
	font-size: 1.5rem;
	font-weight: 300;
}
#infoPanel-main p {
	margin: .5em 0;
	padding: 0;
}
#infoPanel-main h2 + p,
#infoPanel-main h3 + p {
	margin-top: 0;
}

#infoPanel-main .boxplot-sample {
	text-align: center;
}
#infoPanel-main .boxplot-sample img {
	width: 100%;
	max-width: 800px;
}

#infoPanel-main table {
	border-collapse: collapse;
	width: 100%;
}
#infoPanel-main table td {
	padding: 4px 1em 4px 4px;
}
#infoPanel-main table tr:nth-child(even) td {
	background-color: #eceff1;
}
#infoPanel-main table#minmax td.value {
	padding-right: 4px;
	text-align: right;
	white-space: nowrap;
}
#infoPanel-main table#minmax tr.title td {
	font-weight: bold;
	background-color: #fff;
}
#infoPanel-main table#minmax tr.title:not(:first-child) td {
	padding-top: 1em;
}
#infoPanel-main table#minmax tr.female td {
	background-color: #fce4ec;
	border-bottom: 1px solid #fff;
}
#infoPanel-main table#minmax tr.male td {
	background-color: #e8eaf6;
	border-bottom: 1px solid #fff;
}

#infoPanel-main span.medal {
	display: inline-block;
	height: 32px;
	width: 32px;
	background: url(medals.png) no-repeat 0 0;
}
#infoPanel-main span.gold   { background-position: -32px 0; }
#infoPanel-main span.silver { background-position: -64px 0; }
#infoPanel-main span.bronze { background-position: -96px 0; }

#infoPanel-main a {
	position: relative;
	color: #1565c0;
	text-decoration: none;
}
#infoPanel-main a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #1565c0;
	background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 1'><rect style='fill:%230081c9' x='0' y='0' width='1' height='1'/><rect style='fill:%23fcb131' x='1' y='0' width='1' height='1'/><rect style='fill:%23231f20' x='2' y='0' width='1' height='1'/><rect style='fill:%2300a651' x='3' y='0' width='1' height='1'/><rect style='fill:%23ee2e4e' x='4' y='0' width='1' height='1'/></svg>");
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: 0 100%;
	-webkit-transform: scaleX(0);
	   -moz-transform: scaleX(0);
	    -ms-transform: scaleX(0);
	     -o-transform: scaleX(0);
	        transform: scaleX(0);
	-webkit-transition: transform 0.3s ease-in-out;
	   -moz-transition: transform 0.3s ease-in-out;
	    -ms-transition: transform 0.3s ease-in-out;
	     -o-transition: transform 0.3s ease-in-out;
	        transition: transform 0.3s ease-in-out;
}
#infoPanel-main a:hover::after {
	-webkit-transform: scaleX(1);
	   -moz-transform: scaleX(1);
	    -ms-transform: scaleX(1);
	     -o-transform: scaleX(1);
	        transform: scaleX(1);
}

/* grafikon tooltip */
.highcharts-tooltip table {
	border-collapse: collapse;
	}
.highcharts-tooltip table th {
	padding: 0;
	font-size: 14px;
	font-weight: bold;
	text-align: left;
	white-space: nowrap;
	}
.highcharts-tooltip table td {
	padding: 0;
	font-size: 14px;
	white-space: nowrap;
	}
.highcharts-tooltip table td:last-child {
	padding-left: 0.5em;
	font-weight: bold;
	text-align: right;
	}

.highcharts-axis-title sup {
	font-size: 70%;
}