/* GENERAL */
* {
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: Overpass;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.5;
    text-align: right;
}

a {
    text-decoration: none;
    color: #276e8b;
}

a:hover {
    text-decoration: underline;
}

li {
    margin-bottom: 0.3rem;
}

h2 {
    margin: 2rem 0 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid white;
    border-left: none;
    border-right: none;
    line-height: normal;
    padding: 10px 0 7px;
    text-align: center;
    font-weight: 800;
}

h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: normal;
}

.text-blue {
    color: #276e8b;
}

.text-darkblue {
    color: #276e8b;
}

.text-bold {
    font-weight: 600;
}

i {
    margin: 0 0.5rem;
    color: #276e8b;
}

.cv-container {
    text-align: left;
}

@media screen and (min-width: 1000px) {
    .cv-container {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas:
            "aside header header"
            "aside main main";
        margin: 20px auto;
        box-shadow:
            0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        max-width: 1500px;
    }
}

menu li {
    list-style-type: none;
}

menu {
    display: inline-block;
    padding: 1rem;
    margin: 0.5rem;
    text-align: left;
    border: 1px solid #3493ba;
}

@media screen and (min-width: 700px) {
    menu {
        display: flex;
        padding: 0;
        justify-content: end;
        margin-right: 4rem;
        border: none;
    }

    menu a {
        display: block;
        margin: 0.5rem;
    }
}

/* LEFT COLUMN */
aside {
    grid-area: aside;
    padding: 50px;
    background-color: #3493ba;
    font-size: 1.1rem;
    color: white;
}

aside p {
    text-align: justify;
    hyphens: auto;
    font-weight: 400;
    margin-bottom: 1rem;
}

.portait {
    border-radius: 50%;
    border: 5px solid white;
    max-width: 200px;
    margin: auto;
    display: block;
    margin-bottom: 50px;
}

@media screen and (max-width: 500px) {
    .portait {
        display: none;
    }

    aside {
        padding: 15px;
    }
}

.skills {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1rem;
}

/* HEADER */
@media screen and (min-width: 750px) {
    header {
        grid-area: header;
        padding: 50px 50px 50px 0;
        background-color: #f2f2f2;
        display: grid;
        grid-template-columns: 2fr 1fr;
    }

    .infos {
        border-left: 1px solid #3493ba;
    }
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.header-left {
    place-self: center;
    text-align: center;
}

.header-left p {
    font-size: 2rem;
    text-align: center;
}

.infos {
    list-style-type: none;
    padding: 10px 0 10px 50px;
    align-self: center;
}

/* CONTENT */

main {
    padding: 10px;
}

@media screen and (min-width: 500px) {
    main {
        grid-area: main;
        padding: 50px;
        display: grid;
        grid-template-columns: 140px 1fr;
        padding-top: 15px;
    }
}

hr {
    grid-column: 1 / 3;
    background: #276e6b;
    height: 1px;
    border: 0;
    margin-bottom: 20px;
}

.title,
.company.span,
p.span {
    grid-column: 1 / 3;
}

.company,
.date {
    grid-column: 1 / 2;
    color: #276e8b;
}

.description,
.experience-list {
    grid-column: 2 / 3;
}

.description {
    margin-bottom: 8px;
}

.description p {
    font-style: italic;
}

.job {
    grid-column: 2 / 3;
    font-weight: 600;
    font-size: 1.1rem;
}

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

main h2 {
    border-color: #3493ba;
}

.company {
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.location {
    font-weight: 400;
    font-size: 1.1rem;
    color: #276e8b;
}

.company-description {
    font-style: italic;
    font-size: 1rem;
}
