body {
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #000000;
}

a {
  color: #0066cc;
  text-decoration: underline;
}

a:visited {
  color: #b732ff;
}

header, footer {
  background: #004466;
  color: white;
  padding: 1rem;
}

header a, footer a {
  color: white;
  text-decoration: underline;
}

header a:visited, footer a:visited {
  color: #b732ff;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  background-color: transparent;
}

nav a:visited {
  color: #ffffff;
}

nav a:focus, nav a:hover {
  background-color: transparent;
  text-decoration: none;
}

nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

main a, section a {
  color: #0066cc;
}

main a:visited, section a:visited {
  color: #b732ff;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
}

.form-group {
  margin-bottom: 1rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  max-width: 600px;
  padding: 0.5rem;
  font-size: 1em;
}

button {
  padding: 0.5rem 1rem;
  font-size: 1em;
  margin-right: 0.5rem;
}

fieldset {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #ccc;
}

video, img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
  padding: 1rem 0;
}

details {
  background: #eee;
  padding: 0.5rem;
  border-left: 3px solid #ccc;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
}

th {
  background: #eee;
}

img {
  border: 2px solid #ccc;
  border-radius: 4px;
  transition: transform 0.2s;
}

a:hover img {
  transform: scale(1.02);
  border-color: #666;
}

body.kapcsolat-page main {
  background-image: url("img/bsod.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 2rem;
  border-radius: 10px;
}

body.kapcsolat-page form {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 600px;
  margin: auto;
}

aside {
  background-color: #fdf4dc;
  border-left: 5px solid #ffa500;
  padding: 1rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  main {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 1rem;
  }

  aside {
    grid-column: 1;
  }

  article {
    grid-column: 2;
  }
}

@media (max-width: 480px) {
  nav ul {
    flex-direction: column;
  }

  main {
    display: block;
  }
}

body.high-contrast {
  --high-contrast-font-size: 1.6rem;
  background: black;
  color: #ffff33;
  font-size: var(--high-contrast-font-size);
}

body.high-contrast a {
  color: #ffcc00;
  font-size: var(--high-contrast-font-size);
}

body.high-contrast details {
  background: black;
  color: #ffff33;
  border-left: 3px solid #ffff33;
  font-size: var(--high-contrast-font-size);
}

body.high-contrast table {
  background: black;
  color: #ffff33;
  border-collapse: collapse;
  font-size: var(--high-contrast-font-size);
}

body.high-contrast th,
body.high-contrast td {
  border: 1px solid #ffff33;
  background-color: black;
  color: #ffff33;
  font-size: var(--high-contrast-font-size);
}

body.high-contrast caption {
  color: #ffff33;
  background: black;
  padding: 0.5rem;
  font-size: var(--high-contrast-font-size);
}

body.kapcsolat-page.high-contrast form {
  background-color: #000 !important;
  color: #ffff33;
  border: 2px solid #ffff33;
  font-size: var(--high-contrast-font-size);
}

body.kapcsolat-page.high-contrast input,
body.kapcsolat-page.high-contrast textarea,
body.kapcsolat-page.high-contrast select {
  background-color: black;
  color: #ffff33;
  border: 1px solid #ffff33;
  font-size: var(--high-contrast-font-size);
}

body.kapcsolat-page.high-contrast label,
body.kapcsolat-page.high-contrast legend {
  color: #ffff33;
  font-size: var(--high-contrast-font-size);
}

body.high-contrast aside {
  background: black;
  border-left: 3px solid #ffff33;
  color: #ffff33;
  font-size: var(--high-contrast-font-size);
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 0;
  top: 0;
  background: #000;
  color: #fff;
  padding: 1rem;
  z-index: 100;
}
