.main-timeline {
    position: relative;
}

@media only screen and (min-device-width: 880px) {

    .main-timeline:before,
    .main-timeline:after {
        content: "";
        display: block;
        width: 100%;
        clear: both;
    }

    .main-timeline:before {
        width: 0.067em;
        height: calc(100% - 6em);
        background: var(--peony-pink);
        position: absolute;
        top: 2em;
        left: 50%;
    }
}

.main-timeline .timeline {
    width: 50%;
    float: left;
    position: relative;
    z-index: 1;
}

.main-timeline .timeline:last-child:before {
    top: auto;
    bottom: 0;
}

.main-timeline .timeline:last-child:nth-child(even):before {
    right: auto;
    left: -0.267em;
    bottom: -0.044em;
}

.main-timeline .timeline-content {
    text-align: center;
    margin-top: 0.178em;
    position: relative;
    transition: all 0.3s ease 0s;

    flex-direction: row-reverse;
    display: flex;
    align-items: flex-start;
}

.main-timeline .timeline-content:before {
    content: "";
    width: 80%;
    height: 0.067em;
    margin-right: 20%;
    background: var(--peony-pink);
    position: absolute;
    top: 1.95em;
}

.main-timeline .hex {
    clip-path: var(--hex-rounded-svg);
    background: var(--peony-pink);
    transform: scale(0.7) rotate(10deg);
    margin: -0.6em 0 0 0;
    text-align: center;
    padding-right: 0.2em;
}

.main-timeline .hex .img-enclose {
    clip-path: var(--hex-rounded-svg);
    transform: scale(0.9);
    background: white;
    width: 5.5em;
    height: 5.5em;
}

.main-timeline .img-enclose .img {
    transform: rotate(-10deg);
    width: auto;
    max-height: 4em;
    background: white;
    margin-left: calc(2.75em - 100%);
    margin-right: calc(2.75em - 100%);
    margin-top: calc(-2.5em + 50%);
}

.main-timeline .timeline:nth-child(2n) .img-enclose .img {
    transform: rotate(10deg);
}

.main-timeline .content {
    flex: 2;
    display: table;
    padding-right: 0.2em;
    position: relative;
    float: left;
}

.main-timeline .content .time {
    display: block;
    padding: 0 0.22em 0.22em 0.22em;
    margin-top: 0.22em;
    background: var(--peony-pink);
    border-radius: 0.156em;
    color: #fff;
}

.main-timeline .year {
    display: block;
    padding: 0.22em;
    margin: 0.22em 0 1.11em 0;
    background: var(--peony-pink);
    border-radius: 0.156em;
    font-size: 0.56em;
    color: #fff;
}

.main-timeline .title {
    font-weight: bold;
    color: var(--peony-pink);
    margin-top: 0.67em;
}

.main-timeline .description {
    font-size: 0.31em;
    color: #333;
    text-align: justify;
}

.main-timeline .icon {
    content: "";
    width: 0.44em;
    height: 0.44em;
    position: absolute;
    top: 1.73em;
    right: -0.267em;
    z-index: 1;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: var(--peony-pink);
    transform: rotate(30deg);
}

.main-timeline .timeline:nth-child(2n) .hex {
    transform: scale(0.7) rotate(-10deg);
}

.main-timeline .timeline:nth-child(2n) .content {
    padding: 0 0 0 0.2em;
}

.main-timeline .timeline:nth-child(2n) .timeline-content {
    flex-flow: row;
}

.main-timeline .timeline:nth-child(2n) .timeline-content:before {
    margin-left: 20%
}

.main-timeline .timeline:nth-child(2n) .icon {
    top: 1.78em;
    right: auto;
    left: -0.16em;
}

.main-timeline .timeline:nth-child(2n) .icon:before,
.main-timeline .timeline:nth-child(2n) .icon span:before,
.main-timeline .timeline:nth-child(2n) .icon span:after {
    left: auto;
    right: -0.33em;
}

.main-timeline .timeline:nth-child(2n) .icon span:before {
    border-radius: 0 0 0 0.467em;
}

.main-timeline .timeline:nth-child(2n) .icon span:after {
    border-radius: 0.467em 0 0 0;
}

.main-timeline .timeline:nth-child(2) {
    margin-top: 4em;
}

.main-timeline .timeline:nth-child(odd) {
    margin: -3.89em 0 0 0;
}

.main-timeline .timeline:nth-child(even) {
    margin-bottom: 4em;
}

.main-timeline .timeline:first-child,
.main-timeline .timeline:last-child:nth-child(even) {
    margin: 0;
}
