html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url("../media/bg_image_bright.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.header {
  display: flex;
  align-items: center;
  background-color: white;
  padding: 1% 3%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 15vh;
  max-height: 160px;
  margin-right: 2%;
}

.oldalcim {
  font-size: 4rem;
  font-weight: bold;
  color: #333;
  margin-left: 3vw;
}

.nav {
  display: flex;
  gap: 2vw;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.2vw;
  vertical-align: middle;
  padding: 6px 12px;
}

.nav a:hover {
  color: #007acc;
}

.nav a.aktiv {
  background-color: #FFD54F;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.menu-betu-gombok {
  display: flex;
  align-items: center;
  gap: 2vw;
  margin-left: auto;
}

.nav-gombok-container {
  display: flex;
  align-items: center;
  gap: 2vw;
  margin-left: auto;
}

.betumeretvaltogombok {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
}

.betumeretvaltogombok button {
  padding: 6px 12px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.betumeretvaltogombok button:hover {
  background-color: #005fa3;
  transform: scale(1.05);
}

.betumeretvaltogombok button:active {
  transform: scale(0.98);
}


p.szoveg {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

.felezett {
  display: flex;
  height: auto;
  gap: 2vw;
}

.left,
.right {
  flex: 1;
}

.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
}

figure {
  margin-top: 0;
  margin-bottom: 0;
}

.portre {
  height: 81vh;
  width: auto;
  display: block;
  margin: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

.portrecim {
  display: none;
}

@media screen and (max-width: 599px) {
  .header {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    height: 20%;
  }

  .menu-betu-gombok {
    flex-direction: column;
    gap: 1rem;
    margin-left: 0;
  }

  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .oldalcim {
    font-size: 3rem;
    margin: 1rem 0;
  }

  .nav a{
    font-size: 1.5rem;
  }

  .betumeretvaltogombok{
    margin: auto;
  }

  .felezett {
    flex-direction: column;
  }

  .portre {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
  }

  p.szoveg {
    padding: 0 1rem;
  }
}

@media screen and (min-width: 600px) and (max-width: 1023px) {
  html {
    font-size: 17px;
  }

  .felezett {
    flex-direction: row;
    gap: 2vw;
  }

  .left {
    flex: 4;
  }

  .right {
    flex: 6;
  }

  .portre {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .menu-betu-gombok {
    flex-direction: row;
    justify-content: flex-end;
    margin-left: auto;
  }

  .nav {
    gap: 1.5vw;
  }
}