:root {
	--h_hlogo: 60px;
	--w_page: 980px;
	--w_menuszel: 20px;
	--g_hlogo: 5px;
	--g_xs: 10px;
	--g_s: 15px;
	--g_m: 20px;
	--g_l: 30px;
	--f_s: 14px;
	--f_m: 16px;
	--f_l: 18px;
	--f_xl: 20px;
	--f_xxl: 26px;
	--f_xxxl: 32px;
	--c_red: #af212e;
	--c_lred: #cca88c;
	--c_llred: #f4efdf;
	--c_grey: #898989;
	--c_lgrey: #c5c6c6;
	--c_fekete: #333;
}
@font-face {
	font-family: Minion;
	src: url(MinionPro-Regular.otf);
}
@font-face {
	font-family: Minion;
	src: url(MinionPro-Bold.otf);
	font-weight: bold;
}
@font-face {
	font-family: Minion;
	src: url(MinionPro-It.otf);
	font-style: italic;
}
@font-face {
	font-family: Minion;
	src: url(MinionPro-BoldIt.otf);
	font-weight: bold;
	font-style: italic;
}
@font-face {
	font-family: SourceSans3;
	src: url(SourceSans3-Regular.ttf);
}
@font-face {
	font-family: SourceSans3;
	src: url(SourceSans3-SemiBold.ttf);
	font-weight: bold;
}
@font-face {
	font-family: SourceSans3;
	src: url(SourceSans3-Italic.ttf);
	font-style: italic;
}
@font-face {
	font-family: SourceSans3;
	src: url(SourceSans3-SemiBoldItalic.ttf);
	font-weight: bold;
	font-style: italic;
}
@font-face {
	font-family: SourceSans3;
	src: url(SourceSans3-Bold.ttf);
	font-weight: 800;
}
@font-face {
	font-family: SourceSans3;
	src: url(SourceSans3-BoldItalic.ttf);
	font-weight: 800;
	font-style: italic;
}
* {
	margin: 0;
	padding: 0;
	border: none;
	box-sizing: border-box;
}
html {
	height: 100%;
}
body {
	background: #fff;
	font-family: "Minion", serif;
	font-size: var(--f_l);
	color: var(--c_fekete);
	display: flex;
	flex-flow: column nowrap;
	min-height: 100%;
	position: relative;
/*	overflow-y: auto;*/
	overflow-y: scroll;
	width: 100%;
}
body.noscroll {
	position: fixed;
/*	overflow-y: scroll;*/
}
a,
.emil {
	text-decoration: none;
	color: inherit;
}
a:hover,
.emil:hover {
	text-decoration: underline;
}
ul {
	list-style: none;
}
#fejlec,
#menu,
main,
#lablec {
	margin: 0 auto;
	max-width: var(--w_page);
}
#fel {
	display: none;
	opacity: 0.75;
	background: var(--c_red) url(/img/up.svg) no-repeat center;
	background-size: auto 30px;
	width: var(--h_hlogo);
	height: var(--h_hlogo);
	position: fixed;
	bottom: 25px;
	right: 0;
	z-index: 90;
	cursor: pointer;
}

/************************ fejléc ************************/

header,
#line {
	background: #fff;
	width: 100%;
	z-index: 98;
}
#line {
	position: absolute;
	top: 0;
	left: 0;
	height: calc((var(--h_hlogo) + (2 * var(--g_hlogo)) + (2 * var(--g_m))) / 2);
	border-bottom: 2px solid var(--c_red);
	z-index:-1;
}
#fejlec {
	padding: var(--g_m);
/*	display: flex;
	flex-flow: row nowrap;*/
}
#fejlec_logo {
	padding: var(--g_hlogo);
	height: calc(var(--h_hlogo) + (2 * var(--g_hlogo)));
	background: #fff;
	display: inline-block;
}
#fejlec_logo img {
	height: 100%;
}

/************************ menü ************************/

#menu_checkbox {
	display: none;
}
#menu_btn {
	margin: var(--g_hlogo);
	border: 2px solid var(--c_red);
	border-radius: 50%;
	background: #fff;
	position: absolute;
	top: calc(-1 * (2 * var(--g_hlogo) + var(--g_m) + var(--h_hlogo)) );
	right: var(--g_m);
	width: var(--h_hlogo);
	height: var(--h_hlogo);
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	z-index: 99;
	cursor: pointer;
}
#menu_btn .icon {
	height: 50%;
}
#menu_btn .icon.bars {
	width: 50%;
	opacity: 1;
	transition: opacity 0.5s ease;
}
#menu_btn .icon.close {
	width: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
	visibility: hidden;
}
#menu_btn .icon:before {
	content: "";
	background-repeat: no-repeat;
	background-size: 100%;
	display: inline-block;
	width: 100%;
	height: 100%;
}
#menu_btn .icon.bars:before {
	background-image: url(/img/menu.svg);
}
#menu_btn .icon.close:before {
	background-image: url(/img/menu_x.svg);
}
#menu_checkbox:checked ~ #menu_btn .icon.bars {
	width: 0;
	opacity: 0;
	visibility: hidden;
}
#menu_checkbox:checked ~ #menu_btn .icon.close {
	width: 50%;
	opacity: 1;
	visibility: visible;
#menu}
#menu_checkbox:checked ~ #menu {
	top: calc(2 * var(--g_m) + 2 * var(--g_hlogo) + var(--h_hlogo));
}
#menu_checkbox:checked ~ #menu > ul {
	position: relative;
	z-index: 96;
}
#menu_checkbox:checked ~ #menu + .backdrop {
	visibility: visible;
	background: rgba(0,0,0,0.5);
}
#menu + .backdrop {
	visibility: hidden;
	position: fixed;
	display: block;
	left: 0;
	top: calc(2 * var(--g_m) + 2 * var(--g_hlogo) + var(--h_hlogo));
	width: 100%;
	height: 100%;
	z-index: 90;
	background: rgba(0,0,0,0);
	transition: background 0.3s ease;
	cursor: default;
}
#menu {
	padding: calc(var(--g_m) + var(--g_hlogo));
	padding-top: 0;
	background: #fff;
	position: fixed;
	top: -100%;
	width: 100%;
	overflow: auto;
	transition: top 0.3s ease;
	display: flex;
	flex-flow: row nowrap;
	gap: var(--g_m);
	z-index: 95;
}
#menu ul {
	list-style: none;
	width: 100%;
	min-height: 100%;
	text-align: right;
}
#menu li {
	width: 100%;
	background: var(--c_grey);
	color: #fff;
	font-family: "SourceSans3", sans-serif;
	font-weight: bold;
	text-transform: uppercase;
	display: flex;
	flex-flow: row nowrap;
}
#menu li:not(:first-of-type) {
	margin-top: var(--g_s);
}
#menu a {
	padding: var(--g_xs);
	display: block;
	flex-grow: 1;
}
#menu a:hover {
	text-decoration: none;
}
#menu li:after {
	content: '';
	display: block;
	width: var(--w_menuszel);
	background: var(--c_lgrey);
}
#menu li:hover,
#menu li.act {
	background: var(--c_red);
}
#menu li:hover:after,
#menu li.act:after {
	background: var(--c_lred);
}
#menu div {
	display: none;
}

/************************ főrész ************************/
main {
	background: #fff;
	width: 100%;
	flex-grow: 1;
	position: relative;
}
article {
	padding: calc(var(--g_m) + var(--g_hlogo));
	padding-top: 0;
	flex-grow: 1;
	position: relative;
}
article #banner {
	background: url(/img/atlasz_3d.jpg) center no-repeat;
	background-size: contain;
	height: 200px;
}
#galeria {
	margin-bottom: var(--g_l);
	display: flex;
	flex-flow: row wrap;
	gap: var(--g_m);
}
#galeria a {
	text-decoration: none;
	flex-grow: 1;
}
#galeria a.nogrow {
	flex-grow: 0;
}
#galeria img {
	height: auto;
	width: 100%;
}
article a,
article .emil {
	color: var(--c_red);
	text-decoration: underline;
}
article a:hover,
article .emil:hover {
	color: var(--c_lred);
}
article div.button {
	margin: var(--g_l) 0;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
	gap: var(--g_m);
}
article a.button {
	padding: var(--g_s) var(--g_l);
	color: #fff;
	background: var(--c_red);
	font-family: "SourceSans3", sans-serif;
	text-align: center;
	text-decoration: none;
/*	align-items: center;
	justify-content: center;*/
}
article a.button:hover {
	text-decoration: underline;
}
article h1,
article h2 {
	font-family: "SourceSans3", sans-serif;
	font-weight: 800;
}
article h1 {
	font-size: var(--f_xxl);
}
article h2 {
	font-size: var(--f_xl);
}
article h1,
article h2,
article p,
.table_wrap,
.yt-wrap {
	margin-bottom: var(--g_m);
}
article p {
	line-height: calc(var(--f_m) + 0.5em);
}
article img {
	width: 100%;
}
#atlasz {
	margin: 0 calc(-1 * (var(--g_m) + var(--g_hlogo)));
	display: flex;
	flex-flow: column nowrap;
	gap: var(--g_l);
}
#atlasz > div {
	padding: 0 var(--g_l);
	display: grid;
	gap: var(--g_l);
}
#atlasz > div:nth-child(odd) {
	padding: var(--g_l);
	background: var(--c_llred);
}
#atlasz a {
	display: flex;
	height: fit-content;
	background: #000;
	opacity: 1;
}
#atlasz a:hover {
	opacity: 0.75;
}
#galeria {
	margin-bottom: var(--g_l);
	display: flex;
	flex-flow: row wrap;
	gap: var(--g_m);
}
#galeria a {
	text-decoration: none;
	flex-grow: 1;
}
#galeria a.nogrow {
	flex-grow: 0;
}
#galeria img {
	height: auto;
	width: 100%;
}
.yt-wrap {
	padding-bottom: 56.25%; /* 9:16 */
	position: relative;
	height: 0;
}
.yt-wrap iframe {
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
}

/************************ lábléc ************************/
footer {
	border-top: 2px solid var(--c_red);
	font-family: "SourceSans3", sans-serif;
	font-size: var(--f_s);
}
footer a {
	color: var(--c_red);
}
#lablec {
	padding: var(--g_m);
	display: flex;
	flex-flow: row nowrap;
}
#lablec_logo,
#lablec_txt {
	padding: var(--g_hlogo);
	height: calc(var(--h_hlogo) + (2 * var(--g_hlogo)));
}
#lablec_logo img {
	height: 100%;
}

/************************ 400px és felette ************************/
@media (min-width: 400px) {

	#galeria a {
		flex-grow: 0;
	}
	#galeria img {
		height: 140px;
		width: auto;
	}

}

/************************ 500px és felette ************************/
@media (min-width: 500px) {

	article #banner {
		height: 300px;
	}
	#galeria img {
		height: 160px;
	}

}

/************************ 646px és felette ************************/
@media (min-width: 646px) {

	article #banner {
		height: 400px;
	}
	#atlasz {
		margin: 0;
	}
	#atlasz > div {
		grid-template-columns: 40% auto;
	}
	#galeria img {
		height: 180px;
	}

}

/************************ 700px és felette ************************/
@media (min-width: 700px) {

	#menu div {
		display: block;
		background: url(/img/atlasz_borito.jpg) center no-repeat;
		background-size: cover;
		width: 600px;
/*		opacity: 0.7;*/
	}
	article div.button {
		flex-flow: row nowrap;
	}
	#galeria img {
		height: 200px;
	}

}

/************************ 800px és felette ************************/
@media (min-width: 800px) {

	body {
		font-size: var(--f_xl);
	}
	article h1 {
		font-size: var(--f_xxxl);
	}

}

/************************ e-mail védelem ************************/
.emil {
	cursor: pointer;
}
.temil:after {content:'@ttk.pte.hu';}
.gama:after {content:'@gamma.ttk.pte.hu';}
.pemil:after {content:'@pte.hu';}
.gamil:after {content:'@gmail.com';}
