﻿.timeline {
    overflow: auto;
    background-color: #FFF;
}

section#timeline {
    list-style: none;
    position: relative;
    margin: 30px 5px 5px 10px;
    display: inline-block;
    padding-top: 80px;
}

    section#timeline::before {
        height: 2px;
        top: auto;
        bottom: 25px;
        left: 0;
        right: 0;
        position: absolute;
        content: " ";
        margin-left: -1.5px;
        position: absolute;
        content: " ";
        background-color: var(--background-dark);
        margin-left: -1.5px;
    }

    section#timeline div[class*="group"]::before {
        content: "|";
        height: 4px;
        color: #A1AC83;
        bottom: 25px;
        position: absolute;
        left: 50%;
    }

    section#timeline div[class*="group"],
    section#timeline article {
        display: table-cell;
        width: 50px;
        min-width: 50px;
        max-width: 350px;
        float: none !important;
        padding: 0 10px;
        vertical-align: bottom;
        position: relative;
    }

        section#timeline article::after {
            content: '';
            display: block;
            clear: both;
        }

    section#timeline div[class="spacer"] {
        display: table-cell;
        float: none !important;
        position: relative;
    }

    section#timeline > article > div.panel {
        top: auto;
        bottom: 35px;
        display: inline-block;
        float: none !important;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        /*margin-bottom: 20px;*/
        position: relative;
        border: none;
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-radius: 0px;
        /*-webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15); -moz-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);*/
    }

    section#timeline article div.panel::after {
        content: '';
        position: absolute;
        bottom: -5px;
        right: 170px;
        width: 10px;
        height: 10px;
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        background: #FFF;
        display: none;
    }

    section#timeline > article > div.panel .panel-heading {
        margin: 0;
        font-size: 1.1em;
        text-align: center;
        position: absolute;
        display: table;
        width: 100px;
        height: 50px;
        bottom: 25px;
        left: 7px;
        text-align: left;
        overflow: hidden;
        text-overflow: ellipsis;
        transform: rotate(-55deg);
    }

        section#timeline > article > div.panel .panel-heading .panel-title {
            color: #000;
            display: table-cell;
            vertical-align: middle;
            max-width: 1px;
        }

    section#timeline > article > div.panel .panel-body {
        padding: 15px;
        position: relative;
        display: none;
    }

        section#timeline > article > div.panel .panel-body img {
            float: left;
            margin: 0 15px 15px 0;
        }

    section#timeline > article > div.panel .panel-footer {
        padding: 15px;
        background-color: #EEE;
    }

    section#timeline article div.panel div.badge {
        display: block;
        text-align: center;
        cursor: pointer;
        font-weight: bold;
        -moz-box-shadow: 0 0 0 2px #A1AC83, inset 0 2px 0 rgba(0, 0, 0, 0.1), 0 3px 0 2px rgba(0, 0, 0, 0.15);
        -webkit-box-shadow: 0 0 0 2px #A1AC83, inset 0 2px 0 rgba(0, 0, 0, 0.1), 0 3px 0 2px rgba(0, 0, 0, 0.15);
        box-shadow: 0 0 0 2px var(--background-dark), inset 0 2px 0 rgba(0, 0, 0, 0.1), 0 3px 0 2px rgba(0, 0, 0, 0.15);
    }

    section#timeline article div.panel div.badge {
        position: absolute;
        bottom: -28px;
        left: 50%;
        margin: 0 0 0 -15px;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        line-height: 13px;
        background-color: #62656e;
        color: #FFF;
        word-spacing: 2px;
    }

    section#timeline div[class*="group"] {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
        padding: 0px;
        border-bottom: 5px solid #c9c9c9;
        font-weight: bold;
        text-align: center;
    }

    section#timeline article:nth-last-child(2) {
        width: 40px;
        min-width: 40px;
        max-width: 40px;
    }

        section#timeline article:nth-last-child(2) div.panel:after {
            display: none;
        }

        section#timeline article:nth-last-child(2) div.panel div.badge {
            background-color: #62656e;
            width: 20px;
            height: 20px;
            margin: 0 0 7px 5px;
            cursor: default;
        }
