* {
    background-color: #040408;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: white;
}

.nav {
    display: flex;
    width: 45%;
    justify-content: center;
    align-items: center;
    padding: 2% 0;
    position: relative;
    left: 29%;
}

.nav > a {
    text-decoration: none;
    font-size: 30px;
    font-weight: 800;
    color: white;
}

.nav-links {
    flex: 1;
    text-align: right;
    padding-right: 6%;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 110%;
    padding: 5% 10%;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.content-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.content-text h1 {
    font-weight: 500;
}

.content-text p {
    letter-spacing: 0.5px;
    margin: 10px 0;
}

.content-text a {
    text-decoration-color: red;
    transition: 0.5s;
}

.content-text a:hover {
    text-decoration-color: white;
}

.img {
    flex: 0 0 auto;
    margin-left: 80px;
}

.img img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
}

@media (max-width: 700px) {
    .nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
        left: 0;
    }

    .nav-links {
        padding: 0;
    }

    .nav-links ul li {
        display: block;
        text-align: left;
        padding: 10px 0;
    }

    .content {
        flex-direction: column;
        text-align: center;
        padding: 5% 5%;
    }

    .img {
        order: -1;
        margin: 0 0 20px 0;
    }

    .img img {
        width: 150px;
        height: 150px;
    }
}
