/* Profile main */
#contact {
    height: 100%;
    background-color: #202020;
    border-right: 1px solid #303030;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    position: fixed;
    top: var(--nav-bar-height);
    width: var(--profile-width);
    padding-left: var(--margin-left);
    min-width: var(--profile-width);
    overflow-y: auto;
    -webkit-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

#profile {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    padding: 0 2rem 2rem 0;
}

#profile-about {
    margin-top: 1.4rem;

}

#profile .profile-photo {
    border-radius: 10%;
}

#profile img,
#profile table,
#profile #headline {
    width: 100%;
}

#personal-info tr:last-child,
#personal-info tr:first-child {
    display: flex;
    padding-top: 1em;
}

#profile-contact-info table tr {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
}

#profile-resume table tr {
    padding-top: 1rem;
}

#profile .name,
#profile .title,
#profile .location {
    color: #b0b0b0;
}

#profile .name h1 {
    color: #ffffff;
    font-size: 1.4rem;
}

#profile .title h2 {
    font-size: 0.95rem;
    font-weight: normal;
}

#profile .title {
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

#profile .location h3 {
    font-size: 0.9rem;
    font-weight: normal;
}

#profile .location {
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

#profile .bio {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-top: 0.4rem;
    line-height: 1.5;
}

#profile a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.85rem;
}

#profile a:hover {
    color: #ffffff;
    text-decoration: none;
}

#profile .icon {
    width: 1.5rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

#profile p {
    color: #cccccc;
    font-size: 0.85rem;
}

#profile div:not(:first-child) {
    padding-top: 3%;
}

#profile #profile-resume {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-items: flex-end;
    width: 100%;
}

#profile .resume-link {
    text-decoration: underline;
    color: #ffffff;
}

#profile .secondary-text {
    color: #cccccc;
}

#profile h4,
#profile h5,
#profile h6 {
    font-weight: normal;
    font-size: 0.9rem;
}

#profile-contact-info {
    width: 100%;
}

@media (max-width: 1040px) {
    #contact {
        min-height: 100dvh;
    }

    #profile-about {
        box-sizing: content-box;
    }

    #main {
        padding: 2rem;
        border: none;
        box-sizing: border-box;
    }

    #contact {
        display: flex !important;
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        justify-content: space-around;
        padding-left: 0 !important;
        border: none !important;
    }


    #profile .profile-photo {
        width: 55%;
        max-width: 200px;
        margin-top: 0;
        border-radius: 10%;
    }

    #profile {
        display: flex;
        justify-content: space-between;
        padding: 2rem 1.5rem 1.5rem 1.5rem !important;
        align-content: center;
    }


    #profile #profile-about {
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-start;
        width: 100%;
    }

    #profile #profile-about #personal-info {
        padding-right: 1rem;
        min-width: 0;
        flex: 1;
    }

    #profile .name h1 {
        white-space: normal;
        word-break: break-word;
    }

    #profile-contact-info {
        padding-top: 1.5rem !important;
        display: flex;
        flex-direction: column;
    }

    #main {
        min-width: 100%;
    }

    #profile #profile-resume {
        padding-top: 0;
    }

    #personal-info tr:last-child,
    #personal-info tr:first-child {
        padding-top: 0;
    }
}


@media (max-width: 500px) {
    #profile #profile-about {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #profile #profile-about #personal-info {
        padding-top: 1rem;
    }

    #profile .profile-photo {
        padding-right: 0;
    }

    #profile {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
    }
}