/* 
Sergio Soriano
sergi.ss4@gmail.com 
*/

html, body {
    margin: 0;
    padding: 0;
    overflow: auto;
}

html {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
}

.container {
    height: 100%;
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}

.text-justify {
    text-align: justify;
}

/* LEFT COLUMN */

.left-column {
    background: #d0cece;
    padding: 20px;
    max-width: 250px;
}

.name {
    font-family: 'Arial black', sans-serif;
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
}

.name span {
    display: block;
}

.name span:last-child {
    color: #e87f39;
}

.photo {
    display: block;
    border-radius: 100%;
    width: 200px;
    height: auto;
    margin: 20px auto;
}

.general-info {
    text-align: center;
    margin-bottom: 20px;
}

.general-info p {
    font-weight: bold;
    font-size: 1.05rem;
    margin: 2px;
}

.title {
    margin: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #838383;
    padding-bottom: 4px;
}

.title img {
    width: 30px;
    height: auto;
    margin-right: 10px;
}

.contact ul {
    list-style-type: none;
    padding: 0;
}

.contact>ul>li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.contact li img {
    width: 35px;
    height: auto;
}

.contact li h3 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    text-decoration: underline;
}

.contact p {
    margin: 2px;
}

address {
    font-style: normal;
}

.idiomes ul {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    padding: 0;
}

.idiomes li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.idiomes img {
    width: 55px;
    height: 55px;
    border-radius: 100%;
}

.idiomes p {
    margin: 5px;
}

a {
    text-decoration: none;
    color: #171717;
}

a:hover {
    color: #e87f39;
}

/* RIGHT COLUMN */

.right-column {
    background: #f8f8f8;
    padding: 20px;
    flex: 1;
}

.skills ul {
    padding: 0 15px;
}

.skills li {
    margin-bottom: 5px;
    text-align: justify;
}

.skills li>span {
    color: #2D5694;
    font-weight: bold;
    text-decoration: underline;
}

.experience ul {
    list-style-type: none;
    padding: 0;
}

.experience p {
    margin: 0;
    text-align: justify;
}

.experience li {
    margin-bottom: 4px;
}

.experience li > span {
    font-weight: bold;
}

.date-company {
    text-decoration: underline;
}

.date {
    color: gray;
}

.location {
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-weight: normal;
    color: gray;
}

.location::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 25px;
    background-repeat: no-repeat;
    background-image: url('../images/location.svg');
    vertical-align: middle;
}

.study ul {
    list-style-type: none;
    padding: 0;
}

.study li {
    margin: 5px 0;
}

.study .date {
    font-weight: bold;
}

.study .location {
    margin-top: 2px;
    margin-left: -4px;
}

.engineering {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 10px 0;
    text-align: justify;
}

.engineering > :first-child {
    flex: 9;
}

.engineering > :last-child {
    flex: 6;
}

.extra ul {
    padding: 0 15px;
}

#pdf-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e87f39;
    color: white;
    padding: 10px;
    border: 0;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

@media screen and (max-width: 850px) {
    .container {
        flex-direction: column;
    }

    .left-column {
        max-width: 100%;
    }

    .right-column {
        max-width: 100%;
    }

    .engineering {
        flex-direction: column;
        gap: 0;
    }

    .engineering > :first-child {
        flex: 1;
    }

    .engineering > :last-child {
        flex: 1;
    }
}

@media print {
    body {
        -webkit-print-color-adjust: exact;
    }
    #pdf-button {
        display: none;
    }
}