@charset "UTF-8";
.timeline {
    padding: 3rem 5rem;
    background-color: aliceblue;
    font-size:1rem;
}
.timeline-item {
    position: relative;
    border-left: 1px solid #000;
    padding: 0 0 30px 30px;
}
.timeline-item:before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 100%;
    background-color: black;
    transform: translateX(-50%) translateY(-50%);
}
.timeline-item:last-of-type {
    padding-bottom: 0;
}
.timeline-item:last-of-type:before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 5px 0 5px;
    border-color: #000000 transparent transparent transparent;
    border-radius: 0;
    background-color: transparent;
    top: auto;
    bottom: 0;
    transform: translateX(-50%) translateY(0);
}
@media (min-width: 768px) {
    .timeline {
        display: table;
        table-layout: fixed;
        width: 100%;
    }
    .timeline-item {
        display: table-cell;
        vertical-align: top;
        padding: 0;
        border-top: 1px solid #000;
        border-bottom: 0;
        border-left: 0;
    }
    .timeline-item:last-of-type {
        padding-bottom: 0;
        text-align: right;
    }
    .timeline-item:last-of-type:before {
        border-width: 5px 0 5px 10px;
        border-color: transparent transparent transparent #000000;
        top: 0;
        right: 0;
        bottom: auto;
        left: auto;
        transform: translateX(0) translateY(-50%);
    }
    .timeline-item:last-of-type p {
        text-align: center;
    }
    .timeline-label, .timeline-content {
        transform: translateX(-50%);
        text-align: center;
        display: block;
        max-width: 100%;
		font-size:0.8rem;
    }
    .timeline-label {
        text-align: center;
        position: absolute;
        top: 0;
        left: 0;
        transform: translateX(-50%) translateY(-120%);
    }
    .timeline-content {
        margin-top: 10px;
    }
    .timeline-item:last-of-type .timeline-label, .timeline-item:last-of-type .timeline-content {
        transform: translateX(50%);
        text-align: center;
        display: inline-block;
        max-width: 70%;
    }
    .timeline-item:last-of-type .timeline-label {
        left: auto;
        right: 0;
        transform: translateX(50%) translateY(-120%);
    }
}
.timeline-item.now:before {
    background-color: #f00;
}
