* {
    -webkit-tap-highlight-color: transparent;
}
html, body {
  height: 100%;
  margin: 0;
}
body {
    margin: 0;
    flex: 1 0 auto;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top, #e0f2fe, #f3e2eb);
    color: #2c2d3b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;

}
header {
    background: linear-gradient(90deg, #3c3e42, #192f6e);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    width: 100%;
}
.logo {
  font-weight: 600;
  font-size: 1.5em;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: 1.1em;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
  transition: transform 0.2s;
}

.logo:hover {
  transform: scale(1.05);
  /* index: lekki efekt powiększenia przy hoverze */
}

.logo-icon {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  /* index: favicon lekko zaokrąglony */
}

/* navigation bar */
.navbar {
    margin: 0 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 0;
    
}

/* navigation elements */
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5em;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    transition: color 0.5s, transform 0.2s;
    text-align: center;
    font-size: 1.1em;
    cursor:pointer;
}
.nav-links a:hover {
  color: #38bdf8; /* jasny niebieski przy najechaniu */
}
.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}
.nav-links > li > a {
  display: inline-block;
  padding: 0.75em 0; /* fix for menu glitch */
}

/* dropdown */
.dropdown {
    position: relative;
}
.dropdown-content {
  padding: 0;
  opacity: 0;
  position: absolute;
  background-color: #34363a;
  top: 100%;
  left: -20%;
  min-width: 120px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  /*animation*/
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease;
}


.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    display: block;
    padding: 0.5em 1em;
    color: white;
    text-decoration: none;
    transition: background-color 0.2s;
}
.dropdown-content a:hover {
  background-color: #2b2d31;
}
.dropdown:hover .dropdown-content {
    opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

footer {
  background: linear-gradient(90deg, #3c3e42, #192f6e);
  color: white;
  text-align: center;
  padding: 1em 2em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.footer-text {
  flex: 1;
  text-align: center;
  margin: 0;
}
.lang-button {
  right: 2em;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: white;
  font-family: inherit;
  cursor: pointer;
  padding: 0.4em 0.8em;
  transition: background-color 0.3s, transform 0.2s;
}

.lang-button:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}


.dropdown-content-up {
  padding: 0;
  opacity: 0;
  position: absolute;
  background-color: #34363a;
  bottom: 100%;           /* lista pojawia się nad przyciskiem */
  left: 50%;
  min-width: 120px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transform: translate(-50%, 10px); /* animacja z dołu do góry */
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 10;
}

.dropdown-content-up li {
  list-style: none;
}

.dropdown-content-up a {
  display: block;
  padding: 0.5em 1em;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-content-up a:hover {
  background-color: #2b2d31;
}

/* klasa aktywna przy kliknięciu */
.dropdown-content-up.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.footer-dropdown {
  position: relative;  /* <-- pozycjonowanie kontekstu */
  display: inline-block;
  z-index: 9999;       /* <-- pewność, że dropdown będzie widoczny */
}


