/**
 * Style of timeline
 */
  
/* HISTORY */
.history {
    width: 100%;
    padding: 3rem 0;
}
.history .subtitle {
    padding: 2rem 0 1rem;
}
.history br.mobile,
.history .subtitle br.mobile {
    display: none;
}
/* TIMELINE */
.timeline {
    position: relative;
    margin: 2rem auto 1rem;
}
.tml_container {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* TML CONTAINER EVEN */
.tml_container:nth-child(even) {
    flex-flow: row-reverse;
}
/* IMAGE CONTAINER - CIRCLES */
.tml_container:nth-child(even) .circles {
    justify-content: flex-start;
}
.timeline .circles {
    padding: 0 1.5rem;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    z-index: 0;
}
.timeline .parenthesis::before {
    background-color: white;
}
.activeee .circle_img_box::before {
    background-color: transparent;
}
.timeline .parenthesis::after {
    background: linear-gradient(99deg, var(--main-gold) 15%, transparent 30%);
}
.timeline .tml_container:nth-child(even) .parenthesis::before {
    background: linear-gradient(99deg, transparent 35%, white 30%);
}
.timeline .tml_container:nth-child(even) .parenthesis::after {
    background: linear-gradient(90deg, transparent 50%, var(--main-gold) 30%);
}
/* TEXT CONTAINER */
.tml_content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 50%;
}
.timeline .tml_container:nth-child(odd) .tml_content {
    padding-left: 3rem;
}
.timeline .tml_container:nth-child(even) .tml_content {
    padding-right: 3rem;
    text-align: right;
}
/* TEXT */
.tml_year {
    font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    font-weight: 900;
    line-height: 1;
    transition: all .3s ease;
}
.tml_p {
    font-size: min(max(1rem, 1.1vw), 1.2rem);
    z-index: 1;
}
/* TODAY */
.tml_container.today {
    text-align: center;
    margin: auto;
    padding: 2rem;
}
.today .tml_content {
    width: 100%;
}
.tml_icon {
    width: 80px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.dotted-spaced.vertical {
    background-image: radial-gradient(circle, rgba(120, 120, 120, .99) 0%, rgba(120, 120, 120, 0.9) 25%, rgba(120, 120, 120, 0) 30%);
    background-position: center top;
    background-repeat: repeat-y;
    background-size: 2px 10.5px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
}
/* ACTIVE */
.tml_container.activeee .parenthesis::before,
.tml_container.activeee .parenthesis::after {
    transform: scale(1);
}
.tml_container.activeee .circle_img_box {
    transform: scale(1.1);
}
.tml_container.today.activeee .tml_year,
.tml_container:nth-child(odd).activeee .tml_year,
.tml_container:nth-child(even).activeee .tml_year {
    font-size: calc(clamp(1.5rem, 2vw + 1rem, 2.5rem) + .5rem);
}
.tml_container.activeee .tml_year {
    color: var(--main-gold);
}
.tml_container:nth-child(odd).activeee .tml_year {
    transform-origin: left;
}
.tml_container:nth-child(even).activeee .tml_year {
    transform-origin: right;
}
.tml_container.today.activeee .tml_year {
    transform-origin: center;
}
@media screen and (max-width: 900px) {
    .history .circles {
        padding: 0;
    }
    .timeline .tml_container:nth-child(odd) .tml_content {
        padding-left: 1.5rem;
    }
    .timeline .tml_container:nth-child(even) .tml_content {
        padding-right: 1.5rem;
    }
    .tml_icon {
        width: 50px;
    }
}
@media (max-width: 768px) {
    .history {
        padding: 1rem 0;
    }
    .dotted-spaced.vertical {
        border: none;
    }
    /* .history br,
    .history .subtitle br {
        display: none;
    }
    .history br.mobile,
    .history .subtitle br.mobile {
        display: block;
    } */
}
@media screen and (max-width: 680px) {
    .history br,
    .history .subtitle br {
        display: none;
    }
    .history br.mobile,
    .history .subtitle br.mobile {
        display: block;
    }
    .timeline {
        left: 8%;
    }
    .tml_container {
        flex-direction: column;
        gap: 1rem;
    }
    .tml_container:nth-child(even) {
        flex-direction: column;
    }
    .tml_content,
    .tml_container .circles {
        width: 100%;
        justify-content: flex-start;
    }
    .timeline .parenthesis::before {
        background: linear-gradient(99deg, transparent 35%, white 30%);
    }
    .timeline .parenthesis::after {
        background: linear-gradient(90deg, white 45%, var(--main-gold) 30%);
    }
    .timeline .tml_container:nth-child(even).activeee .tml_year {
        transform-origin: left;
    }
    .timeline .tml_container:nth-child(odd) .tml_content {
        padding-left: 8rem;
    }
    .timeline .tml_container:nth-child(even) .tml_content {
        padding-right: 0;
        padding-left: 8rem;
        text-align: left;
    }
    .tml_container:nth-child(odd).today .tml_content {
        padding: 2rem 0;
    }
    .dotted-spaced.vertical,
    .tml_icon {
        left: 6rem;
    }
}
@media screen and (max-width: 550px) {
    .timeline {
        left: 4%;
    }
}
@media screen and (max-width: 480px) {
    .timeline {
        left: 0;
    }
    .timeline .tml_container:nth-child(odd) .tml_content,
    .timeline .tml_container:nth-child(even) .tml_content {
        padding-left: 5rem;
    }
    .tml_container.today .tml_content {
        padding: 2rem 0;
    }
    .dotted-spaced.vertical,
    .tml_icon {
        left: 3rem;
    }
}
@media screen and (max-width: 380px) {
    .timeline .parenthesis {
        width: 280px;
    }
    .timeline .tml_container:nth-child(odd) .tml_content,
    .timeline .tml_container:nth-child(even) .tml_content {
        padding-left: 3.5rem;
    }
    .dotted-spaced.vertical,
    .tml_icon {
        left: 2rem;
    }
}