
.timeline
{
    position: relative;
    margin: 50px auto;
    padding: 40px 0 0 0;
    width: 900px;
    box-sizing: border-box;
}

/*axis*/
.timeline:before
{
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    top: 10px;
    background: #dddddd;
}

h2.timeline {
    font-weight: bold;
    text-align: center;
    font-size: 24px;
    margin-top: 1.25em !important;
    padding-top: 0;
}

h2.timeline:before {
    content: none !important;
}

.timeline ul
{
    margin: 0;
    padding: 0;
}

.timeline ul li
{
    list-style: none !important;
    position: relative;
    width: 50%;
    padding: 15px 40px;
    box-sizing: border-box;
}

/*timeline structure*/
.timeline ul li:nth-child(odd)
{
    float: left;
    text-align: right;
    clear: both;
}

.timeline ul li:nth-child(even)
{
    float: right;
    text-align: left;
    clear: both;
}

.content
{
    padding-bottom: 20px;
}

/*dots design*/
.timeline ul li:nth-child(odd):before
{
    content: '';
    position: absolute;
    top: 24px;
    right: -11px;
    width: 20px;
    height: 20px;
    background: #840000;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #dddddd;
}

.timeline ul li:nth-child(even):before
{
    content: '';
    position: absolute;
    top: 24px;
    left: -9px;
    width: 20px;
    height: 20px;
    background: #840000;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #dddddd;
}

/*dots coloring*/
.timeline ul li.education:before {
    background: lightsalmon;
}

.timeline ul li.project:before {
    background: #ccedab;
}

.timeline ul li.book:before {
    background: #94b8b8;
}

/*timeline texts*/
.timeline ul li h3
{
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: #840000;
}

.timeline ul li p
{
    margin: 10px 0 0;
    padding: 0;
}

.timeline ul li .time h4
{
    margin: 0;
    padding: 0;
    font-size: 16px;
}

/*image alignment*/
.timeline ul li:nth-child(odd) .imgsize {
    display: block;
    float: left;
    position: relative;
    width: 25%;
    height: 25%;
    box-shadow: 0 0 0 3px #dddddd;
    margin: -130px -140px -100px;
}

.timeline ul li:nth-child(even) .imgsize {
    float: right;
    box-shadow: 0 0 0 3px #dddddd;
    margin: -80px -140px -100px;
    max-width: 25%;
    max-height: inherit;
}

.timeline ul li:nth-child(odd) .imgsize-ieee
{
    margin: -120px -140px -100px;
}

.timeline ul li:nth-child(odd) .imgsize-8rules,
.timeline ul li:nth-child(odd) .imgsize-book2
{
    margin: -80px -140px -100px;
}

/*time*/
.timeline ul li:nth-child(odd) .time
{
    position: absolute;
    top: 12px;
    right: -100px;
    margin: 0;
    padding: 8px 16px;
    background: #840000;
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 3px #ffe6e6;
}

.timeline ul li:nth-child(even) .time
{
    position: absolute;
    top: 12px;
    left: -100px;
    margin: 0;
    padding: 8px 16px;
    background: #840000;
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 3px #ffe6e6;
}

h8 {
    font-weight: 600;
    color: black;
}

.timeline a:hover {
    background-color: lightgrey;
}

.timeline a:visited {
    color: #840000;
}

.timeline a {
    color: #840000;
}

.timeline .slidebar {
    position: fixed;
    bottom: 3px;
    right: 10px;
    background: lightgrey;
    border-radius: 30px;
    opacity: .7;
    font-size: 16;
    padding: 1em;
    opacity: .8;
}

.timeline .slidebar p {
    line-height: 1.7em;
    color: #FFFFFF;
    float: right;
    padding-left: 1.8em;
}

.dot-education {
    border-radius: 100%;
    width: 15px;
    height: 15px;
    background-color: lightsalmon;
    position: fixed;
    bottom: 90px;
    border: solid 3px;
    border-color: darkgray;
}

.dot-project {
    border-radius: 100%;
    width: 15px;
    height: 15px;
    background-color: #ccedab;
    position: fixed;
    bottom: 62px;
    border: solid 3px;
    border-color: darkgray;
}

.dot-book {
    border-radius: 100%;
    width: 15px;
    height: 15px;
    background-color: #94b8b8;
    position: fixed;
    bottom: 35px;
    border: solid 3px;
    border-color: darkgray;
}

/*responsive*/
/*@media (max-width: 1000px)
{

    .timeline
    {
        width: 100%;
    }
}
*/

@media (max-width: 767px)
{

    .timeline
    {
        width: 100%;
        padding-bottom: 0;
    }

    .timeline:before
    {
        left: 20px;
        height: 100.3%;
    }

    .timeline ul li:nth-child(odd),
    .timeline ul li:nth-child(even)
    {
        width: 100%;
        text-align: left;
        padding-left: 50px;
        padding-bottom: 50px;
    }

    .timeline ul li:nth-child(odd):before,
    .timeline ul li:nth-child(even):before
    {
        top: -18px;
        left: -20px;
    }

    .timeline ul li:nth-child(odd) .time,
    .timeline ul li:nth-child(even) .time
    {
        top: -30px;
        left: 50px;
        right: inherit;
    }

    .timeline ul li:nth-child(even) .imgsize,
    .timeline ul li:nth-child(odd) .imgsize
    {
        float: left;
        display: block;
        margin: 40px -250px 15px 0px; /* width: 50%; */
        ; /* height: auto; */
    }

    .timeline .footer p,
    .timeline .footer p + p
    {
        width: 100%;
        text-align: left;
        margin: 10px -250px 1px 205px;
    }
}

@media (min-width:768px) and (max-width: 1080px)
{

    .timeline {
        width: 800px;
    }

    .timeline ul li:nth-child(odd) .imgsize
    {
        float: right;
        margin: 40px 0 0 0;
    }

    .timeline ul li:nth-child(even) .imgsize
    {
        float: left;
        margin: 40px 0 0 0;
    }
}
