:root {
    --bs-success: #34C191;
    --bs-body-color: #121212;
}

a, button, a:focus, button:focus {
    outline: revert !important;
}

body[data-font-size="small"], body[data-font-size="small"] .btn, body[data-font-size="small"] .dropdown-item {
    font-size: 0.8rem !important;
}

body[data-font-size="large"] .dropdown-item, body[data-font-size="large"] .nav-link {
    font-size: 1.2rem !important;
}

body[data-font-size="large"], body[data-font-size="large"] .btn, body[data-font-size="large"] .dropdown-menu {
    font-size: 1.2rem !important;
}

button#accessibility-button {
    font-size: 14.4px !important;
}

body[data-contrast="black-white"] {
    background-color: #d4d4d4 !important;
}

    body[data-contrast="black-white"] .logo-bg::before,
    body[data-contrast="black-white"] .page-content::before,
    body[data-contrast="black-white"] img {
        filter: grayscale(0.7);
    }

    body[data-contrast="black-white"] header,
    body[data-contrast="black-white"] header#page-topbar .topnav .nav-link:not(.pageActive):not(.edit-link) {
        background-color: #383e42 !important;
    }

        body[data-contrast="black-white"] header#page-topbar .topnav .nav-item.dropdown .dropdown-menu {
            background-color: #2c3134 !important;
        }

        body[data-contrast="black-white"] header#page-topbar .topnav .dropdown-menu .dropdown-item:hover, body[data-contrast="black-white"] header#page-topbar .topnav .pageActive {
            background-color: #212426 !important;
        }

    body[data-contrast="black-white"] .pageActive,
    body[data-contrast="black-white"] .header-item:not(.edit-link):hover,
    body[data-contrast="black-white"] .navbar-brand-box:hover,
    body[data-contrast="black-white"] .page-item.active .page-link,
    body[data-contrast="black-white"] .user-dropdown-color,
    body[data-contrast="black-white"] .header-profile-user.male,
    body[data-contrast="black-white"] .header-profile-user.female,
    body[data-contrast="black-white"] #accessibility-button {
        background-color: #233235 !important;
        border-color: #233235 !important;
    }

    body[data-contrast="black-white"] .btn-primary, body[data-contrast="black-white"] #accessibility-modal li.active {
        background-color: #383e42 !important;
        border-color: #233235 !important;
    }

    body[data-contrast="black-white"] .post-body a {
        text-decoration: underline !important;
        color: #121212;
    }

    body[data-contrast="black-white"] .btn-outline {
        color: #121212;
        border-color: #233235 !important;
    }

        body[data-contrast="black-white"] .btn-outline:hover:not(.active) {
            background-color: #ccc !important;
        }

    body[data-contrast="black-white"] #font-size input.selected + label {
        background-color: #233235 !important;
        color: #fff;
    }

#font-size input.selected + label {
    background-color: #0275B8!important;
    color: #fff;
}

/*No transitions or animations or transforms*/
body[data-no-motion="true"] * {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-animation: none !important;
    animation: none !important;
}

body[data-no-motion="true"] main * {
    -webkit-transform: none !important;
    transform: none !important;
}

#accessibility-modal .list-group-item:hover:not(.active):not(#font-size) {
    background-color: #ccc;
}

#accessibility-modal .list-group-item:not(#font-size) {
    cursor: pointer;
}

.btn-outline {
    background-color: transparent !important;
    border: 1px solid #121212;
    border-collapse: collapse;
    color: #121212;
}

.logo-bg::before {
    content: "";
    background-image: url('../images/zavod.svg');
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0.4;
}

.page-content::before {
    content: "";
    background-image: url('../images/main-bg.svg');
    background-size: cover;
    background-repeat: no-repeat;
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    opacity: 0.6;
}

.banner-img {
    border-radius: 8px 3px;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn-success,
.btn-success:focus,
.btn-success:active,
.btn-success:hover {
    color: #121212;
}

.btn-success {
    background-color: #34C191;
}

    .btn-success:hover {
        background-color: #2aa37a;
    }

.btn-second {
    color: #fff;
    background-color: #3b7d5c;
}

    .btn-second:hover {
        color: #fff;
        background-color: #377055;
    }

.margin-left-5 {
    margin-left: 5px;
}

.nav-item .active {
    font-weight: 900;
}

.no-border {
    border: hidden;
}

.unpublished {
    background-color: #feffce !important;
}

.post-title {
    font-size: 15px;
}

.accept-cookies-link,
#cookieConsent a {
    color: #5cb6f2;
}

    .accept-cookies-link:hover,
    #cookieConsent a:hover {
        color: #fff;
        cursor: pointer;
    }

.page-title {
    font-family: 'Open Sans', sans-serif;
    /*font-weight: 500;*/
}

body {
    background-color: #fff;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: #121212;
}
/*START OF HEADER CUSTOMIZATION*/
header#page-topbar::after {
    content: "";
    width: 100%;
    height: 7px;
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(180deg,rgba(0,0,0,.15) 0,transparent);
}

.header-item {
    display: flex;
    align-items: center;
}

header#page-topbar {
    background-color: #0275B8;
}

header#page-topbar .topnav .nav-item .pageActive, header#page-topbar .topnav .nav-link:hover, header#page-topbar .topnav .dropdown-item:hover {
    background-color: #025d91;
}

    header#page-topbar .topnav .nav-item .nav-link, header#page-topbar .topnav .dropdown-item {
        color: #fff;
    }

    header#page-topbar .topnav .nav-link {
        background-color: #0275B8;
    }

        header#page-topbar .topnav .nav-link.edit-link, header#page-topbar .navbar-header .header-item.edit-link {
            background-color: #34C191;
            color: #121212 !important;
        }

            header#page-topbar .topnav .nav-link.edit-link:hover, header#page-topbar .navbar-header .header-item.edit-link:hover {
                background-color: #2aa37a;
                border-color: #41a870;
                color: #121212 !important;
            }

    header#page-topbar .topnav .dropdown-menu {
        background-color: #0275B8;
        padding: 0;
    }

    header#page-topbar .topnav .dropdown-item {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    header#page-topbar .navbar-header .header-item:hover, header#page-topbar .navbar-header .header-item.pageActive {
        background-color: #025d91;
    }

.header-profile-user.male {
    background-color: #025d91;
}

.header-profile-user.female {
    background-color: #a8457f;
}

.header-profile-user > div.user-initials {
    margin-top: 2px;
    text-align: center;
}

.user-dropdown-color {
    background-color: #0275B8;
}
/*END OF HEADER CUSTOMIZATION*/
.file-link {
    color: #000;
    /*font-size: 16px;*/
}

    .file-link:hover {
        color: #4a71dd;
        /*font-weight: bold;*/
        text-decoration: underline !important;
    }
/*tinymce button color*/
.tox .tox-tbtn svg {
    fill: #495057 !important;
}

table {
    width: 100% !important;
}

@media (min-width: 768px) {
    .list-inline-item {
        margin-right: 0.5rem;
    }
}

.cursor-pointer {
    cursor: pointer;
}

.font-size-md {
    font-size: medium;
}

.child td span {
    margin-left: 30px;
}

.parent td span {
    font-weight: bold;
}

#pageTable a.btn.text-info:hover, #bannerTableLeft a.btn.text-info:hover, #bannerTableRight a.btn.text-info:hover, #pageAuditTable button.btn.text-info:hover {
    background-color: rgba(var(--bs-info-rgb),var(--bs-text-opacity)) !important;
    color: #fff !important;
}

#filesTable a.btn.text-danger:hover {
    background-color: rgba(var(--bs-danger-rgb),var(--bs-text-opacity)) !important;
    color: #fff !important;
}

#filesTable a.btn.text-info:hover {
    background-color: rgba(var(--bs-info-rgb),var(--bs-text-opacity)) !important;
    color: #fff !important;
}

.search-box button {
    position: absolute;
    top: 0;
    height: 36px;
    width: 36px;
}

    .search-box button .search-icon {
        position: inherit;
        top: -4px;
        left: 6px;
    }

.search-box input#searchValue {
    padding-left: 30px;
}

@media screen and (min-width: 768px) {
    .search-box button .search-icon {
        top: -1px;
    }
}

#company-promo:hover {
    text-decoration: underline !important;
}

input.form-check-input {
    width: 16px;
    height: 16px;
    margin: 0 0.5rem 0 0 !important;
    padding: 7px;
}

.img-thumbnail {
    border-radius: 0.3rem;
    background-color: #038edc;
    border-color: #038edc;
    padding: 0.2rem;
}

.card {
    box-shadow: none;
    -webkit-box-shadow: none;
}

.post-card {
    transform: translateY(0);
    transition: transform ease-out 0.2s;
}

    .post-card:hover {
        transform: translateY(-5px);
        cursor: pointer;
        box-shadow: 0 2px 3px #858585;
    }
/*.post-body img {
    padding: 3px;
}

.post-body img {
    width: 100%;
    height: auto;
    max-width: fit-content;
    padding: 3px;
}*/
.banner-display-name {
    color: #000;
    font-weight: 600;
    text-align: center;
}

.banner-card {
    transform: translateY(0);
    transition: transform ease-out 0.2s;
}

    .banner-card:hover {
        transform: translateY(-5px);
        cursor: pointer;
        box-shadow: 0 2px 3px #c9cbcd;
    }

.post-content .post-body {
    max-height: 150px;
    overflow-y: hidden;
}

.page-description a img {
    transform: translateY(0);
    transition: transform ease-out 0.2s;
}

.page-description a:hover img {
    transform: translateY(-5px);
    cursor: pointer;
    box-shadow: 0 2px 3px #c9cbcd;
}

.post-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pagination li.page-item .page-link {
    border-radius: 8px;
}

.pagination li.page-item:not(:nth-last-child(2)) {
    margin-right: 3px;
}
/*Cookies and stuff*/
#cookieConsent {
    display: block;
    width: 100%;
    position: fixed;
    bottom: 0px;
    height: auto;
    background-color: #141414;
    background-color: rgba(20, 20, 20, 0.8);
    color: #fff;
    padding: 12px 20px 10px 20px;
}

    #cookieConsent:hover {
        background-color: rgba(20, 20, 20, 1);
    }

.cookie-img {
    margin-top: 40px;
    max-width: 70%;
}

@media only screen and (min-width: 425px) {
    .cookie-img {
        max-width: 220px;
    }
}

.cookies-text {
    display: inline-block;
    font-size: 18px;
    margin-right: 10px;
    vertical-align: middle;
}

.cookie-icon {
    margin-left: 0 !important;
}

.flex-container {
    display: flex;
}

.flex-child {
    flex: 1;
}

    .flex-child:first-child {
        /*margin-right: 20px;*/
    }

.thumb {
    /*margin-top: 15px;
    margin-bottom: 15px;*/
    margin: 15px;
    border-bottom: 1px solid #e0e5ee;
    border-right: 1px solid #e0e5ee;
    border-radius: 0.8rem;
    padding: 0.2rem;
    box-shadow: 4px 4px #e0e5ee;
    /*background: blue;*/
}

.footer-link {
    color: #121212;
}

    .footer-link:hover {
        text-decoration: underline !important;
    }

.gallery-text {
    display: inline-block;
    width: 200px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
}
/*@media (max-width: 768px) {
    .gallery-text {
        display: inline-block;
        width: 100px;
        white-space: nowrap;
        overflow: hidden !important;
        text-overflow: ellipsis;
    }
}*/
/*FilesGridPartial*/
.btn-gallery {
    padding: 0px;
}

.card-gallery :hover {
    background-color: #f8f9fa;
}

.card-gallery .fa-trash-alt:hover {
    background-color: #f34e4e;
}

.card-gallery .fa-info:hover {
    background-color: #5fd0f3;
}

.uploadHover {
    border: 2px solid #000;
    border-radius: 5px;
    background-color: rgba(37, 37, 37, 30%);
    /*background-image: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,0)), url(/images/upload.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30%;*/
}

    .uploadHover td {
        border: none;
    }

    .uploadHover #filesTable {
        opacity: 0.5;
    }

    .uploadHover .card {
        border: none !important;
        background-color: transparent !important;
    }

.uploadImage {
    display: none;
}

.uploadHover .uploadImage {
    display: block;
    position: absolute;
    left: 40%;
    top: 40%;
    z-index: 2;
    width: 20%;
    height: auto;
}

.infogram-logo {
    height: 19px;
    width: auto;
}

.alert.alert-danger > ul {
    margin: 0;
}

.footer {
    height: auto;
    gap: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    background-color: #F5F5F5;
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
    background-color: #F5F5F5;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background-color: #000000;
}

.card-title {
    font-weight: bold;
}

.navbar-brand-box {
    padding-left: 20px !important;
}

    .navbar-brand-box:hover {
        background-color: #025d91 !important;
    }
/* FlipBook turn.js */
/*#magazine {
    width: 960px;
    height: 640px;
}

    #magazine .turn-page {
        background-color: #ccc;
    }*/
/*#magazine img {
    width: 1418px;
    height: 1890px;
}
*/
/*.wrapper {
    align-items: center;
    display: flex;
    height: 90%;
    justify-content: center;
    margin: 5%;
    width: 90%;
}*/
.wrapper {
    align-items: center;
    display: flex;
    height: 70%;
    justify-content: center;
    margin: 3%;
    width: 70%;
}

.aspect {
    padding-bottom: 50%;
    position: relative;
    width: 100%;
    align-items: center;
}

.aspect-inner {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.flipbook {
    height: 100%;
    transition: margin-left 0.25s ease-out;
    width: 100%;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

    .flipbook .page {
        height: 100%;
        width: 100%;
    }

        .flipbook .page img {
            max-width: 100%;
            height: 100%;
        }

#flipbook .turn-page {
    background-color: white;
}

#flipbook .cover {
    background: #333;
}

    #flipbook .cover h1 {
        color: white;
        text-align: center;
        font-size: 20px;
        line-height: 500px;
        margin: 0px;
    }

#flipbook .loader {
    background-image: url(loader.gif);
    width: 24px;
    height: 24px;
    display: block;
    position: absolute;
    top: 238px;
    left: 188px;
}

#flipbook .data {
    text-align: center;
    font-size: 18px;
    color: #999;
    line-height: 500px;
}

#flipbook-container {
    overflow: hidden;
}

    #flipbook-container::backdrop {
        background-image: url(../images/main-bg.svg);
        background-size: cover;
        background-repeat: no-repeat;
        position: absolute;
        top: 0px;
        right: 0px;
        bottom: 0px;
        left: 0px;
        opacity: 1;
    }

#flipbook-offset {
    margin: 0 10%;
}

.offset-25 {
    margin: 0 25% !important;
}

#slider {
    margin-top: 10px;
}

#controls {
    /*width: 800px;*/
    text-align: center;
    margin-top: 80px;
    /*margin: 20px 0px;*/
    font: 16px arial;
    flex: 0 1 auto;
    z-index: 2;
}

    #controls input, #controls label {
        font: 16px arial;
    }

#flipbook-container:fullscreen #controls {
    margin-top: auto !important;
}

#flipbook-container:fullscreen #flipbook-offset {
    margin-top: 10% !important;
}

.flipbook-wrapper {
    width: 900px;
    height: 600px;
}

#flipbook-offset {
    flex: 1 0 auto;
    transform-origin: center;
}

#flipbook .odd {
    background-image: -webkit-linear-gradient(left, #FFF 95%, #ddd 100%);
    background-image: -moz-linear-gradient(left, #FFF 95%, #ddd 100%);
    background-image: -o-linear-gradient(left, #FFF 95%, #ddd 100%);
    background-image: -ms-linear-gradient(left, #FFF 95%, #ddd 100%);
}

#flipbook .even {
    background-image: -webkit-linear-gradient(right, #FFF 95%, #ddd 100%);
    background-image: -moz-linear-gradient(right, #FFF 95%, #ddd 100%);
    background-image: -o-linear-gradient(right, #FFF 95%, #ddd 100%);
    background-image: -ms-linear-gradient(right, #FFF 95%, #ddd 100%);
}

.flipbook-button {
    border: 1px solid #95cef3;
    border-radius: 5px;
    padding: 3px;
}
/*header#page-topbar .topnav .nav-link.edit-link, header#page-topbar .navbar-header .header-item.edit-link {
    color: #fff;
    background-color: #564ab1;
    border-color: #564ab1;
}

    header#page-topbar .topnav .nav-link.edit-link:hover, header#page-topbar .navbar-header .header-item.edit-link:hover {
        background-color: #453b8e;
        border-color: #413885;
    }*/
.modal-backdrop {
    z-index: 10000;
}

.tox-dialog-wrap__backdrop {
    background-color: #000 !important;
    opacity: .5 !important;
}

.modal {
    z-index: 100000;
}

.hide-name-remove-padding{
    padding-left: 0!important;
}

/*
.note-codable {
    background-color: white !important;
    color: black !important;
}
*/

li.nav-item:has(+ li.nav-item a.header-item.hide-name-remove-padding) a.header-item {
    padding-right: 1px !important;
}

form input#search{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

form button#search-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Accessibility: skip link, focus target and hidden-text helper */
.skip-link {
    position: absolute;
    left: 8px;
    top: -100px;
    z-index: 2000;
    padding: 8px 16px;
    background-color: #121212;
    color: #fff;
    border-radius: 4px;
}

    .skip-link:focus {
        top: 8px;
        color: #fff;
    }

main:focus, #posts:focus, #post-content:focus, #page-description:focus {
    outline: none;
}

/* Visually hidden file inputs stay keyboard-focusable; show the focus on the label button */
.btn-file:focus-within,
label.btn-file:has(+ #uploadFile:focus-visible) {
    outline: 2px solid #121212;
    outline-offset: 2px;
}

/* Post previews are a teaser: clicking anywhere on the card opens the post, so controls inside the preview text are inert for the mouse too */
.post-card .post-description :is(a, button, input, select, textarea, iframe, video, audio),
.post-card .post-body :is(a, button, input, select, textarea, iframe, video, audio) {
    pointer-events: none;
    cursor: inherit;
}

/* ===== Colour contrast (WCAG 2.1 AA) overrides of the Bootstrap theme ===== */
/* Links: theme blue #038edc is only 3.56:1 on white */
a {
    color: #0275B8;
}

    a:hover {
        color: #025d91;
    }

/* Primary buttons / active items: white on #0275B8 is 4.95:1 */
.btn-primary,
.page-item.active .page-link,
.list-group-item.active,
.dropdown-item.active {
    background-color: #0275B8;
    border-color: #0275B8;
    color: #fff;
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        background-color: #025d91;
        border-color: #025d91;
        color: #fff;
    }

/* Theme grey #74788d is 4.36:1 on white and 3.88:1 on the soft button background */
.btn-secondary {
    background-color: #5d6071;
    border-color: #5d6071;
}

    .btn-secondary:hover,
    .btn-secondary:focus,
    .btn-secondary:active {
        background-color: #4d5060;
        border-color: #4d5060;
    }

.btn-soft-secondary,
.page-link,
.form-text,
.text-muted {
    color: #5d6071;
}

.btn-soft-secondary:hover,
.btn-soft-secondary:focus,
.btn-soft-secondary:active {
    background-color: #5d6071;
    color: #fff;
}

.text-muted {
    color: #5d6071 !important;
}

.form-control::placeholder,
textarea::placeholder {
    color: #5d6071;
    opacity: 1;
}

/* Form field borders need 3:1 against the page (1.4.11); theme #e2e5e8 is about 1.3:1 */
.form-control,
.form-select,
.form-check-input:not(:checked) {
    border-color: #8c8c8c;
}

/* The cookie banner was 80% transparent, so contrast changed with what scrolled behind it */
#cookieConsent,
#cookieConsent:hover {
    background-color: #141414;
}

/* Danger / info / success / alerts: theme colours are 1.8:1 to 3.5:1 on white */
.btn-danger {
    background-color: #c62828;
    border-color: #c62828;
    color: #fff;
}

    .btn-danger:hover,
    .btn-danger:focus,
    .btn-danger:active {
        background-color: #a71f1f;
        border-color: #a71f1f;
        color: #fff;
    }

.text-danger,
.invalid-feedback {
    color: #c62828 !important;
}

.text-info {
    color: #0275B8 !important;
}

.text-success {
    color: #2e7d58 !important;
}

.alert-warning {
    color: #6f5a1f;
}

.alert-info {
    color: #2c6577;
}

.alert-success {
    color: #256a45;
}
