.demo {
    padding: 4em 0 0 4em;
	margin-bottom: 4em;
}

.main-timeline {
    overflow: hidden;
    position: relative;
}


.main-timeline .timeline {
    position: relative;

}

.main-timeline .timeline::before,
.main-timeline .timeline::after {
    content: "";
    display: block;
    width: 100%;
    clear: both;
   
}


.main-timeline .timeline::before {
    content: "";
    grid-row-end: 15px;
    height: 100%;
    width: 8px;
    margin: 0 auto;
    position: absolute;
    background: #000;
    top: -50%;
    left: 0;
    right: 0;
} 


.main-timeline .timeline:first-child::before {
    height: 50%;
    border-radius: 10px 10px 0 0;
    top: 0;
}

.main-timeline .timeline:last-child::before{
    height: 150%;
    border-radius: 0 0 10px 10px;
}


.main-timeline .timeline-icon {
    display: block;
    width: 100px;
    height: 100px;
    line-height: 95px;
    border-radius: 50%;
    background: #454545;
    border: 10px solid #000;
    margin: auto;
    font-size: 70px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.main-timeline .timeline-icon a {
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.main-timeline .timeline-icon a img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: absolute;
    left: 0;
    
}



.main-timeline .timeline-content {
    width: 50%;
    padding-right: 100px;
}

.main-timeline .icon {
    float: left;
    margin-right: 10px;
    font-size:30px;
    color: rgba(1, 1, 1, .7);
}



.main-timeline .description {
    padding-top: 2.2em;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    line-height: 24px;
    margin: 0;
    height: 200px;
}


.main-timeline .year {
    width: 50%;
    padding-left: 30px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}




.main-timeline .year span {
    display: inline-block;
    padding: 9px 12px 9px 25px;
    background: #000;
    border-radius: 0 50px 50px 0;
    font-weight: bold;
    line-height: 36px;
    color: white;
}


.main-timeline .timeline:nth-child(2n) .timeline-icon::before {
    border-right: none;
    border-left: 15px solid #000;
    left: auto;
    right: -33px;
}





.main-timeline .timeline:nth-child(2n) .timeline-content {
    float: right;
    padding: 0 0 0 100px;
} 


.main-timeline .timeline:nth-child(2n) .description {
    padding-left: 20px;
}



.main-timeline .timeline:nth-child(2n) .year {
    padding: 0 40px 0 0;
    text-align: right;
    right: auto;
    left: 0;
}




.main-timeline .timeline:nth-child(2n) .year span {
    border-radius: 50px 0 0 50px;
}


 .main-timeline .timeline:nth-child(2n) .timeline-icon{
    border-color: #000;
}



.main-timeline .timeline:nth-child(2n) .icon {
    color: #000;
}

/* lll */


 .main-timeline .timeline:nth-child(2n)::before, 
.main-timeline .timeline:nth-child(2n) .year span {
    background: #000;
} 

.main-timeline .timeline:nth-child(2n)::before {
    background: #000;
} 

#timeline  h2 {
	font-size: 70px;
	letter-spacing: -5px;
	margin-bottom: 1em;
	position: relative;
	color: #000;
	font-weight: 600;
	padding-left: 1em;
}

#timeline  h2::before {
	content: "";
	display: block;
	width: 70%;
	background: #000;
	height: 5px;
	position: absolute;
	top: 60%;
}





@media screen and (max-width: 900px) {

    .demo {
        padding: 1em;
    }

    .demo .container {
        margin: 10px;
    }

    .main-timeline .timeline::before {
        grid-row-end: none;
    } 

    .main-timeline .description {
        font-size: 12px;
        line-height: 17px;
    }

    .main-timeline .timeline-icon {
        width: 60px;
        height: 60px;
        line-height: 55px;
    }

    .main-timeline .timeline-content {
        width: 50%;
        padding-right: 50px;
    }

    .main-timeline .year {
        padding-left: 15px;

    }

    .main-timeline .timeline:nth-child(2n) .year {
        padding: 0 20px 0 0;
    }

    .main-timeline .year span {
        padding: 4px 9px 4px 19px;
    }

    .main-timeline .timeline:nth-child(2n) .year span {
        border-radius: 50px 0 0 50px;
    }

    
}

@media screen and (max-width: 480px) {
        .main-timeline .timeline::before,
    .main-timeline .timeline::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background: none;
        clear: both;
    
    }

    .main-timeline .timeline::before {
        content: "";
        grid-row-end: none;
        margin: 0 auto;
    } 

    .main-timeline .timeline:first-child::before {
        height: 1px;
        content: "";
        display: block;

    }
    
    .main-timeline .timeline:last-child::before{
        height: 1px;
        content: "";
        display: block;
    }
    
    
    .main-timeline .timeline-icon {
        display: block;
        clear: both;
        width: 100px;
        height: 100px;
        line-height: 95px;
        border-radius: 50%;
        background: #454545;
        border: 10px solid #454545;
        margin: auto;
        font-size: 70px;
        font-weight: bold;
        color: white;
        text-transform: uppercase;
        text-align: center;
        position: relative;
        /* position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: 1; */
    }
   
    .main-timeline .timeline-content {
        width: 100%;
        padding-right: 0px;
        padding-left: 0px;
    }

    .main-timeline .description {
        padding-top: 1em;
        font-size: 12px;
        font-weight: 400;
        color: #000;
        line-height: 20px;
        margin: 0;
        height: auto;
    }
    
    
    .main-timeline .year {
        width: 100%;
        padding-left: 0px;
        position: relative;
        /* top: 50%;
        right: 0;
        transform: translateY(-50%); */
    }

    .main-timeline .timeline:nth-child(2n) .timeline-content {
        float: none;
        padding: 0 0 0 0px;
    } 


    .main-timeline .timeline:nth-child(2n) .description {
        padding-left: 0px;
    }



    .main-timeline .timeline:nth-child(2n) .year {
        padding: 0;
        text-align: left;
        left: 0;
    }


    .main-timeline .timeline .year span,
    .main-timeline .timeline:nth-child(2n) .year span {
        border-radius: 0px;
        display: block;
        width: 30px;
        position: relative;
        width: auto;
        margin-top: 25px;
       
    }

}
