@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.timeline-title-1{
    font-size: 3.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.1rem;
}

.timeline-title-2{
    font-weight: 200;
    font-size: 2rem;
}

.timeline{
    align-items:flex-end;
    margin: 1rem auto 3rem;
    max-width: 70rem;
}

.timeline-card{
    max-width: 35rem;
    padding-top: 1.5rem; 
    padding-bottom: 1.5rem;
    position: relative;
}

.timeline-card div{
    /* border: 2px solid #72e1d1; */
    border: 2px solid #413f54;
    border-radius: 0.5rem;
    overflow: hidden;
}

.timeline-card div a {
    padding: 1rem;
}

.btn-timeline{
    --bs-btn-color:#d8dbe2;
    --bs-btn-bg:none;
    --bs-btn-border-color: none;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #d8dbe2;
    --bs-btn-hover-border-color: #d8dbe2;
    --bs-btn-active-color: #e3170a;
    --bs-btn-active-bg: #d8dbe2;
}
.timeline-red-text{
    color: #fba39d;
}
.btn-timeline.timeline-red-text {
    --bs-btn-hover-color: #620a04 !important;
}


/* ------------------------------  timeline with line on right  ----------------------------------------- */

.timeline-card:nth-child(n){
    /* border-right: 3px solid #72e1d1; */
    border-right: 3px solid #413f54;
    padding-right: 2rem;
    transform: translateX(-2rem);
}

.timeline-card:nth-child(n)::before{
    content: "";
    /* background: #72e1d1; */
    background: #413f54;
    position: absolute;
    width: 2rem;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
    right:0;
}

.timeline-card:nth-child(n) div::before{
    content: "";
    background: #30292f;
    /* box-shadow: 0 0 0.5rem #73e0d0; */
    box-shadow: 0 0 0.5rem #413f54;
    width: 0.8rem;
    height: 0.8rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    right: -0.5rem;
}

/* ------------------------------  timeline with line on left  ----------------------------------------- */
/* .timeline-card:nth-child(n){
    border-left: 3px solid #72e1d1;
    padding-left: 2rem;
    transform: translateX(2rem);
}

.timeline-card:nth-child(n)::before{
    content: "";
    background: #72e1d1;
    position: absolute;
    width: 2rem;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
    left:0;
}

.timeline-card:nth-child(n) div::before{
    content: "";
    background: #30292f;
    box-shadow: 0 0 0.5rem rgb(115, 224, 208);
    width: 0.8rem;
    height: 0.8rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    left: -0.5rem;
} */

.timeline-card-title{
    font-weight: 300;
    font-size: 2rem;
}
.timeline-card-title-larger{
    font-size: 2.5rem;
}
.timeline-card-title-smaller{
    font-size: 1.5rem;
}


@media screen and (max-width: 990px) {
    .timeline {
        align-items:center;
        width: 80vw;
        padding-right: 7rem;
    }
    .timeline .timeline-card{
        transform: translateX(1.5rem);
        width: 100%;
        transform: 100%;
        border: none;
        padding-left: 0;
        padding-right: 0;
    }
    .timeline .timeline-card::before{
        width: 3px;
        height: 3rem;
        top: 0rem;
        left: 50%;
    }
    .timeline .timeline-card div::before{
        top: -0.5rem;
        left: 50%;
        transform: translateX(-40%);
        display: none;
    }
    .btn-timeline{
        display: block;
    }
    
}