html {
  scroll-behavior: smooth;
}

body {
  background-color: #9ca383;
  font-family: "Questrial", sans-serif;
  font-size:22px;
/*  font-family: "Poiret One", sans-serif; 
  font-weight: 200;
  font-style: normal; */
}

video, img {
	max-width:100%;
}

.clear_bud1 {
	clear:both;
}

.clear_bud1.nincsgyerek {
	display:none;
}


#cimlapseo {
  width:70%;
  margin: 0 auto;
}
#cimlapseo p {
  color:#3b3b30!important;
  font-size: 17px;
  text-align: justify;
}

header > div:last-child {
	/* background-image:url('csempek/fellap.jpg'); 
  background: linear-gradient(to right, #2e2e2e, #cccccc);*/
  background:#e4e4e4;
}

header > div:last-child p {
	font-weight:bold;
}

header .w3-display-topmiddle h1,header .w3-display-bottommiddle h1 {
	  font-family: "Poiret One", sans-serif;
  
   background: rgba(255, 255, 255, 0.6);
    width: auto;           /* Ne legyen 100% széles */
  margin: 3px auto;        /* Középre igazítás */
  display: table;     
  box-shadow: 1px 1px 35px white;
  text-shadow: 1px 1px 35px white;
  padding:7px 10px;
}

.w3-display-bottommiddle h1, .w3-display-bottommiddle, h1 {
	font-family: "Questrial", sans-serif;
	  font-family: "Poiret One", sans-serif;
  font-weight: 200;
  font-style: normal;
  font-weight:bold;
}

.w3-content.tartalom {
	background:#ffffff63;
	padding:10px 30px 30px 30px;
	margin-top:20px;
}

.w3-content.nincsgyerek {
	width:79.9999999%;
	float:right;
	margin-top:0;
}

.w3-panel.cikkben {
    margin: 0;
    padding: 0;
    margin: 8px 0px;
}

.w3-panel.cikkben .w3-button {
	padding:4px 9px;
}

.cimpcsempe {
	margin-top:0;
}

.h1cim {
	display:flex;
}

.w3-content .tartalom h1 {
margin:10px auto 10px auto;
  position: relative;
  font-size: 39px;
}

.w3-content .tartalom h2 {
	  font-family: "Poiret One", sans-serif;
}

.cimcsempe {
  margin-top:0!important;
}

.cimcsempe.ragad {
	margin-top:20px!important;
  position: fixed;
  top: 0;
  z-index: 1000;
}


.tartalom h1::after {
  content:'';
    position: absolute;
  top: 10px;
  right:-65px;
  width: 50px;
  height: 50px;
  background-image: url('https://budairezidenciaeladas.hu/wordpress/wp-content/uploads/2025/07/madar.png');
  background-size: 40px 40px;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.tartalom h1::before {
  content:'';
    position: absolute;
  top: 10px;
  left:-65px;
  width: 50px;
  height: 50px;
  background-image: url('https://budairezidenciaeladas.hu/wordpress/wp-content/uploads/2025/07/madar.png');
  background-size: 40px 40px;
  background-repeat: no-repeat;
  opacity: 0.8;
    transform: scaleX(-1);

}


.w3-content.tartalom h3 {
	font-weight:bold;
	color:darkred;
}

.w3-display-bottommiddle, .w3-display-topmiddle {
	width:100%;
	text-align:center;	
}

.w3-display-bottommiddle {
	font-size:21px;
	    white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w3-display-left {
	padding:0 10px;
	font-size:17px;
}

.w3-display-bottommiddle.w3-white {
  background-color: rgba(255, 255, 255, 0.8)!important; 
  text-shadow: 0px 0px 2px whit;
}

header .w3-display-bottommiddle, header .w3-display-topmiddle {
	text-transform:uppercase;
  background-color: rgba(255, 255, 255, 0.75); 
}


@media (min-width:993px) {

header {
	display:flex;
  column-gap: 20px;
      align-items: stretch; /* Ez húzza ki az elemeket egyforma magasságra */
}

header > div:first-child {
      flex: 3;
}

header > div:last-child {
      flex: 1;
}

	.clear_bud {
		clear:both;
	}

}

.w3-col {
	cursor:pointer;
}


.w3-col  IMG {
	/*  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); */

}

            .overlay {
            position: fixed;
            top: 10%;
            left: 10%;
            width: 80%;
            height: 80%;
            background: rgba(0, 0, 0, 0.9);
            color: white;
            display: none;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 20px;
            box-sizing: border-box;
            z-index: 1000;
        }
		
		        .overlay-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.5);
            display: none;
            z-index: 999;
        }
		
        .overlay-content {
            max-height: 100%;
            overflow-y: auto;
        }
        .close-btn {
            position: absolute;
            top: 10px;
            right: 20px;
            font-size: 30px;
            cursor: pointer;
        }
		.tartalomVan:hover {
			cursor:pointer;
		}
		
ul {
    list-style-position: inside;
    text-align: left;
    padding: 0;
}

ul li {
    display: list-item;
}

	
	.wp-block-gallery {
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  width: 100%;
    margin-bottom: 25px;
}
	
	

	.NEM-KELL-wp-block-gallery:first-of-type::before {
		content:'Kattintson a képekre a teljes képernyős nézethez!';
		display:block;
		text-align:center;
		font-size:17px;
		margin-bottom:0;
		font-style:italic;
		width:100%;
	}

	
.wp-block-gallery figure {
		padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
  width: calc(50% - 13px);
  aspect-ratio: 16 / 9;

	}

		
.wp-block-gallery figure:nth-of-type(3),.wp-block-gallery figure:nth-of-type(4),
.wp-block-gallery figure:nth-of-type(5),
.wp-block-gallery figure:nth-of-type(13),.wp-block-gallery figure:nth-of-type(14),
.wp-block-gallery figure:nth-of-type(15) {
  width: calc(33% - 15px);
  aspect-ratio: 16 / 9;

	}

		
.wp-block-gallery figure:nth-of-type(8),
.wp-block-gallery figure:nth-of-type(9),
.wp-block-gallery figure:nth-of-type(10) {
  width: calc(33% - 15px);
  aspect-ratio: 9 / 16;

	}
	
	.wp-block-gallery figure:nth-of-type(18) {
  width: calc(100%);
  aspect-ratio: 16 / 9;

	}
	
	
	
	.wp-block-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

    .wp-block-image img {
      max-width: 100%;
      height: auto;
      cursor: pointer;
      transition: transform 0.2s ease;
    }


/*
    .lightbox {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.9);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
    }
	
	*/
	
	
		.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}


    .lightbox img {
      max-width: 90vw;
      max-height: 90vh;
      box-shadow: 0 0 20px #000;
	  cursor:pointer;
    }

    .lightbox.active {
      display: flex;
    }
	
	 .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
    padding: 10px;
  }
  .nav-arrow.left { left: 20px; }
  .nav-arrow.right { right: 20px; }
  
    .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    user-select: none;
  }
  
  
    .thumbnail-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    max-width: 90vw;
    overflow-x: auto;
  }
  .thumbnail-bar img {
    width: 65px;
    height: 65px;
    object-fit: cover;
	cursor:pointer;
  }
  
  
    
    .flags {
	margin-top:10px;
  }
  .flags a img {
	overflow:hidden;
    width: 30px;
    height: 30px;
	margin-right:10px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
	float:left;
  }
  
  

  .flags.landing {
	  position:absolute;
	  top:10px;
	  left:10%;
	  width:100%;
  }

  .flags.landing a img {
	  box-shadow: 0 0 6px 3px black;
  }

  
body.rtlLang div,
body.rtlLang p,
body.rtlLang span,
body.rtlLang li,
body.rtlLang td,
body.rtlLang th,
body.rtlLang a,
body.rtlLang h1,
body.rtlLang h2,
body.rtlLang h3,
body.rtlLang h4,
body.rtlLang h5,
body.rtlLang h6,
body.rtlLang button {
  direction: rtl;
  unicode-bidi: embed;
}


  
  
  /*   BELÉPÉSI FORM     */ 
  
  
  
  #loginForm, #loginForm2 {
  display: <?= $hibas_jelszo ? 'flex' : 'none' ?>;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

#loginForm2 form,#loginForm form {
  background: #fff;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  width: 90%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#loginForm2 h2,#loginForm h2 {
  font-size: 27px;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#loginForm2 label,#loginForm label {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: #555;
  text-align: left;
  padding: 3px 0 0 6px;
}

#loginForm2 input[type="email"],#loginForm input[type="email"],
#loginForm2 input[type="password"],#loginForm input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

#loginForm2 input:focus,#loginForm input:focus {
  border-color: #2980b9;
  outline: none;
}

#loginForm2 button,#loginForm button {
  width: 100%;
  padding: 10px;
  margin-top: 20px;
  background-color: #2980b9;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#loginForm2 button:hover,#loginForm button:hover {
  background-color: #1f5f89;
}

#loginForm2 p,#loginForm p {
  margin-top: 10px;
  font-size: 13px;
  color: darkred;
  font-weight: bold;
  text-align: center;
}



.felsoSav {
	padding:0 5px 0 15px;
  border-radius: 5px;
}



.felsoSav.com {
background-color: #d1f4ffcf !important;
}

.w3-button {
  letter-spacing: 0;
  font-size: 20px;
    transition: all 0.5s ease; /* 0,5 másodperces animáció */
  padding:5px 9px;
  margin:5px 0;
  border-radius: 5px;
}


.felsoSav .w3-button {
  background-color: rgba(255, 255, 255, 0.7); /* Fehér háttér 80% áttetszőséggel */
  text-transform: uppercase;
  font-size:16px;
  letter-spacing: 0.5px;
  color: hsl(73, 15%, 48%);
}

.felsoSav .w3-button:hover {
  background-color: hsl(73, 15%, 68%)!important;
color:white!important;
}



a.w3-bar-item.w3-button::after {
  content: " ×";
  color: hsl(73, 15%, 58%);
  font-weight: bold;
  margin-left: 0.1em;
    transition: all 0.5s ease; /* 0,5 másodperces animáció */
  top:-0.5px;
  font-size:16px;
  position: relative;
}

a.w3-bar-item.w3-button:hover::after {
  color: white;
}



.cikkben .w3-button {
  background-color: rgba(255, 255, 255, 0.4); /* Fehér háttér 80% áttetszőséggel */
}


@media (max-width: 999px) {
	
  .w3-col.m6, .w3-half {
    width: 49.99999%;
    margin-bottom: 20px;
  }

  .cimcsempe {
    display: none;
  }
  
  .w3-content.nincsgyerek {
    width:100%;
  }
  
}



.flags a img {
  border:none;
  padding:2px;
  background-color: #ffffff;
  position:relative;
  top:-2.5px;
}


.flags a.aktiv img {
  padding:4px;
  background-color: #6c8cb7;
}


.flags a.aktiv img {
  width: 37px;
  height: 37px;
  margin-top:-4.5px;
}

.flags a:not(.aktiv) img {
  transition: padding 0.2s, background-color 0.3s, transform 0.3s;
}

.flags a:not(.aktiv):hover img {
  padding:2px;
/*  background-color: #6c8cb7; */
    transform: scale(1.2);
  transform-origin: center center;
}

#budcsempesor {
  display: grid;
  gap: 1rem;
}
	
@media (min-width: 600px) {
  #budcsempesor {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width:993px) {
	#budcsempesor {
	  grid-template-columns: repeat(5, 1fr);
	}
}

.budcsempe {
  box-sizing: border-box;
}



.budcsempe .w3-display-container {
	border-radius: 5px;
	overflow: hidden;
}

@keyframes rezeg {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-2px, -2px); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0, 0); }
}

.lezart {
  position: relative;
}

.lezart::before {
  content: "🔒";
  position: absolute;
  top: 28px;
  left: 8px;
  background-color: #57696a;
  color: white;
  font-size: 24px;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  box-shadow: 0 0 2px #00000088;
  z-index:1;
}


.rezgo::before {
  animation: rezeg 0.3s ease-in-out 4;
}