html, body {
    overflow-x: hidden;
}

.banner-container {
    display: block;
    width: 100%;
    height: 600px;
    background-color: white;
    position: relative;
    white-space: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    cursor: default!important;
}

.banner-container .banner-slide {
    height: 100%;
    width: 100%;
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.banner-container .banner-slide * {
    cursor: pointer!important;
}

.banner-container .banner-image {
    background-position: left center;
}

.banner-container .banner-slide div {
    margin-top: 50px;
    margin-left: 50px;
    width: 600px;
    height: 450px;
    padding: 20px;
    background-color: transparent;
    animation-name: banner-content-in;
    animation-duration: 1s;
    white-space: initial;
    float: left;
}

.banner-container .banner-video div {
    background-color: rgba(0,0,0,0.5);
}

@keyframes banner-content-in {
    0% { opacity: 0; margin-top: 30px; margin-left: 30px; }
    100% { opacity: 1; margin-top: 50px; margin-left: 50px; }
}

.banner-container .banner-slide div h2, .banner-container .banner-slide div p {
    cursor: default;
    color: white;
}

.banner-container .banner-slide div h2 {
    font-size: 40px;
    position: relative;
}

.banner-container .banner-slide div p {
    margin-top: 50px;
    font-size: 20px;
    margin-bottom: 40px;
    position: relative;
}

.banner-loading {
    position: relative;
    width: 100vw;
    bottom: 0;
    background-color: #d3d3d3;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    height: 5px;
    animation: banner-loading 8s infinite;
}

@keyframes banner-loading {
    0% { width: 0vw; }
    100% { width: 100vw; }
}

.banner-slide section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-top: -150px;
}

.full-size {
    position: relative;
    width: 96%;
    margin-left: 2%;
}

.recommended-products {
    margin-bottom: 50px;
}

.recommended-products h1 {
    font-size: 36px;
    width: 100%;
    border-bottom: 2px solid #d3d3d3;
}

.recommended-products .selector .selector-dropdown {
    display: none;
    position: absolute;
    background-color: #be1623;
    right: 0;
    top: 65px;
    width: 299px;
    padding-top: 15px;
    padding-bottom: 15px;
    z-index: 5;
}

.up {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 15px solid #be1623;
    position: absolute;
    top: -15px;
    left: 50%;
    margin-left: -20px;
  }

.recommended-products .selector .selector-dropdown button {
    cursor: pointer;
    width: 90%;
    margin-left: 5%;
    text-align: left;
    border: none;
    background-color: transparent;
    color: white;
    font-size: 16px;
    display: block;
    padding: 4px 16px;
}

.recommended-products .selector .selector-dropdown button:hover {
    background-color: white;
    color: #be1623;
}

.recommended-products .selector p {
    position: absolute;
    top: -10px;
    right: 0;
    font-weight: bold;
    font-size: 18px;
    background-color: #d3d3d3;
    padding: 5px 16px;
    cursor: pointer;
    -webkit-transition:0.2s all ease;
	transition:0.2s ease all;
}

.recommended-products .selector p:hover {
    background-color: #be1623;
    color: white;
}

.recommended-products .selector font {
    font-weight: 300;
    margin-left: 10px;
    width: 150px;
    display: inline-block;
}

.recommended-products .selector span:after {
    content: "\25BC";
    font-size: 16px;
    margin-left: 10px;
}

.recommended-products .dropdown-close:after {
    content: "\25B2"!important;
    font-size: 16px;
    margin-left: 10px;
}

.recommended-products .products {
    width: 100%;
    height: auto;
    background-color: white;
    display: block;
    white-space: nowrap;
    overflow-x: hidden;
    cursor: default!important;
}

.recommended-products .control {
    margin-top: 20px;
    text-align: right;
}

.new-line-font {
    font-size: 20px;
    color: #be1623;
    margin-top: -10px;
    display: block;
}

.special-full-size {
    background-color: #ededed;
    width: 96%;
    padding-left: 2%;
    padding-right: 2%;
    padding-bottom: 20px;
    padding-top: 20px;
    position: relative;
}

.special-full-size h1 {
    width: 39%;
}

.article-blog {
    position: absolute;
    font-weight: normal;
    margin-top: 30px;
    background-color: transparent;
    color: #be1623;
    border: 2px solid #be1623;
    display: block;
    padding: 8px 16px;
    -webkit-transition:0.2s all ease;
	transition:0.2s ease all;
}

.article-blog:hover {
    background-color: #be1623;
    color: white;
}

.articles {
    width: 61%;
    margin-top: -100px;
    margin-left: 39%;
    white-space: nowrap;
    overflow-x: hidden;
    cursor: default!important;
}

#homepage_articles_controll {
    margin-left: 39%;
    width: 61%;
    text-align: right;
    margin-top: 20px;
}

.brand {
    width: 96%;
    margin-left: 2%;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;

}

.brand img {
    width: auto;
    height: 96px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 50px;
    filter: grayscale(1);
    cursor: pointer;
}

.brand img:hover {
    filter: grayscale(0);
}

.two-categories {
    width: 100%;
    text-align: center;
    display: flex;
    cursor: pointer;
}

.two-categories div:hover h2 {
    text-decoration: underline;
}

.two-categories div:hover h2:after {
    content: " Zobrazit →";
    font-size: 18px;
}

.two-categories div {
    display: inline-block;
    background-color: #be1623;
    vertical-align: top;
    height: 500px;
    text-align: left;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-color: #ededed;
    flex-basis: 50%;
    cursor: pointer;
    -webkit-transition:0.2s all ease;
	transition:0.2s ease all;
    position: relative;
}

.two-categories h2 {
    margin-left: 50px;
    margin-top: 100px;
    margin-bottom: 20px;
    font-size: 48px;
    cursor: pointer;
}

.two-categories p {
    margin-left: 50px;
    width: 80%;
    font-size: 20px;
    cursor: pointer;
}

.two-categories #redirect_b2b > img {
    position: absolute;
    width: 130px;
    left: 50px;
    margin-top: 20px;
}

.tcs {
    color: white;
    background-color: #be1623 !important;
}

.tcs::before {
    content: "";
}

.api-block {
    width: 100%;
    padding: 50px;
    background-image: url('/css/image/api.webp');
    box-sizing: border-box;
}

.two-categories .api-block h2 {
    margin: 50px 0 20px;
}

.two-categories .api-block p {
    margin-left: 0;
    max-width: 290px;
}

.two-categories .api-block a {
    color: black;
    font-size: 16px;
}

@media screen and (max-width: 1400px) {
    .two-categories {
        flex-wrap: wrap;
    }
    
    .two-categories p {
        width: 85%;
    }

    .banner-container .banner-video div, .banner-container .banner-video {
        background-color: #3f3f3f;
    }

    .two-categories .api-block {
        width: 100%;
        flex-grow: 1;
        height: 300px;
        background-size: 640px;
        background-position: right center;
    }

    .two-categories .api-block h2 {
        margin-top: 0;
    }
}

@media screen and (max-device-width: 1000px) {
    .recommended-products .products, .articles {
        overflow-x: scroll;
        padding-bottom: 15px;
    }

    /*
    .banner-container .banner-slide div {
        margin: 0;
        float: left;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        padding-left: 10%;
        padding-top: 10%;
    }

    .banner-container .banner-slide div > * {
        width: 40%;
    }
    */
}

@media screen and (max-device-width: 660px) {

    .two-categories p {
        width: 100%;
        margin: 0;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
        text-align: center;
    }

    .brand img {
        height: 48px;
    }

    .two-categories h2 {
        margin: auto;
    }

    .recommended-products {
        margin-bottom: 20px;
    }

    .banner-container .banner-slide div {
        display: flex;
        justify-content: space-evenly;
        flex-direction: column;
        align-items: center;
    }

    #banner_loading {
        display: none!important;
    }

    .banner-slide div {
        margin-left: 0!important;
        width: 90%!important;
        padding: 0!important;
        padding-left: 5%!important;
        padding-right: 5%!important;
        margin-top: 0px!important;
        background-color: rgba(0,0,0,0.7)!important;
        height: 100%!important;
        opacity: 1!important;
        animation-name: banner-content-in;
        animation-duration: 1s;
    }

    @keyframes banner-content-in {
        0% { opacity: 1; margin-top: 0; margin-left: 0; }
        100% { opacity: 1; margin-top: 0; margin-left: 0; }
    }

    .banner-slide {
        background-repeat: no-repeat!important;
        background-size: auto 100%!important;
    }

    .banner-container {
        text-align: center;
        height: 500px;
    }
    
    .banner-container .banner-slide div p,
    .banner-container .banner-slide div h2 {
        margin: 0;
        padding: 0;
    }

    .banner-video section {
        display: none!important;
    }

    .recommended-products h1 {
        text-align: center;
    }

    #recom_select {
        right: auto;
        position: relative;
    }

    #recom_select font {
        float: right;
        width: auto;
        margin-right: 35px;
    }

    #recom_select span {
        position: absolute;
        right: 20px;
    }

    .selector-dropdown {
        top: auto!important;
        margin-top: -8px!important;
        right: auto!important;
        width: 100%!important;
    }

    .special-full-size h1 {
        width: 100%;
        text-align: center;
    }

    .special-full-size .articles {
        margin-top: 0;
        margin-left: 0;
        width: 100%;
    }

    .new-line-font {
        margin-top: 0px;
    }

    .article-blog {
        margin-top: auto;
        padding: 5px 16px;
        bottom: 25px;
    }

    .two-categories {
        display: block;
    }

    .two-categories div {
        flex-basis: 100%;
        display:  block;
        width: 100%;
        text-align: left;
        padding-top: 20px;
        background-size: 0 0;
        height: 300px;
        padding-top: 50px;
    }

    .two-categories h2 {
        margin-top: auto;
        margin-left: 0;
        width: 100%;
        text-align: center;
        font-size: 36px;
    }

    .up {
        top: -14px;
    }

    .two-categories .api-block {
        position: relative;
    }

    .two-categories .api-block::before {
        content: "";
        position: absolute;
        display: block;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 0;
    }

    .two-categories .api-block > *,
    .two-categories .api-block a {
        color: white;
        z-index: 1;
        position: relative;
        display: block;
        margin-top: 30px;
        width: 100%;
        text-align: center;
    }

}
