/* Alap színek és változók */
:root {
    --bg: #fff;
    --text: #111;
    --button-bg: #222;
    --button-text: white;
    --nav-text: #111;
    --nav-bg: #ccc;
    --header-bg: #222;
    --header-text: #fff;
  }
  
  body.dark {
    --bg: #fff;
    --text: #111;
    --button-bg: #ccc;
    --button-text: #111;
    --nav-text: #fff;
    --nav-bg: #222;
    --header-bg: #ccc;
    --header-text: #111;
  }
  
  /* Alapbeállítások */
  html {
    font-size: 100%;
  }
  body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--text);
  }
  
  /* Strukturális elemek */
  header, nav, section, article, aside {
    padding: 1em;
  }
  header {
    background-color: var(--header-bg);
    color: var(--header-text);
    text-align: center;
  }

  footer {
    color: #fff;
    padding: 1em;
    background-color: #555;
    margin-bottom: auto;
  }

  footer a {
    color: #fff;
  }

  footer a:visited {
    color: #aaa; 
  }
  
  /* Navigáció */
  nav ul {
    display: flex;
    gap: 1em;
    align-items: center;
    list-style-type: none;
    background-color: var(--nav-bg);
    padding: 0.5em;
  }
  nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: var(--nav-text);
  }
  nav ul li a:hover {
    color: #555;
  }
  
  /* Fő tartalom */
  main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1em;
    flex: 1;
  }

  #wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  @media (max-width: 768px) {
    main {
      grid-template-columns: 1fr;
    }
  }
  
  /* Képek és videók */
  img {
    max-width: 100%;
    height: auto;
  }
  .hatterkep {
    width: 100%;
    height: auto;
    display: block;
  }
  video {
    width: 100%;
    height: auto;
  }
  
  /* Táblázat */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
  }
  th, td {
    border: 1px solid #999;
    padding: 0.5em;
    text-align: left;
  }
  th {
    background-color: #eee;
  }
  
  /* Űrlap */
  form {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  input, textarea, button {
    padding: 0.5em;
    font-size: 1em;
    width: 100%;
  }
  button {
    font-family: 'Segoe UI', sans-serif;
    background-color: var(--button-bg);
    color: var(--button-text);
    border: none;
    cursor: pointer;
  }
  button:hover {
    opacity: 0.85;
  }

  fieldset {
    border: none;
    padding: 0;
    margin: 0;
  }

  .checkbox-sor,
  .radio-sor {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
  }

  .checkbox-sor label,
  .radio-sor label {
    display: flex;
    align-items: center;
    gap: 0.3em;
    white-space: nowrap;
  }
  
  /* Ugrás link a tartalomhoz (képernyőolvasónak) */
  .ugras {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  .ugras:focus {
    position: static;
    width: auto;
    height: auto;
  }
  
  /* Nyomtatási nézet */
  @media print {
    nav, header, footer, aside, video {
      display: none;
    }
    main {
      grid-template-columns: 1fr;
    }
    body {
      color: black;
      background: white;
      font-size: 12pt;
    }
    img {
      max-width: 50%;
    }
  }
    


  #menu li:last-child {
    margin-left: auto;
  }

  .motor-kategoriak{
    padding: 0;
  }

  .motor-kategoriak a {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .motor-kategoriak figure {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    margin-left: 0;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
  }
  
  .motor-kategoriak figure:hover {
    background-color: #f5f5f5;
  }
  
  .motor-kategoriak img {
    max-width: 25%;
    height: auto;
    border-radius: 0.25rem;
    object-fit: cover;
  }
  
  .motor-kategoriak figcaption {
    flex: 1;
  }

  .cim {
    font-size: 1rem;
    font-weight: 500;
  }
  
  
  