/********************************************************************/ 
/*                                                                  */ 
/*                            Slideshow                             */ 
/*                                                                  */ 
/********************************************************************/

#SlideNewsTickerWrapper {
    width:98%;
    margin:auto;
    display:flex;
    justify-content:space-between;
    
}

#panResponsiveSlides {
    min-width: 59%;
    margin:0 1% 0 0;
    flex-grow: 2;
}


.rslides {
    margin: 0 auto 40px;
}

#slider2, #slider3 {
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    margin: 0 auto;
}

.rslides_tabs {
    list-style: none;
    padding: 0;
    background: rgba(0,0,0,.25);
    box-shadow: 0 0 1px rgba(255,255,255,.3), inset 0 0 5px rgba(0,0,0,1.0);
    -moz-box-shadow: 0 0 1px rgba(255,255,255,.3), inset 0 0 5px rgba(0,0,0,1.0);
    -webkit-box-shadow: 0 0 1px rgba(255,255,255,.3), inset 0 0 5px rgba(0,0,0,1.0);
    font-size: 18px;
    list-style: none;
    margin: 0 auto 50px;
    max-width: 540px;
    padding: 10px 0;
    text-align: center;
    width: 100%;
}

    .rslides_tabs li {
        display: inline;
        float: none;
        margin-right: 1px;
    }

    .rslides_tabs a {
        width: auto;
        line-height: 20px;
        padding: 9px 20px;
        height: auto;
        background: transparent;
        display: inline;
    }

    .rslides_tabs li:first-child {
        margin-left: 0;
    }

    .rslides_tabs .rslides_here a {
        background: rgba(255,255,255,.1);
        color: #fff;
        font-weight: bold;
    }

a {
    text-decoration: none;
}

#download {
    background: #333;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin: 60px auto;
    max-width: 500px;
    padding: 20px;
}

    #download:hover {
        background: rgba(255,255,255,.15);
    }

.footer {
    font-size: 11px;
}
/* Callback example */

.events {
    list-style: none;
}

.callbacks_container {
    margin-bottom: 0px;
    position: relative;
    box-shadow: 0 15px 15px -10px rgba(0,0,0,0.2);
    width: 100%; /*Set to 100% for respsonsive */
    overflow:hidden;
}

.callbacks {
    position: relative;
    list-style: none;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

    .callbacks li {
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
    }




/* End */



    .callbacks img {
        display: block;
        position: relative;
        z-index: 1;
        /*height: 90vh;*/
        height: 500px; /*calc(100vh - 157px)*/
        width: 100%;
        border: 0;
        object-fit: cover;
        margin: 0;
    }

    .callbacks .caption {
        display: block;
        position: absolute;
        z-index: 2;
        letter-spacing: 1px;
        font-size: 25px;
        text-shadow: none;
        color: #fff;
        background: #000;
        background: rgba(0,0,0, .7);
        left: 0%;
        bottom: 0%;
        text-transform: uppercase;
        font-weight: 800;
        /* font-family: 'Open Sans Condensed', sans-serif; */
        font-family: 'Roboto Condensed', sans-serif;
        box-sizing: border-box;
        padding: 10px 20px;
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

.callbacks_nav {
    position: absolute;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    top: 52%;
    left: 0;
    opacity: 0.7;
    z-index: 3;
    text-indent: -9999px;
    overflow: hidden;
    text-decoration: none;
    height: 61px;
    width: 38px;
    background: transparent url("images/themes.gif") no-repeat left top;
    margin-top: -45px;
}

    .callbacks_nav:active {
        opacity: 1.0;
    }



/* Nav in-out */
.callbacks_container a:nth-child(2) {
    left: -40px;
    transition: all .5s;
}

#panResponsiveSlides:hover .callbacks_container a:nth-child(2) {
    left: 0px;
}

.callbacks_container a:nth-child(3) {
    right: -40px;
    transition: all .5s;
}

#panResponsiveSlides:hover .callbacks_container a:nth-child(3) {
    right: 0px;
}
/* End */

.callbacks_nav.next {
    left: auto;
    background-position: right top;
    right: 0;
}

#slider3-pager a {
    display: inline-block;
}

#slider3-pager img {
    float: left;
}

#slider3-pager .rslides_here a {
    background: transparent;
    box-shadow: 0 0 0 2px #666;
}

#slider3-pager a {
    padding: 0;
}
/* small dots pager */

.callbacks_tabs {
    list-style: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

    .callbacks_tabs li {
        display: inline-block;
        padding: .2em .6em;
        background: rgba( 17, 17, 17,0.5);
    }

        .callbacks_tabs li:hover {
            background: #111;
        }

    .callbacks_tabs a {
        color: #FFF;
        font-size: 1.2em;
        padding: .2em 0;
    }

.callbacks_here {
    background: #111 !important;
}


/********************************************************************/
/*                                                                  */
/*                          News Rotator                            */
/*                                                                  */
/********************************************************************/
.demo1 {
    overflow: visible !important; /* Fixes missing text and img */
    margin: 10px 30px 0 30px;
}

#panBootStrapNewsTickerWrapper {
    min-width: 40%;
    flex-grow: 1;
}

.bootstrapperNewsTickerContainer {
    /*margin: 0 0 0 -3px;*/
    position: relative;
}

/* Content */

.panel-body {
    display: inline-block;
    background-color: #FAFAFA;
    outline: solid 1px #efeeee;
    width: 100%;
    vertical-align: top;
    /* margin: 0 1px 0 0; */
    height: 700px; /*org 250px*/
}

/* Sort tables and image */
.bootstrapperNewsTickerContainer {
    /*margin: 0 0 0 -3px;*/
    position: relative;
}

/* Content */

.panel-body {
    display: inline-block;
    background-color: #FAFAFA;
    outline: solid 1px #efeeee;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    vertical-align: top;
    /* margin: 0 1px 0 0; */
    height: 499px; /*org 250px*/
}

/* Sort tables and image */

.news-item {
    list-style: none;
    border-bottom: 0px solid #0255a1;
    padding: 10px 0 10px;
}

    .news-item table {
        width: 100%;
        display: block;
    }

        .news-item table tbody {
            display: block;
        }

        .news-item table tr {
            display: flex;
            flex-flow: row nowrap;
            justify-content: flex-start;
            align-items: center;
            box-shadow: 3px 3px 10px -2px #0255a1;
            background: #FFF;
            transition: box-shadow .2s ease;
        }

        .news-item > a:hover tr {
            box-shadow: 3px 3px 5px -3px #0255a1;
        }

            .news-item table tr td {
                flex: 1;
				display: block;
				box-sizing: border-box;
				padding: 0 15px;
            }

                .news-item table tr td.news_image {
                    max-width: 230px;
                    height: 126px;
                    overflow: hidden;
                    padding: 0 15px 0 0;
                    box-sizing: border-box;
                }

                    .news-item table tr td.news_image img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }

                .news-item table tr td.news_text {
                    display: block;
                    text-align: left;
                    flex-grow: 1;
                    box-sizing: border-box;
                    padding: 0 15px;
                }

                    .news-item table tr td.news_text.hasImageCompanion {
                        text-align: left;
                        padding: 0 15px 0 0;
                    }
    /*.news-item td:first-child {
        width: 26%;
        height: 220px;
        overflow: hidden;
        text-align: center;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .news-item td img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    .news-item td:last-child {
        vertical-align: top;
        display: inline-block;
        width: 100%;
        height: 120px;
        box-shadow: none;
    }*/

    /* Text styling */
    .news-item td a {
        font-size: 25px;
        display: block;
        font-weight: 600;
        /*font-family: 'Roboto Condensed', sans-serif;*/
        margin: 0 0 10px 0;
    }

    .news-item td p {
        font-size: 1.4em;
        line-height: 1.8em;
        height: 126px;
        overflow: hidden;
        display: flex;
        flex-flow: column nowrap;
        justify-content: center;
        color: initial;
    }

/* Footer */
.panel-footer {
    display: block;
    width: 200px;
    margin: 0 0px 0 -5px;
    vertical-align: top;
    height: 40px;
    position: absolute;
    bottom: 0;
    right: 0;
}

    .panel-footer .pull-right {
        float: none;
        display: flex;
    }

.pagination {
    height: 100%;
}

    .pagination li {
        list-style: none;
        height: 100%; /*50%*/
        width: 50%;
    }

    /*.pagination li:first-child {
            list-style: none;
            height: 50%;
        }*/

    .pagination a {
        display: -ms-flexbox;
        display: -moz-box;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        height: 100%;
        position: relative;
        font-size: 20px;
        color: #FFF;
    }


.glyphicon-chevron-down:before {
    font-family: FontAwesome;
    content: "\f062";
}

.glyphicon-chevron-up:before {
    font-family: FontAwesome;
    content: "\f063";
}




/********************************************************************/
/*                                                                  */
/*                          Responsive                              */
/*                                                                  */
/********************************************************************/
@media all and (max-width: 1300px) {

    .callbacks .caption {
        /*display: none;*/
        font-size: 20px;
        /*bottom: 10%;*/
    }
}

@media all and (max-width : 1100px) {
    
    #SlideNewsTickerWrapper {
        width:100%;
        margin:auto;
        display:flex;
        justify-content:initial;
        flex-direction: column;
    }

    #panBootStrapNewsTickerWrapper {
        width:100%;
    }
    
    #panResponsiveSlides {
        width:100%;
        margin:0px 0 0 0;
    }


    .callbacks img {
        height: 400px;
    }
    .callbacks_container a:nth-child(2) {
        left: 0px;
    }

    .callbacks_container a:nth-child(3) {
        right: 0px;
    }

    .panel-body {
        outline: 0px;
    }
}

@media all and (max-width : 700px) {

    .panel-body {
        height: 450px;
        overflow-y: hidden;
    }

    .news-item table {
        width: 96%;
        margin: 0 2%;
    }

    .demo1 {
        margin: 10px 0 0 0;
    }

    .news-item td:last-child {
        display: block;
        text-align: center;
        width: 100%;
        margin: 0;
    }

    .news-item td:last-child {
        margin: 20px 0;
    }

    .news-item td a {
        margin: 15px 0;
    }

    .news-item td p {
        height: 136px;
    }

    .panel-footer {
        width: 100%;
        bottom: 0;
        right: 0;
    }

    .callbacks .caption {
        /*display: none;*/
        font-size: 20px;
    }
    .callbacks img {
        height: 350px;
    }
}

@media all and (max-width: 500px) {

    .news-item td:last-child {
        height: 170px;
        margin: 0;
    }

    .news-item td p {
        height: 156px;
    }
}

/********************************************************************/
/*                                                                  */
/*                          MICROSOFT                               */
/*                                                                  */
/********************************************************************/
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {

    #SlideNewsTickerWrapper {
        max-width: 1800px;
    }

    #panResponsiveSlides {
        max-width: 59%;
        height: 500px;
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .callbacks_container, .callbacks, .callbacks li {
        height: 100%;
    }

        .callbacks li {
            overflow: hidden;
        }

        .callbacks img {
            margin-top: -30px;
            height: 100%;
            overflow: hidden;
        }

    .pagination a {
        display: -ms-flexbox;
        justify-content: center;
        align-items: center;
    }

    .panel-body {
        max-width: 750px;
    }

    .news-item table tr td.news_text p {
        color: #111;
    }

    .news-item table tr td.news_image img {
        max-width: 220px;
        width: auto;
        display: block;
        margin: 0 auto;
    }
}


@media all and (max-width: 1800px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #SlideNewsTickerWrapper {
        max-width: 1600px;
    }
}


@media all and (max-width: 1600px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #SlideNewsTickerWrapper {
        max-width: 1400px;
    }
}

@media all and (max-width: 1500px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #SlideNewsTickerWrapper {
        max-width: 1300px;
    }
}

@media all and (max-width: 1400px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #SlideNewsTickerWrapper {
        max-width: 1200px;
    }
}

@media all and (max-width: 1300px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #SlideNewsTickerWrapper {
        max-width: 1100px;
    }
}

@media all and (max-width: 1100px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #panResponsiveSlides {
        max-width: 800px;
        height: 400px;
        margin: 0 auto;
    }

    .callbacks img {
        margin-top: 0;
        height: 400px;
    }

    .panel-body {
        max-width: 100%;
    }
}

@media all and (max-width: 900px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #panResponsiveSlides {
        max-width: 750px;
    }
}
@media all and (max-width: 800px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #panResponsiveSlides {
        max-width: 650px;
        height: 350px;
    }
    .callbacks img {
        height: 350px;
    }
}
@media all and (max-width: 700px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #panResponsiveSlides {
        max-width: 550px;
    }
}

@media all and (max-width: 600px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #panResponsiveSlides {
        max-width: 450px;
        height: 300px;
    }

    .callbacks img {
        height: 300px;
    }
}
@media all and (max-width: 500px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    #panResponsiveSlides {
        max-width: 400px;
    }
}




@supports (-ms-accelerator:true) {
    /* IE Edge 12+ CSS styles go here */
    #SlideNewsTickerWrapper {
        max-width: 1920px;
    }

    .callbacks li {
        overflow: hidden;
    }

    .callbacks img {
        margin-top: -25%;
        height: auto;
    }

    .news-item table tr td.news_image img {
        width: auto;
        height: 100%;
        object-fit: cover;
    }
}