body {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #222;
}

.elohely-hatter {
  position: relative;
  z-index: 0;
}

.elohely-hatter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Kép8.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  opacity: 0.35;
  z-index: -1;
}

header img.borito {
  width: 100%;
  display: block;
}

nav {
  background-color: #2e4d2c;
  padding: 0.5em;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a.active {
  text-decoration: underline;
}

main {
  padding: 1rem;
}

section, article, aside {
  margin-bottom: 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  left: auto;
  width: auto;
  height: auto;
  background-color: #fff;
  color: #000;
  padding: 0.5rem;
  z-index: 1000;
}

html[data-page="index"] .skip-link[href="#Erdekessegek"] {
  position: static;
  left: auto;
  width: auto;
  height: auto;
  overflow: visible;
  color: #2e4d2c;
  font-weight: bold;
  margin: 0.5rem 1rem;
  display: inline-block;
}

section article {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

section article p {
  flex: 1 1 45%;
  background-color: #e2f4dc;
  padding: 1rem;
  border-left: 4px solid #2e4d2c;
}

iframe {
  flex: 1 1 40%;
  max-width: 100%;
  width: 560px;
  height: 315px;
}

.details-szovegek {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.details-szovegek article {
  flex: 1;
  background-color: #e2f4dc;
  padding: 0.5rem;
  border-left: 4px solid #2e4d2c;
}

#Erdekessegek section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#Erdekessegek article {
  flex: 1 1 calc(50% - 1rem);
  background-color: #f2efe6;
  padding: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: #e2f4dc;
  padding: 1rem;
  border: 2px solid #2e4d2c;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 200px;
}

.form-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

form textarea {
  resize: vertical;
  width: 100%;
}

.images-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-image {
  flex: 1 1 48%;
}

.form-image img {
  width: 100%;
  height: auto;
  display: block;
}

details,
.elohely-hatter div[style*="max-height"] {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.elohely-hatter table {
  flex: 1 1 45%;
  overflow: auto;
  max-height: 10em;
  display: block;
  border-collapse: collapse;
  background-color: white;
}

.elohely-hatter th, .elohely-hatter td {
  border: 1px solid #888;
  padding: 0.5rem;
  text-align: left;
}

.elohely-hatter caption {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

figure img {
  max-width: 100%;
  height: auto;
}

footer {
  background-color: #2e4d2c;
  color: white;
  text-align: center;
  padding: 1rem;
}

a:not(nav a) {
  color: #2e4d2c;
  font-weight: bold;
  text-decoration: underline;
}

a:not(nav a):visited {
  color: #1f341f;
}

@media (max-width: 768px) {
  .elohely-hatter {
    background-size: contain;
    background-position: top center;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  section article,
  #Erdekessegek section,
  form,
  .details-szovegek,
  .form-row,
  .images-row {
    flex-direction: column;
  }

  details,
  .elohely-hatter div[style*="max-height"] {
    flex-direction: column;
  }
}
