/* =========================
   GLOBAL
========================= */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: auto;
}

/* =========================
   WRAPPER
========================= */

	#lft-tree-wrapper{
		width: 100vw;
		height: 100%; /* 🔥 kisebb, hogy maradjon hely a footernek */
	}
}

/* =========================
   WEBGL VIEWPORT
========================= */
#lft-viewport {
    width: 100%;
    background: #f8f8f8;
    position: relative;
    cursor: grab;

    /* 🔥 mobil scroll + gesture fix */
    touch-action: pan-y !important;
}

#lft-viewport:active {
    cursor: grabbing;
}


/* =========================
   LEFT BUTTON (◀)
========================= */
#scroll-left {
    position: fixed;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
	display: none;
}

/* =========================
   RIGHT BUTTON (▶)
========================= */
#scroll-right {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
	display: none;
}

/* =========================
 	ZOOM BUTTON
==========================*/
.zoom {
	display: flex;
	align-items: center; /* 🔥 középre igazítja vertikálisan */
	gap: 10px;
	position: absolute; /* ✅ */
	top:0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 50;
	padding-top: 5px;
}

/* 🔍 input stílus */
.zoom input {
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid #ccc;
	width: 160px;
	font-size: 14px;
}


/* =========================
   BUTTON STYLE
========================= */
.lft-controls button {
    background-color: #e11c0a;
    color: white;
    border: none;

    width: 50px;
    height: 55px;

    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, opacity 0.2s;

    opacity: 0.70;
}

.lft-controls button:hover {
    opacity: 1;
}
/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {



    .lft-controls button {
        width: 25px;
        height: 25px;
        font-size: 16px;
        color: white;
		padding: 0 1px 8px 0;
		
    }
}

/* =========================
   PIXI CANVAS
========================= */
#lft-viewport canvas {
    display: block;

    /* 🔥 fontos: saját gesture kezelés */
    touch-action: none;
}

/* =========================
   PAGE FIX (CUSTOM)
========================= */
.page-id-40156 .footer-widgets__inner {
    display: none;
}

.page-id-40156 .core-header__inner {
    display: none;
}

@media (max-width: 768px) {
	.page-id-40156 .footer-bottom{
		display:none;
	}
}


.search-box {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
}

.search-box input {
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #ccc;
	width: 260px;
	font-size: 16px;
}

.search-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.search-wrapper input {
	padding: 8px 36px 8px 12px; /* 🔥 jobb oldalon hely a hintnek */
	border-radius: 10px;
	border: 1px solid #ccc;
	width: 160px;
	font-size: 14px;
	opacity: 0.5;
}
.search-wrapper input:focus{
	opacity: 1;
}
.search-hint {
	position: absolute;
	right: 8px;
	font-size: 12px;
	color: #888;
	pointer-events: auto;
	cursor: pointer;

	opacity: 0; /* 🔥 alapból rejtve */
	transition: opacity 0.2s;
	z-index: 10;
}
/* =========================
   EXPORT BTN
========================= */
.export{
	display: flex;
	align-items: center; /* 🔥 középre igazítja vertikálisan */
	gap: 10px;
	position: absolute; /* ✅ */
	top:0;
	left: 50%;
	transform: translateY(-10%);
	left: 10px;
	z-index: 80;
	padding-top: 40px;

}

#export-btn{
	Border-radius: 10px;
	width: auto;
	position: absolute;
	align-items: center;
	display: flex;
	transform: translateX(50%);
}

@media (max-width: 768px) {
	.export{
		display:none;
	}
}



 .node-text {
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-anchor: middle;
  }

/* =========================
   Radial - tree BTN
========================= */

.tree button{
	width: auto ;
border-radius: 10px;
}

.radial button{
width: auto;
border-radius: 10px;
}