* {
    font-family: 'Century Gothic', roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0px;
    background-color: #dddddd !important;
    font-family: 'Century Gothic', roboto, sans-serif;
    color: #5f5f5f;
}

.center {
    text-align: center;
}

.title_img {
    margin: 0;
    padding-right: 30px;
    background-image: url("../images/czerwony_pasek.png");
    background-repeat: no-repeat;
    background-size: 275px;
    background-size: 100% auto;
    background-position-y: -60px;
    background-position-x: 0px;
    background-position: 0 -60px;
    height: 35px;
    width: 95%;
    text-align: right;
    padding: 5px;
    padding-right: 45px;
    color: white;
    font-size: 16px;
}

p, div, h1, h2 {
    font-family: 'Century Gothic', roboto, sans-serif;
}

.left {
    float: left;
}

.right {
    float: right;
}

.uppercase {
    text-transform: uppercase;
}

#container {
    width: 1024px;
    height: 100%;
    min-height: 500px;
    margin: 20px auto;
    background-color: white;
}

.container-fluid {
    margin: 0;
    padding: 0;
}

#top_content_left {
    float: left;
    height: 100px;
}

#top_content_right {
    float: right;
    width: 380px;
    margin-right: 6%;
    margin-top: 20px;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0px;
    width: 100%;
    position: sticky;
    transform: translateY(0px);
    transition: transform 0.15s ease;
    z-index: 10;
    opacity: 0.945;
}

#header {
    width: 100%;
    height: 150px;
    background: white;
}

#top_content_right ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}
#top_content_right ul li {
    display: inline;
    padding: 0px 12px;
    text-transform: uppercase;
    font-size: 14px;
    float: right;
    margin-top: 8px;
    color: #aeaeae;
    position: relative;
}
#top_content_right ul li:hover {
    color: #e31b23;
    cursor: pointer;
}

.logo {
    margin-left: 7%;
    margin-top: 20px;
    background-image: url('../images/logo_Bacom.png');
    background-repeat: no-repeat;
    background-size: 200px;
    width: 300px;
    height: 100px;
}

#menu {
    text-align: center;
    width: 100%;
    height: 50px;
    background-color: white;
    margin-top: -16px;
    padding-left: calc(4% + 46px);
    margin-bottom: 1px;
}
#menu ul {
    border-style: none;
}
#menu ul li {
    display: block;
    float: left;
    padding: 10px 13px;
    margin-right: 30px;
    font-size: 18px;
    border-top: 1px solid #c92928;
    width: 27%;
    text-decoration: none !important;
}
#menu ul li.home {
    display: block;
    float: left;
    margin: 0px 0 0 0;
    font-size: 18px;
    margin-left: -7%;
    border-top: 0px;
    width: 10px;
    background-image: url('../images/home_button.png');
    background-size: 25px;
    background-repeat: no-repeat;
    height: 30px;
    background-position: 10% 38%;
    background-position-x: 10%;
    background-position-y: 28%;
}
#menu ul li.home:hover {
    display: block;
    float: left;
    margin: 0px 0 0 0;
    font-size: 18px;
    margin-left:-7%;
    border-top: 0px;
    width: 10px;
    background-image: url('../images/home_button_on.png');
    background-size: 25px;
    background-repeat: no-repeat;
    height: 30px;
    background-position: 10% 38%;
    background-position-x: 10%;
    background-position-y: 28%;
}

a {
    color: #a7a7a7;
    text-decoration: none;
    text-align: left;
}
a:hover {
    color: #c92928;
    text-decoration: none;
    text-align: left;
}

#menu ul li span {
    color: #8c8b8b;
    text-decoration: none;
    float: left;
    margin-left: -5%;
}
#menu ul li:hover {
    cursor: pointer;
    padding-bottom: 9px;
    border-top: 5px solid #c92928;
    text-decoration: none;
}
#menu ul li:hover a span {
    cursor: pointer;
    color: #c92928;
    text-decoration: none;
    float: left;
    margin-top:-4px;
}

#main_page_photo {
    width: auto;
    height: 280px;
    border-top: 5px solid #dddddd;
    background-image: url(../../public/images/bgmain.png);
    background-repeat: no-repeat;
    background-size: 100%;
}

#home_content {
    width: 92%;
    min-height: 400px;
    height: 100%;
    margin-top: -5px;
    margin: 0 auto 0 auto;
}

.centrum_szkoleniowe_link {
    width: 100%;
    margin-left: 6%;
    margin-top: 28%;
    margin-bottom: 30px;
    padding: 20px 0px 0px 50px;
}

.inf_i_multi_link {
    width: 100%;
    margin-left: 12%;
    margin-top: 29%;
    margin-bottom: 30px;
    padding: 20px 0px 0px 50px;
}

@-moz-document url-prefix() {
    .centrum_szkoleniowe_link {
        width: 100%;
        margin-left: 6%;
        margin-top: 40.5%;
        margin-bottom: 30px;
        padding: 20px 0px 0px 50px;
    }
}

.liczniki_bacom_link {
    width: 100%;
    margin-left: 10%;
    margin-bottom: 30px;
    padding: 20px 0px 0px 50px;
}

.inf_multi_link {
    float: right;
    margin-top:-30px;
    width: 25%;
    padding: 30px 50px 10px 0px;
}

.liczniki_bacom_link a {
    color: #7cab30;
}
.liczniki_bacom_link a:hover {
    color: #7cab30;
    opacity: 0.6;
}

.centrum_szkoleniowe_link a {
    color: #3572ad;
}
.centrum_szkoleniowe_link a:hover {
    color: #3572ad;
    opacity: 0.6;
}

.inf_i_multi_link a {
    color: #8001ae;
}
.inf_i_multi_link a:hover {
    color: #8001ae;
    opacity: 0.6;
}

.bacom:first-of-type {
    float: left;
    width: 31%;
    min-height: 200px;
    height: 100%;
    display: none;
    padding: 30px 0px 10px 40px;
}
.bacom {
    float: left;
    width: 31%;
    min-height: 200px;
    height: 100%;
    display: none;
    padding: 30px 0px 10px 0px;
}
.bacom p {
    width: 230px;
    min-height: 200px;
    height: 100%;
    font-size: 14px;
    margin-left: 17%;
    margin-top: 6px;
    text-align: left;
    padding: 10px 0px 10px 0px;
    border-top: 1px solid #5f5f5f;
}
.bacom p.duo {
    width: 230px;
    min-height: 200px;
    height: 100%;
    font-size: 14px;
    margin-left: 17%;
    margin-top: -15px;
    text-align: left;
    padding: 10px 0px 10px 0px;
    border-top: 1px solid #5f5f5f;
}
.bacom h1 {
    font-weight: normal;
    font-size: 20px;
    margin-left: 45px;
    margin-top: -63px;
    width: 85%;
    color: #5f5f5f;
    padding: 30px 0px 0px 0px;
}

.titleduo {
    height: 80px;
    width: 100%;
    margin-top: 8px;
    padding-bottom: 0px;
    margin-right: 2%;
}

.title {
    height: 80px;
    width: 100%;
    padding-bottom: 0px;
    padding-right: 2%;
}

.bacom img {
    width: 30px;
    margin-top: 10px;
}

#error_content {
    width: 100%;
    height: 100%;
    min-height: 600px;
    margin-bottom: -10px;
}

#error_content_left {
    width: 30%;
    margin: 30px auto 0px auto;
    float: left;
    text-align: justify;
    line-height: 1.5;
}

#error_content_right{
    width:67%;
    margin:30px auto 0px auto;
    float:left;
    height:100%;
    text-align: justify;
    line-height: 1.5;
}

@media (max-width: 1020px) {
    .title_img {
        margin: 10px 0 0 0;
        background-image: url("../images/czerwony_pasek.png");
        background-repeat: no-repeat;
        background-size: 275px;
        background-size: 80% auto;
        background-position-y: 42%;
        height: 25px;
        width: 80%;
        text-align: right;
        padding: 5px;
        padding-right: 45px;
        color: white;
    }

    #container {
        width: 100%;
        height: 100%;
        min-height: 600px;
        margin: 0 auto;
        background-color: white;
        
    }

    #menu ul li {
        display: block;
        float: left;
        padding: 10px 13px;
        margin-right: 30px;
        font-size: 15px;
        border-top: 1px solid #c92928;
    }

    .logo {
        margin-left: 7%;
        margin-top: 20px;
        background-image: url('../images/logo_Bacom.png');
        background-repeat: no-repeat;
        background-size: 180px;
        width: 300px;
        height: 100px;
    }

    .bacom:first-of-type {
        float: none;
        text-align: center;
        width: 85%;
        height: 300px;
        margin: -50px auto -100px auto; 
    }
    .bacom {
        float: none;
        text-align: center;
        width: 85%;
        height: 300px;
        margin: -50px auto -100px auto; 
    }
    .bacom p {
        width: 100%;
        font-size: 14px;
        margin-left: 0;
        text-align: justify;
        padding: 10px 0px 0px 0px;
        border-top: 1px solid #5f5f5f;
    }
    .bacom p.duo {
        width: 100%;
        height: 150px;
        font-size: 14px;
        margin-left: 0;
        text-align: justify;
        padding: 10px 0px 10px 0px;
        border-top: 1px solid #5f5f5f;
    }
    .bacom img {
        width: 30px;
        margin-top: 28px;
        margin-left: -95%;
    }
    .bacom h1 {
        font-weight: normal;
        font-size: 20px;
        margin-left: 0px;
        margin-top:- 63px;
        width: 98%;
        color: #5f5f5f;
        text-align: left;
        padding: 30px 0px 0px 40px;
    }

    .centrum_szkoleniowe_link {
        width: 60%;
        margin-left: 10%;
        margin-bottom: 30px;
        margin-top: -130px;
        padding: 0px 0px 0px 50px;
    }

    .liczniki_bacom_link {
        width: 60%;
        margin-left: 10%;
        margin-top: -100px;
        padding: 0px 0px 0px 50px;
    }

    .inf_i_multi_link {
        width: 60%;
        margin-left: 10%;
        margin-top: -220px;
        padding: 0px 0px 0px 50px;
    }
}   

@media (max-width: 891px) {
    .title_img {
        margin: 0;
        padding-right: 30px;
        background-image: url("../images/czerwony_pasek.png");
        background-repeat: no-repeat;
        background-size: 275px;
        background-size: 98% 300px;
        background-position-y: 50%;
        margin-top: 5px;
        height: 20px;
        width: 80%;
        font-size: 13px;
        text-align: right;
        padding-top: 5px;
        padding-right: 25px;
        color: white;
    }

    #container {
        width: 100%;
        height: 100%;
        min-height: 600px;
        margin: 0 auto;
        background-color: white;
        font-size: 14px;
    }

    #menu ul li {
        display: block;
        float: left;
        padding: 10px 13px;
        margin-right: 30px;
        font-size: 15px;
        border-top: 1px solid #c92928;
    }

    .logo {
        margin-left: 7%;
        margin-top: 20px;
        background-image: url('../images/logo_Bacom.png');
        background-repeat: no-repeat;
        background-size: 160px;
        width: 160px;
        height: 100px;
    }

    #top_content_right {
        float: right;
        width: 320px;
        margin-right: 7%;
        margin-top: 20px;
        font-size: 14px;
    }
}

@media (max-width: 836px) {
    #menu ul li {
        display: block;
        float: left;
        padding: 10px 13px;
        margin-right: 30px;
        font-size: 15px;
        border-top: 1px solid #c92928;
        width: 11.5%;
    }
}

@media (max-width: 745px) {
    #menu ul li {
        display: block;
        float: left;
        padding: 10px 13px;
        margin-right: 30px;
        font-size: 15px;
        border-top: 1px solid #c92928;
        width: 10.5%;
    }
}

@media (max-width: 720px) {
    #menu ul li.home {
        display: block;
        float: left;
        margin: 0px 0 0 0;
        font-size: 18px;
        margin-left: -8%;
        border-top: 0px;
        width: 10px;
        background-image: url('../images/home_button.png');
        background-size: 15px;
        background-repeat: no-repeat;
        height: 30px;
        background-position: 10% 38%;
        background-position-x: 10%;
        background-position-y: 28%;
    }
    #menu ul span:hover li.home {
        display: block;
        float: left;
        margin: 0px 0 0 0;
        font-size: 18px;
        margin-left: -8%;
        border-top: 0px;
        width: 10px;
        background-image: url('../images/home_button_on.png');
        background-size: 15px;
        background-repeat: no-repeat;
        height: 30px;
        background-position: 10% 38%;
        background-position-x: 10%;
        background-position-y: 28%;
    }
    #menu ul li {
        display: block;
        float: left;
        padding: 10px 13px;
        margin-right: 30px;
        font-size: 15px;
        border-top: 1px solid #c92928;
        width: 10%;
    }

    .bacom {
        float: none;
        text-align: center;
        width: 85%;
        height: 300px;
        margin: -80px auto -100px auto; 
    }

    #top_content_right {
        float: right;
        width: 200px;
        margin-right: 7%;
        margin-top: 20px;
        font-size: 14px;
    }

    .title_img {
        margin: 0;
        padding-right: 30px;
        background-image: url("../images/czerwony_pasek.png");
        background-repeat: no-repeat;
        background-size: 275px;
        background-size: 98% 300px;
        background-position-y: 50%;
        margin-top: 5px;
        height: 30px;
        width: 75%;
        font-size: 13px;
        text-align: right;
        padding-top: 5px;
        padding-right: 25px;
        color: white;
    }
}

@media (max-width: 640px) {
    #top_content_right {
        float: right;
        width: 200px;
        margin-right: 9%;
        margin-top: 20px;
        font-size: 14px;
    }

    p.marki img.lb, p.marki img.cs {
        width: 150px;
    }

    .centrum_szkoleniowe_link {
        width: 60%;
        margin-left: 10%;
        margin-bottom: 30px;
        margin-top: -110px;
        padding: 0px 0px 0px 50px;
    }

    .liczniki_bacom_link {
        width: 50%;
        margin-left: 15%;
        margin-top: -70px;
        padding: 0px 0px 0px 50px;
    }

    .inf_i_multi_link {
        width: 50%;
        margin-left: 15%;
        margin-top: -250px;
        padding: 0px 0px 0px 50px;
    }

    .title_img {
        margin: 0;
        padding-right: 30px;
        background-image: url("../images/czerwony_pasek.png");
        background-repeat: no-repeat;
        background-size: 275px;
        background-size: 90% 300px;
        background-position-y: 50%;
        margin-top: 5px;
        height: 30px;
        width: 80%;
        font-size: 13px;
        text-align: right;
        padding-top: 5px;
        padding-right: 35px;
        color: white;
    }

    .bacom:first-of-type {
        float: none;
        text-align: center;
        width: 88%;
        height: 350px;
        margin: -120px auto -140px auto; 
        margin-left: 5%;
        padding-left: 0px;
    }
    .bacom {
        float: none;
        text-align: center;
        width: 85%;
        height: 350px;
        margin: -120px auto -100px auto; 
    }

    #menu ul li {
        display: block;
        float: left;
        padding: 10px 13px;
        margin-right: 30px;
        font-size: 12px;
        border-top: 1px solid #c92928;
        width: 9%;
    }

    #top_content_right {
        float: right;
        width: 200px;
        margin-right: 9%;
        margin-top: 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    #top_content_right {
        float: right;
        width: 200px;
        margin-right: 9%;
        margin-top: 20px;
        font-size: 14px;
    }
    
    p.marki img.lb, p.marki img.cs {
        width:  120px;
    }

    .title_img {
        margin: 0;
        padding-right: 30px;
        background-image: url("../images/czerwony_pasek.png");
        background-repeat: no-repeat;
        background-size: 275px;
        background-size: 90% 300px;
        background-position-y: 50%;
        margin-top: 5px;
        height: 30px;
        width: 80%;
        font-size: 13px;
        text-align: right;
        padding-top: 5px;
        padding-right: 35px;
        color: white;
    }

    .bacom:first-of-type {
        float: none;
        text-align: center;
        width: 85%;
        height: 400px;
        margin: -170px auto 0px auto; 
    }
    .bacom {
        float: none;
        text-align: center;
        width: 85%;
        height: 360px;
        margin: -120px auto -100px auto; 
    }

    #top_content_right {
        float: right;
        width: 200px;
        margin-right: 9%;
        margin-top: 20px;
        font-size: 14px;
    }

    .centrum_szkoleniowe_link {
        width: 60%;
        margin-left: 10%;
        margin-bottom: 30px;
        margin-top:-90px;
        padding: 0px 0px 0px 50px;
    }

    .liczniki_bacom_link {
        width: 50%;
        margin-left: 15%;
        margin-top: -30px;
        padding: 0px 0px 0px 50px;
    }

    .inf_i_multi_link {
        width: 50%;
        margin-left: 15%;
        margin-top: -230px;
        padding: 0px 0px 0px 50px;
    }
}

@media (max-width: 340px) {
    .centrum_szkoleniowe_link {
        width: 70%;
        margin-bottom: 0px;
        margin-top: -10px;
        padding: 0px 0px 0px 10px;
    }

    .liczniki_bacom_link {
        width: 80%;
        margin-top: 90px;
        padding: 0px 0px 0px 0px;
    }

    .inf_i_multi_link {
        width: 70%;
        margin-top: -250px;
        padding: 0px 0px 0px 0px;
    }

    .title_img {
        margin: 0;
        padding-right: 30px;
        background-image: url("../images/czerwony_pasek.png");
        background-repeat: no-repeat;
        background-size: 275px;
        background-size: 90% 300px;
        background-position-y: 50%;
        margin-top: 5px;
        height: 30px;
        width: 80%;
        font-size: 13px;
        text-align: right;
        padding-top: 5px;
        padding-right: 35px;
        color: white;
    }

    .bacom:first-of-type {
        float: none;
        text-align: center;
        width: 88%;
        height: 540px;
        margin: -170px 5% 0px auto; 
    }
    .bacom {
        float: none;
        text-align: center;
        width: 85%;
        height: 450px;
        margin: -150px auto -100px auto; 
    }

    #menu ul li {
        display: block;
        float: left;
        padding: 10px 7px;
        margin-right: 10px;
        font-size: 8px;
        border-top: 1px solid #c92928;
        width: 15%;
    }

    #top_content_right {
        float: right;
        width: 200px;
        margin-right: 9%;
        margin-top: 20px;
        font-size: 14px;
    }

    .kariera_text h1 {
        margin-left: 8%;
    }
    
    .kariera_text p {
        width: 150px;
        margin-left: 8%;
    }
}

.image-hover {
    max-width: 170px;
    height: auto;
    filter: grayscale(12%) brightness(97%) saturate(80%);
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        filter 0.4s ease-in-out,
        transform 0.4s ease;
}
.image-hover:hover {
    filter: grayscale(0%) brightness(100%) saturate(105%);
    transform: scale(1.08);
    opacity: 1;
    cursor: pointer;
}

@media (max-width: 840px) {
    .image-hover {
        filter: grayscale(0%) brightness(100%) saturate(105%);
    }
}


#logo-slider-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding-top: 30px;
}

#logo-slider-center h1 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.1;
    color: #1b1918;
    margin-bottom: 1rem;
    font-family: 'Century Gothic', roboto, sans-serif;
}

.logo-slider {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 4px 0px;
    margin-top: 10px;
    border-top: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
    background-color: #f0f0f0;
}

.logo-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-top: 5px;
    animation: scroll 75s linear infinite;
}

.logo-track-img_section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    min-width: 60px;
    height: 39px;
    margin: 0 8rem;
    vertical-align: middle;
    transition: transform 0.25s ease;
}

.logo-track-img_section img {
    position: absolute;
    max-height: 39px;
    max-width: 160px;
    width: auto;
    height: auto;
    transition:
        opacity 0.35s ease,
        transform 0.3s ease;
}

.logo-grey {
    opacity: 1;
}

.logo-color {
    opacity: 0;
}

.logo-track-img_section:hover {
    transform: scale(1.11);
}

.logo-track-img_section:hover .logo-grey {
    opacity: 0;
}

.logo-track-img_section:hover .logo-color {
    opacity: 1;
}

@media (max-width: 800px) {
    .logo-track-img_section {
        margin: 0 4rem;
    }

    .logo-grey {
        opacity: 0;
    }

    .logo-color {
        opacity: 1;
    }
}

@media (max-width: 500px) {
    .logo-track-img_section {
        width: 120px;
        margin: 0 2.5rem;
    }

    .logo-track-img_section img {
        max-width: 120px;
        max-height: 32px;
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}