/*---------------*/
/*HEADER CSS*/
/*---------------*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  background: var(--secondary-color);
  transition:
    background 0.3s ease,
    transform 0.4s ease; /* Smooth transitions */
  padding-bottom: 15px;
}

.header.hidden {
  transform: translateY(-100%);
}

.header .logo_header img {
  width: 150px;
  padding: 30px;
}
.menu-toggle,
.menu-icon {
  display: none;
}

.nav-links {
  border-radius: 20px;
  width: 100%;
  display: flex; /* Parent must be flex */
}

.nav-links a {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 500;
  display: inline-block; /* Or inline-block */
  margin: auto; /* This will center them if the parent is a column flexbox */
  text-align: center;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

.nav {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  width: 95%;
}

.lang {
  margin-left: 20px;
  margin-right: 20px;
  display: flex;
  gap: 10px;
}

.lang-icon {
  width: 24px; /* ikon szélessége */
  height: auto; /* arány megtartása */
  vertical-align: middle; /* középre igazítás a szöveghez képest */
  margin: 0 5px; /* bal és jobb margó a szép távolsághoz */
  transition: transform 0.2s; /* kis animáció hover-re */
}

.lang-icon:hover {
  transform: scale(1.2); /* nagyítás hover-re */
}

@media (max-width: 900px) {
  .header .logo_header img {
    width: 100px;
  }
  .nav {
    min-width: unset;
    width: 80%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  /* Show the icon image */
  .menu-icon {
    display: block;
    cursor: pointer;
  }

  .menu-icon img {
    width: 30px; /* Adjust size as needed */
    height: auto;
  }

  /* Hide the checkbox itself */
  .menu-toggle {
    display: none;
  }

  /* The Dropdown Menu Styling */
  .nav-links {
    display: none; /* Hidden by default on mobile */
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Sits right below the nav bar */
    left: 0;
    width: 100%;
    background-color: #fff; /* Match your site theme */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .menu-toggle:checked ~ .nav-links {
    display: flex;
    opacity: 1;
  }

  .nav-links a {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
  }

  /* Show menu when checkbox is checked */
  .menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* Keep language icons visible/inline */
  .lang {
    margin-right: 0;
    display: flex;
    gap: 10px;
  }
}
