:root {
	--fej-hatter: #8f70a9;
	--menu-link: #c6a4e0;
	--menu-link-hover: white;
	--torzs-hatter: #97b0aa;
	--torzs-keret: #354c46;
	--mainpage-color: white;
	--aloldal-link: var(--fej-hatter);
	--aloldal-link-hover: var(--menu-link);
	--aloldal-szoveg: var(--torzs-keret);
	--fooldal-link: var(--torzs-keret);
	--max-kep-meret: clamp(170px, calc(170px + ((1vw - 7.68px) * 22.0848)), 420px);
	--kep-meret-szorzo: 2.2;
	--behuzas: clamp(25px, calc(25px + ((1vw - 7.68px) * 2.2085)), 50px);	
	--default-trasition: 0.25s;
	--calculated-fontsize: clamp(12px, calc(0.75rem + ((1vw - 7.68px) * 0.71)), 20px);	
  --video-width: max(300px, calc((100vw - 2 * var(--behuzas)) / 3.0 - 20px));
  
	--transition-time: 0.15s;

	font-size: var(--calculated-fontsize);
	font-family:calibri, sans-serif;
	min-height: 0vw;

}
 
* { box-sizing: inherit;}

html {
	box-sizing: border-box;
}

@keyframes zuhan {
	0%	{transform: translateY(-10px); opacity:0;}
	100%	{transform: translateY(0px); opacity:1;}
}

.zuhan {
	animation: zuhan 0.35s ease forwards;
	animation-delay: calc(var(--order) * 150ms + 20ms);
}

html,
body {
	margin:0px;
	padding: 0px;
	border: 0px;
	display: flex;
	flex-flow: column nowrap;
	min-height: calc(100vh - 10px);
}

p {
	margin:0px 0px calc(var(--calculated-fontsize) / 4.0) 0px;
}

hr {
	border-top:1px solid var(--torzs-keret);
	border-bottom:0px;
}

h3{
	padding:0px;
	margin:0px;
	text-align:center;
}

a{
	text-decoration: none; 
	color: black;
	transition: color var(--default-trasition);
}

a:hover{
	color: white;
	transition: color var(--default-trasition);
}
@keyframes blog-post-anim {
    0% {translate:50%; opacity: 0;}
    90% {opacity: 1;}
    100% {translate:0%; opacity: 1;}
}

a.blog{
	position: relative;
	opacity: 0;
    display: inline-grid;
	overflow: hidden;
    color: var(--aloldal-szoveg);
    grid-template-columns: 1fr 6fr;
    grid-column-gap: 1rem;
	margin-bottom: 1rem;
    animation: blog-post-anim .5s calc(.1s * var(--post-nr)) ease-out forwards;
}

a.blog:hover{
    color: var(--aloldal-link);
}

a.blog > img {
	max-width: 7rem;
	max-height: 7rem;
}

a.blog h1 {
	font-size: 1.2rem;
	margin: 0 0 5px 0;
}

.main-page, .main-page2{
	color:var(--mainpage-color);
	font-weight: bold;
}
.main-page{
	font-size:4.5em;
}
.main-page2{
	font-size:3em;
}

.mail:hover{
	color: #354c46;
}

.sor {
	justify-content:space-between;
	align-items:flex-start;
	display: flex;
	flex-flow: row wrap;

}

.cella > .cella,
.vcella > .cella,
.cella > .vcella,
.vcella > .vcella{
	margin: 0px;
}

.cella > p{
	margin-left:10px;
}

.bal {
	justify-content:flex-start;
	text-align: left;
}
.kozep {
	justify-content:center;
	text-align: center;
}
.jobb {
	justify-content:flex-end;
	text-align: right;
}
.kiemelt {
	font-size: 0.8rem;
	font-weight: bold;
	color: red;
}

.cella {
	margin:0px 10px 10px 0px;
	max-width:var(--max-kep-meret);
	/*! display: flex; */
	/*! flex-direction: column; */
}

.cella > img {
	margin:0px;
}

.vcella {
	margin:10px;
	align-items:flex-start;
	display:flex;
	flex-flow: row wrap;
}

.container {
	align-items:center;
	display: flex;
	flex-direction: row;
}

.verticalcontainer {
	align-items:center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#nevjegy {
	--nevjegy: clamp(700px,calc(50vw),1000px);
	width: var(--nevjegy);
	height: calc(0.385 * var(--nevjegy)); 
	font-size: calc(0.032 * var(--nevjegy));
	background-color:white;
}
#nevjegy_kep {
	position: relative;
  	border-right: 1px solid #9ca2af; 
	margin:25px; 
	padding-right:30px
}
#nevjegy_kep > img{
	width: calc(0.306 * var(--nevjegy)); 
  	border: 3px solid #9ca2af; 
	border-radius:50%;
}

#nevjegy_adatok {
	background-color: white;
	padding-left:var(--behuzas); 
	padding-right:30px; 
	margin-right:-30px; 
	width: 100%;
	height: 100%;
	align-items:flex-start;
	display: flex;
	flex-direction: column;
}

#nevjegy_nev {
	font-size:2.3em;
	text-align:center; 
	margin-top:	calc(0.03 * var(--nevjegy)); 
	width:100%;
}
#nevjegy_adatok p{
	/*margin:0px 0px 5px 0px;*/
	padding:0px;
}
#nevjegy > img{
	position: relative;
}
#nevjegy_logo {
	top:calc(0.01 * var(--nevjegy));
	left:clamp(-265px, calc(-0.265 * var(--nevjegy)), -200px);
	width: clamp(70px, calc(0.1 * var(--nevjegy)), 100px); 
}
#nevjegy_qr {
	top:calc(0.01 * var(--nevjegy));
	left:calc(-0.24 * var(--nevjegy));
	width: calc(0.145 * var(--nevjegy)); 
}

#nevjegy_kicsi {
	background-color: white;
    padding: 5px;
}

.element {
	position: relative;	
	width: 35px;
	translate: 0px;
	transition: translate var(--default-trasition);
}

.element:hover{
	translate: -1px -1px;
	transition: translate var(--default-trasition);
}

.element img{
	/*border:1px #9ca2af solid;
	border-radius: 50%;*/
	width: 32px;
	transition: width var(--default-trasition);
}

.element:hover img{
	width: 36px;
	transition: width var(--default-trasition);
}

.menuitem {
    position: relative;
    width: calc(10 * var(--calculated-fontsize));
    display: flex;
    justify-content: center;
	align-items: center;
	min-height: 4em;
}

.emphasized {
	font-weight: bold;
	font-size: 1.3em !important; 
	color: #5ec2ac !important;
}
.emphasized:hover {
	font-size: 1.4em !important; 
	color: var(--menu-link-hover) !important;
}
@media (max-width:600px) {
	.menuitem > a > img{
		display: none;
	}
	
}
.menuitem > a > img {
	height: 3em;
	position: relative;
	left: -1.2em;
    top: 0.35em;
	vertical-align: middle;
}

.menuitem > a:hover > img {
	height: 3.4em;
}

.menuitem > a {
	text-decoration: none;
	padding-left: 2px;
	font-size: .95em;
	color: var(--menu-link);
	transition: color var(--default-trasition), 
		padding var(--default-trasition),
		font-size var(--default-trasition),
		height var(--default-trasition);
}

.menuitem > a:hover {
	color: var(--menu-link-hover);
	font-size: 1.05em;
	padding:0px;

}

.menuitem2 {
	opacity:0;
	padding:10px;
	width: var(--max-kep-meret);
	height: 255px;/*var(calc(--max-kep-meret * 225/300));*/
	text-align: center;
	font-style: italic;
	color: var(--fooldal-link);
    transition: color var(--default-trasition);
}

.menuitem2:hover {
	color: var(--menu-link-hover);
  transition: color var(--default-trasition);
}

.menuitem2 > img {
	width: 114px;
	height: 114px;
	margin:20px 20px 15px 20px;
	padding:0px 0px 8px 0px;
  transition: 
		width var(--transition-time), 
		height var(--transition-time), 
		padding var(--transition-time);
}

.menuitem2:hover > img {
	width: 118px;
	height: 118px;
	padding: 0px 0px 0px 0px;
  transition: 
		width var(--transition-time), 
		height var(--transition-time), 
		padding var(--transition-time);
}

header#topmenu {
	padding:calc(var(--calculated-fontsize)/2); 
	background-color:var(--fej-hatter);
	position:sticky;
	top:-1px;
	z-index:100;
}


header#fej {
	justify-content: space-between;
	padding:0px 10px 0px 10px; 
	/*min-height: 55px;*/
	background-color:white;
}

main {
	flex: 1;
	overflow: hidden;
	background-color: var(--torzs-hatter);
	border-style: solid;
	border-width: 10px 0px 10px 0px;
	border-color: var(--torzs-keret);
	padding: 10px 0px 0px 10px;
}

.agifoto {
	background-image: url("./bcs_disz/portre_00.png");
	background-position: right bottom;
    background-repeat: no-repeat;
}

@media (max-width:950px) {
	.agifoto{
		background-image: none;
	}
	
}

footer {
	justify-content: space-between;
	max-height:100px;
}

article {
	color: var(--aloldal-szoveg);
	margin: 0px var(--behuzas) 0px var(--behuzas);
}

article > h1 {
	margin-left: calc(-1*var(--behuzas));
}

article a {
	color: var(--aloldal-link);
}

article a:hover {
	color: var(--aloldal-link-hover);
}

.mgal {
	display:flex;
	flex-flow: row wrap;
	justify-content:center;
}
.mgal-image {
	max-width:calc(var(--max-kep-meret) * var(--kep-meret-szorzo));
	max-height:calc(var(--max-kep-meret) * var(--kep-meret-szorzo));
	position: absolute;
	object-fit: contain;
}
.mgal-container {
    width: var(--max-kep-meret);
    height: var(--max-kep-meret);
    overflow: hidden;
    position: relative;
    user-select: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.image-container{
	position: relative;
	margin: 0px 10px 10px 0px; 
	width:min-content;
	display:inline-flex;
	align-items: center;
	flex-direction: row;
	user-select: none;
	cursor:pointer;
}

.mgal-container:hover > .image-text-back,
.image-container:hover > .image-text-back{
	opacity: 0.3;
	transition: opacity var(--transition-time);
}

.mgal-container:hover > .image-text,
.image-container:hover > .image-text{
	opacity: 1;
	left: 0px;
	transition: opacity var(--transition-time),
		left var(--transition-time);
}

.image-text-back {
	position:absolute; 
	top: 0; 
	width: 100%;
	height: 100%;
	background-color: black;
	opacity: 0;
	transition: opacity var(--transition-time);
}

.image-text {
	position:absolute; 
	width: 100%;
	text-align: center;
	color: white;
	font-size: 1.2rem;
	font-weight:bold;
	opacity: 0;
	left: 15px;
	transition: opacity var(--transition-time)
		left var(--transition-time);
}

.imageonly {
	max-height:var(--max-kep-meret);
	max-width:var(--max-kep-meret);
}

.video-container { 
	position: relative; 
	padding-top: 0px; 
	width: var(--video-width);
	height: calc(var(--video-width) * 10 / 16);
	overflow: hidden;
}

.video-container iframe, .video-container object, .video-container embed { 
	position: absolute; 
	top: 0; left: 0; 
	width: 100%; height: 100%; 
	}


#gallery {
  content: '';
  position: fixed;
  top: 50vh;
  left: 50%;
  width: 10%;
  height: 10vh;
  background-color: rgba(0, 0, 0, 0.75);
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
  z-index: 99999;
}

#gallery.open {
  visibility: visible !important;
  opacity: 1;
  width: 100%;
  height: 100vh;
  top: 0vh;
  left: 0%;
}


#gallery::after:hover {
  opacity: 1;
}

#gallery-pic-cont {
  max-width: calc(70% - 40px);
  max-height: 90vh;
  cursor: default;
  position: relative;
  background-color: transparent;
  transition: transform 0.3s;
  transform: scale(1);
}

#gallery-subtext {
  color: #ddd;
  font-size: 1em;
  position: absolute;
  display: block;
  left: 5px;
  bottom: -1.3em;
}

#gallery-howmany {
  color: #eee;
  font-size: 1em;
  position: absolute;
  display: block;
  right: 5px;
  bottom: -1.3em;
  font-weight: bold;
}

#gallery-pic {
  width: auto;
  height: auto;
  min-height: 100px;
  min-width: 100px;
  max-width: 100%;
  max-height: 90vh;
  box-sizing: border-box;
  display: block;
  cursor: default;
  object-fit: contain;
  margin: 0;
}

#gallery button {
  position: absolute;
  display: block;
  margin: auto 0;
  width: 60px;
  height: 80vh;
  cursor: pointer;
  background-color: transparent;
  border: 0;
  outline: 0;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  visibility: hidden;
}

#gallery button img {
  min-width: 60px;
  min-height: 60px;
  object-fit: fill;
  content: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmZmZmIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgICA8cGF0aCBkPSJNOC41OSAxNi4zNGw0LjU4LTQuNTktNC41OC00LjU5TDEwIDUuNzVsNiA2LTYgNnoiLz4NCiAgICA8cGF0aCBkPSJNMC0uMjVoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4NCjwvc3ZnPg==)
}

#gallery.open button {
  visibility: visible;
  opacity: 0.7;
}

#gallery button:hover {
  opacity: 1;
}

#gallery button#gallery-prev {
  left: 0px;
  transform: rotate(180deg);
}

#gallery button#gallery-prev:active {
  left: -3px;
}

#gallery button#gallery-next {
  right: 0px;
}

#gallery button#gallery-next:active {
  right: -3px;
}

.gallery-unvisible {
  opacity: 0 !important;
  visibility: hidden;
}

@media (max-width: 1200px) {
  #gallery-pic-cont {
    max-width: calc(100% - 40px);
  }
}

.gallery-disable-scrolling {
  overflow: hidden !important;
}

#gallery-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  cursor: pointer;
}

/*close button*/
#gallery-bg::after {
  content: '';
  position: absolute;
  display: block;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIHN0cm9rZT0iI2FhYSIgZD0iTTE5IDYuNDFMMTcuNTkgNSAxMiAxMC41OSA2LjQxIDUgNSA2LjQxIDEwLjU5IDEyIDUgMTcuNTkgNi40MSAxOSAxMiAxMy40MSAxNy41OSAxOSAxOSAxNy41OSAxMy40MSAxMnoiLz4KICAgIDxwYXRoIGQ9Ik0wIDBoMjR2MjRIMHoiIGZpbGw9Im5vbmUiLz4KPC9zdmc+);
  background-position: center;
  background-size: contain;
  cursor: pointer;
  opacity: 0.8;
  z-index: 12;
}
