﻿
/*****************************
*	horizontal news ticker
******************************/

.ticker-wrapper-h {
    display: flex;
    position: relative;
    overflow: hidden;
    border: 1px solid #1c6547;
}

    .ticker-wrapper-h .heading {
        background-color: #1c6547;
        color: #fff;
        padding: 5px 10px;
        flex: 0 0 auto;
        z-index: 1000;
    }

        .ticker-wrapper-h .heading:after {
            content: "";
            position: absolute;
            top: 0;
            border-left: 20px solid #1c6547;
            border-top: 17px solid transparent;
            border-bottom: 15px solid transparent;
        }


.news-ticker-h {
    display: flex;
    margin: 0;
    padding: 0;
    padding-left: 90%;
    /*z-index: 999;*/
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-name: tic-h;
    animation-duration: 30s;
}

    .news-ticker-h:hover {
        animation-play-state: paused;
    }

    .news-ticker-h li {
        display: flex;
        width: 100%;
        align-items: center;
        white-space: nowrap;
        padding-left: 20px;
    }

        .news-ticker-h li a {
            color: #212529;
            font-weight: bold;
        }

@keyframes tic-h {
    0% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        visibility: visible;
    }

    100% {
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }
}

/*****************************
*	vertical news ticker
******************************/
.ticker-wrapper-v {
    display: flex;
    position: relative;
    overflow: hidden;
    /*border: 1px solid #1c6547;*/
    height: 33px;
}

    .ticker-wrapper-v .heading {
        background-color: #e83838;
        color: #fff;
        padding: 5px 10px;
        flex: 0 0 auto;
        /*z-index: 1000;*/
    }

        .ticker-wrapper-v .heading:after {
            content: "";
            position: absolute;
            top: 0;
            border-left: 20px solid #e83838;
            border-top: 17px solid transparent;
            border-bottom: 15px solid transparent;
        }

.news-ticker-v {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    /*z-index: 999;*/
    animation: tic-v 10s cubic-bezier(1, 0, .5, 0) infinite;
}

    .news-ticker-v:hover {
        animation-play-state: paused;
    }

    .news-ticker-v li {
        display: flex;
        width: 100%;
        line-height: 30px;
        align-items: center;
        white-space: nowrap;
        padding-left: 20px;
        font-size: 16px !important;
    }

        .news-ticker-v li a {
            color: #212529;
            font-weight: bold;
        }

@keyframes tic-v {
    0% {
        margin-top: 0;
    }

    20% {
        margin-top: -30px;
    }

    40% {
        margin-top: -60px;
    }

    60% {
        margin-top: -90px;
    }

    80% {
        margin-top: -120px;
    }

    100% {
        margin-top: 0;
    }
}

/*****************************
*	vertical news ticker with image
******************************/
.divTicker {
    width: 100%;
    height: 375px;
    overflow: hidden;
}
.ticker-wrapper-v-image {
    display: flex;
    position: relative;
    width: 100%;
    height: auto;
    /*overflow: hidden;*/
    /* border-top: solid 2px #212529;*/
}

.news-ticker-v-image {
    list-style: none;
    margin: 0;
    padding: 0;
    animation: tic-v-image 20s cubic-bezier(1, 0, .5, 0) infinite;
}

    .news-ticker-v-image:hover {
        animation-play-state: paused;
    }

    .news-ticker-v-image li {
        margin-bottom: 20px;
    }
/*.news-ticker-v-image .news-info {
        max-width: 100%;
        height: auto; 
    }
    .news-ticker-v-image .thumbnail {
        max-width: 100%;
        height: auto;
        float: left;
        margin-right: 10px;
        display: inline-block;
    }*/

.ticker-wrapper-v-image .thumbnail img {
    /*width: 150px;
    height: 60px;*/
}

.ticker-wrapper-v-image .clear {
    clear: both;
}

.ticker-wrapper-v-image .news_title a {
    color: #1c6547;
    font-size: 14px;
    font-weight: bold;
}

.ticker-wrapper-v-image .news_title {
    line-height: 20px;
}

.ticker-wrapper-v-image .news-content {
    color: #1d1d1d;
    font-size: 14px;
}

.news-ticker-v-image .news-content a {
    color: #000000;
}

    .news-ticker-v-image .news-content a:hover,
    .news-ticker-v-image .news-content a:active {
        color: #f0150a;
    }

@keyframes tic-v-image {
    0% {
        margin-top: 0;
    }

    25% {
        margin-top: -16%;
    }

    50% {
        margin-top: -32%;
    }

    75% {
        margin-top: -50%;
    }

    100% {
        margin-top: 0;
    }
}
