html,
body {
  margin: 0;
  padding: 0;
  height: 100%; /* Biztosítja, hogy az oldal teljes magasságát használjuk */
  display: flex;
  flex-direction: column;
  background-color: #f4f4f4;
  font-family: "Montserrat", serif;
  z-index: 1;
}

/* A wrapper (oldaltartalom és footer szülő) */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Az oldal legalább a teljes képernyőmagasság */
}

/* A main tartalom kitölti a fennmaradó helyet */
main {
  margin: auto;
  flex: 1;
}

/* Header stílusok */
.header {
  font-family: "Montserrat", serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
}

.header .nav {
  display: flex;
  align-items: center;
  gap: 15px; /* Térköz a navigációs elemek között */
  padding-right: 20px;
}

.header .logo_header {
  padding-left: 60px;
  max-height: 70px;
}

/* Gombok alap stílusa */
.nav .button_partner {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  text-decoration: none;
  font-size: 1em;
  color: #5c5c5c;
  background-color: #f4f4f4;
  border: 1px solid #5c5c5c;
  border-radius: 21.5px;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}
.nav .button_sign_in,
.nav .button_sign_up,
.nav .button_contact_us{
  display: flex;
  align-items: center;
  gap: 8px; /* Térköz az ikon és a szöveg között */
  padding: 8px 15px;
  text-decoration: none;
  font-size: 1em;
  color: #5c5c5c;
  background-color: #fff;
  border: 1px solid #5c5c5c;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
}

/* Hover effektek */
.nav .button_partner:hover,
.nav .button_sign_in:hover,
.nav .button_sign_up:hover,
.nav .button_contact_us:hover{
  background-color: #dddddd; /* Zöld háttér szín hover */
  color: #5c5c5c;
  border-color: #5c5c5c;
}

/* Belépés és regisztráció ikon stílusa */
.nav .button_sign_in img,
.nav .button_sign_up img,
.nav .button_contact_us img {
  width: 16px; /* Ikon méret */
  height: 16px;
}

.logo_header img {
  width: 120px;
}

/* Az image-container a kép és a szöveg tartója */
.image-container {
  position: absolute; /* A szöveg pozícionálásához szükséges */
  top: 0;
  min-height: 500px;
  height: 665px;
  overflow: hidden;
  z-index: -5;
}

.image-container img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.searchbar_header {
  text-align: left;
  /*background-color: #f4f4f4;*/
  width: 1271px;
  margin: auto;
  margin-top: 45px;
}

.searchbar_header h1 {
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 0px;
  color: #ffffff; /*#3c3b3b; */
}

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

.dropdown-content {
  display: none; /* Alapértelmezett rejtett állapot */
  position: absolute;
  right: 20px;
  background-color: #f9f9f9;
  min-width: 160px;
  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: 75px;
}

.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: 1300px) {
  .searchbar_header {
    width: fit-content;
  }
}

@media (max-width: 1150px) {
  .searchbar_header {
    margin-top: 0px;
  }
  .searchbar_header h1 {
    margin-top: 0px;
  }
}

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

  .dropdown {
    display: inline-block;
  }
  .searchbar_header h1 {
    font-size: 35px;
  }
  .header .logo_header {
    padding-left: 30px;
  }
  .dropdown img {
    margin-right: 30px;
  }
}

@media (max-width: 425px) {
  .header .logo_header {
    padding-left: 10px;
  }
  .dropdown img {
    margin-right: 10px;
  }
  .searchbar_header h1 {
    font-size: 30px;
  }
  .dropdown-content {
    right: 0;
    min-width: fit-content;
  }
}
