/* Alap stílusok */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --light-color: #ecf0f1;
    --beige-color: #f5f5dc;
    --gray-light: #bdc3c7;
    --gray-dark: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.highlight-font {
    font-family: 'Georgia', serif;
    color: #f9f1f0;
    font-weight: 800;
    font-style: italic;
    font-size: calc(2.5 * var(--font-base));
}

/* Fejléc */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0.5rem 0;
    font-size: 2rem;
}

/* Navigáció */
nav {
    background-color: var(--secondary-color);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0.5rem 0;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--accent-color);
}

nav .active a {
    background-color: var(--accent-color);
    font-weight: bold;
}

/* Fő tartalom */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.video-with-background {
  position: relative;
  width: 100%;
  max-width: 800px; /* vagy bármilyen méret */
  margin: 0 auto;
}

.video-background {
  position: absolute;
  width: 120%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Átlátszóság beállítása */
  filter: blur(2px); /* Opcionális: elmosás a háttérképnek */
  
}

.video-with-background video {
  width: 100%;
  display: block;
  background: transparent;
}



/* Videó wrapper stílusok */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 arány */
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* Kiemelt AI eszközök */
.featured-ai {
    text-align: center;
    margin: 2rem 0;
}

.ai-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.ai-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 250px;
    text-align: center;
    transition: transform 0.3s ease;
}

.ai-card:hover {
    transform: translateY(-5px);
}

.ai-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.ai-card figcaption {
    font-weight: bold;
    color: var(--primary-color);
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .ai-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .ai-card {
        width: 80%;
    }
}

/* Kép galéria */
/* Képgaléria stílusok */
.image-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.gallery-item {
    width: 300px;
    text-align: center;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.caption-center {
    margin-top: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    width: 100%;
    padding: 0.5rem 0;
}

/* Reszponzív beállítások */
@media (max-width: 768px) {
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .gallery-item {
        width: 90%;
        max-width: 300px;
    }
}

/* Táblázat alapstílusok */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

/* Lenyitható rész stílusai */
details {
    margin: 2rem 0;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
}


/* Űrlap */
.ai-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

aside.sidebar {
  background-color: var(--beige-color);
  padding: 1.5rem;
  border-radius: 8px;
  margin-left: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

aside.form-help {
  background-color: var(--light-color);
  padding: 1rem;
  border-left: 4px solid var(--accent-color);
  margin-top: 2rem;
}

/* Reszponzív elrendezés */
@media (min-width: 900px) {
  main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }
  
  aside.sidebar {
    margin-left: 0;
  }
}

@media (max-width: 899px) {
  aside.sidebar {
    margin: 2rem 0;
  }
}



fieldset {
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

legend {
    padding: 0 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    margin: 0.5rem 0;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.checkbox-group input {
    margin-right: 0.5rem;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-submit, .btn-cancel {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit {
    background-color: var(--accent-color);
    color: white;
}

.btn-submit:hover {
    background-color: #2980b9;
}

.btn-cancel {
    background-color: var(--gray-light);
    color: #333;
}

.btn-cancel:hover {
    background-color: var(--gray-dark);
    color: white;
}

/* Lábléc */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

address {
    font-style: normal;
    margin-top: 0.5rem;
}

/* Reszponzív design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.25rem 0;
    }
    
    .ai-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 1rem;
    }
}



/* Akadálymentesség */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

/* NAGY KONTRASZTÚ MÓD - TELJES FEKETE HÁTTÉR */
.high-contrast,
.high-contrast body,
.high-contrast header,
.high-contrast nav,
.high-contrast main,
.high-contrast footer,
.high-contrast section,
.high-contrast article,
.high-contrast aside,
.high-contrast .breadcrumb,
.high-contrast .ai-card,
.high-contrast .gallery-item,
.high-contrast .video-container,
.high-contrast .resources {
    background-color: #000 !important;
    color: #ff0 !important;
    border-color: #ff0 !important;
}

/* Minden szöveg és border sárga */
.high-contrast * {
    color: #ff0 !important;
    border-color: #ff0 !important;
}

/* Kivételek - interaktív elemek */
.high-contrast button,
.high-contrast input,
.high-contrast textarea,
.high-contrast select {
    background-color: #ff0 !important;
    color: #000 !important;
    border: 2px solid #000 !important;
}

/* Linkek aláhúzva */
.high-contrast a {
    text-decoration: underline !important;
}

.high-contrast *:not(button):not(input):not(textarea):not(select) {
    background-color: #000 !important;
    background-image: none !important;
}


/* Betűméret változtató gombok */
.font-size-controls {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 4px;
    z-index: 99;
}

.font-size-controls button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    margin: 0 0.25rem;
    cursor: pointer;
}

/* Stílus választó */
.style-switcher {
    position: fixed;
    bottom: 4rem;
    right: 1rem;
    background-color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 4px;
    z-index: 99;
}

.style-switcher button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin: 0.1rem;
    cursor: pointer;
}

/* Források szekció háttérrel */
.resources {
    background-color: var(--beige-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.resources h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.resources ul {
    list-style-type: none;
}

.resources li {
    margin: 0.8rem 0;
}

.resources a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
}

.resources a:hover {
    color: var(--accent-color);
}


/* Mobil (1 oszlop) - Alapértelmezett */
main {
    display: flex;
    flex-direction: column;
}

/* Tablet (600px+) */
@media (min-width: 600px) {
    .ai-grid, .image-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 oszlop */
    }
}

/* Nagy kijelző (900px+) */
@media (min-width: 900px) {
    .ai-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 oszlop (index.html) */
    }
    .image-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 oszlop marad (page2.html) */
    }
    
    Oldalsó elrendezés form.html-hoz
    .ai-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
/*kijelzök*/
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

.jobbra {
    text-align: right;
}