@import url('https://fonts.googleapis.com/css2?family=Oxygen&family=Source+Serif+Pro&display=swap');

* {
    position: relative;
    box-sizing: border-box;
}

html,
body {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
}

body {
    overflow-x: hidden;
    font-family: 'Oxygen';
}


h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: center;
    font-family: 'Source Serif Pro';
}

h1 {
    font-size: 4vw;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

a {
    color: inherit;
}

b, strong {
    font-weight: bolder;
}

i, em {
    font-style: italic;
}

header {
    width: 100vw;
    height: 44.444vw;
    max-height: 100vh;
    background-color: white;
}

#headimg {
    width: 66.666vw;
    height: 100%;
    object-fit: cover;
    float: left;
}

#headdiv {
    width: 33.3%;
    height: 100%;
    float: left;
    color: #2f2f2f;
}


.content-card {
    height: fit-content;
    box-sizing: border-box;
    width: 100%;
    min-height: 10vh;
    padding: 1.5rem 25%;
}

.content-card p {
    font-size: 1.2rem;
    line-height: 1.35rem;
    margin-bottom: 1.6rem;
    text-align: justify;
}

.content-card .bottom-paragraph {
    margin-bottom: 0;
}

#content {
    display: block;
    height: 100vh;
}


.autocenter-f {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.autocenter-v {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
}

.autocenter-h {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
}

@media screen and (max-width: 1280px) {
    .content-card {
        padding: 1rem 10%;
    }

    #headimg {
        width: 100vw;
        position: absolute;
        left: 0;
        top: 0;
        filter: brightness(0.75);
    }

    #headdiv {
        width: 85vw;
        height: 33.333vw;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        color: white;
    }

    h1 {
        font-size: 10vw;
    }

    .project-card {
        padding: 1.5rem 5%;
    }

    .content-card p {
        text-align: left;
    }
}

@media screen and (max-width: 768px) {
    .content-card {
        padding: 1rem;
    }

    header {
        height: 66.667vw;
    }

    h1 {
        font-size: 15vw;
    }
}