@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay/PlayfairDisplay-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
  font-family: 'Bilona-Medium';
  src: url('../fonts/Bilona-Medium.otf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans/OpenSans-Semibold.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
  font-family: 'Great Vibes';
  src: url('../fonts/Great_Vibes/GreatVibes-Regular.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
  --body_bg: #FFF6E4;
  --doboz_bg: #FFFAEF;
  --alapfelulet: #FFF6E5;
  --arnyalat: #FFFBEF;
  --vilagos: #FFFAEE;
  --vilagosabb: #FFF7E5;
  --sotetbarna: #5A4430;
  --sotetebb_barna: #381e0d;
  --kozepbarna: #8C5E3C;
  --button_bg: #B47D56;
  --button_color: #FFFFFF;
  --linkek: #AA8862;
  --lagyzold: #90B493;
  --betutipus-cimsor: 'Bilona-Medium', 'Playfair Display', 'Open Sans', sans-serif;
  --betutipus-szoveg2: 'Playfair Display', 'Open Sans', sans-serif;
  --betutipus-szoveg1: 'OpenSans', sans-serif;
  --betutipus-szoveg: 'Open Sans', sans-serif;
}

.gyertya-ego {
  animation: flicker 1s infinite;
}
@keyframes flicker {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}


#divTakaro {
  position: fixed;
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 2025;
  top: 0px;
  left: 0px;
  opacity: 0.8;
}
#divTakaro.hide {
	display:none;
}
body {
  font-family: var(--betutipus-szoveg1);
  background-color: var(--body_bg);
  color: var(--sotetbarna);
  margin: 0px;
  padding: 0;
  width: 100%;
  height: 100%;
  max-width: 1920px;
  overflow-x: hidden;
}
h1, h2 {
  color: var(--kozepbarna);
  font-family: var(--betutipus-szoveg2);
}


button {
  background-color: var(--button_bg);
  color: var(--button_color);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

div.link {
  color: var(--linkek);
  text-decoration: none;
}

.highlight {
  background-color: var(--lagyzold);
  color: var(--button_color);
  padding: 4px 8px;
  border-radius: 4px;
}

div.main {
	position: absolute;
	display: block;
	top: 170px;
	z-index: 50;
	margin-left: auto;
	margin-right: auto;
	overflow: auto;
	width: 100%;
}

.home {
  position: relative;
}
.footer {
  background-image: url('../kepek/footer_bg_002.png');
  background-size: cover;
  background-position: center;
  position: fixed;
  display: block;
  width: 100%;
  /*bottom: 0px;*/
  height: 50px;
  z-index:2000;
  top: calc(100% - 50px);
}
.footer_01 {
  position: absolute;
  display: inline-block;
  bottom: 10px;
  left: 10px;
  color: var(--vilagos);
}
.gyertya-ikon {
  background-image: url('../kepek/gyertya-ikon.png');
  width: 32px;
  height: 32px;
  display: inline-block;
}

.koszonto_head {
  font-size: 24px;
}
.koszonto_head {
  font-size: 33px;
  left: 50%;
  position: relative;
  display: block;
  transform: translate(-50%, 0);
  text-align: center;
  top: 20px;
  font-family: var(--betutipus-szoveg2);
}
.koszonto_body {
  position: relative;
  display: block;
  left: 50%;
  transform: translate(-50%, 0);
  top: 50px;
  text-align: center;
}
.zold.add-data {
  background-color: var(--lagyzold);
  font-size: 14px;
  font-family: var(--betutipus-szoveg);
  position: relative;
  display: block;
  left: 50%;
  transform: translate(-50%, 0);
  top: 20px;
}
section#last_emlekhely {
  position: relative;
  display: inline-block;
  top: 100px;
  left: 50%;
  transform: translate(-50%, 0);
}
.ico .mancs-ico {
  width: 30px;
  transform: rotate(30deg);
  padding: 10px;
}
td.ico {
  vertical-align: top;
}
.nev-text {
  font-size: 22px;
  font-family: var(--betutipus-cimsor);
}
td.gyertyak {
  width: 100px;
  text-align: center;
}
.gyertya {
  background-image: url('../kepek/gyertya_ures_transp_001.png');
  background-size: contain;
  background-repeat: no-repeat;
  height: 50px;
  width: 20px;
  position: relative;
  display: inline-block;
}
#last_emlekhely #new_gyertya {
  margin: 10px;
  margin-right: 20px;
  background-color: transparent;
  color: var(--sotetbarna);
  border: 1px solid var(--sotetbarna);
  font-size: 16px;
  white-space:nowrap;
}
div.leiras {
  font-style: italic;
  font-family: var(--betutipus-cimsor);
  font-size: 18px;
}
.emlekidezet {
  font-family: 'Great Vibes', cursive;
  font-size: 1.6rem;
  color: #5a4430;
  /*text-align: center;*/
  margin-top: 20px;
}

/*************** create-form *********************/
#create-form {
  display: inline-block;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0%);
  top: 170px;
  z-index: 1000;
  overflow: auto;
}
#create-form.hide {
  display: none;
}
#create-form .container {
  font-family: 'Open Sans', sans-serif;
  max-width: 600px;
  margin: 40px auto;
  background: #fffaef;
  color: #5a4430;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(90, 68, 48, 0.1);
}

#create-form h1 {
  font-family: 'Playfair Display', serif;
  text-align: center;
  color: #8c5e3c;
}

#create-form form label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

#create-form input[type="text"],
#create-form input[type="date"],
#create-form input[type="password"],
#create-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  margin-top: 5px;
}
#create-form #faj {
  width: calc(100% + 20px);
  padding: 10px;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  margin-top: 5px;
  background-color: #fff;
}
#create-form textarea {
  resize: vertical;
}

#create-form input[type="checkbox"] {
  margin-right: 5px;
}

#create-form .gombok {
  margin-top: 20px;
  text-align: center;
}

#create-form button {
  background-color: #b47d56;
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  border-radius: 5px;
  cursor: pointer;
}

#create-form .btn-cancel, button.cancel {
  background-color: #d3d3d3;
  color: #5a4430;
  text-decoration: none;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  border-radius: 5px;
  margin-left: 10px;
}

/************** login box ***********/
#loginBox {
  position: fixed;
  display: none;
  left: 50%;
  top: 50%;
  background-color: var(--vilagos);
  z-index: 2030;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 10px 10px 10px var(--sotetbarna);
  transform: translate(-50%, -50%);
}
#loginBox button {
  margin: 10px;
}
#loginBox input {
  font-size: 16px;
  height: 22px;
  width: 240px;
  margin-bottom: 10px;
}
/************** reg box ***********/
#regBox {
  position: fixed;
  display: none;
  left: 50%;
  top: 50%;
  background-color: var(--vilagos);
  z-index: 2030;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 10px 10px 10px var(--sotetbarna);
  transform: translate(-50%, -50%);
}
#regBox button {
  margin: 10px;
}

/*********** aktív emlékhely box ****************/
    #emlekhely_editor.hide{
		display: none;
	}
    #emlekhely_editor{
		max-width: 600px;
		width: 100%;
		height: 800px;
		position: fixed;
		display: inline-block;
		left: 50%;
		transform: translate(-50%, 0%);
		top: 170px;		
		overflow: auto;
		z-index: 100;
	}
	#emlekhely_editor .temeto-hatter {
		background: url('../kepek/hatterek/emlek_hatter_001.png') no-repeat center center fixed;
		background-size: cover;
		padding: 0px;
		width: 600px;
		height: 800px;
    }

    #emlekhely_editor.edited .sirkovek {
		display: block;
	}
	#emlekhely_editor .sirkovek {
      text-align: center;
      margin-bottom: 20px;
	  display: none;
	}

    #emlekhely_editor .sirkov-valaszto {
      display: flex;
      justify-content: center;
      gap: 10px;
    }

    #emlekhely_editor .sirkov-icon {
      width: 80px;
      height: auto;
      cursor: pointer;
      border: 2px solid transparent;
      border-radius: 10px;
      transition: border 0.3s;
    }

    #emlekhely_editor .sirkov-icon.selected {
      border: 2px solid gold;
    }

    #emlekhely_editor .sirkov-container {
		position: relative;
		width: 350px;
		margin: 0 auto;
		top: 180px;
		touch-action: none;

	}

    #emlekhely_editor #sirkov-kep {
      width: 100%;
      display: block;
	  position: absolute;
	  z-index:1;
    }

	#dropzoneID [data-fname="kep"] {
		max-width: 250px;
		max-height: 250px;
		overflow: hidden;
		text-align: center;
		position: absolute;
		display:inline-block;
	}
	#emlekhely_editor #dropzoneWrap #dropzoneID {
		position: relative;
		width: 350px;
		height: 476px;
		text-align: center;
		/*color: #fff;*/
		transform: none;
	}
	#emlekhely_editor #dropzoneWrap{
		position: absolute;
		left: 50%;
		top: 0px;
		transform: translateX(-50%);   /* csak a wrapper mozog */
		z-index:10;
	}
	#emlekhely_editor #dropzoneWrap #dropzoneID .object { position: absolute; }
	
    #emlekhely_editor .sirkov-szoveg input,
	/*#emlekhely_editor .sirkov-szoveg div,*/
	#emlekhely_editor .sirkov-szoveg textarea {
		background: rgba(0, 0, 0, 0.6);
		border: none;
		color: #fff;
		margin: 0px;
		padding: 0px;
		display: block;
		background-color: transparent;
		color: var(--sotetebb_barna);
		text-align: center;
		overflow: hidden;
		outline: none;
		overflow: hidden;
		position: absolute;
		display:inline-block;
		cursor: default;
		left:0px;
		top:0px;
	}
	#emlekhely_editor .sirkov-szoveg input[readonly], 
	#emlekhely_editor .sirkov-szoveg textarea[readonly] {
		cursor: default;
		display:none;
	}
    #emlekhely_editor .gyertya {
		position: absolute;
		bottom: 60px;
		/*left: 50%;
		transform: translateX(-50%);*/
		display: inline-block;
		width: 100%;
		text-align: center;
		height: auto;
		background-image: none; 
	}
	#emlekhely_editor .kieg.object {
		display: inline-block;
		position: absolute;
  }

    #emlekhely_editor .gombok button {
      padding: 10px 20px;
      margin: 0 10px;
      font-size: 16px;
      cursor: pointer;
    }
	
	#emlekhely_editor #div_nev	{
		height: 50px;
		font-family: var(--betutipus-cimsor);
		width: auto;
		min-width: 200px;	
		position: absolute;
		display: inline-block;	
	}
	#emlekhely_editor #div_uzenet	{
		height: 60px;		
		font-family: var(--betutipus-szoveg2);
		color: var(--sotetebb_barna);
		resize: none;
		position: absolute;
		display: inline-block;	
		max-width: calc(100% - 20px);
	}
	#emlekhely_editor #div_szdatum {
		position: absolute;
		display: inline-block;	
		width: 100px;
		height: 40px;
		left: 0px;
		font-family: var(--betutipus-szoveg2);
	}		
	#emlekhely_editor #div_ehdatum {
		position: absolute;
		display: inline-block;	
		width: 100px;
		height: 40px;
		left: 0px;
		font-family: var(--betutipus-szoveg2);
	}	
	#emlekhely_editor .sirkov-szoveg .kotojel {
		position: absolute;
		display: inline-block;	
		width: 30px;
		font-size: 24px;
	}	
	#emlekhely_editor img#kep {
		width: 100px;
		/*border-radius: 50%;*/
		height: 100px;
	}	
	
    #emlekhely_editor .temeto-hatter.edit .image-wrapper {
		cursor: move;
		touch-action: none;
		/*min-width: 30px;
		min-height: 30px;*/
	}

    #emlekhely_editor .temeto-hatter.edit .editable {
		cursor: pointer;
		display: inline-block;
	}
	#emlekhely_editor .temeto-hatter.edit .sirkov-szoveg .editable {
  		border: 1px solid var(--sotetbarna);
		background-color: var(--vilagos);
		color: var(--kozepbarna);
		min-width: 50px;
		min-height: 10px;
		border-radius: 5px;
	}
	
    #emlekhely_editor #output {
      white-space: pre-wrap;
      background: #f0f0f0;
      padding: 10px;
    }
#emlekhely_editor .image-wrapper.resize {
  all: unset;              /* 🔥 Minden örökölt stílust töröl */
  position: absolute;
  /*background-image: url('kep.jpg');*/
  background-size: cover;
  background-position: center;
  width: 150px;
  height: 150px;
  box-sizing: border-box;     /* 🔑 fontos! */
  /*border: 1px solid #666;     /* opcionális, de számít a méretezésnél */
  padding: 0;
}

#emlekhely_editor .image-wrapper.resize .ui-resizable-handle {
	all: unset;
	z-index: 10;
	position: absolute;
	font-size: 0.1px;
	display: block;
	-ms-touch-action: none;
	touch-action: none;
	background: rgba(0, 0, 0, 0.2); /* hogy látszódjon */
}
#emlekhely_editor .image-wrapper.resize .ui-resizable-handle.ui-resizable-e {
	cursor: e-resize;
	width: 7px;
	right: -5px;
	top: 0;
	height: 100%;
}
#emlekhely_editor .image-wrapper.resize .ui-resizable-handle.ui-resizable-s {
	cursor: s-resize;
	height: 7px;
	width: 100%;
	bottom: -5px;
	left: 0;
}
#emlekhely_editor .image-wrapper.resize .ui-resizable-handle.ui-resizable-se {
	cursor: se-resize;
	width: 12px;
	height: 12px;
	right: 1px;
	bottom: 1px;
}

    footer .gombok.hide {
		display: none;
	}
    footer .gombok {
		text-align: center;
		bottom: 55px;
		position: fixed;
		display: block;
		left: 50%;
		transform: translate(-50%, 0%);
	}
    footer .gombok .hide {
		display:none;
	}
	footer #cancel {
		background-color: var(--vilagos);
		color: var(--sotetbarna);
	}
	
	
#emlekhely_editor .temeto-hatter.edit .sirkovek {
	display: block;
}
#emlekhely_editor .sirkovek {
	text-align: center;
	display: none;
	position: absolute;
	width: 100px;
	height: auto;
	background-color: var(--linkek);
	opacity: 0.7;
	top: 180px;
	left: 20px;
	max-height: 380px;
	overflow: auto;
	border-radius: 5px;
	padding-bottom: 10px;
}

.sirkovek .sirk {
	position: relative;
	display: block;
	width: 100%;
	height: 100px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	margin-top: 10px;
	cursor: pointer;
	border: 2px solid transparent;
}
.sirkovek .sirk.sel {
	border: 2px dashed var(--lagyzold);
	border-radius: 20px;
}
/*
#emlekhely_editor .temeto-hatter.edit .kiegeszitok {
	display: block;
}
*/
#emlekhely_editor .kiegeszitok {
	text-align: center;
	display: block;
	position: absolute;
	width: 100px;
	height: auto;
	background-color: var(--linkek);
	opacity: 0.7;
	top: 180px;
	/*right: 20px;*/
	max-height: 380px;
	overflow: auto;
	border-radius: 5px;
	padding-bottom: 10px;
	left: 480px;
}
#emlekhely_editor .kiegeszitok.hide {
	display: none;
}
.kiegeszitok .kiegs {
	position: relative;
	display: block;
	width: 100%;
	height: 50px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	margin-top: 10px;
	cursor: pointer;
	border: 2px solid transparent;
}
.kiegeszitok .kiegs.sel {
	border: 2px dashed var(--lagyzold);
	border-radius: 20px;
}
.kiegs-item {
	display: inline-block;
	position: absolute;
	min-height: 50px;
	background-size: contain;
	background-repeat: no-repeat;
	height: 80px;
	width: 20px;
}

/*********** DRAG DROP *************/
#kellekek {
  width: 200px;
  padding: 10px;
  background: #eee;
  float: left;
  height: 100vh;
  box-sizing: border-box;
}

#kellekek .item-template {
	position: relative;
	display: block;
	width: 100%;
	/*height: 50px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;*/
	margin-top: 10px;
	cursor: pointer;
	border: 2px solid transparent;
	overflow: hidden;
}

#dropzoneID .item {
	position: relative;
	display: inline-block;
	height: 50px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	cursor: move;
	touch-action: none;
	min-width: 30px;
	min-height: 50px;
}

#kellekek .item-templatesel {
	border: 2px dashed var(--lagyzold);
	border-radius: 20px;
}

.drag-clone {
pointer-events: none;
  opacity: 0.7;
  z-index: 9999;
  display: inline-block;
  position: absolute;
  min-height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  height: 80px;
  width: 20px;
}


/******** HOME ***********/
.home {
  min-width: 300px;
  max-width: 900px;
  margin: auto;
  background: #fffdfb;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.home h1, .home h2, .home h3 {
  color: #4a3e3e;
  font-weight: 600;
  margin-bottom: 15px;
}

.home h1 {
  font-size: 2em;
  text-align: center;
  color: #6b4c3b;
}

.home h2 {
  font-size: 1.5em;
  margin-top: 30px;
}

.home p {
  margin-bottom: 15px;
}

.home ul {
  list-style: none;
  padding: 0;
}

.home ul li::before {
  /*content: "🌸 ";
  margin-right: 5px;*/
}

.home .highlight {
  background: #fef3e7;
  border-left: 4px solid #f7c59f;
  padding: 10px 15px;
  margin: 20px 0;
  font-style: italic;
  color: #5c4432;
}

.home .call-to-action {
  background-color: #f7e5d1;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  color: #3e2f24;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .home {
    padding: 20px;
  }

  .home h1 {
    font-size: 1.5em;
  }
}

.kieg-session-active {
	cursor: move;
	outline: 1px dashed rgba(255,180,0,0.4);
}
/* =========================================================
   Mobilbarát emlékhely-nézet + védett gyertyasáv
   ========================================================= */
#emlekhely_editor {
  max-width: min(600px, 100vw);
  width: 100%;
  top: 150px; /*170px;*/
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#emlekhely_editor .temeto-hatter {
  width: 600px;
  height: 800px;
  max-width: 100%;
  margin: 0 auto;
  background: url('../kepek/hatterek/emlek_hatter_001.png') no-repeat center center;
  background-size: cover;
  position: relative;
}

#emlekhely_editor .sirkov-container {
  width: 100%;  /*600px;*/
  height: 491px;
  top: 180px;
  margin: 0 auto;
  position: relative;
  touch-action: none;
}

#emlekhely_editor #sirkov-kep {
	width: 350px;
	height: 491px;
	display: block;
	position: absolute;
	z-index: 1;
	left: 50%;
	transform: translate(-50%,0);
}

#emlekhely_editor #dropzoneWrap,
#emlekhely_editor #dropzoneWrap #dropzoneID {
  width: 350px !important;
  height: 491px !important;
}

#emlekhely_editor #dropzoneWrap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 10;
}

#emlekhely_editor #dropzoneID {
  position: relative;
  overflow: hidden;
  text-align: center;
}

#dropzoneID [data-fname] {
  position: absolute;
  box-sizing: border-box;
}

#dropzoneID [data-fname="kep"] img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#candleProtectedZone {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--candle-protected-height, 118px);
  z-index: 30;
  pointer-events: none;
  border-top: 1px dashed rgba(90,68,48,.24);
  background: linear-gradient(to bottom, rgba(255,255,255,.02), rgba(255,246,228,.12));
}
#dropzoneWrap:not(.edit) #candleProtectedZone {
  display: none !important;
}
#graveCandles {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
  pointer-events: none;
}

#dropzoneID .grave-candle {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.35));
  animation: flicker 1.2s infinite;
  pointer-events: auto;
}

#dropzoneID .grave-candle img {
  display: block;
  object-fit: contain;
}

#emlekhely_editor .temeto-hatter.edit #candleProtectedZone {
  background: rgba(255, 229, 155, .18);
  border-top: 2px dashed rgba(90,68,48,.45);
}

#emlekhely_editor .temeto-hatter.edit #candleProtectedZone::after {
  content: "Figyelem: erre a területre más látogatók gyertyái is kerülhetnek.";
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  max-width: calc(100% - 16px);
  font-size: 10px;
  line-height: 1.2;
  color: rgba(56,30,13,.78);
  background: rgba(255,250,238,.78);
  border-radius: 999px;
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#emlekhely_editor .sirkovek {
  left: 16px;
  top: 180px;
  z-index: 55;
}

#emlekhely_editor .kiegeszitok {
  left: auto;
  right: 16px;
  top: 180px;
  z-index: 55;
}

#kellekek .empty-kellek {
  font-size: 12px;
  padding: 10px 4px;
  color: var(--vilagos);
}

.candle-list-panel {
  max-width: 600px;
  margin: 0 auto 80px auto;
  background: rgba(255,250,238,.96);
  border-radius: 12px;
  padding: 12px;
  box-sizing: border-box;
}

.candle-list-panel h3 {
  margin: 0 0 10px 0;
}

.candle-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.candle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff6e4;
  border: 1px solid rgba(90,68,48,.15);
  border-radius: 10px;
  padding: 8px;
}

.candle-row img {
  width: 28px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

.candle-row p {
  margin: 3px 0;
  word-break: break-word;
}

.candle-row small {
  opacity: .75;
}

.no-candles {
  margin: 0;
  opacity: .75;
}

.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.app-modal {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--vilagos);
  color: var(--sotetebb_barna);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  padding: 16px;
  box-sizing: border-box;
}

.app-modal.small {
  width: min(430px, 100%);
}

.app-modal label {
  display: block;
  margin: 10px 0;
}

.app-modal input[type="text"],
.app-modal textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(90,68,48,.35);
  border-radius: 8px;
  padding: 9px;
  font: inherit;
  background: #fff;
}

.candle-choices {
  display: block;
  margin: 8px 0 12px;
}

.candle-category-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px 0;
}

.candle-category-tab {
  padding: 6px 10px;
  border: 1px solid rgba(90,68,48,.24);
  border-radius: 999px;
  background: #fff6e4;
  color: var(--sotetebb_barna);
  cursor: pointer;
  font-size: 13px;
}

.candle-category-tab.active {
  background: var(--lagyzold);
  color: var(--button_color);
  font-weight: 700;
}

.candle-choice-group {
  display: none;
}

.candle-choice-group.active {
  display: block;
}

.candle-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.candle-choice {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 90px;
  border: 1px solid rgba(90,68,48,.2);
  background: #fff6e4;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  overflow: hidden;
}

.candle-choice input {
  flex: 0 0 auto;
}

.candle-choice-imgbox {
  flex: 0 0 54px;
  width: 54px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.candle-choice img {
  display: block;
  max-width: 54px;
  max-height: 74px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.candle-choice span {
  display: block;
  font-size: 13px;
}

.candle-choice small {
  display: block;
  margin-top: 3px;
  opacity: .7;
}

.modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.modal-buttons.three {
  justify-content: center;
}

.share-modal {
  width: min(620px, 100%);
}

.share-modal h3 {
  margin-top: 0;
}

.share-warning {
  margin: 8px 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(180, 93, 18, .12);
  border: 1px solid rgba(180, 93, 18, .28);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.share-buttons a,
.share-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--barna);
  color: #fff;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

.share-buttons a:hover,
.share-buttons button:hover {
  filter: brightness(1.06);
}

.share-reward-message {
  min-height: 20px;
  margin: 8px 0 0;
  font-weight: 600;
}

.share-reward-message.ok {
  color: #356a22;
}

.share-reward-message.muted {
  color: rgba(90,68,48,.78);
}

.share-reward-message.error {
  color: #8b2c1f;
}

footer .gombok {
  width: max-content;
  max-width: calc(100vw - 16px);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2200;
}

footer .gombok button {
  margin: 0;
}

#emlekhely_editor .temeto-hatter.edit .editable,
#emlekhely_editor .temeto-hatter.edit .image-wrapper[data-fname] {
  touch-action: none;
}

#emlekhely_editor .temeto-hatter.edit .editable {
  cursor: pointer;
  border: 1px solid var(--sotetbarna);
  background-color: rgba(255,250,238,.82);
  color: var(--kozepbarna);
  border-radius: 5px;
}

/* Sírkő-függő felirat témák */
#emlekhely_editor #dropzoneID.sirko-theme-brown .editable {
  color: var(--kozepbarna);
  text-shadow: 0 1px 1px rgba(255,255,255,.35);
}

#emlekhely_editor #dropzoneID.sirko-theme-light .editable {
  color: #f4ead2;
  text-shadow:
    0 1px 2px rgba(0,0,0,.9),
    0 0 5px rgba(0,0,0,.75);
}

#emlekhely_editor #dropzoneID.sirko-theme-gold .editable {
  color: #e8c878;
  text-shadow:
    0 1px 2px rgba(0,0,0,.9),
    0 0 5px rgba(255,220,140,.28);
}

#emlekhely_editor #dropzoneID.sirko-theme-white .editable {
  color: #fff8e8;
  text-shadow:
    0 1px 2px rgba(0,0,0,.9),
    0 0 5px rgba(0,0,0,.72);
}

#emlekhely_editor .temeto-hatter.edit #dropzoneID.sirko-theme-light .editable,
#emlekhely_editor .temeto-hatter.edit #dropzoneID.sirko-theme-gold .editable,
#emlekhely_editor .temeto-hatter.edit #dropzoneID.sirko-theme-white .editable {
  background-color: rgba(34, 24, 18, .42);
  border-color: rgba(255, 238, 196, .48);
}


/* ==============================
   Egységes fejléc + menü
   ============================== */
.header {
  font-family: var(--betutipus-szoveg);
  background-color: var(--sotetebb_barna);
  background-image: url('../kepek/foot_head_bg_001.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 150px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(56, 30, 13, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 28px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  box-sizing: border-box;
}

.site-brand {
  display: flex !important;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  cursor: pointer;
  text-decoration: none;
  color: var(--sotetebb_barna);
  min-width: 230px;
}

.site-brand .logo_border {
  position: static;
  display: block;
  width: 74px;
  height: 74px;
  min-width: 74px;
  background-image: url('../kepek/logo_border.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: none;
}

.site-title {
  color: var(--sotetebb_barna);
  font-family: var(--betutipus-szoveg2);
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
}

.site-nav {
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  width: auto;
  margin-left: auto;
}

.site-nav .link,
nav.site-nav div.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--button_color);
  background: rgba(90, 68, 48, 0.62);
  border: 1px solid rgba(255, 250, 238, 0.30);
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.site-nav .link:hover,
.site-nav .link:focus-visible {
  background: rgba(56, 30, 13, 0.82);
  transform: translateY(-1px);
}

.site-nav .link.hide,
.site-nav [data-action].hide,
.site-nav .filterSwitch.hide {
  display: none !important;
}

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  border-radius: 10px;
  padding: 8px;
  background: rgba(90, 68, 48, 0.82);
  border: 1px solid rgba(255, 250, 238, 0.34);
  cursor: pointer;
  box-sizing: border-box;
}

.site-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--button_color);
}

div.main {
  top: 150px;
}

@media (max-width: 860px) {
  .header {
    height: 104px;
    background-size: cover;
  }

  .header-inner {
    width: calc(100% - 18px);
    gap: 10px;
  }

  .site-brand {
    min-width: 0;
    gap: 9px;
  }

  .site-brand .logo_border {
    width: 50px;
    height: 50px;
    min-width: 50px;
  }

  .site-title {
    font-size: 20px;
  }

  .site-menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    display: none;
    position: absolute !important;
    top: calc(100% - 8px);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 10px;
    border-radius: 0 0 16px 16px;
    background: rgba(56, 30, 13, 0.97);
    box-shadow: 0 12px 18px rgba(56, 30, 13, 0.32);
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .header.menu-open .site-nav {
    display: flex;
  }

  .site-nav .link,
  nav.site-nav div.link {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 10px 13px;
    border-radius: 10px;
    background: rgba(255, 250, 238, 0.10);
    font-size: 15px;
  }

  div.main {
    top: 104px;
  }
}


/* ==============================
   Szerkesztő szövegdoboz-magasság javítás
   ============================== */

#dropzoneID [data-fname="nev"],
#dropzoneID [data-fname="szuletett"],
#dropzoneID [data-fname="meghalt"],
#dropzoneID [data-fname="kotojel"] {
  white-space: nowrap;
  line-height: 1.05;
  padding: 0 2px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#dropzoneID [data-fname="uzenet"] {
  white-space: normal;
  line-height: 1.15;
  padding: 2px 4px;
  overflow: hidden;
  box-sizing: border-box;
}

#dropzoneID [data-fname="nev"] input,
#dropzoneID [data-fname="szuletett"] input,
#dropzoneID [data-fname="meghalt"] input {
  line-height: 1.05;
  padding: 0 2px;
  box-sizing: border-box;
}

#dropzoneID [data-fname="uzenet"] textarea {
  width: 100%;
  min-height: 1em;
  height: auto;
  line-height: 1.15;
  padding: 2px 4px;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  box-sizing: border-box;
  resize: none;
}
/* ==============================
   Coin egyenleg + fizetős kellékek
   ============================== */
.coin-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--button_color);
  background: rgba(90, 68, 48, 0.72);
  border: 1px solid rgba(255, 250, 238, 0.36);
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.coin-box.hide {
  display: none !important;
}

.coin-box:hover {
  background: rgba(56, 30, 13, 0.86);
}

.coin-icon {
  font-size: 16px;
}

#emlekhely_editor .sirkovek .sirk span,
#kellekek .item-template span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: inline-block;
  max-width: calc(100% - 6px);
  padding: 2px 4px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
  background: rgba(255,250,238,.88);
  color: var(--sotetebb_barna);
  white-space: nowrap;
  pointer-events: none;
}

#kellekek .kellek-group {
  border-bottom: 1px solid rgba(255,250,238,.22);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

#kellekek .kellek-group h4 {
  margin: 8px 0 4px;
  font-size: 12px;
  color: var(--vilagos);
  text-align: center;
}

#kellekek .item-template.free {
  border-color: rgba(126, 178, 95, .5);
}

#kellekek .item-template.paid {
  border-color: rgba(206, 163, 70, .65);
}

.coin-balance-line {
  margin: 4px 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff6e4;
  border: 1px solid rgba(90,68,48,.16);
}

.coin-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 8px 0 12px;
}

.coin-package {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
  border: 1px solid rgba(90,68,48,.2);
  background: #fff6e4;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.coin-package input {
  grid-row: span 3;
}

.coin-package span,
.coin-package small {
  display: block;
}

.payment-note {
  font-size: 12px;
  opacity: .78;
  margin: 8px 0 0;
}

@media (max-width: 860px) {
  .coin-box {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 13px;
  }
}

/* ==============================
   Mobil fejléc coin elrendezés javítás
   ============================== */
@media (max-width: 860px) {
  .header-inner {
    justify-content: flex-start;
    gap: 8px;
    overflow: visible;
  }

  .site-brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 154px);
  }

  .site-brand .header-h1,
  .site-brand .header-h1 h1 {
    min-width: 0;
  }

  .site-brand .header-h1 h1 {
    margin: 0;
    font-size: clamp(17px, 4.2vw, 24px);
    line-height: .96;
  }

  .coin-box {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    max-width: 98px;
    padding: 6px 9px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-menu-toggle {
    order: 3;
    flex: 0 0 42px;
    width: 42px;
    height: 38px;
  }

  .site-nav {
    order: 4;
  }
}

@media (max-width: 380px) {
  .site-brand {
    max-width: calc(100% - 136px);
    gap: 7px;
  }

  .site-brand .logo_border {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }

  .site-brand .header-h1 h1 {
    font-size: 16px;
  }

  .coin-box {
    max-width: 82px;
    padding: 5px 7px;
    font-size: 12px;
  }

  .coin-icon {
    font-size: 14px;
  }

  .site-menu-toggle {
    flex-basis: 38px;
    width: 38px;
    height: 36px;
  }
}

@media (max-width: 330px) {
  .coin-box {
    max-width: 72px;
  }

  .coin-box .coin-icon {
    display: none;
  }
}

/* ==============================
   Coin szerzés + PayPal támogatás modal
   ============================== */
.coin-earn-modal {
  max-width: 760px;
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.coin-earn-section {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(90,68,48,.14);
  border-radius: 14px;
  background: rgba(255, 250, 240, .74);
}

.coin-earn-section h4 {
  margin: 0 0 10px;
  color: var(--sotetebb_barna);
}

.coin-earn-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.coin-earn-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(90,68,48,.14);
  border-radius: 10px;
  background: #fff6e4;
}

.coin-earn-list li small {
  grid-column: 1 / -1;
  color: #6f6048;
  line-height: 1.35;
}

.earn-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(206, 163, 70, .18);
  border: 1px solid rgba(206, 163, 70, .38);
  color: #5d421f;
  font-weight: 700;
  white-space: nowrap;
}

.bonus-note {
  margin: 0 0 10px;
  color: #5f4a2e;
  line-height: 1.45;
}

.support-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.support-package {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 11px;
  border: 1px solid rgba(90,68,48,.18);
  border-radius: 12px;
  background: #fff6e4;
}

.support-package strong,
.support-package span,
.support-package small {
  display: block;
}

.support-package span {
  margin-top: 3px;
  font-weight: 700;
  color: var(--sotetebb_barna);
}

.support-package small {
  margin-top: 3px;
  color: #6f6048;
  line-height: 1.3;
}

.support-paypal-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: #6b4a22;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.support-paypal-btn:hover {
  background: #4f3518;
}

.coin-earn-modal .muted {
  color: #7c6b52;
  margin: 4px 0;
}

@media (max-width: 620px) {
  .coin-earn-modal {
    width: calc(100vw - 16px);
    padding: 14px;
  }

  .support-package {
    grid-template-columns: 1fr;
  }

  .support-paypal-btn {
    width: 100%;
  }

  .coin-earn-list li {
    grid-template-columns: 1fr;
  }

  .earn-coin {
    justify-self: start;
  }
}

.support-surprise-modal {
  max-width: 420px;
  text-align: center;
  padding: 28px 24px;
}

.support-surprise-modal .surprise-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 10px;
}

.support-surprise-modal h3 {
  margin: 0 0 12px;
  color: #5b3517;
}

.support-surprise-modal p {
  margin: 8px 0;
}

.support-surprise-modal .surprise-coin {
  display: inline-block;
  margin: 14px 0 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff3c4;
  border: 1px solid #dbb654;
  color: #6b4600;
  font-size: 24px;
  font-weight: 800;
}

.support-surprise-close {
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  background: #6b4a22;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.support-surprise-close:hover {
  background: #4f3518;
}

/* =========================================================
   Időalapú emlék-kellékek: gyertya, mécses, virág, művirág
   ========================================================= */
#dropzoneID .grave-item {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.35));
  overflow: visible;
  isolation: isolate;
  pointer-events: auto;
}

#dropzoneID .grave-item.grave-positioned {
  bottom: auto;
  transform: none;
}

#dropzoneID > .grave-positioned[data-ehk-id] {
  z-index: 45;
}

#dropzoneID .grave-item.grave-auto {
  transform: translateX(-50%);
}

#dropzoneID .grave-item-img {
  display: block;
  object-fit: contain;
  object-position: bottom center;
  transform-origin: bottom center;
  transition: filter .35s ease, opacity .35s ease, clip-path .35s ease, transform .35s ease;
  position: relative;
  z-index: 2;
}

#dropzoneID .effect-eg::before {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--burn-top, 0%);
  width: 11px;
  height: 17px;
  transform: translate(-50%, -55%) scale(var(--flame-scale, 1));
  transform-origin: center bottom;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 50% 70%, rgba(255,255,210,.95) 0 24%, rgba(255,177,54,.88) 42%, rgba(238,83,33,.72) 62%, rgba(238,83,33,0) 72%);
  opacity: var(--flame-opacity, 1);
  filter: blur(.15px) drop-shadow(0 0 7px rgba(255,170,55,.8));
  animation: memorialFlameFlicker 1.15s infinite alternate ease-in-out;
  z-index: 5;
  pointer-events: none;
}

#dropzoneID .effect-eg.shape-mecses::before {
  top: 8%;
  width: 10px;
  height: 14px;
}

#dropzoneID .effect-eg.shape-mecses {
  animation: memorialLightPulse 1.8s infinite ease-in-out;
}

#dropzoneID .effect-eg.shape-gyertya::before,
#dropzoneID .effect-eg.shape-gyertya::after {
  content: none;
}

#dropzoneID .effect-eg.shape-gyertya .candle-body-clip {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--candle-body-height, 70%);
  overflow: hidden;
  z-index: 2;
  transition: height .35s ease;
  pointer-events: none;
}

#dropzoneID .effect-eg.shape-gyertya .candle-body-clip .grave-item-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--source-img-height, 100%);
  max-width: none;
  clip-path: none;
  object-fit: fill;
  object-position: bottom center;
}

#dropzoneID .effect-eg.shape-gyertya .candle-body-clip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 86%;
  height: 10px;
  min-height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255,255,248,.94) 0 28%, rgba(242,229,196,.86) 48%, rgba(200,172,126,.42) 78%, rgba(200,172,126,0) 100%);
  box-shadow: inset 0 -1px 2px rgba(117,82,42,.22);
  z-index: 3;
  pointer-events: none;
}

#dropzoneID .effect-eg.shape-gyertya .candle-wick {
  position: absolute;
  left: 50%;
  bottom: calc(var(--candle-body-height, 50px) - 2px);
  width: 3px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(to bottom, #4b2c15, #1d120b);
  z-index: 5;
  pointer-events: none;
}

#dropzoneID .effect-eg.shape-gyertya .candle-flame {
  position: absolute;
  left: 50%;
  bottom: calc(var(--candle-body-height, 50px) + 1px);
  width: 11px;
  height: 17px;
  transform: translateX(-50%) scale(var(--flame-scale, 1));
  transform-origin: center bottom;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 50% 70%, rgba(255,255,210,.96) 0 24%, rgba(255,177,54,.9) 42%, rgba(238,83,33,.75) 62%, rgba(238,83,33,0) 72%);
  opacity: var(--flame-opacity, 1);
  filter: blur(.15px) drop-shadow(0 0 7px rgba(255,170,55,.8));
  animation: memorialCandleFlameSoft 1.85s infinite alternate ease-in-out;
  z-index: 6;
  pointer-events: none;
}


#dropzoneID .effect-eg.shape-gyertya.flame-soft .candle-flame {
  width: 10px;
  height: 23px;
  clip-path: polygon(50% 0%, 64% 9%, 78% 28%, 82% 53%, 74% 79%, 58% 100%, 42% 100%, 26% 79%, 18% 53%, 22% 28%, 36% 9%);
  background:
    radial-gradient(circle at 50% 80%, rgba(255,255,220,.98) 0 18%, rgba(255,196,80,.93) 34%, rgba(239,110,42,.8) 56%, rgba(239,110,42,0) 76%);
  animation: memorialCandleFlameSoft 1.85s infinite alternate ease-in-out;
}

#dropzoneID .effect-eg.shape-gyertya.flame-flicker .candle-flame {
  animation: memorialCandleFlameFlicker 0.82s infinite alternate ease-in-out;
}

#dropzoneID .effect-eg.shape-gyertya.flame-wind .candle-flame {
  animation: memorialCandleFlameWind 1.32s infinite alternate ease-in-out;
  transform-origin: center bottom;
}

#dropzoneID .effect-eg.shape-gyertya .candle-wax {
  position: absolute;
  top: calc(100% - var(--candle-body-height, 50px) + 8px);
  width: 19%;
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(to bottom, rgba(255,244,212,.92), rgba(235,210,165,.72) 55%, rgba(235,210,165,0));
  opacity: var(--wax-opacity, 0);
  filter: blur(.25px);
  z-index: 4;
  pointer-events: none;
}

#dropzoneID .effect-eg.shape-gyertya .candle-wax-a {
  left: 63%;
  height: var(--wax-a-height, 24px);
}

#dropzoneID .effect-eg.shape-gyertya .candle-wax-b {
  left: 27%;
  height: var(--wax-b-height, 18px);
  top: calc(100% - var(--candle-body-height, 50px) + 15px);
  opacity: calc(var(--wax-opacity, 0) * .72);
}

#dropzoneID .effect-hervad.state-mid .grave-item-img {
  filter: sepia(.28) saturate(.78) brightness(.94);
  transform: rotate(1.5deg);
}

#dropzoneID .effect-hervad.state-low .grave-item-img,
#dropzoneID .effect-hervad.state-dead .grave-item-img {
  filter: sepia(.7) saturate(.42) brightness(.78) contrast(.95);
  transform: rotate(4deg) translateY(2px);
  opacity: .88;
}

#dropzoneID .effect-kopik.state-mid .grave-item-img {
  filter: grayscale(.22) saturate(.72) brightness(.96);
  opacity: .92;
}

#dropzoneID .effect-kopik.state-low .grave-item-img,
#dropzoneID .effect-kopik.state-dead .grave-item-img {
  filter: grayscale(.58) saturate(.42) brightness(.86);
  opacity: .78;
}

#dropzoneID .state-dead {
  /*opacity: .62;*/
}

.candle-row .item-kind {
  display: block;
  font-size: 12px;
  opacity: .78;
  margin-top: 1px;
}

.candle-row .state-bar {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(90,68,48,.15);
  overflow: hidden;
}

.candle-row .state-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  opacity: .55;
}

.candle-row.effect-eg { color: #8a4d13; }
.candle-row.effect-hervad { color: #5d6d2a; }
.candle-row.effect-kopik { color: #5f6570; }

.candle-choice.effect-hervad {
  background: #fff8ea;
}

.candle-choice.effect-kopik {
  background: #f6f4ee;
}

@keyframes memorialFlameFlicker {
  0% { transform: translate(-50%, -55%) scale(calc(var(--flame-scale, 1) * .92)) rotate(-2deg); opacity: calc(var(--flame-opacity, 1) * .78); }
  45% { transform: translate(-50%, -58%) scale(calc(var(--flame-scale, 1) * 1.08)) rotate(2deg); opacity: var(--flame-opacity, 1); }
  100% { transform: translate(-50%, -56%) scale(calc(var(--flame-scale, 1) * .98)) rotate(-1deg); opacity: calc(var(--flame-opacity, 1) * .9); }
}


@keyframes memorialCandleFlameSoft {
  0% { transform: translateX(-50%) translateY(1px) scale(calc(var(--flame-scale, 1) * .96)) rotate(-1deg); opacity: calc(var(--flame-opacity, 1) * .84); }
  55% { transform: translateX(-50%) translateY(0) scale(calc(var(--flame-scale, 1) * 1.04)) rotate(1deg); opacity: var(--flame-opacity, 1); }
  100% { transform: translateX(-50%) translateY(1px) scale(calc(var(--flame-scale, 1) * .99)) rotate(0deg); opacity: calc(var(--flame-opacity, 1) * .92); }
}

@keyframes memorialCandleFlameFlicker {
  0% { transform: translateX(-50%) translateY(1px) scale(calc(var(--flame-scale, 1) * .92)) rotate(-2deg); opacity: calc(var(--flame-opacity, 1) * .78); }
  45% { transform: translateX(-50%) translateY(0) scale(calc(var(--flame-scale, 1) * 1.08)) rotate(2deg); opacity: var(--flame-opacity, 1); }
  100% { transform: translateX(-50%) translateY(1px) scale(calc(var(--flame-scale, 1) * .98)) rotate(-1deg); opacity: calc(var(--flame-opacity, 1) * .9); }
}


@keyframes memorialCandleFlameWind {
  0% { transform: translateX(-50%) translateY(1px) scale(calc(var(--flame-scale, 1) * .92)) skewX(-5deg) rotate(-6deg); opacity: calc(var(--flame-opacity, 1) * .78); }
  42% { transform: translateX(-54%) translateY(0) scale(calc(var(--flame-scale, 1) * 1.08)) skewX(-10deg) rotate(-9deg); opacity: var(--flame-opacity, 1); }
  100% { transform: translateX(-48%) translateY(1px) scale(calc(var(--flame-scale, 1) * .98)) skewX(-6deg) rotate(-5deg); opacity: calc(var(--flame-opacity, 1) * .9); }
}

@keyframes memorialLightPulse {
  0%, 100% { filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)) drop-shadow(0 0 4px rgba(255,179,69,.25)); }
  50% { filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)) drop-shadow(0 0 10px rgba(255,179,69,.42)); }
}
#dropzoneID .grave-item.grave-candle {
  animation: none;
}

/* =========================================================
   Mobil szerkesztő panel javítás
   A sírkő- és kiegészítő-választó mobilon nem oldalsáv,
   hanem felső, vízszintesen görgethető eszközsáv.
   Így nem csúszik rá / ki a sírkő mellett.
   ========================================================= */
@media (max-width: 640px) {
  #emlekhely_editor .temeto-hatter.edit .sirkovek,
  #emlekhely_editor .temeto-hatter.edit .kiegeszitok {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 10px;
    right: 10px;
    width: auto;
    height: 68px;
    max-height: 68px;
    padding: 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    border-radius: 10px;
    opacity: .92;
    z-index: 70;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  #emlekhely_editor .temeto-hatter.edit .sirkovek {
    top: 10px;
  }

  #emlekhely_editor .temeto-hatter.edit .kiegeszitok {
    top: 88px;
  }

  #emlekhely_editor .temeto-hatter.edit .kiegeszitok.hide {
    display: none !important;
  }

  #emlekhely_editor .sirkovek .sirk,
  #emlekhely_editor .kiegeszitok .kiegs {
    display: inline-block;
    flex: 0 0 58px;
    width: 58px;
    height: 52px;
    margin: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  #emlekhely_editor .sirkovek .sirk.sel,
  #emlekhely_editor .kiegeszitok .kiegs.sel {
    border-radius: 10px;
  }

  #emlekhely_editor .sirkov-container {
    top: 170px;
  }
}

@media (max-width: 380px) {
  #emlekhely_editor .temeto-hatter.edit .sirkovek,
  #emlekhely_editor .temeto-hatter.edit .kiegeszitok {
    left: 6px;
    right: 6px;
    height: 62px;
    max-height: 62px;
    padding: 5px 6px;
  }

  #emlekhely_editor .temeto-hatter.edit .kiegeszitok {
    top: 78px;
  }

  #emlekhely_editor .sirkovek .sirk,
  #emlekhely_editor .kiegeszitok .kiegs {
    flex-basis: 52px;
    width: 52px;
    height: 48px;
  }

  #emlekhely_editor .sirkov-container {
    top: 154px;
  }
}

/* =========================================================
   Mobil szerkesztő: oldalsó fülek + becsúszó panelek
   Desktop/tablet nézetet nem módosít.
   ========================================================= */
.mobile-editor-tab,
.mobile-editor-shade {
  display: none;
}

@media (max-width: 640px) {
  #emlekhely_editor .temeto-hatter.edit {
    overflow: hidden;
  }

  #emlekhely_editor .temeto-hatter.edit .mobile-editor-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    width: 34px;
    min-height: 132px;
    height: auto;
    padding: 10px 4px;
    border: 0;
    border-radius: 0 14px 14px 0;
    background: var(--linkek);
    color: var(--vilagos);
    box-shadow: 0 4px 18px rgba(0,0,0,.25);
    z-index: 130;
    cursor: pointer;
    writing-mode: horizontal-tb;
    text-orientation: initial;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: transparent;
  }

  #emlekhely_editor .temeto-hatter.edit .mobile-editor-tab-char {
    display: block;
    line-height: 1.05;
  }

  #emlekhely_editor .temeto-hatter.edit .mobile-editor-tab-sirkovek {
    left: 0;
  }

  #emlekhely_editor .temeto-hatter.edit .mobile-editor-tab-kiegeszitok {
    right: 0;
    left: auto;
    border-radius: 14px 0 0 14px;
  }

  #emlekhely_editor.mobile-panel-sirkovek .temeto-hatter.edit .mobile-editor-tab-sirkovek,
  #emlekhely_editor.mobile-panel-kiegeszitok .temeto-hatter.edit .mobile-editor-tab-kiegeszitok {
    display: none !important;
  }

  #emlekhely_editor .temeto-hatter.edit .mobile-editor-shade {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.28);
    z-index: 118;
  }

  #emlekhely_editor.mobile-panel-sirkovek .mobile-editor-shade,
  #emlekhely_editor.mobile-panel-kiegeszitok .mobile-editor-shade {
    display: block;
  }

  #emlekhely_editor .temeto-hatter.edit .sirkovek,
  #emlekhely_editor .temeto-hatter.edit .kiegeszitok {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(82vw, 320px);
    height: auto;
    max-height: none;
    padding: 18px 12px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
    border-radius: 0;
    opacity: .97;
    background: var(--linkek);
    box-shadow: 0 0 26px rgba(0,0,0,.32);
    z-index: 125;
    box-sizing: border-box;
    transition: transform .22s ease;
    -webkit-overflow-scrolling: touch;
  }

  #emlekhely_editor .temeto-hatter.edit .sirkovek {
    left: 0;
    right: auto;
    transform: translateX(-105%);
  }

  #emlekhely_editor .temeto-hatter.edit .kiegeszitok {
    right: 0;
    left: auto;
    transform: translateX(105%);
  }

  #emlekhely_editor.mobile-panel-sirkovek .temeto-hatter.edit .sirkovek,
  #emlekhely_editor.mobile-panel-kiegeszitok .temeto-hatter.edit .kiegeszitok {
    transform: translateX(0);
  }

  #emlekhely_editor .temeto-hatter.edit .kiegeszitok.hide {
    display: block !important;
    transform: translateX(105%);
  }

  #emlekhely_editor.mobile-panel-kiegeszitok .temeto-hatter.edit .kiegeszitok.hide {
    transform: translateX(0);
  }

  #emlekhely_editor .sirkovek .sirk,
  #emlekhely_editor .kiegeszitok .kiegs {
    display: block;
    width: 100%;
    height: 86px;
    margin: 0 0 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 14px;
    background-color: rgba(255,255,255,.12);
  }

  #emlekhely_editor .kiegeszitok .item-template,
  #emlekhely_editor .kiegeszitok .kiegs .item-template {
    margin-left: auto;
    margin-right: auto;
  }

  #emlekhely_editor .sirkovek .sirk.sel,
  #emlekhely_editor .kiegeszitok .kiegs.sel {
    border-radius: 14px;
  }

  #emlekhely_editor .sirkov-container {
    top: 60px;
  }
}

@media (max-width: 380px) {
  #emlekhely_editor .temeto-hatter.edit .sirkovek,
  #emlekhely_editor .temeto-hatter.edit .kiegeszitok {
    width: min(86vw, 300px);
    padding: 16px 10px 20px;
  }

  #emlekhely_editor .temeto-hatter.edit .mobile-editor-tab {
    width: 30px;
    min-height: 118px;
    font-size: 12px;
    padding: 9px 3px;
  }

  #emlekhely_editor .sirkovek .sirk,
  #emlekhely_editor .kiegeszitok .kiegs {
    height: 78px;
  }
}

/* =========================================================
   Mobil görgetés javítás nézet módban
   Szerkesztésen kívül a sírkő felület ne fogja meg a függőleges görgetést.
   ========================================================= */
@media (max-width: 640px) {
  #emlekhely_editor .temeto-hatter:not(.edit) .sirkov-container,
  #emlekhely_editor .temeto-hatter:not(.edit) #dropzoneWrap,
  #emlekhely_editor .temeto-hatter:not(.edit) #dropzoneID,
  #emlekhely_editor .temeto-hatter:not(.edit) #dropzoneID [data-fname],
  #emlekhely_editor .temeto-hatter:not(.edit) #graveCandles,
  #emlekhely_editor .temeto-hatter:not(.edit) #dropzoneID .grave-item {
    touch-action: pan-y;
  }
}

/* Szerkesztés módban a mozgatható objektumok legyenek a gyertya overlay felett. */
#emlekhely_editor .temeto-hatter.edit #graveCandles {
  pointer-events: none !important;
  z-index: 20;
}

#emlekhely_editor .temeto-hatter.edit #dropzoneID .pending-kieg,
#emlekhely_editor .temeto-hatter.edit #dropzoneID .kieg,
#emlekhely_editor .temeto-hatter.edit #dropzoneID [data-kieg-id],
#emlekhely_editor .temeto-hatter.edit #dropzoneID > .grave-positioned[data-ehk-id] {
  z-index: 90;
  pointer-events: auto !important;
}

#emlekhely_editor .temeto-hatter.edit #dropzoneID [data-fname="kep"].empty-image-wrapper {
  pointer-events: none !important;
  cursor: default !important;
}

#emlekhely_editor .temeto-hatter.edit #dropzoneID .pending-kieg,
#emlekhely_editor .temeto-hatter.edit #dropzoneID .kieg,
#emlekhely_editor .temeto-hatter.edit #dropzoneID [data-kieg-id],
#emlekhely_editor .temeto-hatter.edit #dropzoneID > .grave-positioned[data-ehk-id] {
  cursor: move;
  touch-action: none;
}



/* Emlék-kellék vendég idézet / eltávolítás */
.candle-modal .field-help {
  margin: 4px 0 10px 0;
  font-size: 12px;
  opacity: .75;
}

.candle-modal select,
.candle-modal input[type="text"],
.candle-modal textarea {
  width: 100%;
  box-sizing: border-box;
}

.required-star {
  color: #8b2e16;
  font-weight: 700;
}

.candle-row-body {
  min-width: 0;
  flex: 1 1 auto;
}

.item-delete-btn {
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid rgba(120,55,30,.28);
  background: #fff0dc;
  color: #6b3320;
  cursor: pointer;
  font-size: 12px;
}

.item-delete-btn:hover {
  background: #f7dec0;
}

.delete-item-modal p {
  margin: 0 0 10px 0;
}


/* ==============================
   Jobb oldali kellék kategóriák
   ============================== */

#emlekhely_editor .kiegeszitok {
  /*top: 0px !important;*/
  padding-top: 0px !important;
  overflow-y: auto;
}

#kellekek.kiegeszitok {
  padding-top: 0px !important;
}

#kellekek .kellek-category-header {
  position: sticky;
  top: 0px;
  z-index: 8;
  display: block;
  width: 100%;
  padding: 4px 3px;
  margin: 0 0 6px 0;
  box-sizing: border-box;
  background: var(--linkek);
  border-bottom: 1px solid rgba(255,250,238,.24);
}

#kellekek .kellek-category-tab {
  display: block;
  width: 100%;
  min-height: 28px;
  margin: 0 0 4px 0;
  padding: 5px 3px;
  border: 1px solid rgba(255,250,238,.28);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  color: var(--vilagos);
  font-size: 11px;
  line-height: 1.1;
  cursor: pointer;
  box-sizing: border-box;
}

#kellekek .kellek-category-tab:last-child {
  margin-bottom: 0;
}

#kellekek .kellek-category-tab.active {
  background: var(--lagyzold);
  color: var(--button_color);
  font-weight: 700;
}

#kellekek .kellek-category-body {
  padding: 0 3px 8px 3px;
  box-sizing: border-box;
}

#kellekek .kellek-group {
  display: none;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

#kellekek .kellek-group.active {
  display: block;
}

#kellekek .kellek-group h4 {
  display: none;
}

/* Időalapú emlék-kellék rétegezés: a konkrét z-indexet a JS számolja.
   A wrapper nem kaphat saját z-indexet, különben az automata kellékek
   nem tudnának a kézzel pozícionált kellékekkel közös rétegben rendeződni. */
#emlekhely_editor #dropzoneID #graveCandles,
#emlekhely_editor .temeto-hatter.edit #dropzoneID #graveCandles {
  z-index: auto;
}


/* ==============================
   Kézzel elhelyezett kellékek szerkesztési javításai
   - a vázába húzott virág oldalra kilóghat, nem vágja le a dropzone
   - húzás közben az objektum áttetsző, hogy látszódjon mi van alatta
   ============================== */
#emlekhely_editor #dropzoneWrap,
#emlekhely_editor #dropzoneID,
#emlekhely_editor .temeto-hatter.edit #dropzoneWrap,
#emlekhely_editor .temeto-hatter.edit #dropzoneID {
  overflow: visible !important;
}

#emlekhely_editor .temeto-hatter.edit #dropzoneID .manual-kellek-dragging,
#kellekek .item-template.ui-draggable-dragging {
  opacity: .68 !important;
  background-color: rgba(255, 255, 255, .25) !important;
}

#emlekhely_editor .temeto-hatter.edit #dropzoneID .manual-kellek-dragging img,
#kellekek .item-template.ui-draggable-dragging img {
  pointer-events: none;
}

/* ==============================
   Sírkő felirat / data-fname mezők húzás közben
   - csak a háttér lesz áttetszőbb, a szöveg marad olvasható
   ============================== */
#emlekhely_editor .temeto-hatter.edit #dropzoneID .manual-fname-dragging {
  background-color: rgba(255, 250, 238, .32) !important;
  border-color: rgba(90, 68, 48, .45) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12) !important;
}

#emlekhely_editor .temeto-hatter.edit #dropzoneID.sirko-theme-light .manual-fname-dragging,
#emlekhely_editor .temeto-hatter.edit #dropzoneID.sirko-theme-gold .manual-fname-dragging,
#emlekhely_editor .temeto-hatter.edit #dropzoneID.sirko-theme-white .manual-fname-dragging {
  background-color: rgba(34, 24, 18, .22) !important;
  border-color: rgba(255, 238, 196, .36) !important;
}
#kellekek .item-template img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin: auto;
}


/* =========================================================
   Mobil szerkesztő görgetés javítás v9
   - Mobilon az editor nem használ transformot, így a becsúszó panelek
     valóban a látható képernyőhöz igazodnak.
   - Üres sírkő/canvas területen engedjük a függőleges görgetést.
   - Csak a ténylegesen mozgatható objektumok fogják meg a touch mozdulatot.
   ========================================================= */
@media (max-width: 640px) {
  #emlekhely_editor {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    top: 104px !important;
    height: calc(100vh - 154px) !important;
    max-width: 100vw !important;
    width: 100vw !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  #emlekhely_editor .temeto-hatter.edit {
    overflow: visible !important;
    touch-action: pan-y;
  }

  #emlekhely_editor .temeto-hatter.edit .sirkov-container,
  #emlekhely_editor .temeto-hatter.edit #dropzoneWrap,
  #emlekhely_editor .temeto-hatter.edit #dropzoneID {
    touch-action: pan-y !important;
  }

  #emlekhely_editor .temeto-hatter.edit #dropzoneID .editable,
  #emlekhely_editor .temeto-hatter.edit #dropzoneID [data-fname="kotojel"],
  #emlekhely_editor .temeto-hatter.edit #dropzoneID .pending-kieg,
  #emlekhely_editor .temeto-hatter.edit #dropzoneID .kieg,
  #emlekhely_editor .temeto-hatter.edit #dropzoneID [data-kieg-id],
  #emlekhely_editor .temeto-hatter.edit #dropzoneID > .grave-positioned[data-ehk-id],
  #emlekhely_editor .temeto-hatter.edit .ui-resizable-handle,
  #kellekek .item-template {
    touch-action: none !important;
  }

  #emlekhely_editor.mobile-panel-sirkovek,
  #emlekhely_editor.mobile-panel-kiegeszitok {
    overflow: visible !important;
  }

  #emlekhely_editor .temeto-hatter.edit .mobile-editor-shade {
    pointer-events: none !important;
  }

  #emlekhely_editor .temeto-hatter.edit .sirkovek,
  #emlekhely_editor .temeto-hatter.edit .kiegeszitok {
    position: fixed !important;
    top: 104px !important;
    bottom: 50px !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    z-index: 2300 !important;
  }

  #emlekhely_editor .temeto-hatter.edit .mobile-editor-tab {
    position: fixed !important;
    z-index: 2290 !important;
  }
}

@media (max-width: 380px) {
  #emlekhely_editor {
    top: 104px !important;
    height: calc(100vh - 154px) !important;
  }
}


/* ==============================
   Elfelejtett jelszó modal
   ============================== */
#forgotPasswordBox {
  position: fixed;
  display: none;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100vw - 24px));
  background-color: var(--vilagos);
  color: var(--sotetebb_barna);
  z-index: 2030;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 10px 10px 10px rgba(56, 30, 13, .35);
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

#forgotPasswordBox h2 {
  margin-top: 0;
}

#forgotPasswordBox .forgot-help {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.4;
}

#forgotPasswordBox input {
  font-size: 16px;
  height: 30px;
  width: 100%;
  margin-bottom: 10px;
  box-sizing: border-box;
}

#forgotPasswordBox button {
  margin: 5px;
}

#loginBox .forgotpass {
  background-color: var(--vilagos);
  color: var(--sotetbarna);
  border: 1px solid rgba(90, 68, 48, .35);
}


/* =========================================================
   Állapotképes gyertya javítás
   Csak az effect-eg + shape-gyertya síron megjelenő gyertyáit érinti.
   A többi kellék, mécses, virág, kézi mozgatás változatlan marad.
   ========================================================= */
#dropzoneID .effect-eg.shape-gyertya .candle-state-img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: var(--state-img-height, 100%);
  transform: translateX(-50%);
  object-fit: contain;
  object-position: bottom center;
}

#dropzoneID .effect-eg.shape-gyertya .candle-wick {
  bottom: calc(var(--candle-body-height, 50px) - 2px);
}

#dropzoneID .effect-eg.shape-gyertya .candle-flame {
  bottom: calc(var(--candle-body-height, 50px) + 1px);
}
