/* ------------------------ 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;
    color: white; 
    font-size: 100%; 
}

.skip-link {
    position: absolute;
    top: -40px; 
    left: 0;
    background-color: #000;
    color: #fff;
    padding: 10px;
    text-decoration: none;
    z-index: 100;
}

.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;
}

#highContrastToggle:hover {
    background-color: #555;
    opacity: 1;
}

/* ------------------------ KONTRASZT STÍLUSOK ------------------------ */
.high-contrast {
    background-color: #000;
    color: #fff;
    font-size: 1.2rem;
    text-transform: uppercase; 
}

.high-contrast a {
    color: #ffff00; 
}

.high-contrast a:hover {
    color: #ff9900; 
}

.high-contrast button {
    background-color: #ffcc00;
    color: #000;
    border: 1px solid #000;
}

.high-contrast button:hover {
    background-color: #ff9900;
}

/* ------------------------ NAVIGÁCIÓS MENÜ ------------------------ */
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;
}

nav ul li a:hover {
    color: #f4c542;
}

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;
}

/* ------------------------ FEJLÉC ------------------------ */
header {
    text-align: center;
    margin: 2rem 0;
}

h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* ------------------------ FŐ TARTALOM ------------------------ */
.fo-tartalom {
    width: 70%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(80, 80, 80, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ------------------------ KÉPEK ------------------------ */
.kepek {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.kepdoboz {
    text-align: center;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.kepdoboz img {
    width: 20rem;
    height: auto;
    border-radius: 12px;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.kepdoboz:hover {
    transform: scale(1.05);
}

.kepfelirat {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
}

/* ------------------------ TARTALOM ------------------------ */
.tartalom {
    width: 100%;
    padding: 2rem;
    background-color: rgba(200, 200, 200, 0.9);
    border-radius: 10px;
    color: black;
}

h2 {
    color: #6a994e;
    border-bottom: 2px solid #6a994e;
    padding-bottom: 0.5rem;
    font-size: 1.8rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
    font-family: 'Arial', sans-serif;
}

/* ------------------------ KAPCSOLAT ------------------------ */
.kontakt p {
    margin: 0.5rem 0;
}

.kontakt a {
    color: #31708e;
    font-weight: bold;
    text-decoration: underline;
}

.kontakt a:hover {
    text-decoration: none;
}

/* ------------------------ 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;
}

.back-button:hover {
    background-color: #ddd;
}

/* ------------------------ FIGURÁCIÓ ------------------------ */
figcaption {
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

/* ------------------------ NYOMTATÁSI STÍLUSOK ------------------------ */
@media print {
    body {
        background: none !important;
        color: black !important;
        font-family: Arial, sans-serif;
    }

    nav, .back-button, .kepek, .kepfelirat {
        display: none !important;
    }

    img {
        max-width: 50%;
        height: auto;
    }

    .fo-tartalom {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none;
        background: none;
    }

    .tartalom {
        width: 100%;
        padding: 1rem;
        background: none;
    }

    h1 {
        font-size: 2rem;
        color: black;
        text-shadow: none;
    }

    h2, p, li {
        margin: 0;
        padding: 0;
        font-size: 1rem;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    table, th, td {
        border: 1px solid black;
        padding: 0.5rem;
    }

    a {
        color: black;
        text-decoration: none;
    }
}
