.text-primary {
    color: #545454 !important;
}

.bg-primary, .menu-link:hover, .btn-dark:hover {
    background-color: #e7eced !important;
}

.bg-body {
    background-color: #fff !important;
}

.menu-link {
    text-decoration: none;
}

.text-light {
    color: #e2e7e8 !important;
}

.text-highlight, .menu-link:hover, .btn-dark:hover {
    color: #545454 !important;
}

.border-highlight {
    border-color: #545454 !important;
}

.bg-light {
    background-color: #e2e7e8 !important;
}

.bg-dark {
    background-color: #545454 !important;
}

.bg-darker {
    background-color: #454545 !important;
}

.border-dark {
    border: solid #545454 2px !important;
}

.border-light {
    border-color: #ddd !important;
}

b {
    text-decoration: none;
    font-weight: bold;
    color: rgb(106, 49, 49) !important;
}

.btn {
    border-radius: 0;
    border-width: 0;
}

.btn-primary, .btn-primary:visited {
    background-color: #f7dcc4;
    color: #512300;
    font-weight: bold;
    border: 0 !important;
}

.btn-primary:hover, .btn-primary:active {
    background-color: #f4e6da;
    color: #512300;
    border: 0 !important;
}

.btn-white {
    background-color: white;
}

.btn-white:hover {
    background-color: lightgray;
}

.btn-light {
    border-color: #1e2e55;
    color: #1d416f;
}

.btn-dark {
    background-color: #545454 !important;
    padding-top: 7px;
    padding-bottom: 8px;
}

small {
    font-size: 0.85em;
}

.hover {
    cursor: pointer;
}

.object-fit-contain {
    object-fit: contain;
}

a {
    text-decoration: none;
}

a:hover {
    color: #545454;
}

.row {
    padding: 0 !important;
}

.w-33 {
    width: 33.3333%;
}

.img-hover:hover {
    opacity: 0.85;
}

h2.h4, .h5 {
    color: #545454;
}

p a {
    color: #545454 !important;
}

.highlight:hover {
    background-color: #e2e7e8;
}

p.ms--5 {
    margin-left: -5px;
}

.rounded-0 {
    border-radius: 0;
}   

.dropdown:hover>.dropdown-menu {
    display: block;
}
  
.dropdown>.dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
    pointer-events: none;
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
}

#mobile-menu {
    overflow-y: scroll;
}

.error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.legend {
    width: 100%;
    line-height: inherit;
    font-size: 1.5rem;
    font-weight: normal;
}

/* Styl dla trybu wysokiego kontrastu */
.high-contrast, .high-contrast .text-white, .high-contrast .bg-dark, .high-contrast .bg-primary, .high-contrast h1 {
    background-color: #000 !important;
    color: #FFD700 !important;
    background-image: none !important;
}

.high-contrast .display-4, .high-contrast .h5, .high-contrast .text-dark {
    color: #FFD700 !important;
}

.high-contrast a, .high-contrast a.text-white {
    color: #00FFFF !important;
}

.high-contrast a:hover, .high-contrast a.text-white:hover {
    color: #FFA500 !important;
    background-color: #000 !important;
}

.high-contrast button, .high-contrast .btn {
    background-color: #FFD700 !important;
    color: #000 !important;
    border-color: #FFD700 !important;
}

.high-contrast .bg-body, .high-contrast nav, .high-contrast .navbar, .high-contrast .dropdown-menu, .high-contrast .bg-white {
    background-color: #000 !important;
}

.high-contrast img {
    filter: grayscale(100%) contrast(150%);
}

/* .high-contrast .logo-img, .high-contrast nav img {
    filter: grayscale(100%) brightness(600%);
} */

.high-contrast .border-bottom, .high-contrast .border-top, .high-contrast .border-start, .high-contrast .border-end, .high-contrast .border {
    border-color: #FFFFFF !important;
}