﻿
.cd-main-header {
    height: 200px;
    background: hsl(206, 21%, 24%);
    color: hsl(0, 0%, 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

    .cd-main-header h1 {
        color: inherit
    }

.cd-timeline {
    overflow: hidden;
    padding: 2em 0;
    color: hsl(207, 10%, 55%);
    background-color: hsl(205, 38%, 93.45%);
 }

    .cd-timeline h2 {
        font-weight: 700
    }

.cd-timeline__container {
    position: relative;
    padding: 1.25em 0;
}

    .cd-timeline__container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 18px;
        height: 100%;
        width: 4px;
        background: hsl(205, 38%, 89%);
    }

@media (min-width: 64rem) {
    .cd-timeline__container::before {
        left: 50%;
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        transform: translateX(-50%)
    }
}

.cd-timeline__block {
    display: -ms-flexbox;
    display: flex;
    position: relative;
    z-index: 1;
    margin-bottom: 2em;
}

    .cd-timeline__block:last-child {
        margin-bottom: 0
    }

@media (min-width: 64rem) {
    .cd-timeline__block:nth-child(even) {
        -ms-flex-direction: row-reverse;
        flex-direction: row-reverse
    }
}

.cd-timeline__img {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px hsl(0, 0%, 100%),inset 0 2px 0 rgba(0,0,0,0.08),0 3px 0 4px rgba(0,0,0,0.05);
}

    .cd-timeline__img img {
        width: 24px;
        height: 24px
    }

@media (min-width: 64rem) {
    .cd-timeline__img {
        width: 60px;
        height: 60px;
        -ms-flex-order: 1;
        order: 1;
        margin-left: calc(5% - 30px);
        will-change: transform
    }

    .cd-timeline__block:nth-child(even) .cd-timeline__img {
        margin-right: calc(5% - 30px)
    }
}

.cd-timeline__img--picture {
    background-color: hsl(111, 51%, 60%);
}

.cd-timeline__img--movie {
    background-color: hsl(356, 53%, 49%);
}

.cd-timeline__img--location {
    background-color: hsl(47, 85%, 61%);
}

.cd-timeline__content {
    width: calc(100% - 70px);
    -ms-flex-positive: 1;
    flex-grow: 0;
    position: relative;
    margin-left: 1.25em;
    background: #294844;
    border-radius: 0.25em;
    padding: 1.25em 1.25em 2.5em 1.25em;
    box-shadow: 2px 3px 5px #999;
    color: #fff;
}

    .cd-timeline__content::before {
        content: '';
        position: absolute;
        top: 16px;
        right: 100%;
        width: 0;
        height: 0;
        border: 7px solid transparent;
        border-right-color: #294844;
    }

    .cd-timeline__content h2 {
        color: #E2A853;
        font-weight: bold;
    }

@media (min-width: 64rem) {
    .cd-timeline__content {
        width: 45%;
        -ms-flex-positive: 0;
        flex-grow: 0;
        will-change: transform;
        margin: 0;
        font-size: 0.8em;
        --line-height-multiplier: 1.2
    }

        .cd-timeline__content::before {
            top: 24px
        }

    .cd-timeline__block:nth-child(odd) .cd-timeline__content::before {
        right: auto;
        left: 100%;
        width: 0;
        height: 0;
        border: 7px solid transparent;
        border-left-color: #294844;
    }
}

.cd-timeline__date {
    color: #053028;
}

@media (min-width: 64rem) {
    .cd-timeline__date {
        position: absolute;
        width: 100%;
        left: 120%;
        top: 20px
    }

    .cd-timeline__block:nth-child(even) .cd-timeline__date {
        left: auto;
        right: 120%;
        text-align: right
    }
}

@media (min-width: 64rem) {
    .cd-timeline__img--hidden, .cd-timeline__content--hidden {
        visibility: hidden
    }

    .cd-timeline__img--bounce-in {
        -webkit-animation: cd-bounce-1 0.6s;
        animation: cd-bounce-1 0.6s
    }

    .cd-timeline__content--bounce-in {
        -webkit-animation: cd-bounce-2 0.6s;
        animation: cd-bounce-2 0.6s
    }

    .cd-timeline__block:nth-child(even) .cd-timeline__content--bounce-in {
        -webkit-animation-name: cd-bounce-2-inverse;
        animation-name: cd-bounce-2-inverse
    }
}

@-webkit-keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
        transform: scale(0.5)
    }

    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2)
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@keyframes cd-bounce-1 {
    0% {
        opacity: 0;
        -webkit-transform: scale(0.5);
        transform: scale(0.5)
    }

    60% {
        opacity: 1;
        -webkit-transform: scale(1.2);
        transform: scale(1.2)
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1)
    }
}

@-webkit-keyframes cd-bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px)
    }

    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
        transform: translateX(20px)
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

@keyframes cd-bounce-2 {
    0% {
        opacity: 0;
        -webkit-transform: translateX(-100px);
        transform: translateX(-100px)
    }

    60% {
        opacity: 1;
        -webkit-transform: translateX(20px);
        transform: translateX(20px)
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

@-webkit-keyframes cd-bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
        transform: translateX(100px)
    }

    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
        transform: translateX(-20px)
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

@keyframes cd-bounce-2-inverse {
    0% {
        opacity: 0;
        -webkit-transform: translateX(100px);
        transform: translateX(100px)
    }

    60% {
        opacity: 1;
        -webkit-transform: translateX(-20px);
        transform: translateX(-20px)
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0)
    }
}

@media screen and (max-width: 768px) {
    .hideM {
        visibility: hidden;
        clear: both;
        float: left;
        /*margin: 10px auto 5px 20px;
        width: 28%;*/
        display: none;
    }
}
