:root {
  --barca-red: #C8102E;
  --barca-yellow: #FDB927;
  --barca-blue: #002D72;
  --light-bg: #f5f5f5;
  --dark-text: #222;
}

html {
  font-size: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
}

header {
  background-color: var(--barca-blue);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 2em;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
}

nav ul li a.active {
  font-weight: bold;
  color: #ff6600;
  text-decoration: underline;
}

.hero {
  background-color: var(--barca-red);
  color: white;
  text-align: center;
  padding: 3em 1em;
  font-size: 1.5rem;
}

.news {
  padding: 2em;
  background-color: #fff;
}

.news-grid {
  display: grid;
  gap: 1em;
}

.news article {
  background: white;
  padding: 1em;
  border-left: 5px solid var(--barca-blue);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Új stílus a gyengénlátó mód gombhoz */
.contrast-toggle-btn {
  background: #fff;
  color: #000;
  padding: 0.5em;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  margin: 1em;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contrast-toggle-btn:hover {
  background-color: #ddd;
}

/* Már meglévő stílusok folytatódnak... */

.store-promo {
  background-color: var(--barca-yellow);
  text-align: center;
  padding: 2em;
}

.btn {
  background-color: var(--barca-blue);
  color: white;
  padding: 0.75em 1.5em;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  display: inline-block;
  margin-top: 1em;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #001a4d;
}

footer {
  background-color: #111;
  color: white;
  text-align: center;
  padding: 1em;
  font-size: 0.875rem;
}

footer a {
  color: #FDB927;
  text-decoration: none;
}

body.jatekosok-oldal {
  background-image: url('hatterproba01.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a:link {
  color: var(--barca-blue);
  text-decoration: underline;
}

a:visited {
  color: #ffffff !important;
  text-decoration: underline;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.3em;
}

.radio-group label,
.checkbox-group label {
  display: inline-flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 0.5em;
  gap: 0.3em;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Média lekérdezések */
@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    padding-left: 0;
  }

  nav li {
    width: 100%;
  }

  .hero {
    font-size: 1.2rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* High Contrast mód */
body.high-contrast {
  background-color: #000 !important;
  color: #fff !important;
  font-size: 1.25em;
}

body.high-contrast header,
body.high-contrast footer,
body.high-contrast .hero,
body.high-contrast .store-promo,
body.high-contrast .news article {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}

body.high-contrast a {
  color: #00ffff !important;
  text-decoration: underline;
}

body.high-contrast nav a.active {
  color: yellow !important;
}

body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background-color: #000;
  color: #fff;
  border: 2px solid #fff;
}

body.high-contrast label {
  font-size: 1.2em;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5em;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}
