#header-img { 
    border-radius: 50%; 
    
    width: 400px;
    height: 400px;
}

#header-div {
    display: flex;
    width: fit-content;
    margin: auto;
    margin-top: 50px;
}

#header-text-container {
    margin-left: 90px; 
    display: flex; 
    flex-direction:column; 
    align-items:end;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 96px;

    margin-top: 5px;
    margin-bottom: 5px;

    text-align: right;
}

h2 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 40px;

    margin-top: 5px;
    margin-bottom: 5px;
}

h4 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 40px;

    margin-top: 5px;
    margin-bottom: 5px;

    text-align: right;
}

#header-paragraph {
    max-width: 770px;
    margin-right: -3px;
    text-align: right;
    font-size: 36px;
    font-weight: 200;
}

#links-div {
    display: grid;
    column-gap: 40px; 
    grid-auto-flow: column; 
    width: fit-content; 
    margin: auto; 
    margin-top: 100px;
}

p {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 30px;

    margin-top: 5px;
    margin-bottom: 5px;
}

a:link { 
    text-decoration: none;
    color: grey;
} 
a:visited { 
    text-decoration: none;
    color: grey;
} 
a:hover { 
    text-decoration: none; 
    color: #536878;
} 
a:active { 
    text-decoration: none; 
    color: grey;
}

.link-image {
    width: 150px; 
    height: 150px;
}
.link-text {
    text-align: center;
}

strong {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 30px;
}

.cv-section {
    display: grid;
    grid-auto-flow: row;
    column-gap: 50px;
    width: fit-content;
}

.date {
    margin-left: 10px;

    font-style: italic;
}

.subtext {
    font-weight: 200;
    font-size: 26px;
}

#projects-div {
    display: grid;
    grid-auto-flow: column;
    width: fit-content;
    margin: auto;

    margin-top: 100px;

    column-gap: 40px;
}

.project-div {
    max-width: 250px;
    width: 250px;
    height: 300px;
    background-color: #FEFEFE;
    
    border-radius: 12px;
    border: 1px solid #E0E0E0;

    box-shadow: 5px 2px 2px #E0E0E0;

    padding: 10px;
}
.project-div:hover {
    background-color: #EEEEEE;
}
.project-title {
    width: fit-content;
    margin: auto;

    font-weight: 400;

    font-size: 30px;
    color: black;
}
.project-img {
    max-width: 140px;
    max-height: 140px;
    /* width: fit-content; */
    margin: auto;
    display: block;

    margin-top: 10px;
}
.project-link {
    font-size: 12px;
    width: fit-content;
    font-weight: 400;
    margin: auto;

    margin-top: 8px;

    color: black;
}
.project-desc {
    font-size: 16px;
    margin-left: 5px;

    margin-top: 30px;
    font-weight: 300;

    color: black;

    text-align: center;
}

@media only screen and (max-width: 1000px) {
    /* Tablet, small screens version */
    #header-img {
        align-self: center;
    }
    #header-div {
        flex-direction: column;
    }
    #header-text-container {
        margin-left: 0px;
        display: flex; 
        flex-direction:column; 
        align-items:center;
    }
    h1 {
        text-align: center;
    }
    h4 {
        text-align: center;
    }
    #header-paragraph {
        text-align: center;
    }

    #links-div {
        display: grid;
        column-gap: 40px;
        row-gap: 40px;
        grid-auto-flow: row;
        width: fit-content; 
        margin: auto;
        margin-top: 100px;
    }

    #projects-div {
        grid-auto-flow: row;
        row-gap: 40px;
        grid-template-columns: repeat(2, 270px);
    }
}

@media only screen and (max-width: 650px) {
    #projects-div {
        margin-top: 50px;
        grid-template-columns: repeat(1, 270px);
    }
}

@media only screen and (max-width: 450px) {
    /* Mobile version */
    #header-img { 
        width: 80%;
        height: auto;
    }
    #header-div {
        margin-top: 30px;
    }

    h1 {
        font-size: 50px;
    }
    h2 {
        font-size: 30px;
    }
    h4 {
        font-size: 30px;
    }
    p {
        font-size: 20px;
    }
    #header-paragraph {
        font-size: 26px;
    }

    #links-div {
        margin-top: 40px;
    }
    
    .link-image {
        width: 70px;
        height: 70px;
    }
}
