/* ---- Alapbeállítások ---- */
body {
  font-family: Arial, sans-serif;
  max-width: 1000px;
  margin: auto;
  padding: 20px;
  background: url('képek/bevzeto.jpg') no-repeat center center fixed;
  background-size: cover;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #ffcc00;
  color: black;
  padding: 8px;
  z-index: 1000;
  text-decoration: none;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

/* ---- Navigácio ---- */
nav a {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  margin-right: 5px;
  border: 2px solid #ffcc00;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffcc00;
}

nav a.active {
  background-color: #ffcc00;
  color: black;
  font-weight: bold;
}

/* címsorok */
h1, h2 {
  background-color: rgba(255, 255, 255, 0.9);
  color: #001f3f;
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h3 {
  margin-bottom: 0;
}

/* ---- Fejléc ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #ffcc00;
  padding: 20px 0;
  margin-bottom: 5px;
}

/* ---- Tartalomblokok ---- */
article {
  margin-bottom: 60px;
  padding: 20px;
  border-bottom: 2px solid #ddd;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

/* ---- Sorok elrendezése (kép + szöveg) ---- */
.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 20px;
}

.row.reverse {
  flex-direction: row-reverse;
}

/* ---- Képek stílusa ---- */
.row img {
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ---- Szövegek stílusa ---- */
.row .text {
  flex: 1;
  max-width: 600px;
}

.row .text h3 {
  margin-top: 0;
}

.row .text p,
.row p {
  font-size: 1.1em;
  line-height: 2;
  margin-top: 10px;
}

/* ---- Mars felfedezéséhez kapcsolódó rész ---- */
article.mars {
  text-align: center;
}

article.mars h3 {
  margin-bottom: 10px;
}

article.mars p {
  font-size: 1.1em;
  line-height: 2;
  margin: 20px auto;
  max-width: 700px;
}

article.mars .row {
  justify-content: center;
  align-items: center;
}

article.mars .row img {
  margin-right: 30px;
}

/* ---- Footer stílusa ---- */
footer {
  border-top: 3px solid #ffcc00;
  padding: 15px 30px;
  margin-top: 40px;
  font-size: 16px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  margin-left: 10px;
  color: white;
  text-decoration: none;
  border: 2px solid #ffcc00;
  transition: all 0.2s ease;
}

.footer-links a {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 6px 12px;
  margin-right: 8px;
  text-decoration: underline;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* ---- Nyomtathatóság ---- */
@media print {
  body {
    background: none;
    margin: 0;
    padding: 0;
    font-size: 12pt;
  }

  header,
  nav,
  footer,
  video,
  .mars video,
  .footer-links img,
  .footer-content img {
    display: none;
  }

  .row img {
    max-width: 100%;
    height: auto;
  }

  .row .text,
  .row {
    width: 100%;
    margin: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  article {
    margin-bottom: 20px;
    padding: 10px;
  }
}
