* {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  height:100%;
  scroll-behavior: smooth;
  font-size: calc(1em + 1vw);
}

body {
  color: #787878;
  font-family: "Roboto Slab", serif;
}

header {
  color:#fff;
  display: flex;
  justify-content: space-between;
  position:fixed;
  width: 100%;
  top: 0px;
  opacity: .7;
  z-index: 999;
  font-size: 14px;
  border-radius: 0px 0px 20px 20px;
  box-shadow: 0px 23px 34px 6px rgba(0,0,0,0.44);
  background: linear-gradient(60deg, #000000 160px, #8e44ad 200px, #3498db 100%);
  transition: opacity .8s linear;
}

header h2 {
  font-size:22px;
  margin:0 auto;
  padding:10px 0;
  width:80%;
  text-align:center;
}

header:hover {
	opacity: .9;
}

header a, a:visited {
  text-decoration:none;
  color:#fcfcfc;
}

header figure {
	transform: scale(1) translateX(0px);
	margin-top: 0;
	transition: all 1s ease-in-out;
}

figure.zsugorodo {
	 transform: scale(.29) translateX(-220px);
	 margin-top: -15px;
	 transition: all 1s ease-in-out;
}

figcaption, .felirat {
  text-align: center;
  color: rgb(153,153,153);
  font-variant: small-caps;
  font-size: 13pt;
  padding: 0;
  line-height: 50%;
}

.felirat {
	display: none;
	position: absolute;
	left: 20px;
	width: 200px;
	line-height: 20px;
	font-size: 12pt;
}

nav {
  width: calc(100vw - 470px);
  mask-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 25%, #ffffff 75%, rgba(255, 255, 255, 0) 100%);
  margin-right: 20px;
  padding: 47px 0;
}

nav menu {
  text-align: center;
  line-height: 1.5;
  border-radius: 15px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.2) 75%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1), inset 0 0 1px rgba(255, 255, 255, 0.6);
}

nav menu li {
  display: inline-block;
}

nav menu li a {
  padding: 8px;
  font-family: "Open Sans";
  font-weight: bold;
  color: white;
  font-size: 16px;
  text-decoration: none;
  display: block;
}

nav menu li a:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1), inset 0 0 1px rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 0, 0.7);
}

#menugomb {
	display:none;
}

main {
  width: 100%;
  margin: 0 auto;
}

aside {
  display: block;
  background-color: #fff;
}

aside figure {
	padding: 0px 0px 0px 198px;
}

aside figure img {
	margin: 0px -2px -4px -2px;
}

iframe {
	display: block;
	margin: 0 auto;
}

footer {
  padding: 20px 0;
  color: black;
}

article {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

article h2 {
  margin-bottom: 40px;
  font-variant: small-caps;
  text-shadow: 5px 8px 3px LightGray;
}


article img {
  display: inline-block;
  margin: 0 auto;
}


article p {
  margin-bottom: 20px;
  font-size: calc(0.45em + 1vw);
  font-weight: 300;
}

article p:last-child {
  margin-bottom: 0;
}

article .keptartaly {
	margin: 0 auto;
}

.kozepre {
	text-align: center;
}

.vizszintes_gorgeto {
	min-height: 200px;
	border: 3px inset;
	margin-bottom: 40px;
}

.MagicScroll div {
	margin-right: 20px;
}

#bejegyzes {
	width: 100%;
	max-width: 800px;
	font-size: 12pt;
	padding: 20px;
	margin: 30px auto 70px;
	border: 8px ridge;
	border-radius: 50px 0 50px 0;
	text-align: justify;
	box-shadow: -20px 40px 30px 10px rgba(0,0,0,0.5);
	perspective: 5000px;
	transform: rotate3d(3, 9, 0, 30deg);
	/*transform: perspective(5000px) rotateY(5deg);*/
    transition: 0.6s ease transform;
}

#bejegyzes:hover {
	transform: rotate3d(-2, -6, 0, -10deg);
	/*transform:
      perspective(5000px)
      rotateY(-5deg)*/
/* meg kell adni egy tartalmazó div-et, hátha jó akkor a perspective */	  
      ;
}

.bejegyzes {
	float: left;
	margin: 5px;
}

p {
	margin-top: 10px;
	margin-bottom: 10px;
}

form {
	display: inline-block;
}

input, button {
	border: solid 1px;
}

button[type=submit], button[type=reset] {
	padding: 5px;
	margin-bottom: 30px;
	border-radius: 4px;
}

#a-nagy-kerdes img {
	width: 20vw;
}

#baratoldalak div {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(4, 1fr);
	grid-column-gap: 40px;
	grid-row-gap: 40px;
}

#hitelvek div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: stretch;
    align-items: flex-start;
}

#hitelvek address {
	display: table;
	width: 292px;
	height: 203px;
	padding: 0 50px 0 30px;
	font-size: 24px;
	background-image: url(kepek/kotabla.png);
}

#hitelvek address p {
	color: black;
	display: table-cell;
	vertical-align: middle;
	
}

#hitelvek blockquote, .ablak {
	position: relative;
		background: #FFF;
		padding: 25px;
		width: auto;
		max-width: 80%;
		height: 70vh;
		margin: 0 auto;
}

.MagicScroll img {
	width: 200px;
}

.MagicScroll[data-mode="cover-flow"] {
    background-color: white;
}

blockquote {
	border-radius: 25px;
}

section {
	height: 70vh;
	position: relative;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

section h1 {
  color: rgba(255, 255, 255, 0.8);
  font-size: calc(1em + 9vw);
  line-height: 600px;
  font-weight: 700;
	text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  
  position: relative;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
}

table {
	border: 7px outset gray;
	margin: 50px auto;
	padding: 10px;
	color: black;
	border-spacing: 10px;
	font-size: calc(0.25em + 1vw);
}

th {
	border: 5px ridge gray;
	background: #C0C0C0;
	padding: 5px;
}

td {
	border: 5px groove gray;
	padding: 5px;
	vertical-align: middle;
}

td[rowspan] {
	background: #C8C8C8;
}

tr:nth-child(even) {
	background: #D0D0D0;
}

tr:nth-child(odd) {
	background-color: #D3D3D3;
}

tr:hover {
	background: #BEBEBE;
}

#hitelvek address a {
	text-decoration: none;
	color: black;
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 540px;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}

.perspective-text {
  color: black;
  font-family: Arial;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.perspective-line {
  height: 50px;
  padding: 0px 5px;
  overflow: hidden;
  position: relative;
}

.perspective-line p {
  margin: 0;
  height: 50px;
  line-height: 50px;
  transition: all 0.5s ease-in-out;
}

.perspective-line:nth-child(odd) {
  transform: skew(60deg, -30deg) scaleY(0.667);
}

.perspective-line:nth-child(even) {
  transform: skew(0deg, -30deg) scaleY(1.337);
}

.perspective-text:hover p {
  transform: translate(0, -50px);
}

.perspective-line:nth-child(1) {
  left: 29px;
  background: #D3D3D3;
}

.perspective-line:nth-child(2) {
  left: 58px;
  background: #C0C0C0;
}

.perspective-line:nth-child(3) {
  left: 87px;
  background: #D0D0D0;
}

.perspective-line:nth-child(4) {
  left: 116px;
  background: #BEBEBE;
}

.perspective-line:nth-child(5) {
  left: 145px;
  background: #C8C8C8;
}

@media all and (max-width: 1260px) {
  nav {
	padding: 33px 0;
	position:relative;
	display:inline-block;
  }
  
  nav menu.osszecsukott {
	display: none;
  }
  
  nav menu {
	width: 200px;
		position:absolute;
		top: 87%;
		right: -12px;
		padding: 10px 18px;
		box-shadow: 0px 1px 1px rgba(0,0,0,0.15);
		border-radius: 13px;
		background: linear-gradient(60deg, #3498db 0%, #8e44ad 100%);
	}

	nav menu:after {
		width:0px;
		height:0px;
		position:absolute;
		top: 0%;
		right: 43px;
		content:'';
		transform:translate(0%, -100%);
		border-left:7px solid transparent;
		border-right:7px solid transparent;
		border-bottom:7px solid #303030;
	}

	nav li {
		margin:5px 0px 5px 0px;
		float:none;
		display:block;
	}

	nav a {
		display:block;
	}

	#menugomb {
		padding: 15px 25px;
		float:left;
		display: inline-block;
		box-shadow: 0px 1px 1px rgba(0,0,0,0.15);
		border-radius:3 px;
		background-image: linear-gradient(to bottom, hsl(174, 46%, 76%) 0%, hsl(174, 46%, 56%) 100%);
		text-shadow:0px -1px 0px rgba(0,0,0,0.5);
		box-shadow: 0px 4px 0px hsl(174, 46%, 36%), 0px 2px 10px rgba(0,0,0,.9), inset 0px 1px 0px rgba(255,255,255,.3), inset 0px 0px 3px rgba(255,255,255,.5);
		color:#777;
		font-size: 30px;
		transition: all .2s ease-in-out;
	}

	#menugomb:hover {
		color:#66a992;
		background-image: linear-gradient(to bottom, hsl(174, 46%, 86%) 0%, hsl(174, 46%, 66%) 100%);
	}
	
	#menugomb:active, #menugomb.benyomva {
		background-image: linear-gradient(to bottom, hsl(174, 46%, 56%) 0%, hsl(174, 46%, 76%) 100%);
		box-shadow: 0px 2px 0px hsl(174, 46%, 36%), 0px 1px 3px rgba(0,0,0,.9), inset 0px 1px 0px rgba(255,255,255,.3), inset 0px 0px 3px rgba(255,255,255,.5);
		transform: translate(0, 4px);
	}
}

@media all and (max-width: 1280px) {
  #parallax1 {
    background-image: url("kepek/parallax-korus-keskeny.jpg");
  }
  
  #parallax2 {
    background-image: url("kepek/parallax-gyerekeink-keskeny.jpg");
  }
  
  #parallax3 {
    background-image: url("kepek/parallax-fozotanfolyam-keskeny.jpg");
  }
}

@media all and (min-width: 1281px) {
  #parallax1 {
    background-image: url("kepek/parallax-korus-szeles.jpg");
  }
  
  #parallax2 {
    background-image: url("kepek/parallax-gyerekeink-szeles.jpg");
  }
  
  #parallax3 {
    background-image: url("kepek/parallax-fozotanfolyam-szeles.jpg");
  }
}

/*
@media all and (min-width: 960px) {
	.slider {
		height: 800px;
	}
}
*/

@media all and (max-width: 960px) {
	section {
		background-attachment: unset;
	}
}