body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1rem;
}

main {
    flex-grow: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial Nova', 'Segoe UI', sans-serif;
    color: #2c3e50;
}

a {
    color: #3498db;
    text-decoration: none;
}
a:hover {
    color: #2980b9;
    text-decoration: underline;
}
main p a, main li a {
    text-decoration: underline;
}
main p a:hover, main li a:hover {
    text-decoration: underline;
    color: #1f618d;
}
nav ul.nav a.nav-link, .btn, .card-title a {
    text-decoration: none !important;
}
a:visited {
    color: #8e44ad;
}
header nav a.nav-link:visited, aside nav a.nav-link:visited {
    color: #3498db;
}
header nav a.nav-link.active:visited {
    color: #fff;
}


.btn {
    border-radius: 0.3rem;
    padding: 0.5rem 1rem;
}
.btn-primary {
    background-color: #276bb3;
    border-color: #276bb3;
}
.btn-primary:hover {
    background-color: #1d4f7a;
    border-color: #1d4f7a;
}
.btn-secondary {
    background-color: #a1c4fd;
    border-color: #a1c4fd;
    color: #2c3e50;
}
.btn-secondary:hover {
    background-color: #8cb3e9;
    border-color: #8cb3e9;
}


.card {
    border-radius: 0.5rem;
    border: 1px solid #e0e0e0;
}
.card-img-top.course-img {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    height: 200px;
    object-fit: cover;
}
.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.form-control, .form-select {
    border-radius: 0.3rem;
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
header .nav-link.active {
    background-color: #5c9dde;
}
header .nav-link {
    color: #2c3e50;
}
header .nav-link:hover {
    color: #5c9dde;
}


footer {
    background-color: #2c3e50 !important;
    color: #ecf0f1 !important;
}
footer a {
    color: #a1c4fd !important;
}
footer a:hover {
    color: #ffffff !important;
}


.skip-link {
    position: absolute;
    top: -50px; 
    left: 0;
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    z-index: 10000;
    border-radius: 0 0 5px 0;
}
.skip-link:focus {
    top: 0; 
}



.codex-hero {
    background-color: #e9f2fa;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}
.codex-hero h1 {
    color: #34495e;
}

.course-img {
    transition: transform 0.2s ease-in-out;
}
.course-img:hover {
    transform: scale(1.03);
}
.coming-soon {
    color: red !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
}
.card.disabled {
    opacity: 0.5;
    pointer-events: none;
}
.soon-overlay {
    z-index: 2;
    pointer-events: none;
}


.course-menu .nav-link {
    margin-bottom: 0.25rem;
    border-radius: 0.3rem;
}
.course-menu .nav-link.active {
    background-color: #5c9dde;
    color: white;
}
.course-menu .nav-link:not(.active):hover {
    background-color: #e9ecef;
}

#video-section video {
    border: 1px solid #ddd;
}
#videoProgressBar {
    background-color: #5c9dde;
    transition: width 0.1s linear;
}
.progress {
    height: 1rem;
    font-size: 0.75rem;
    border-radius: 0.3rem;
}

.tab-content .tab-pane {
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}
.nav-tabs .nav-link.active {
    background-color: #5c9dde;
    color: white;
    border-color: #5c9dde #5c9dde #f8f9fa;
}
.nav-tabs .nav-link {
    color: #495057;
}

.code-block-container {
    position: relative;
    background-color: #282c34;
    color: #abb2bf;
    padding: 1rem;
    border-radius: 0.3rem;
    margin-bottom: 0.5rem;
    overflow-x: auto;
}
.code-block-container pre {
    margin-bottom: 0;
    white-space: pre;
}
.code-block-container .copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #6c757d;
    color: white;
    border: none;
}
.code-block-container .copy-code-btn:hover {
    background-color: #5a6268;
}

body.high-contrast-mode {
    background-color: #000 !important;
    color: #fff !important;
    font-size: 1.1em;
}
body.high-contrast-mode h1,
body.high-contrast-mode h2,
body.high-contrast-mode h3,
body.high-contrast-mode h4,
body.high-contrast-mode h5,
body.high-contrast-mode h6 {
    color: #fff !important;
}
body.high-contrast-mode a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}
body.high-contrast-mode a:visited {
    color: #ffaa00 !important;
}
body.high-contrast-mode .btn-primary,
body.high-contrast-mode .btn-secondary,
body.high-contrast-mode .nav-link.active {
    background-color: #000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}
body.high-contrast-mode .btn-primary:hover,
body.high-contrast-mode .btn-secondary:hover {
    background-color: #222 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}
body.high-contrast-mode .card,
body.high-contrast-mode header,
body.high-contrast-mode .tab-pane,
body.high-contrast-mode .form-control,
body.high-contrast-mode .border,
body.high-contrast-mode .bg-light,
body.high-contrast-mode .rounded,
body.high-contrast-mode .container,
body.high-contrast-mode .album {
    background-color: #000 !important;
    border-color: #ffff00 !important;
    color: #fff !important;
}
body.high-contrast-mode .codex-hero {
    background-color: #000 !important;
}
body.high-contrast-mode footer {
    background-color: #000 !important;
    border-top: 2px solid #ffff00 !important;
    color: #fff !important;
}
body.high-contrast-mode footer a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}
body.high-contrast-mode .text-muted, body.high-contrast-mode .blockquote-footer {
    color: #fff !important;
}
body.high-contrast-mode .table {
    color: #fff !important;
    background-color: #000 !important;
}
body.high-contrast-mode .table th, body.high-contrast-mode .table td {
    border-color: #ffff00 !important;
}
body.high-contrast-mode .table-dark th {
    background-color: #222 !important;
    color: #ffff00 !important;
}
body.high-contrast-mode .code-block-container {
    background-color: #000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}
body.high-contrast-mode .code-block-container .copy-code-btn {
    background-color: #000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}
body.high-contrast-mode .form-control,
body.high-contrast-mode .form-select {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #ffff00 !important;
}
body.high-contrast-mode .nav-tabs .nav-link.active {
    background-color: #000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 #ffff00 #000 !important;
}
body.high-contrast-mode .nav-tabs .nav-link {
    color: #ffff00 !important;
}
body.high-contrast-mode .modal-content {
    background-color: #000 !important;
    color: #fff !important;
    border: 2px solid #ffff00 !important;
}
body.high-contrast-mode .alert-warning {
    background-color: #000 !important;
    color: #ffff00 !important;
    border: 2px solid #ffff00 !important;
}
body.high-contrast-mode .badge {
    background-color: #000 !important;
    color: #ffff00 !important;
    border: 1px solid #ffff00 !important;
}

@media (max-width: 767.98px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    header nav {
        width: 100%;
        margin-top: 0.5rem;
    }
    header nav .nav-pills {
        flex-direction: column;
    }
    header nav .nav-item {
        width: 100%;
    }
    header nav .nav-link {
        text-align: left;
        margin-bottom: 0.25rem;
    }
    #toggle-contrast {
        margin-top: 0.5rem;
        margin-left: 0 !important;
    }
    .codex-hero h1 {
        font-size: 2.5rem;
    }
    .row > .col-md-7, .row > .col-md-5, .row > .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #masodik-bekezdes .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    #masodik-bekezdes .col-6:first-child img {
        margin-bottom: 1rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
}

@media (min-width: 992px) {
}