/* Előadások elosztó oldal stylus lapja */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
	background-image:url(../_images/eloadasok_bg.webp);
	background-position: top;
    background-size: cover;
    color: #333;
	  overflow-x: hidden; /* ne legyen oldalirányú túlcsordulás */
  position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 0;
    pointer-events: none;
}

.container {
	position:relative;
    max-width: 1200px;
    margin: 20px auto;
	z-index:1
}

.container h1 {
	margin:30px auto;
	text-align:center;
	color:white;
	text-shadow:2px 2px 5px black;
	margin-top:100px;
	text-transform: uppercase;
}

.motto {
	text-align: center;
    font-weight: normal;
    width: 90%;
    margin: 50px auto;
	font-style: italic;
    color: lightgray;
}

.logo-container img {
    width: 75px;
    border-radius: 50%;
    background: white;
    padding: 5px;
    border: 2px solid #c6c6c6;
    box-shadow: 3px 5px 17px 0px #464444;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin: 20px auto;
	margin-top: 100px;
    max-width: 900px;
	margin-bottom:100px;
}

.card {
    background: #ffffff96;
    padding: 24px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 68%);
    transition: all 0.25s ease-in-out;
    margin: 10px;
    border-radius: 12px;
    border: 1px solid #e4d7c3;
    backdrop-filter: blur(2px);
}

.card_icon {
    width: 70px;
    float: right;
    filter: drop-shadow(2px 4px 2px black) grayscale(0.3);
    opacity: 0.8;
    margin: -10px;
	transition: filter 0.6s ease-in-out;
}

.card:hover {
    box-shadow: 0px 0px 24px 4px rgb(21 21 21 / 20%);
	background: #ffffffcd
}

.card:hover .follow-btn {
	background:orange;
	color:#59422d;
	font-weight:bold
}

.card:hover .card_icon {
    filter: drop-shadow(2px 4px 2px black) grayscale(0);
}

.card h3 {
    font-size: 1.6em;
    color: #6e6054;
    margin-top: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px black;
    transition: color 0.6s ease-in-out;
}

.card p.leiras {
    font-size: 1.05em;
    line-height: 1.7;
    color: black;
    margin-bottom: 20px;
}

.card .idopont {
    font-size: 0.95em;
    margin-top: 15px;
    margin-bottom: 0px;
}

.btn, .follow-btn {
	display: inline-block;
    padding: 14px;
    text-align: center;
    border-top-left-radius: 6px;
	border-bottom-right-radius: 12px;
    background: #59422d;
    color: #ffffff;
    font-size: 1.1em;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
    width: 120px;
	float: inline-end;
	margin-bottom: -24px;
    margin-right: -24px;
}

.btn:hover, .follow-btn:hover {
    background: #003f80;
	color:#59422d;
}

.logo-container img {
    border-radius: 50%;
    padding: 5px;
    width: 70px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.motto {
    font-style: italic;
    font-size: 1.2em;
    color: #cccccc;
    margin-bottom: 40px;
}

.promo {
    text-align: center;
    position: relative;
    margin-bottom: 52px;
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease, transform 1s ease;
    margin-bottom: 50px;
	will-change: transform, opacity;
	backface-visibility: hidden;
}

.promo.visible {
	opacity: 1;
	transform: translateY(0);
}

.promo.visible .middle a {
  animation: floatIn 1s ease forwards;
}

.promo-img {
	position: relative;
	z-index: 1;
	margin:0 auto;
}

.promo p {
	position: relative;
	z-index: 2;
	font-size: 1.4em;
	color: #fff;
	margin-top: -20px;
	background: rgba(0, 0, 0, 0.7);
	display: inline-block;
	padding: 12px 20px;
	border-radius: 12px;
	font-weight: 500;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.promo p span {
	display: block;
	font-size: 0.9em;
	color: #ffd98f;
	margin-top: 4px;
}

.promo-img {
	width: 400px;
	height: 550px;
	position: relative;
}

.layer {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 85px;
	left: 0;
	pointer-events: none;
}

.layer img {
	width: 100%;
	height: auto;
}

.back {
	z-index: 1;
}

.middle {
	z-index: 2;
}

.front {
	z-index: 3;
}

.middle a {
  position: absolute;
  width: 400px;
  transform-origin: top center;
  opacity: 0;
  pointer-events: auto;
  transition: z-index 0.1s, transform 0.2s;
}

.middle a img {
	width: 100%;
	height: auto;
	display: block;
	box-shadow: 2px 2px 11px 0px #000000ba;
	transition: 
		opacity 0.2s ease,
		transform 0.25s ease,
		border 0.2s ease;
	border:1px solid transparent;
}

.middle a:hover img {
	border:1px solid #59422d;
	transform: scale(1.05);
}

.middle a:nth-child(1) {
	top: 80px;
	left: -53px;
	transform: rotate(58deg);
	z-index: 7;
}

.middle a:nth-child(2) {
	top: 100px;
	left: 14px;
	transform: rotate(84deg);
	z-index: 6;
}

.middle a:nth-child(3) {
	top: 120px;
	left: 87px;
	transform: rotate(100deg);
	z-index: 5;
}

.middle a:nth-child(4) {
	top: 140px;
	left: 125px;
	transform: rotate(117deg);
	z-index: 4;
}

.middle a:nth-child(5) {
	top: 160px;
	left: 188px;
	transform: rotate(123deg);
	z-index:3;
}

.promo.visible .middle a:nth-child(1) {
  animation-delay: 0.2s;
}

.promo.visible .middle a:nth-child(2) {
  animation-delay: 0.4s;
}

.promo.visible .middle a:nth-child(3) {
  animation-delay: 0.6s;
}

.promo.visible .middle a:nth-child(4) {
  animation-delay: 0.8s;
}

.promo.visible .middle a:nth-child(5) {
  animation-delay: 1s;
}

@keyframes floatIn {
	0% {
		transform: translateY(-100px) scale(0.8) rotate(0deg);
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@media (max-width: 1200px) {

	body {
		background-position: top;
		background-size: cover;
	}
	.card p.leiras {
		color: #141414;
	}
	.card:hover {
		transform: scale(1);
		box-shadow: 0px 0px 12px 2px rgba(0, 86, 179, 0.6);
	}
	.container {
		margin: 0px auto;
	}
	.promo p{
		font-size: 0.9em;
		margin-top:20px;
	}
	.promo-img {
		top: 7px;
	}
	.middle a {
		width: 325px;
	}
	.middle a:nth-child(1) {
        top: 143px;
        left: -25px;
	}
	.middle a:nth-child(2) {
		top: 140px;
		left: 14px;
	}
	.middle a:nth-child(3) {
		top: 160px;
		left: 87px;
	}
	.middle a:nth-child(4) {
		top: 180px;
		left: 125px;
	}
	.middle a:nth-child(5) {
		top: 200px;
		left: 188px;
	}	
}
