/* Alapstílusok */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Oswald;
}
body {
  margin: 0;
  background-color: #ebe4c1;
}

/* Fejléc stílusok */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #8bc540; /* Zöldes szín */
  padding: 4px 20px;
  color: rgb(255, 255, 255);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 60px; /* Slimmer height */
}

/* Logo és cégnév */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
  vertical-align: middle;
}

.company-name {
  background-color: #c01d2e;
  background-image: linear-gradient(to top, #831521 0%, #e42338 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -moz-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-text-fill-color: transparent;
  text-decoration: none;
  font-size: 1.8em;
  font-weight: bold;
  display: inline-block;
  vertical-align: middle;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.nav-links a {
  color: #c01d2e;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: white;
}

/* Admin gomb */
.adminlogo {
  width: 2.2rem;
  position: relative;
  top: 0;
  right: 0;
  z-index: 100;
}

.admin {
  position: relative;
  display: inline-block;
}

/* Hamburger menu icon */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #c01d2e;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.menu-toggle:focus {
  outline: none;
}

/* Reszponzív stílusok */
@media (max-width: 768px) {
  header {
    padding: 8px 15px;
    flex-direction: column;
    height: auto;
    min-height: 45px;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    padding-left: 0;
    z-index: 1000;
    font-size: 1.1rem;
    background-color: transparent;
    
  }

  .logo img {
    height: 35px;
    margin-right: 8px;
    vertical-align: middle;
  }

  .company-name {
    font-size: 1.2em;
  }

  .menu-toggle {
    display: none; /* Hide the hamburger menu */
  }

  nav {
    width: 100%;
  }

  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 999;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #8bc540;
  }

  .nav-links li {
    
    width: auto;
    text-align: center;
  }

  .nav-links a {
    position: relative;
    font-size: 1.1rem;
    color: #c01d2e;
    
    display: inline-block;
  }

  .adminlogo {
    width: 1.7rem;
  }
}
