body {
    background-color: #f4f4f4;
    min-height: 100vh;
    background-image: url('background.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 20px;
    padding-bottom: 20px;
}
.logo-container-custom {
    width: 200px;
    min-width: 100px;
    height: 200px;
}
.header-navigation-custom a {
}

.video-iframe {
    border: none;
}

.video-placeholder-custom {
    aspect-ratio: 16 / 9;
    background-color: #ddd;
}
.bottom-navigation-custom a {
}
.custom-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}
.szoveg1-card {
    min-height: 240px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.kep1-card {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kep3-card {
    min-height: 270px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.szoveg2-card {
    min-height: 270px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tablazat-card .table {
     margin-bottom: 0;
}
.tablazat-card .table td, .tablazat-card .table th {
    border: 1px solid #ccc;
    text-align: center;
}
.tablazat-card .table th:nth-child(1),
.tablazat-card .table td:nth-child(1) {
    background-color: #e9e9e9;
}
.tablazat-card .table th:nth-child(2),
.tablazat-card .table td:nth-child(2) {
    background-color: #f4f4f4;
}
.fejezet-cim-card {
    text-align: center;
}
.szoveges-link {
    text-align: right;
    width: 100%;
    margin-top: 10px;
}
.szoveges-link a {
    text-decoration: underline;
    color: blue;
}
.form-container-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 40px);
}
.form-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 500px;
}
.form-card-header {
    background-color: #e9e9e9;
    color: #333;
    padding: 20px 30px;
    margin: -30px -30px 30px -30px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 1.4em;
    font-weight: bold;
}
.form-check-label {
     margin-left: 0.25rem;
}
.form-check-inline .form-check-input {
    margin-right: 0.5rem;
}
.inline-label {
    margin-right: 0.5rem;
    color: #555;
    font-size: 0.95em;
}
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:link {
    color: #0056b3;
    text-decoration: underline;
}

a:visited {
    color: #5a2a91;
    text-decoration: underline;
}

.header-navigation-custom a:visited,
.bottom-navigation-custom a:visited,
.tablazat-card .table td a:visited {
    color: #0056b3;
}

a:hover,
a:focus {
    color: #003d80;
    text-decoration: none;
}

body.high-contrast-mode {
    background-color: #000000 !important;
    color: #ffff00 !important;
    background-image: none !important;
    font-size: 1.2em;
}

.high-contrast-mode p,
.high-contrast-mode div,
.high-contrast-mode span,
.high-contrast-mode li,
.high-contrast-mode summary,
.high-contrast-mode details {
    font-size: 1.15em !important;
    color: #ffff00 !important;
    background-color: transparent !important;
}

.high-contrast-mode h1,
.high-contrast-mode .h1 {
    font-size: 2.8em !important;
    color: #ffffff !important;
}

.high-contrast-mode h2,
.high-contrast-mode .h2 {
    font-size: 2.4em !important;
    color: #ffffff !important;
}

.high-contrast-mode h3,
.high-contrast-mode .h3 {
    font-size: 2em !important;
    color: #ffffff !important;
}

.high-contrast-mode h4,
.high-contrast-mode .h4 {
    font-size: 1.8em !important;
    color: #ffffff !important;
}

.high-contrast-mode a:link {
    color: #00ffff !important;
    text-decoration: underline !important;
    background-color: transparent !important;
}

.high-contrast-mode a:visited {
    color: #008b8b !important;
    text-decoration: underline !important;
    background-color: transparent !important;
}

.high-contrast-mode .header-navigation-custom a:visited,
.high-contrast-mode .header-navigation-custom a:link,
.high-contrast-mode .bottom-navigation-custom a:visited,
.high-contrast-mode .bottom-navigation-custom a:link,
.high-contrast-mode .tablazat-card .table td a:visited,
.high-contrast-mode .tablazat-card .table td a:link {
    color: #00ffff !important;
}

.high-contrast-mode .header-navigation-custom a span,
.high-contrast-mode .bottom-navigation-custom a span {
    color: #000000 !important;
    text-shadow: none !important;
}

.high-contrast-mode a:hover,
.high-contrast-mode a:focus {
    color: #ffffff !important;
    background-color: #333333 !important;
}

.high-contrast-mode a:hover,
.high-contrast-mode a:focus {
    color: #ffffff !important;
    background-color: #333333 !important;
}

.high-contrast-mode .custom-card,
.high-contrast-mode .form-card {
    background-color: #1a1a1a !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
    box-shadow: none !important;
}

.high-contrast-mode .form-card-header {
    background-color: #333333 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #ffff00 !important;
}

.high-contrast-mode .fejezet-cim-card {
    background-color: #111111 !important;
}

.high-contrast-mode .table {
    background-color: #1a1a1a !important;
    color: #ffff00 !important;
}

.high-contrast-mode .table th,
.high-contrast-mode .table td {
    color: #ffff00 !important;
    background-color: #2c2c2c !important;
    border: 1px solid #ffff00 !important;
}

.high-contrast-mode .table caption {
    color: #ffffff !important;
    font-weight: bold;
}

.high-contrast-mode img {
    border: 2px solid #ffff00 !important;
    filter: grayscale(50%) contrast(150%);
}

.high-contrast-mode .btn {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    font-size: 1.2em !important;
    font-weight: bold !important;
}

.high-contrast-mode .btn:hover,
.high-contrast-mode .btn:focus {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

.high-contrast-mode .btn-light {
    background-color: #dddddd !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
}
.high-contrast-mode .btn-light:hover,
.high-contrast-mode .btn-light:focus {
    background-color: #000000 !important;
    color: #dddddd !important;
    border-color: #dddddd !important;
}

.high-contrast-mode label {
    color: #ffffff !important;
    font-size: 1.15em !important;
}

.high-contrast-mode input[type="text"],
.high-contrast-mode input[type="email"],
.high-contrast-mode input[type="tel"],
.high-contrast-mode textarea,
.high-contrast-mode select {
    background-color: #333333 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
    font-size: 1.1em !important;
}

.high-contrast-mode input[type="radio"],
.high-contrast-mode input[type="checkbox"] {
    transform: scale(1.5);
    margin-right: 10px;
    filter: invert(100%) hue-rotate(180deg) brightness(1.5) contrast(150%);
}

.high-contrast-mode .form-check-input:checked {
    background-color: #ffff00 !important;
    border-color: #000000 !important;
}
.high-contrast-mode .form-check-input:checked::before {
    filter: invert(1);
}

.high-contrast-mode ::placeholder {
    color: #bbbb00 !important;
    opacity: 1;
}

.high-contrast-mode .logo-container-custom img {
    border: none !important;
    filter: none !important;
}

.high-contrast-mode .header-navigation-custom a span,
.high-contrast-mode .bottom-navigation-custom a span {
    color: #000000 !important;
    text-shadow: none !important;
}

.high-contrast-mode .hero.bg-white {
    background-color: #1a1a1a !important;
}

.high-contrast-mode .subtitle.text-muted {
    color: #cccccc !important;
}


@media print {
    body {
        background-image: none !important;
        background-color: #fff !important;
        color: #000 !important;
        font-size: 12pt;
        padding: 0;
        margin: 0;
    }

    .header-navigation-custom,
    .bottom-navigation-custom,
    .video-placeholder-custom,
    .tablazat-card details,
    .form-buttons,
    .szoveges-link a[href="#"],
    .btn {
        display: none !important;
    }

    .custom-card,
    .form-card {
        box-shadow: none !important;
        border: 1px solid #ccc;
        margin-top: 15px !important;
        page-break-inside: avoid;
    }

    .form-card-header {
        background-color: #f0f0f0 !important;
        color: #000 !important;
        border-bottom: 1px solid #ccc;
        margin: 0 0 15px 0;
        padding: 10px;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    a {
        color: #000 !important;
        text-decoration: none;
    }

    .container, .container-fluid, .row, [class*="col-"] {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    [class*="col-"] {
        display: block !important;
        margin-bottom: 15px;
    }
}