html {
  scroll-behavior: smooth;
}

.site-header {
  background-color: #003552;
  padding-bottom: 30px;
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  z-index: 999;
}

.site-header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  margin-top: 5px;
}

.logo a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.site-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.main-nav a {
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  padding-top: 8px;
  padding-bottom: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #ffffff;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  border-bottom: solid white 2px;
}

.dropdown {
  display: none;
  position: relative;
}

.dropdown-content {
  display: none; /* Alapértelmezett rejtett állapot */
  position: absolute;
  top: 100%; /* place it below the image */
  left: 50%;
  transform: translateX(-60%);
  background-color: #f9f9f9;
  min-width: 130px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 10px;
}

.dropdown img {
  width: 38px;
  height: 27px;
  margin-right: 10px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
  border-radius: 10px;
  text-align: center;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  border-radius: 10px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .dropdown {
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .dropdown-content {
    transform: translateX(-70%);
  }
}

@media (max-width: 425px) {
  .dropdown-content {
    transform: translateX(-75%);
  }
}

@media (max-width: 320px) {
  .dropdown-content {
    transform: translateX(-80%);
  }
  .site-header .container {
    width: 95%;
  }
}
