/* Global */

:root {
    --text-color: rgb(50, 50, 50);
    --text-hover-color: rgb(2, 112, 201);
}

* {
    box-sizing: border-box;
    font-family: sans-serif;
    font-size: 17px;
    text-decoration: none;
    margin: 0;
}

a {
    color: inherit;
}

code {
    font-family:
        'SF Mono',
        SFMono-Regular,
        ui-monospace,
        'DejaVu Sans Mono',
        Menlo,
        Consolas,
        monospace;
    font-size: 16px;
}

hr {
    display: block;
    border: 1px solid var(--text-color);
    margin: 6px 0;
    padding: 0;
}

ul {
    justify-self: left;
}

li {
    line-height: 1.5rem;
}

.line {
    display: inline-block;
}

.line-break {
    line-height: 0.4rem;
}

/* Main Content */

#content {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    padding: 20px;
    background-color: white;
}

/* Header */

#header {
    display: grid;
    grid-template-rows: repeat(auto-fit, 3fr);
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
}

#profile-image {
    display: block;
    border-radius: 100%;
    width: 112px;
    height: 112px;
}

#name {
    font-weight: 500;
}

.contact-info-container {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 16px;
    justify-items: center;
    align-items: center;
    min-width: 500px;
}

.contact-info {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 5fr;
    justify-items: center;
    align-items: center;
    width: 100%;
}

.contact-info-icon {
    width: 18px;
    height: 18px;
    justify-self: center;
}

.contact-info-detail {
    justify-self: left;
}

/* Sections */

.section-header {
    justify-self: left;
    width: 100%;

    display: flex;
    float: left;
}

.section-header-icon {
    width: 18px;
    height: 18px;
    margin-left: 0.65rem;
    margin-right: 0.65rem;
    text-align: center;
}

.section-header-title {
    font-weight: 600;
}

.section-text {
    padding-left: 1px;
    line-height: 23px;
}

.section-break {
    line-height: 1rem;
}

.entity {
    display: grid;
    grid-template-rows: repeat(auto-fit, 2fr);
    grid-template-columns: 2.45fr 1fr;
    width: 100%;
    line-height: 1.5rem;
}

.entity-long {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 6fr 1fr;
    width: 100%;
    line-height: 1.5rem;
}

.entity-detail-left {
    justify-self: left;
    text-align: left;
    padding-left: 1px;
}

.entity-detail-right {
    justify-self: right;
    text-align: right;
    padding-right: 1px;
}

/* Footer */

footer {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(auto-fit, 2fr);
    grid-auto-flow: column;
    grid-gap: 6px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
}

footer p,
footer span,
footer strong {
    font-size: 15px;
}

.update-date {
    text-align: right;
}

.cv-pdf-download {
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: repeat(auto-fit, 2fr);
    grid-auto-flow: column;
    grid-gap: 5px;
    justify-content: left;
    align-items: center;
}

/* Screen Layout */

@media only screen {
    html {
        display: grid;
        justify-items: center;
        background-color: rgb(245, 245, 245);
        color: var(--text-color);
        font-size: 17px;
    }

    a:hover,
    .contact-info:hover,
    .cv-pdf-download:hover {
        color: var(--text-hover-color);
    }

    .entity-separator {
        line-height: 0.8rem;
    }
}

@media only screen and (min-width: 992px) {
    #content {
        min-width: 992px;
        max-width: 992px;
    }
}

/* Print Layout */

@media only print {
    * {
        font-size: 14px;
    }

    html {
        background-color: white;
        color: black;
    }

    hr {
        border: 0.5px solid var(--text-color);
        margin: 3px 0;
    }

    .line-break {
        line-height: 0.25rem;
    }

    .section-break {
        line-height: 0.65rem;
    }

    #header {
        grid-template-rows: repeat(auto-fit, 2fr);
    }

    #profile-image {
        display: none;
    }

    .contact-info-container {
        margin-bottom: 5px;
    }

    a:hover,
    .contact-info:hover,
    .cv-pdf-download:hover {
        color: black;
    }

    .entity-separator {
        line-height: 0.4rem;
    }

    footer {
        display: none;
    }
}