﻿* {
    border: 0;
    margin: 0;
    padding: 0;
}
/***************** Right section *******************/
.info-wrapper {
    padding: 0;
    position: relative;
}

.info {
    margin: 40px 30px;
    background-color: #f8f8f8;
    padding: 50px 30px;
    height: calc(100% - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .info h2 {
        font-size: 18px;
        font-weight: bold;
        letter-spacing: 0.69px;
        text-align: center;
        line-height: 1.3;
        color: #0058a3;
        margin-top: 0;
    }

    .info p,
    .info b {
        font-size: 14px;
        letter-spacing: 0.54px;
        text-align: center;
        color: #64666a;
        margin: 0;
    }

    .info b {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 50%;
        row-gap: 20px;
    }

    .info img {
        width: 16px;
    }

.actions {
    display: flex;
    align-items: flex-start;
    column-gap: 30px;
    margin-top: 40px;
}


/************ Left section **************/
.timeline {
    display: flex;
    flex: auto;
    flex-direction: column;
    max-height: 100%;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
}

div.item {
    display: flex;
    flex: auto;
    overflow-y: auto;
    padding: 0 12px;
    position: relative;
}

#timeline {
    position: relative;
    display: table;
    height: 100%;
    margin: 30px auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    -moz-box-shadow: inset 0 -120px 50px -100px #fff;
    -webkit-box-shadow: inset 0 -120px 50px -100px #fff;
    box-shadow: inset 0 -120px 60px -100px #fff;
}

#timeline > div {
    padding: 10px 0;
}

    #timeline > div#timelineSection:after {
        content: "";
        width: 20px;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 52px;
        border-top: 3px solid #0a41a2;
        border-bottom: 3px solid #0a41a2;
        background: linear-gradient(#0a41a2, #0a41a2) no-repeat center/3px 100%;
    }

#timeline .year > h3 {
    top: 28px;
    margin: 0;
    font-family: HelveticaNeue, Helvetica;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0.58px;
    color: #252a31;
    position: absolute;
}

#timeline h3.inactive {
    opacity: 0.15;
    position: static;
}

#timeline section.year {
    position: relative;
    min-height: 20px;
    margin-bottom: 5px;
}

    #timeline section.year:first-child section {
        margin-top: -1.3em;
        padding-bottom: 0px;
    }

    #timeline section.year section {
        position: relative;
        padding-bottom: 20px;
    }

        #timeline section.year section ul {
            list-style-type: none;
            padding: 0 0 0 91px;
            margin: -1.35rem 0 1em;
            max-width: 36rem;
            font-size: 1em;
            overflow: hidden;
        }

            #timeline section.year section ul:last-child {
                margin-bottom: 0;
            }

            #timeline section.year section ul:first-of-type:after {
                content: "";
                width: 25px;
                height: 25px;
                background-image: url('../images/box-logo.svg');
                position: absolute;
                left: 49px;
                top: 24px;
                z-index: 1;
            }

    #timeline section.year .publication {
        margin-left: 0.5rem;
        display: flex;
        align-items: center;
        position: relative;
        background-color: #4a8fc1;
        padding: 8px 25px;
        border-radius: 25px 8px 8px 25px;
        color: white;
        border: 4px solid transparent;
    }

        #timeline section.year .publication:hover {
            cursor: pointer;
            background-color: #3779aa !important;
        }

        #timeline section.year .publication img {
            position: absolute;
            right: 10px;
            bottom: 10px;
        }

        #timeline section.year .publication h3 {
            font-size: 14px;
            font-weight: bold;
            letter-spacing: 0.54px;
            color: #fff;
            margin: 0;
        }

        #timeline section.year .publication p {
            font-size: 13px;
            font-weight: 300;
            letter-spacing: 0.5px;
            color: #fff;
            margin-top: 5px;
            margin-bottom: 0;
        }

        #timeline section.year .publication:before {
            content: " ";
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-color: #6fade2;
            position: absolute;
            border: 4px solid #fff;
            left: -10px;
            top: 30px;
        }

        #timeline section.year .publication:after {
            content: " ";
            width: 12px;
            position: absolute;
            border-bottom: 1px dashed #979797;
            left: -20px;
            bottom: calc(100% - 38px);
            height: 100%;
            background-color: #fff;
            z-index: 1;
            cursor: default;
            pointer-events: none;
        }

    #timeline section.year ul li:not(:first-child):after {
        width: 7px;
        left: -14px;
        z-index: 0;
    }

    #timeline section.year ul li:not(:first-child):last-child:after {
        border-left: 1px dashed #979797;
        height: 600%;
        background-color: transparent;
    }

    #timeline section.year section ul li:not(:first-child) {
        margin-top: 0.5rem;
    }

/******************  Modal ******************/
.details-modal {
    position: absolute;
    top: 24px;
    right: 16px;
    left: 20px;
    bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 22px 0 rgba(0, 0, 0, 0.14);
    background-color: #fff;
    padding: 16px;
    display: none;
    z-index: 2;
}

#timeline-modal-mobile {
    box-shadow: #247db955 0px 0px 0px 50px;
}


.details-modal .close {
    position: absolute;
    top: 14px;
    right: 5px;
    width: 16px;
    opacity: .4;
}

.details-modal .content {
    height: 100%;
    overflow-y: auto;
    padding: 6px;
}

    .details-modal .content a {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.54px;
        color: #0a41a2;
        text-decoration: underline;
        margin-bottom: 5px;
    }

    .details-modal .content h4 {
        font-size: 17px;
        font-weight: bold;
        letter-spacing: 0.65px;
        color: #212121;
    }

    .details-modal .content p {
        font-size: 14px;
        letter-spacing: 0.54px;
        color: #64666a;
    }

    .details-modal .content b {
        font-size: 15px;
        font-weight: bold;
        letter-spacing: 0.58px;
        color: #252a31;
    }

    .details-modal .content .details {
        font-size: 12px;
        font-weight: 300;
        letter-spacing: 0.46px;
        color: #4a8fc1;
        display: inline;
    }

    .details-modal .content .title {
        font-size: 18px;
        font-weight: 300;
        letter-spacing: 0.69px;
        color: #212121;
    }


/*********** Custom scrollbar *******************/
::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #fff;
    margin: 20px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #d8d8d8;
    border-radius: 5px;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #ccc;
        cursor: pointer;
    }

.mucosal_thickness {
    background-color: #0057a3 !important; 
}

    #timeline section.year .mucosal_thickness:hover {
        background-color: #004a8a !important;
    }

.keratinized_mucosa_width {
    background-color: #ababa9 !important; 
}
    #timeline section.year .keratinized_mucosa_width:hover {
        background-color: #8d8d8b !important;
    }

.supracrestal_tisue_height {
    background-color: #5ba1d4 !important; 
}
    #timeline section.year .supracrestal_tisue_height:hover {
        background-color: #4c92c5 !important;
    }

.currentPublication {
    border: 4px solid #9ccdf8 !important;
}

.Legend div {
    margin-top: 10px;
    margin-left: 25%;
    margin-bottom: 10px;
    width: 16px;
    border: 1px solid #808080;
    display: inline-block;
}

    .Legend span {
        font-size: 15px;
        font-weight: bold;
        letter-spacing: 0.58px;
        color: #252a31;
    }

.ie7 .Legend div {
    padding: 20px;
}


@media (max-width:767px) {
.Legend-for-desktop{
    display:none;
}
}

@media (max-width:381px) {
    .Legend span {
        font-size: 12px;
    }
}

@media (min-width: 1244px) and (max-width:1960px) {
    .Legend {
        overflow: visible;
        white-space: nowrap;
    }
}

@media (min-width: 1129px) and (max-width:1243px) {
    .Legend span {
        font-size: 12px!important;
    }
    .Legend {
        overflow: visible;
        white-space: nowrap;
    }
}

@media (min-width: 767px) and (max-width:1128px) {
    .Legend span {
        font-size: 14px !important;
    }

    .Legend {
        width: 60%!important;
        overflow: visible;
        white-space: nowrap;
    }
}