

#languageMenu a {
  padding: 0 6px 0 8px;
}

    nav {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-bottom: 1rem;
      flex-wrap: wrap;
      position: relative;
    }
    .language-container {
      position: relative;
    }
    .submenu {
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #ffffff;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      padding: 0.6rem 1rem;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.5s ease, opacity 0.4s ease;
      z-index: 1;
      min-width: 160px;
    }
    .submenu.open {
      max-height: 500px;
      opacity: 1;
    }
    .language-toggle {
      cursor: pointer;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      user-select: none;
    }
    .language-toggle .arrow {
      display: inline-block;
      transition: transform 0.3s ease;
    }
    .language-toggle.open .arrow {
      transform: rotate(180deg);
    }
    .submenu a {
      padding: 0.25rem 0;
      width: 100%;
      text-decoration: none;
      color: #333;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .submenu a:hover {
      background-color: #f0f0f0;
    }
    .flag {
      width: 18px;
      height: 12px;
      object-fit: cover;
      border-radius: 2px;
    }
    
    
/* Podstawowy styl menu */
nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.language-container {
  position: relative;
}

/* Submenu: ukryte do momentu kliknicia */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  z-index: 1;
  min-width: 140px;
}

.submenu.open {
  max-height: 500px;
  opacity: 1;
}

/* Ikona strzaBki */
.language-toggle {
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  user-select: none;
}

.language-toggle .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.language-toggle.open .arrow {
  transform: rotate(180deg);
}

.submenu a {
  padding: 0.25rem 0;
  width: 100%;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.submenu a:hover {
  background-color: #f0f0f0;
}



.logo-menu {
.flag {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 2px;
}
}

/* Flagii */
.flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

/* Responsywno[ */
@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  .language-container {
    width: 100%;
    text-align: center;
  }

  .language-toggle {
    font-size: 1.2rem;
  }

  .submenu {
    min-width: 100%;
    left: 0;
    top: 0;
  }

  .virtues-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .language-toggle {
    font-size: 1rem;
  }

  .submenu a {
    font-size: 0.9rem;
  }

  .virtues-grid {
    grid-template-columns: 1fr;
  }

  .submenu {
    position: static;
    width: 100%;
  }
}

