
/* GLOBÁLIS BEÁLLÍTÁSOK (Javított Layout) */
* { box-sizing: border-box; } /* Padding nem növeli a szélességet */

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Vízszintes görgetés tiltása */
    margin: 0; 
    padding: 0;
    font-family: 'Segoe UI', sans-serif; 
    background: #222222; 
    color: #eeeeee; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
} 

/* Képek sose lógjanak ki a dobozukból */
img { max-width: 100%; height: auto; display: block; }

/* Default link styling */
a { color: #ffffff; text-decoration: none; }
a:visited { color: #ffffff; }

/* Ensure buttons maintain white text color */
a[style*="background-color"] { color: white !important; }

/* HAMBURGER MENU HEADER */
.fejlec {
  z-index: 10;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background-color: rgba(0,0,0,0.8);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  box-sizing: border-box;
  overflow: visible;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #444444;
}

.branding-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* When menu is active, change navbar and show branding */
.fejlec:has(#mobileMenu.active) {
  background: rgba(0,0,0,0.8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fejlec:has(#mobileMenu.active) .branding-link {
  opacity: 1;
  pointer-events: auto;
}

/* Hamburger Menu - Hidden on desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  flex-shrink: 0;
  margin-left: auto;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.menu-nav {
  display: flex;
  gap: 12px;
  flex: 0;
  order: -1;
}

.menu-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  margin: 0 15px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  color: #ffffff;
}

.menu-link:hover {
  opacity: 0.8;
}

/* Mobile: Hamburger appears at max-width 768px */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .menu-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0,0,0,0.8);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    gap: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    z-index: 9999;
  }

  .menu-nav.active {
    max-height: 500px;
  }

  .menu-link {
    display: block;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left;
    font-size: 16px;
    transition: all 0.2s ease;
    color: #ffffff;
    margin: 0;
  }

  .menu-link:active {
    background-color: rgba(0, 0, 0, 0.08);
  }
}

/* Legacy header/nav support */
.header { 
    background: rgba(0,0,0,0.8); 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 100; 
    padding: 15px 0; 
    backdrop-filter: blur(5px); 
}

.nav { text-align: center; }
.nav a { margin: 0 15px; font-weight: bold; text-transform: uppercase; font-size: 14px; color: #ffffff; }

.main-content { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.main-content > .header {
    margin-top: 0 !important; /* Header stays at top */
}

.main-content > .header + .hero-image {
    margin-top: 0 !important; /* Hero block right after header gets no margin */
}

.main-content > .header + :not(.hero-image) {
    margin-top: 30px !important; /* Other block types after header get padding */
}

.hero-image { 
    position: relative; 
    height: 60vh; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #333; 
    width: 100%;
    margin-bottom: 10px; /* CSÖKKENTETT TÉRKÖZ */
}

    .hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: absolute; text-align: center; z-index: 10; color: #fff; width: 90%; }
.hero-text h1 { font-size: 3.5em; margin: 0; text-shadow: 2px 2px 4px #000; line-height: 1.2; }
.hero-text p { font-size: 1.5em; margin-top: 10px; }

.container { 
     
    margin: auto; 
    padding: 10px 20px; /* CSÖKKENTETT TÉRKÖZ (20px -> 10px) */
    width: 100%; 
}

.section-title { text-align: center; font-weight: 300; font-size: 2em; margin-bottom: 15px; margin-top: 20px; border-bottom: 1px solid #444444; padding-bottom: 5px; display: inline-block; } /* CSÖKKENTETT TÉRKÖZÖK */
.center-wrapper { text-align: center; width: 100%; }

.lightbox { 
    display: none; 
    position: fixed; 
    z-index: 99999; 
    padding-top: 0; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.95); 
}

.lightbox-content { 
    margin: auto; 
    display: block; 
    max-width: 90%; 
    max-height: 90vh; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    box-shadow: 0 0 20px #000;
}

/* Bezárás gomb */
.close { 
    position: fixed; 
    top: 20px; 
    right: 30px; 
    color: #fff; 
    font-size: 50px; 
    font-weight: bold; 
    cursor: pointer; 
    z-index: 100001; 
    text-shadow: 0 0 5px #000;
    line-height: 1;
}
.close:hover { color: #bbb; }

/* Nyilak JAVÍTVA: Fixed pozíció, középre igazítva */
.prev, .next { 
    cursor: pointer; 
    position: fixed; 
    top: 50%; 
    transform: translateY(-50%); 
    width: auto; 
    padding: 20px; 
    color: white; 
    font-weight: bold; 
    font-size: 50px; 
    transition: 0.3s; 
    user-select: none; 
    background-color: rgba(0,0,0,0.3); /* Halvány háttér */
    z-index: 100001; 
    border-radius: 5px;
    text-decoration: none;
}

.next { right: 20px; } /* Jobb szél */
.prev { left: 20px; }  /* Bal szél */

.prev:hover, .next:hover { background-color: rgba(255,255,255,0.2); }

/* Loading state for the lightbox image (small blur / lower opacity) */
.lightbox-content.loading {
    opacity: 0.85;
    filter: blur(2px);
}

@media only screen and (max-width: 700px) {
  .prev, .next { font-size: 30px; padding: 10px; }
}



/* CUSTOM VIDEO PLAYER CSS */
.video-wrapper {
  transition: transform 0.3s ease;
}
.video-wrapper.zoom {
  transform: scale(1.03);
}
.video-container {
  position: relative;
  background: #000;
  overflow: hidden;
}
.video-container:hover .controls {
  opacity: 1;
}
.controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgba(0,0,0,0.7);
  transition: opacity 0.3s;
  opacity: 0;
}
.controls button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.progress-container {
  flex: 1;
  height: 6px;
  background: #444;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: red;
  border-radius: 3px;
}
input[type=range].volume {
  width: 80px;
}
:fullscreen video,
:fullscreen .video-container {
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

.home-intro { text-align: center; max-width: 800px; margin: 0 auto 20px auto; line-height: 1.6; font-size: 1.1em; opacity: 0.9; padding: 0 10px; } /* CSÖKKENTETT TÉRKÖZ */
.gallery img {
  margin: 10px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 8px;
  max-height: 150px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery img:hover {
  transform: scale(1.1);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
.gallery-grid { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
    display: block;
    cursor: pointer;
    background: transparent !important;
}
.gallery-item:hover { transform: scale(1.02); }
/* A gallery img már a globális img szabállyal kezelve van, de itt megerősítjük a cover-t */
.gallery-item img { width: 100%; height: 250px; object-fit: cover; }

.caption { position: absolute; bottom: 0; background: rgba(0,0,0,0.7); width: 100%; text-align: center; padding: 10px; font-weight: bold; color: #fff; }

.about-flex {margin:10; display: flex; text-align: center; flex-wrap: wrap; gap: 20px; margin-top: 15px; align-items: center; justify-content: center; } /* CSÖKKENTETT TÉRKÖZ */
.about-text {margin:10; flex: 1; text-align: center; min-width: 300px; line-height: 1.8; text-align: justify; }
.about-img {margin:10; flex: 1; min-width: 300px; text-align: center; }
.about-img img {margin:10; max-width: 100%; border-radius: 5px; }

.footer { text-align: center; padding: 20px; background: #111111; color: #666666; width: 100%; margin-top: auto; border-top: 1px solid #444444; }
.footer a { color: #666666; }

/* Lightbox */

.lightbox { 
    display: none; 
    position: fixed; 
    z-index: 99999; 
    padding-top: 0; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0, 0, 0, 0.95); 
}

.lightbox-content { 
    margin: auto; 
    display: block; 
    max-width: 90%; 
    max-height: 90vh; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    box-shadow: 0 0 20px #000;
}

/* Bezárás gomb */
.close { 
    position: fixed; 
    top: 20px; 
    right: 30px; 
    color: #fff; 
    font-size: 50px; 
    font-weight: bold; 
    cursor: pointer; 
    z-index: 100001; 
    text-shadow: 0 0 5px #000;
    line-height: 1;
}
.close:hover { color: #bbb; }

/* Nyilak JAVÍTVA: Fixed pozíció, középre igazítva */
.prev, .next { 
    cursor: pointer; 
    position: fixed; 
    top: 50%; 
    transform: translateY(-50%); 
    width: auto; 
    padding: 20px; 
    color: white; 
    font-weight: bold; 
    font-size: 50px; 
    transition: 0.3s; 
    user-select: none; 
    background-color: rgba(0,0,0,0.3); /* Halvány háttér */
    z-index: 100001; 
    border-radius: 5px;
    text-decoration: none;
}

.next { right: 20px; } /* Jobb szél */
.prev { left: 20px; }  /* Bal szél */

.prev:hover, .next:hover { background-color: rgba(255,255,255,0.2); }

/* Loading state for the lightbox image (small blur / lower opacity) */
.lightbox-content.loading {
    opacity: 0.85;
    filter: blur(2px);
}

@media only screen and (max-width: 700px) {
  .prev, .next { font-size: 30px; padding: 10px; }
}
