/* ------------------------ ALAP STÍLUSOK ------------------------ */
body {
    font-family: Arial, sans-serif;
    background: url('media/hatterkep.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

/* ------------------------ "SKIP TO CONTENT" LINK ------------------------ */
.skip-link {
    position: absolute;
    top: -40px; 
    left: 0;
    background-color: #000;
    color: #fff;
    padding: 10px;
    text-decoration: none;
    z-index: 100;
}

/* A link megjelenítése fókuszáláskor */
.skip-link:focus {
    top: 0;
    left: 0;
    z-index: 1000; 
}

/* ------------------------ KONTRASZT GOMB ------------------------ */
#highContrastToggle {
    position: fixed;
    left: 10px;   
    bottom: 10px; 
    background-color: #333; 
    color: #fff;   
    border: 1px solid #555; 
    padding: 0.5rem 1rem;    
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9rem;  
    opacity: 0.8;    
    transition: opacity 0.3s ease; 
}

/* A kontraszt gomb színének módosítása hover eseménynél */
#highContrastToggle:hover {
    background-color: #555;  
    opacity: 1;   
}

/* ------------------------ MAGAS KONTRASZT STÍLUSOK ------------------------ */
.high-contrast {
    background-color: #000;
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase; 
}

.high-contrast a {
    color: #ffff00; /* Sárga linkek */
}

.high-contrast a:hover {
    color: #ff9900; /* Narancssárga hover szín */
}

.high-contrast button {
    background-color: #ffcc00; /* Sárga gomb */
    color: #000;
    border: 1px solid #000;
}

.high-contrast button:hover {
    background-color: #ff9900; /* Narancssárga gomb hover */
}

/* ------------------------ NAVIGÁCIÓ ------------------------ */
nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

/* Navigációs linkek hover stílusa */
nav ul li a:hover {
    color: #f4c542;
}

/* Aktív linkek kiemelése */
nav ul li a.active {
    color: #f4c542;  
    font-weight: bold;  
    border-bottom: 2px solid #f4c542; 
    padding-bottom: 2px;
}
a:visited {
    color: #7a7a7a;
    text-decoration: underline;
}


/* ------------------------ KONTAINEREK (TARTALOM) ------------------------ */
.container {
    background-color: rgba(0, 0, 0, 0.5);
    width: 60%;
    margin: 2rem auto;
    padding: 2rem;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: justify;
}

/* ------------------------ GALÉRIA ------------------------ */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 2rem); /* Dinamikus szélesség */
    max-width: 600px;
    text-align: center;
}

.gallery-image {
    width: 100%;
    border-radius: 10px;
}

video {
    width: 100%;
    border-radius: 10px;
}

/* ------------------------ FEJLÉC ------------------------ */
h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* ------------------------ VISSZA GOMB ------------------------ */
.back-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background-color: #f4f4f4;
    color: black;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease-in-out;
}

/* Hover effektus a vissza gombhoz */
.back-button:hover {
    background-color: #ddd;
}

/* ------------------------ MOBIL ESZKÖZÖK ------------------------ */
@media (max-width: 600px) {
    .container {
        width: 90%;
        padding: 1rem;
    }

    .gallery {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-image, video {
        max-width: 100%;
    }

    /* Sans-serif betűtípus kisebb képernyőkhöz */
    p, h2, li, .back-button {
        font-family: Arial, sans-serif;
    }
}

/* ------------------------ TABLET MÉRET ------------------------ */
@media (min-width: 601px) and (max-width: 900px) {
    .container {
        width: 80%;
    }

    .gallery {
        justify-content: center;
    }

    .gallery-item {
        width: 45%;
    }
}

/* ------------------------ NAGYOBB KIJELZŐK ------------------------ */
@media (min-width: 901px) {
    .container {
        width: 60%;
    }

    .gallery {
        justify-content: space-between;
    }

    .gallery-item {
        width: 30%;
    }
}

/* ------------------------ NYOMTATÁSI STÍLUSOK ------------------------ */
@media print {
    /* Háttér és színek eltüntetése */
    body {
        background: none !important;
        color: black !important;
        font-family: Arial, sans-serif;
    }

    /* Ismétlődő elemek elrejtése */
    .back-button, video, .gallery {
        display: none !important;
    }

    /* Képek méretének csökkentése */
    img {
        max-width: 50%;
        height: auto;
    }

    /* Konténer teljes szélességre igazítása */
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        background: none;
    }

    /* Táblázatok és szöveg optimalizálása */
    h1, h2, p, li {
        margin: 0;
        padding: 0;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    table, th, td {
        border: 1px solid black;
    }
}
