﻿.timeline {
    --c1: #ff5000;
    --c2: #ffae00;
    --c3: #8ac900;
    --c4: #00aeff;
    --c5: #953fbb;
    --c6: #ba3a17;
    --c7: #00a0b4;
    --c8: #DAD887;
    --c9: #75B06F;
    --c10: #36656B;
    padding: 350px 0 225px 0;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 40px 0;
    align-items: center;
    row-gap: 700px;
    justify-content: center;
}

.timeline-item {
    position: relative;
    width: 230px;
    height: 30px;
    display: inline-block;
}


.timeline-item.item-1 {
    background: var(--c1);
}

.timeline-item.item-2 {
    background: var(--c2);
}

.timeline-item.item-3 {
    background: var(--c3);
}

.timeline-item.item-4 {
    background: var(--c4);
}

.timeline-item.item-5 {
    background: var(--c5);
}

.timeline-item.item-6 {
    background: var(--c6);
}

.timeline-item.item-7 {
    background: var(--c7);
}
.timeline-item.item-8 {
    background: var(--c8);
}
.timeline-item.item-9 {
    background: var(--c9);
}
.timeline-item.item-10 {
    background: var(--c10);
}

.timeline-item .circle,
.timeline-item .content-year {
    background: inherit;
}

.arrow-end {
    position: absolute;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid currentColor;
}

.timeline-item.item-1, .timeline-item.item-1.content-year {
    color: var(--c1)
}

.timeline-item.item-2, .timeline-item.item-2.content-year {
    color: var(--c2)
}

.timeline-item.item-3, .timeline-item.item-3.content-year {
    color: var(--c3)
}

.timeline-item.item-4, .timeline-item.item-4.content-year {
    color: var(--c4)
}

.timeline-item.item-5, .timeline-item.item-5.content-year {
    color: var(--c5)
}

.timeline-item.item-6, .timeline-item.item-6.content-year {
    color: var(--c6)
}

.timeline-item.item-7, .timeline-item.item-7.content-year {
    color: var(--c7)
}
.timeline-item.item-8, .timeline-item.item-8.content-year {
    color: var(--c8)
}

.timeline-item.item-9, .timeline-item.item-9.content-year {
    color: var(--c9)
}

.timeline-item.item-10, .timeline-item.item-10.content-year {
    color: var(--c10)
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(0,0,0,.35);
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff center / 30px no-repeat;
    box-shadow: inset 0 0 6px rgba(0,0,0,.6);
}

.buble-content {
    position: absolute;
    width: 230px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    padding:12px;
    min-height:220px;
}

.timeline-item:nth-child(odd) .buble-content {
    top: 80px;
    border-radius: 10px 10px 20px 20px;
}


.timeline-item:nth-child(even) .buble-content {
    bottom:80px;
    border-radius: 20px 20px 10px 10px;
}

.content-year {
    padding: 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.content-year-bottom {
    position: relative;
}


.content {
    padding: 5px;
    font-size: 12px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content p {
    margin: 0;
    line-height: 1.4;
    font-size:16px;
    text-align: justify;
}

.content-half-circle {
    position: absolute;
    width: 50px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item:nth-child(odd) .content-half-circle {
    top: -62px;
    font-weight: bold;
    font-size: 25px;
    width: 200px;
    align-items: center;
    text-align: center;
}

.timeline-item:nth-child(even) .content-half-circle {
    bottom: -45px;
    font-weight: bold;
    font-size: 25px;
    width: 200px;
    align-items: center;
    text-align: center;
}


.grey-line {
    position: absolute;
    width: 2px;
    height: 80px;
    background: #b7b7b7;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item:nth-child(odd) .grey-line {
    top:0;
}

.timeline-item:nth-child(even) .grey-line {
    bottom:0;
}

@media (max-width: 768px) {

    .st-history {
        padding: 80px 0;
    }

    .timeline {
        row-gap: 0;
        margin-left: 0;
        padding: 0;
        align-items: center;
    }

    .timeline-item {
        width: 100%;
        height: auto;
        margin-bottom: 40px;
    }

    .timeline-item:first-child {
        width: 100%;
    }

    .circle {
        left: 20px;
        transform: translateY(-50%);
    }
    .content-half-circle {
        left: 47px;
    }
    .timeline-item:nth-child(odd) .content-half-circle {
        top: 45%;
        width: 50px;
        font-size: 17px;
        color: #fff;
        display: inline-flex;
        margin-left: -11px;
    }
    .timeline-item:nth-child(even) .content-half-circle {
        top: 45%;
        width: 50px;
        font-size: 17px;
        color: #fff;
        margin-left: -11px;
        display: inline-flex;
    }



    .timeline-item:first-child .circle {
        left: 20px;
    }

    .grey-line {
        left: 20px;
        height: 100%;
        top: 0;
    }
    .grey-line {
        display: none;
    }

    .buble-content {
        position: relative;
        top: auto !important;
        bottom: auto !important;
        left: 60px !important;
        width: calc(100% - 80px);
        min-height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .timeline-item:nth-child(odd) .buble-content,
    .timeline-item:nth-child(even) .buble-content {
        border-radius: 12px;
    }

    .circle,
    .arrow-end {
        display: none;
    }
   
   
}



