@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,600;1,600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

body {
    font-family: "Rubik", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fefefe;
}

.main-grid {
    display: grid;
    grid-template-columns: 3rem 15fr;
    margin: 0 min(15%, 10rem) 0 10rem;
}

.timeline-point {
    position: absolute;
    width: 2rem;
    height: 2rem;
    background-color: red;
    margin-left: 0.2rem;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: -1;
}

.timeline-line {
    position: relative;
    background-color: red;
    padding-left: 1.3rem;
    padding-right: 1.3rem;
    background-clip: content-box;
    z-index: -1;
}

@media only screen and (max-width: 950px) {
    .main-grid {
        grid-template-columns: auto;
        grid-template-rows: 1fr;
        margin: 0 1.7rem 0 1.7rem;
    }

    .timeline-line {
        display: none;
    }
}

.timeline-topic-root {
    margin-left: 0.5rem;
    margin-bottom: 2rem;
}

.timeline-topic {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: auto max-content; 
    flex-direction: row;
}

.timeline-topic > :nth-child(1) {
    margin: 0.3rem 0 0.3rem 0; 
    justify-content: left;
    width: 80%;
}

.timeline-topic > :nth-child(2) {
    margin: 0.3rem 0 0.3rem auto;
    text-align: right; 
    justify-content: end; 
    color: #87ceca;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #3a5c5a;
}

.timeline-end {
    position: absolute;
    background-color: red;
    width: 2rem;
    height: 0.4rem;
    margin-left: 0.2rem;
    transform: translateX(-50%);
    bottom: 0;
    z-index: -1;
}

@media only screen and (max-width: 950px) {
    .timeline-topic-root {
        margin: 0;
        margin-bottom: 2.5rem;
    }

    .timeline-topic > :nth-child(2) {
        margin: 0.3rem 0 0.3rem auto;
        text-align: right; 
        justify-content: end; 
    }
}

.project-detail {
    display: grid;
    grid-template-columns: 3.5fr 2fr;
}

.project-title-pic {
    width: 100%;
    margin-bottom: 1rem;
    cursor: pointer;
}

.project-desc {
    margin-left: 1.4rem;
}

.project-small-pic-root {
    display: grid; 
    place-items: center;
    grid-template-columns: repeat(2, auto); 
    gap: 2%;
}

.project-small-pic {
    width: 100%;
    cursor: pointer;
}

@media only screen and (max-width: 950px) {
    .project-detail {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .project-title-pic {
        width: 100%;
    }

    .project-desc {
        margin: 0;
    }

    .project-small-pic-root {
        display: grid;
        place-items: center;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
    }

    .project-small-pic {
        width: 90%;
        margin-bottom: 2%;
    }
}

.divider {
    height: 0.5rem; 
    background-color: #474747; 
    border-radius: 0.8rem;
    margin: 2rem 7rem 0 7rem;
}

.small-proj-grid {
    display: grid; 
    grid-template-columns: auto; 
    grid-template-rows: auto;
    margin: 0 10rem 3rem 10rem;
    place-items: center;
}

@media only screen and (max-width: 950px) {
    .divider {
        margin: 2rem 1.7rem 0 1.7rem;
    }

    .small-proj-grid {
        margin: 0 1.7rem 3rem 1.7rem;
    }
}


