/* Apple-stílusú dizájn CSS */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}
  
body {
   background-color: #f5f5f7;
   color: #1d1d1f;
   overflow-x: hidden;
}

.content {
    transition: filter 0.3s ease;
}

.blurred .content {
    filter: blur(5px);
    pointer-events: none; /* Prevent clicking on blurred content */
}

/* Ensure header & dropdown stay clear */
header, .navbar, .dropdown-content {
    filter: none !important;
}

.blurred .overlay {
    opacity: 1;
    z-index: 99;
}

header{
  height: 30px;
  width: 100%;
  background-color: #f5f5f7ff;
  position: relative;
  filter: none;
} 

header.hidden {
    transform: translateY(-100%); /* Elrejti a headert */
    transition: transform 0.3s ease-in-out;
}

.navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f5f5f7ff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0,1);
  filter: none;
}
  
.navbar a {
  color: #1d1d1f;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
  transition: color 0.3s ease;
}
  
.navbar .dropdown {
  position: relative;
}

.home-button {
    position: absolute;
    left: 20px; /* Bal oldalra igazítás */
    top: 50%;
    transform: translateY(-50%);
}

.home-button img {
    width: 30px; /* Állítsd be a megfelelő méretet */
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.home-button img:hover {
    opacity: 0.7;
}

  
  /* Az alap menü */
.dropdown-content {
  display: none;  
  position: absolute;
  top: 100%;  
  left: 50%;
  transform: translateX(-50%);
  background-color: #f5f5f7ff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
  z-index: 1;
  min-width: max-content;
  width: max-content;
  padding: 10px 0;
  border-radius: 10px;
}
  
.submenu {
  display: none;  
  position: absolute;
  right: 100%;  
  top: 1.1vh;
  background-color: #f5f5f7ff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0);
  z-index: 2;
  min-width: max-content;
  width: max-content;
  padding: 0px 0;
  border-radius: 10px;
}

/* Az alap menü megjelenítése hover hatásra */
.dropdown:hover .dropdown-content {
  display: block;
}
  
  /* Az almenü megjelenítése, ha az egér az almenü elemén van (pl. Opció 1) */
.dropdown-content > a:hover + .submenu {
  display: block;  /* Csak akkor jelenik meg az almenü, ha az almenü elem fölött van az egér */
}
  
  /* A menü eltűnik, ha az egér nem a menü vagy almenü fölött van */
.dropdown:hover .dropdown-content,
.submenu:hover {
  display: block;  /* Az almenü akkor sem tűnik el, ha az almenü fölött van az egér */
}
  
  /* Az almenü menüpontok stílusa */
.dropdown-content a, .submenu a {
  color: rgb(22, 22, 22);
  padding: 10px 15px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
  white-space: nowrap;
}
  
  /* Hover effekt az almenü menüpontokhoz */
.dropdown-content a:hover,
.submenu a:hover {
  background-color: rgba(212, 212, 212, 0.459);
}

/* Language Switcher Styles */
.language-switcher {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 11;
}

.lang-toggle-container {
  position: relative;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background-color: rgba(245, 245, 247, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle-container:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background-color: rgba(245, 245, 247, 0.8);
}

.lang-option {
  background-color: transparent;
  color: rgba(29, 29, 31, 0.6);
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  min-width: auto;
  text-align: center;
  position: relative;
  letter-spacing: 0.01em;
  height: auto;
  line-height: 1.5;
}

.lang-option.active {
  background-color: transparent;
  color: #1d1d1f;
  font-weight: 600;
  box-shadow: none;
}

.lang-option:hover:not(.active) {
  color: rgba(29, 29, 31, 0.8);
  background-color: transparent;
}

.lang-option:active {
  transform: scale(0.98);
}
