/* Karácsonyi díszítés: a HSHU adminjában bekapcsolt karácsonyi témával együtt jelenik meg ($page_hshu['christmas']).
   Égősor a fejléc alatt, hóperem a fejléc alján (asztali: #cs_menu, mobil: #site_ident), hósapka a logón. A HSHU christmas/xmas-light.css alapján. */

/* Égősor: az izzók lassan, puhán halványodnak (csak opacity animáció, villogás nélkül) */

.xmas_light {
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	position: absolute;
	z-index: 25;
	margin: -15px 0 0 0;
	padding: 0;
	pointer-events: none;
	width: 100%;
}

.xmas_light li {
	--xl-c: #FFC845;
	--xl-g: rgba(255, 190, 60, .55);
	--xl-d: 2.8s;
	--xl-dl: 0s;
	position: relative;
	display: inline-block;
	width: 12px;
	height: 28px;
	margin: 20px;
	padding: 0;
	list-style: none;
	/* foglalat */
	background: linear-gradient(#2B3238, #2B3238) 50% 0 / 8px 7px no-repeat;
}

/* izzó + fénye: ez halványodik */
.xmas_light li:before {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 12px;
	height: 20px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .8) 0 1.5px, rgba(255, 255, 255, 0) 4px), var(--xl-c);
	box-shadow: 0 3px 16px 3px var(--xl-g);
	animation: xl_glow var(--xl-d) ease-in-out var(--xl-dl) infinite alternate;
}

/* vezeték a következő izzóig */
.xmas_light li:after {
	content: "";
	position: absolute;
	top: -14px;
	left: 9px;
	width: 52px;
	height: 18.6666666667px;
	border-bottom: solid #2B3238 2px;
	border-radius: 50%;
}

.xmas_light li:last-child:after {
	content: none;
}

.xmas_light li:first-child {
	margin-left: -40px;
}

/* színek: arany, piros, zöld */
.xmas_light li:nth-child(3n+2) {
	--xl-c: #FF4D4D;
	--xl-g: rgba(255, 60, 60, .5);
}

.xmas_light li:nth-child(3n) {
	--xl-c: #3DD16B;
	--xl-g: rgba(60, 210, 100, .45);
}

/* eltérő tempó és fázis, hogy ne egyszerre lélegezzenek */
.xmas_light li:nth-child(2n) {
	--xl-d: 3.6s;
}

.xmas_light li:nth-child(5n+1) {
	--xl-d: 4.4s;
}

.xmas_light li:nth-child(4n+1) {
	--xl-dl: -1.3s;
}

.xmas_light li:nth-child(4n+3) {
	--xl-dl: -2.4s;
}

.xmas_light li:nth-child(7n) {
	--xl-dl: -.7s;
}

@keyframes xl_glow {
	from {
		opacity: 1;
	}
	to {
		opacity: .5;
	}
}

.xmas_bottom {
	height: 30px;
}

/* Hóperem a fejléc alján (asztali: #cs_menu, mobil: #site_ident); a lenyíló menük alatta maradnak */

#cs_menu:after,
#site_ident:after {
	content: "";
	position: absolute;
	z-index: -1;
	top: calc(100% - 3px);
	left: 0;
	right: 0;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 14'%3E%3Cpath fill='%23fff' d='M0 0H160V5C150 5 146 9 138 8C132 7 130 5 122 5C116 5 114 11 110 11C106 11 106 6 100 6C90 6 86 9 76 8C68 7 66 5 58 5C52 5 50 13 46 13C42 13 42 6 36 6C26 6 22 9 12 8C6 7 4 5 0 5Z'/%3E%3C/svg%3E") 0 0 / 160px 14px repeat-x;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2));
	pointer-events: none;
}

/* Hósapka a logón */

#cs_menu a.hcup_logo {
	position: relative;
	display: inline-block;
}

#cs_menu a.hcup_logo:after {
	content: "";
	position: absolute;
	/* a kép a link 5px-es padding-left-jénél kezdődik, és 3px-szel feljebb; a menü hover-effektusa ne rejtse el/forgassa el */
	top: -8px;
	left: 2px;
	opacity: 1;
	transform: none;
	transition: none;
	width: 46px;
	height: 17px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 17'%3E%3Cpath fill='%23fff' d='M3 14C3 6 12 1 23 1S43 6 43 14C40 12 38 16 35 14C32 12 30 17 26 15C22 13 20 17 16 14C13 12 10 16 7 14C5 13 4 15 3 14Z'/%3E%3C/svg%3E") 0 0 / 46px 17px no-repeat;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.xmas_light li:before {
		animation: none;
	}
}
