/*Infographic CSS*/
:root {
    --color1: #ff5000;
    --color2: #ffae00;
    --color3: #8ac900;
    --color4: #00aeff;
    --color5: #953fbb;
    --color6: #ba3a17;
    --color7: #00a0b4;
}

.timeline {
    padding: 200px 0;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
}

@media only screen and (max-width: 768px) {
    .timeline {
        width: 75%;
        margin-left: 92px;
    }
}

@media only screen and (max-width: 600px) {
    .timeline {
        display: none !important;
    }
}

.timeline-item {
    position: relative;
    width: 150px;
    height: 30px;
    display: inline-table;
}

.timeline-item:nth-child(1) {
    width: 75px;
}

.arrow-end {
    position: absolute;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.circle {
    position: absolute;
    background-position: center center;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 0 12px 0px #4d4d4d;
}

.timeline-item:nth-child(1) .circle {
    left: 0;
}

.inner-circle {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    background-color: #daa521;
    box-shadow: inset 0px 0px 6px 0px #000;
}

.buble-content {
    text-align: center;
    position: absolute;
    width: 159px;
    height: 208px;
    transition: height 0.3s ease;
}

.timeline-item:nth-child(odd) .buble-content {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    top: -214px;
}

.timeline-item:nth-child(even) .buble-content {
       bottom: -214px;
    left: -25px;
}

.timeline-item:nth-child(1) .buble-content {
    left: -88px;
}
.timeline-item:nth-child(3) .buble-content {
    left: -12px;
}

.timeline-item:nth-child(5) .buble-content {
    left: -12px;
}
.timeline-item:nth-child(6) .buble-content {
    left: -26px;
}
.timeline-item:nth-child(7) .buble-content {
    left: -12px;
}

.content-year {
    padding: 5px;
    color: #fff;
    font-size: 16px;
}

.timeline-item:nth-child(even) .content-year-bottom {
    position: absolute;
    width: 160px;
    bottom: 0;
}

.content {
    margin: auto 0;
    padding: 5px;
    color: #000;
    font-size: 18px;
    height: 60px;
    display: block;
    position: relative;
}

.content p {
    display: flex;
    height: 100%;
    margin: auto 0;
    font-size: 12px;
    flex-direction: column;
    justify-content: space-around;
}

/*.content-half-circle {*/
/*    position: absolute;*/
/*    transform: translate(-50%, -50%);*/
/*    background-color: #fff;*/
/*    width: 50px;*/
/*    height: 20px;*/
/*    z-index: 9999;*/
/*}*/

.timeline-item:nth-child(odd) .content-half-circle {
    top: -50px;
    left: 50%;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    box-shadow: 1px 10px 9px 0px #bbbbbb;
}

.timeline-item:nth-child(even) .content-half-circle {
    bottom: -70px;
    left: 50%;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    box-shadow: -1px -9px 9px 0px #bbbbbb;
}

.timeline-item:nth-child(1) .content-half-circle {
    left: 0;
}

.grey-line {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 80px;
    background-color: #b7b7b7;
}

.timeline-item:nth-child(odd) .grey-line {
    top: -30px;
    left: 50%;
}

.timeline-item:nth-child(even) .grey-line {
    bottom: -130px;
    left: 50%;
}

.timeline-item:nth-child(1) .grey-line {
    left: 0;
}

/* CSS for hiding the content initially */
.buble-content .content {
    display: none;
}

/* CSS for displaying the content on hover */
.timeline-item:hover .buble-content .content {
    display: block;
}

.tooltip {
    position: relative;
    display: contents;
    font-size: 15px;
    font-family: 'Playfair Display', serif;
    font-style: normal;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 258px;
    background-color: goldenrod;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px;
    position: absolute;
    z-index: 1;
      margin-left: 63px;
    margin-top: -176px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.infoimg{
    background-repeat: no-repeat;
    background-image: url(../../assets/img/timeline1.png);
    background-size: cover;
    width: 232%;
    display: flex;
    align-items: center;
    padding: 51px;
}

.infoimg2{
    background-repeat: no-repeat;
   background-image: url(../../assets/img/timeline2.png);
    background-size: cover;
        width: 134%;
    display: flex;
    align-items: center;
    padding: 48px;
    padding-left: 61px;
}

.infoimg3{
    background-repeat: no-repeat;
     background-image: url(../../assets/img/timeline3.png);
    background-size: cover;
     width: 115%;
    display: flex;
    align-items: center;
    padding: 38px;
}


.infoimg4{
    background-repeat: no-repeat;
    background-image: url(../../assets/img/timeline4.png);
    background-size: cover;
        width: 134%;
    display: flex;
    align-items: center;
        padding: 42px;
    padding-left: 57px;
}

.infoimg5{
    background-repeat: no-repeat;
      background-image: url(../../assets/img/timeline5.png);
    background-size: cover;
     width: 115%;
    display: flex;
    align-items: center;
    padding: 47px;
    padding-right: 58px;
    padding-top: 77px;
}

.infoimg6{
    background-repeat: no-repeat;
    background-image: url(../../assets/img/timeline6.png);
    background-size: cover;
        width: 136%;
    display: flex;
    align-items: center;
    padding: 23px;
    padding-bottom: 26px;
    padding-left: 39px;
}

.infoimg7{
    background-repeat: no-repeat;
       background-image: url(../../assets/img/timeline7.png);
    background-size: cover;
     width: 115%;
    display: flex;
    align-items: center;
    padding: 38px;
    padding-right: 43px;
    padding-top: 45px;
}
