/* HEADER BAR */

#topbar {

  height: 60px;
  background: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  z-index: 2000;
}


.topbar-left {

  display: flex;
  align-items: center;
  gap: 12px;

}

#logo {
  height: 36px;
  width: auto;
  max-height: 36px;
  object-fit: contain;
}

#siteTitle {

  font-size: 20px;
  font-weight: bold;
  margin-top: 5px;
}


.menu {
  list-style: none;        /* remove bullets */
  margin: 0;
  padding: 0;
  display: flex;           /* horizontal layout */
  gap: 20px;               /* space between items */
}

.menu-item {
  position: relative;      /* needed for dropdown */
}

.menu-item > span {
  cursor: pointer;
}
.dropdown-menu {
  display: none;              /* hidden by default */
  position: absolute;
  top: 100%;
  left: 0;

  list-style: none;
  margin: 0;
  padding: 10px;

  background-color: #111 !important; 
  white-space: nowrap;        /* prevents wrapping → fits content */
}

.dropdown-menu a {
  color: white !important;
  text-decoration: none;      /* remove underline */
  display: block;             /* makes clickable area nicer */
  padding: 5px 10px;
  background-color: transparent !important;
}

.menu .dropdown-menu a:hover {
  background-color: #333 !important;
  color: white !important;
}

/* show on hover */
.menu-item:hover .dropdown-menu {
  display: block;
}

/* Language */

.language-selector {
  display: flex;
  gap: 6px;

}

.flag {
  width: 16px;
  height: 12px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}

.flag:hover {
  opacity: 1;
}

.flag.active {
  opacity: 1;
  transform: scale(1.15);
}

