/* "RESEARCH" LANDING PAGE */

/* timeline inspiration: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_timeline */

* {
    box-sizing: border-box;
}

.timeline {
    position: relative;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 8px;
    background-color: white;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.card {
    position: relative;
    background-color: inherit;
    width: 50%;
}

.resources {
    margin-top: 10px;
    line-height: 2.8;
}

@media screen and (min-width: 700px) {
    /* shift cards upwards */
    .card:not(:first-of-type) {
        margin-top: -150px;
    }
}

/* ticks on the timeline */

.card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 16px;
    right: 0px;
    background-color: white;
    top: 0px;
}

/* style of left and right containers */

.left {
    left: 0;
    padding-right: 25px;
}

.right {
    left: 50%;
    padding-left: 25px;
}

.right::after {
    left: 0px;
}

.card-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
}

.card-head {
    margin-bottom: 15px;
}

#time {
    float: right;
}

/* timeline for small screens */

@media screen and (max-width: 700px) {
    /* align timeline left */
    .timeline::after {
        left: 3px;
    }
    /* containers are now full width */
    .card {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
    }
    /* add space between cards */
    .card:not(:last-of-type) {
        margin-bottom: 30px;
    }
    /* left align ticks */
    .left::after, .right::after {
        left: 3px;
    }
    /* make all right containers behave like left ones */
    .right {
        left: 0%;
    }
}