:root {
    font-family: monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.main {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;

    padding: 40px 0 0 0;
}

.section {
    width: 100%;
    max-width: 720px;
    min-width: 320px;

    padding: 20px;
}

.profile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.profile__content {
    margin: 0 40px 0 0;
}

.profile__title, .profile__subtitle, .publications__title {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.profile__title {
    margin: 0 0 5px 0;

    font-size: 28px;
    text-transform: uppercase;
}

.profile__subtitle {
    margin: 0 0 40px 0;

    font-size: 24px;
}

.profile__summary, .profile__email {
    margin: 0 0 40px 0;

    color: rgba(1, 1, 1, 1);

    font-weight: 400;
    font-size: 14px;
}

.profile__email {
    display: block;
}

.profile__photo {
    width: 160px;
    height: 160px;

    border-radius: 50%;
}

.socials {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.profile__employer,
.profile__employer:visited,
.profile__title,
.profile__subtitle,
.socials__github_link,
.socials__linkedin_link,
.socials__telegram_link {
    color: black;
}

.profile__email:hover,
.profile__employer:hover,
.socials__github_link:hover,
.socials__linkedin_link:hover,
.socials__telegram_link:hover {
    color: grey;
}

.publications {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.publications__title {
    margin: 0 0 40px 0;
    
    font-size: 24px;
}

@media screen and (max-width: 700px) {
    .profile {
        flex-direction: column;
        align-items: center;
    }

    .publications {
        align-items: center;
    }

    .profile__content {
        order: 1;
        margin: 0;
    }

    .profile__photo {
        order: 0;
        margin: 0 0 40px 0;
    }
}
