body {
    font-family: 'Lato', sans-serif;
    background: #212121;
    display: grid;
    place-items: center;
    /* Centers both vertically and horizontally */
    height: 100vh;
    margin: 0;
}

a,
a:visited,
a:hover,
a:active {
    color: inherit;
}


/* Name (Title) */
#name {
    text-align: center;
    padding: 0;
    max-width: 1100px;
    margin: 0 auto
}

#name a {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
    font-size: 70px;
    font-weight: bold;
    text-align: center;
}

#name a:hover {
    color: #c9c9c9
}

/* Sub text (academic titles) */
.subscript p {
    text-transform: uppercase;
    text-align: center;
    color: #c9c9c9;
    letter-spacing: 7px;
    font-size: 15px;
}

/* Navigation list */
#list {
    padding: 40px;
    color: #666;
    letter-spacing: 2px;
    word-spacing: 20px;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
}

#list li {
    display: inline;
}

#list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.current {
    color: #c9c9c9
}

ul li:hover {
    color: #c9c9c9
}

ul li a {
    text-decoration: none;
}

/* Main content's flexbox properties */
.body-flex {
    display: inline-flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

/* Picture of myself */
#image {
    display: inline-block;
    max-width: 300px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Main text properties */
#text {
    /* Flexbox properties */
    display: inline-flex;
    flex-direction: column;
    gap: 20px;
    align-content: center;
    /* text properties */
    max-width: 600px;
    text-align: left;
    color: #ffffff;
    font-size: 15px;
    line-height: 27px;
    word-spacing: 2px;
}


@media screen and (max-width: 1100px) {
    .subscript p {
        letter-spacing: 7px;
        font-size: 21px;
    }

    #list {
        font-size: 25px;
    }

    .body-flex {
        flex-direction: column;
        align-items: center;

    }

    #image {
        max-width: 550px;
    }

    #text {
        max-width: initial;
        padding: 50px;
        padding-top: 0px;
        font-size: 30px;
        line-height: 40px;
    }

}
