#Timeline {
    padding-top: 30rem;
    height: 60rem;
    position: relative;
}

#Year {
    border-top: 2px solid #84a0ca;
    padding: 0;
}

#Year > li {
    font-family: 'AvenirLTStdBlack';
    color: #06559a;
    font-size: 1.1rem;
    display: table-cell;
    position: absolute;
    background-image: none;
}

#Year li:nth-of-type(1) {
    left: 2%;
}

#Year li:nth-of-type(2) {
    left: 12.5%;
}

#Year li:nth-of-type(3) {
    left: 25%;
}

#Year #Pentafarma {
    left: 29%;
    top: 28rem;
}

#Year li:nth-of-type(5) {
    left: 37.5%;
}

#Year li:nth-of-type(6) {
    left: 44%;
    top: 25rem;
}

#Year li:nth-of-type(7) {
    left: 47%;
    top: 28rem;
}

#Year li:nth-of-type(8) {
    left: 50%;
}

#Year li:nth-of-type(9) {
    left: 52%;
    top: 25rem;
}

#Year li:nth-of-type(10) {
    left: 62.5%;
}

#Year li:nth-of-type(11) {
    left: 69.5%;
    top: 28rem;
}

#Year li:nth-of-type(12) {
    left: 72%;
    top: 25rem;
}

#Year li:nth-of-type(13) {
    left: 75%;
}

#Year li:nth-of-type(14) {
    left: 78%;
    top: 28rem;
}

#Year li:nth-of-type(15) {
    left: 84%;
}

#Year li:nth-of-type(16) {
    left: 87.5%;
    top: 28rem;
}

#Year li:before {
    content: "";
}

#Year .empty {
    font-family: 'AvenirLTStd-Light';
    color: #8ca6ce;
}

#Year > li > span {
    background-color: #fff;
    display: table-cell;
    padding: .3rem .5rem 0;
    -ms-transform-origin: 50% 0;
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -ms-transform: rotateZ(-90deg);
    -webkit-transform: rotateZ(-90deg);
    transform: rotateZ(-90deg);
}

#Year > li > span:before {
    content: " ";
    display: block;
    width: 10rem;
    height: 1px;
    position: absolute;
    background-color: #06559a;
    left: -10.1rem;
    top: 1rem;
    z-index: -1;
}

.main-page #Timeline li {
    padding-left: 0;
}

#Year li:nth-of-type(15) span:before,
#Year li:nth-of-type(6) span:before {
    width: 16rem;
    left: -16.1rem;
}

#Year li:nth-of-type(14) span:before {
    width: 16rem;
}

#Year .empty span:before {
    content: none;
}

#Year > .up > span:before {
    left: 3.7rem;
}

#Year p {
    font-size: 1rem;
    text-align: center;
    line-height: 1;
    font-family: 'AvenirLTStd-Light';
}

#Year p strong {
    font-size: 1rem;
}

#Year .circle {
    width: 10rem;
    height: 10rem;
    border-radius: 6rem;
    display: table-cell;
    vertical-align: middle;
    position: absolute;
    left: -2rem;
    background-color: #06559a;
    color: #fff;
    padding-top: 3rem;
    overflow: hidden;
}

#Year li:nth-of-type(1) .circle {
    top: 3rem;
}

#Year #Pentafarma .circle {
    top: -16rem;
}

#Year li:nth-of-type(5) .circle {
    top: 3rem;
}

#Year li:nth-of-type(6) .circle {
    top: 18rem;
}

#Year li:nth-of-type(7) .circle {
    top: -18.5rem;
}

#Year li:nth-of-type(9) .circle {
    top: 8.2rem;
}

#Year li:nth-of-type(11) .circle {
    top: -16rem;
}

#Year li:nth-of-type(12) .circle {
    top: 8.2rem;
}

#Year li:nth-of-type(14) .circle {
    top: -24rem;
}

#Year li:nth-of-type(15) .circle {
    top: 3rem;
}

#Year li:nth-of-type(15) .circle:nth-of-type(2) {
    top: 14rem;
}

#Year li:nth-of-type(16) .circle {
    top: -16rem;
}

#Year .circle.turn p,
#Year .circle:hover p {
    opacity: 0;
    filter: alpha(opacity=0);
}

#Year .circle.turn,
#Year .circle:hover {
    background-color: #fff;
    color: #06559a;
    border: 2px solid #06559a;
}

#Pentafarma .circle.turn,
#Pentafarma .circle:hover {
    background-image: url(../images/pentafarma.jpg);
    background-size: 100%;
}

#Farmoz .circle.turn,
#Farmoz .circle:hover {
    background-image: url(../images/farmoz__.jpg);
    background-size: 100%;
}

#Maroc .circle.turn,
#Maroc .circle:hover {
    background-image: url(../images/tecnimede_maroc.jpg);
    background-size: 100%;
}

#Espana .circle.turn,
#Espana .circle:hover {
    background-image: url(../images/tecnimede_es.jpg);
    background-size: 100%;
}

#Tecnigen.turn,
#Tecnigen:hover {
    background-image: url(../images/tecnigen.jpg);
    background-size: 100%;
}

#AtlasPharm .circle.turn,
#AtlasPharm .circle:hover {
    background-image: url(../images/atlaspharm.jpg);
    background-size: 100%;
}

#AtlanticPharma2.turn,
#AtlanticPharma2:hover {
    background-image: url(../images/atlantic.jpg);
    background-size: 100%;
}

#AtlanticPharma.circle:hover p,
#AtlanticPharma.turn,
#AtlanticPharma:hover {
    opacity: 1;
    filter: alpha(opacity=1);
    color: #06559a;
    font-family: 'AvenirLTStd-Medium';
}

#Tecnimede .circle.turn,
#Tecnimede .circle:hover {
    background-image: url(../images/tecnimede.jpg);
    background-size: 100%;
}

#Westpharma .circle.turn p,
#Westpharma .circle:hover p {
    opacity: 1;
    filter: alpha(opacity=1);
    color: #06559a;
    font-family: 'AvenirLTStd-Medium';
}

#Laborqualitas .circle.turn p,
#Laborqualitas .circle:hover p {
    opacity: 1;
    filter: alpha(opacity=1);
    color: #06559a;
    font-family: 'AvenirLTStd-Medium';
}

#Altadis_ .circle.turn p,
#Altadis_ .circle:hover p {
    opacity: 1;
    filter: alpha(opacity=1);
    color: #06559a;
    font-family: 'AvenirLTStd-Medium';
}

@media (max-width: 800px) {
    #Timeline {
        padding-top: 4rem;
        height: auto;
    }
    #Year {
        border-top: none;
        border-left: 2px solid #84a0ca;
        padding: 0;
    }
    #Year > li,
    #Year > li > span {
        position: relative;
        display: block;
    }
    #Year li:nth-of-type(1),
    #Year li:nth-of-type(2),
    #Year li:nth-of-type(3),
    #Year li:nth-of-type(4),
    #Year li:nth-of-type(5),
    #Year li:nth-of-type(6),
    #Year li:nth-of-type(7),
    #Year li:nth-of-type(8),
    #Year li:nth-of-type(9),
    #Year li:nth-of-type(10),
    #Year li:nth-of-type(11),
    #Year li:nth-of-type(12),
    #Year li:nth-of-type(13),
    #Year li:nth-of-type(14),
    #Year li:nth-of-type(15),
    #Year li:nth-of-type(16),
    #Year #Pentafarma {
        height: 11rem;
        top: auto;
        left: 0;
    }
    #Year > li.empty {
        height: 5rem;
    }
    #Year > li > span {
        -ms-transform: rotateZ(0deg);
        -webkit-transform: rotateZ(0deg);
        transform: rotateZ(0deg);
    }
    #Year > li > span:before,
    #Year li:nth-of-type(14) span:before,
    #Year li:nth-of-type(15) span:before,
    #Year li:nth-of-type(6) span:before {
        width: 50%;
        left: 4rem;
    }
    #Year .circle {
        top: -4rem;
        left: 52%;
        margin-left: -5rem;
    }
    #Year li:nth-of-type(1) .circle,
    #Year #Pentafarma .circle,
    #Year li:nth-of-type(5) .circle,
    #Year li:nth-of-type(6) .circle,
    #Year li:nth-of-type(7) .circle,
    #Year li:nth-of-type(9) .circle,
    #Year li:nth-of-type(11) .circle,
    #Year li:nth-of-type(12) .circle,
    #Year li:nth-of-type(14) .circle,
    #Year li:nth-of-type(15) .circle,
    #Year li:nth-of-type(15) .circle:nth-of-type(2),
    #Year li:nth-of-type(16) .circle {
        top: -4rem;
    }
    #AtlanticPharma.circle {
        left: 72%;
    }
    #Tecnigen.circle {
        left: 32%;
    }
    #Year li:nth-of-type(15) span:before {
        width: 70%;
    }
}