/* --------------------------------

Modules - reusable parts of our design

-------------------------------- */
.cd-container
{
    /* this class is used to give a max-width to the element it is applied to, and center it horizontally when it reaches that max-width */
    width: 90%;
    max-width: 1170px;
    margin: 0 auto;
}
.cd-container::after
{
    display: table;
    clear: both;
    /* clearfix */

    content: '';
}

#cd-timeline
{
    position: relative;

    margin-top: 2em;
    margin-bottom: 2em;
    padding: 2em 0;
}
#cd-timeline::before
{
    position: absolute;
    top: 0;
    left: 18px;

    width: 1px;
    height: 100%;
    /* this is the vertical line */

    content: '';

    background: #ccc;
}
@media only screen and (min-width: 1170px)
{
    #cd-timeline
    {
        margin-top: 3em;
        margin-bottom: 3em;
    }
    #cd-timeline::before
    {
        left: 50%;

        margin-left: -2px;
    }
}

.cd-timeline-block
{
    position: relative;

    margin: 2em 0;
}
.cd-timeline-block:after
{
    display: table;
    clear: both;

    content: '';
}
.cd-timeline-block:first-child
{
    margin-top: 0;
}
.cd-timeline-block:last-child
{
    margin-bottom: 0;
}
@media only screen and (min-width: 1170px)
{
    .cd-timeline-block
    {
        margin: 0;
    }
    .cd-timeline-block:first-child
    {
        margin-top: 0;
    }
    .cd-timeline-block:last-child
    {
        margin-bottom: 0;
    }
}

.cd-timeline-img
{
    position: absolute;
    top: 45%;
    left: 13px;

    width: 10px;
    height: 10px;

    background: #ccc;

   -webkit-transition: background-color .5s;
      -moz-transition: background-color .5s;
       -ms-transition: background-color .5s;
        -o-transition: background-color .5s;
           transition: background-color .5s;
}
.cd-timeline-img::after
{
    position: absolute;
    top: 50%;
    left: 0;

    width: 52px;
    height: 1px;
    margin-left: -50px;

    content: '';

    background: #ccc;
}
.cd-timeline-block.today-event .cd-timeline-img
{
    background: #b3231b;
}

.cd-timeline-block.today-event .cd-timeline-img::after
{
    background: #b3231b;
}

.cd-timeline-block.future-event .cd-timeline-img
{
    background: #556090;
}

.cd-timeline-block.future-event .cd-timeline-img::after
{
    background: #556090;
}
@media only screen and (min-width: 1170px)
{
    .cd-timeline-img
    {
        top: 46%;
        left: 50%;

        margin-left: -7px;
        /* Force Hardware Acceleration in WebKit */

        -webkit-transform: translateZ(0);

        -webkit-backface-visibility: hidden;
    }

    .cd-timeline-block:nth-child(2n) > .cd-timeline-img::after
    {
        margin-left: 10px;
    }
    .cd-timeline-img.is-hidden
    {
        visibility: hidden;
    }
    .cd-timeline-img.bounce-in
    {
        visibility: visible;

        -webkit-animation: cd-bounce-1 .6s;
           -moz-animation: cd-bounce-1 .6s;
                animation: cd-bounce-1 .6s;
    }
}

@media only screen and (max-width: 1170px)
{
    .cd-timeline-img::after
    {
        margin-left: 10px;
    }
}


@-webkit-keyframes cd-bounce-1
{
    0%
    {
        -webkit-transform: scale(.5);

        opacity: 0;
    }

    60%
    {
        -webkit-transform: scale(1.2);

        opacity: 1;
    }

    100%
    {
        -webkit-transform: scale(1);
    }
}
@-moz-keyframes cd-bounce-1
{
    0%
    {
        -moz-transform: scale(.5);

        opacity: 0;
    }

    60%
    {
        -moz-transform: scale(1.2);

        opacity: 1;
    }

    100%
    {
        -moz-transform: scale(1);
    }
}
@keyframes cd-bounce-1
{
    0%
    {
        -webkit-transform: scale(.5);
           -moz-transform: scale(.5);
            -ms-transform: scale(.5);
             -o-transform: scale(.5);
                transform: scale(.5);

        opacity: 0;
    }

    60%
    {
        -webkit-transform: scale(1.2);
           -moz-transform: scale(1.2);
            -ms-transform: scale(1.2);
             -o-transform: scale(1.2);
                transform: scale(1.2);

        opacity: 1;
    }

    100%
    {
        -webkit-transform: scale(1);
           -moz-transform: scale(1);
            -ms-transform: scale(1);
             -o-transform: scale(1);
                transform: scale(1);
    }
}
.cd-timeline-content
{
    position: relative;

    margin-left: 60px;
    padding: 1em;
    /* box-shadow: 0 3px 0 #d7e4ed; */

    border: 1px solid #ccc;
    border-radius: .25em;
    background: #fff;
}
.cd-timeline-content:after
{
    display: table;
    clear: both;

    content: '';
}
.cd-timeline-content h4
{
  color: #000;
}
.cd-timeline-content p,
.cd-timeline-content .cd-read-more,
.cd-timeline-content .cd-date
{
    font-size: 14px !important;

    top: 39% !important;
}
.cd-timeline-content .cd-read-more,
.cd-timeline-content .cd-date
{
    display: inline-block;
}
.cd-timeline-content p
{
    line-height: 1.6;

    margin: 1em 0;
}
.cd-timeline-content .cd-read-more
{
    float: right;

    padding: .8em 1em;

    color: white;
    border-radius: .25em;
    background: #acb7c0;
}
.no-touch .cd-timeline-content .cd-read-more:hover
{
    background-color: #bac4cb;
}
.cd-timeline-content .cd-date
{
    float: left;
    font-weight: bold;
    color: #ccc;

    padding: .8em 0;
}
.cd-timeline-block.today-event .cd-timeline-content
{
    border-color: #b3231b;
}

.cd-timeline-block.today-event .cd-timeline-content .cd-date
{
    color: #b3231b;
}

.cd-timeline-block.future-event .cd-timeline-content
{
    border-color: #556090;
}

.cd-timeline-block.future-event .cd-timeline-content .cd-date
{
    color: #556090;
}
@media only screen and (max-width: 768px)
{
    .cd-timeline-content h2
    {
        font-size: 18px;
    }
    .cd-timeline-content p
    {
        font-size: 16px;
    }
    .cd-timeline-content .cd-read-more,
    .cd-timeline-content .cd-date
    {
        font-size: 20px !important;
        font-size: .875rem;
    }
}
@media only screen and (min-width: 768px)
{
    .cd-timeline-content h2
    {
        font-size: 20px;
        font-size: 1.25rem;
    }
    .cd-timeline-content p
    {
        font-size: 16px;
        font-size: 1rem;
    }
    .cd-timeline-content .cd-read-more,
    .cd-timeline-content .cd-date
    {
        font-size: 14px;
    }
}
@media only screen and (min-width: 1170px)
{
    .cd-timeline-content
    {
        width: 45%;
        margin-left: 0;
        padding: 10px;
    }
    .cd-timeline-content::before
    {
        top: 24px;
        left: 100%;

        border-color: transparent;
        border-left-color: white;
    }
    .cd-timeline-content .cd-read-more
    {
        float: left;
    }
    .cd-timeline-content .cd-date
    {
        font-size: 16px;
        font-size: 1rem;

        position: absolute;
        top: 6px;
        left: 122%;

        width: 100%;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content
    {
        float: right;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content::before
    {
        top: 24px;
        right: 100%;
        left: auto;

        border-color: transparent;
        border-right-color: white;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-read-more
    {
        float: right;
    }
    .cd-timeline-block:nth-child(even) .cd-timeline-content .cd-date
    {
        right: 122%;
        left: auto;

        text-align: right;
    }
    .cd-timeline-content.is-hidden
    {
        visibility: hidden;
    }
    .cd-timeline-content.bounce-in
    {
        visibility: visible;

        -webkit-animation: cd-bounce-2 .6s;
           -moz-animation: cd-bounce-2 .6s;
                animation: cd-bounce-2 .6s;
    }
}

@media only screen and (min-width: 1170px)
{
    /* inverse bounce effect on even content blocks */
    .cd-timeline-block:nth-child(even) .cd-timeline-content.bounce-in
    {
        -webkit-animation: cd-bounce-2-inverse .6s;
           -moz-animation: cd-bounce-2-inverse .6s;
                animation: cd-bounce-2-inverse .6s;
    }
}
@-webkit-keyframes cd-bounce-2
{
    0%
    {
        -webkit-transform: translateX(-100px);

        opacity: 0;
    }

    60%
    {
        -webkit-transform: translateX(20px);

        opacity: 1;
    }

    100%
    {
        -webkit-transform: translateX(0);
    }
}
@-moz-keyframes cd-bounce-2
{
    0%
    {
        -moz-transform: translateX(-100px);

        opacity: 0;
    }

    60%
    {
        -moz-transform: translateX(20px);

        opacity: 1;
    }

    100%
    {
        -moz-transform: translateX(0);
    }
}
@keyframes cd-bounce-2
{
    0%
    {
        -webkit-transform: translateX(-100px);
           -moz-transform: translateX(-100px);
            -ms-transform: translateX(-100px);
             -o-transform: translateX(-100px);
                transform: translateX(-100px);

        opacity: 0;
    }

    60%
    {
        -webkit-transform: translateX(20px);
           -moz-transform: translateX(20px);
            -ms-transform: translateX(20px);
             -o-transform: translateX(20px);
                transform: translateX(20px);

        opacity: 1;
    }

    100%
    {
        -webkit-transform: translateX(0);
           -moz-transform: translateX(0);
            -ms-transform: translateX(0);
             -o-transform: translateX(0);
                transform: translateX(0);
    }
}
@-webkit-keyframes cd-bounce-2-inverse
{
    0%
    {
        -webkit-transform: translateX(100px);

        opacity: 0;
    }

    60%
    {
        -webkit-transform: translateX(-20px);

        opacity: 1;
    }

    100%
    {
        -webkit-transform: translateX(0);
    }
}
@-moz-keyframes cd-bounce-2-inverse
{
    0%
    {
        -moz-transform: translateX(100px);

        opacity: 0;
    }

    60%
    {
        -moz-transform: translateX(-20px);

        opacity: 1;
    }

    100%
    {
        -moz-transform: translateX(0);
    }
}
@keyframes cd-bounce-2-inverse
{
    0%
    {
        -webkit-transform: translateX(100px);
           -moz-transform: translateX(100px);
            -ms-transform: translateX(100px);
             -o-transform: translateX(100px);
                transform: translateX(100px);

        opacity: 0;
    }

    60%
    {
        -webkit-transform: translateX(-20px);
           -moz-transform: translateX(-20px);
            -ms-transform: translateX(-20px);
             -o-transform: translateX(-20px);
                transform: translateX(-20px);

        opacity: 1;
    }

    100%
    {
        -webkit-transform: translateX(0);
           -moz-transform: translateX(0);
            -ms-transform: translateX(0);
             -o-transform: translateX(0);
                transform: translateX(0);
    }
}
