.elso_logo{
	width:206px;
	height:79px;
}
.topnav {
  overflow: hidden;
  background-color: #fff;
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:center;
  
  
  position: fixed; /* Fixált pozíció a képernyő tetején */
  top: 0;
  left: 0;
  width: 100%; /* A teljes szélességet lefedi */
  z-index: 1000; /* Előtérben tartjuk */
  transition: top 0.3s ease-in-out; /* Simább mozgás görgetéskor */
 
}

.topnav a {
 
  display: block;
  color: grey;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 21px;
}

.topnav a:hover {

  color: black;
}

.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

.topnav .icon {
  display: none;
  color: black
}

@media screen and (max-width: 900px) {
  .topnav a:not(:first-child) {
  display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
	 padding: 10px; /* Növeli az interakciós területet */
  }
}

@media screen and (max-width: 900px) {
 
.elso_logo{
	width:206px;
	height:79px;
}
 .topnav.responsive {
 position: fixed;
   display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
@media only screen and (max-width: 941px) and (orientation: landscape) {
	.topnav a:not(:first-child) {
  display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
	 padding: 10px; /* Növeli az interakciós területet */
  }
	.topnav.responsive {
 position: fixed;
   display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:center;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

}