:root {
    --header-bg: #2f2f2f;
    --secondary-clr: #ece9ea;
    --border-clr: #d7d7db;
    --tag-bg: #cac6c8;
}

#header{
    background: var(--header-bg);
    color: var(--secondary-clr);
    display: flex;
    flex-direction: column;
}

#name-img{
    display: flex;
    flex-direction: row;
    min-height: 100px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 5em 5em 1em 5em;
}

img{
    max-height: 170px;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

#name{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    align-content: center;
}

#contact{
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: space-between;
    width: 100%;
    border-top: 2px solid var(--secondary-clr);;
    font-family: "Montserrat";
    font-size: 1rem;
    padding: 0.5em 5em 0.5em 5em;
}

a{
    text-decoration: none;
    color: var(--secondary-clr);;
}

body {
    max-width: 66vw;
    margin: auto;
}

#info{
    padding: 1em 5em;
}

#content {
    background-color: var(--secondary-clr);
    border: 1px solid var(--border-clr);
    border-radius: 30px;
    overflow: hidden;
}

#available{
    margin: 2px
}

h1{
    font-size: 3rem;
    font-family: "Oswald", Helvetica;
    font-weight: 700;
    margin: 0;
}

h2{
    font-size: 2.25rem;
    font-family: "Source Serif 4"; /*something thinner*/
    font-weight: 300;
    margin: 0;
}

h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid black;
    text-transform: uppercase;
    font-family: "Source Serif 4"; /*something thinner*/
    font-weight: 500;
}

h4 {
    font-family: "Montserrat", Helvetica;
    font-size: 16px;
    font-weight: 500;
}
#title {
    margin: 0;
    margin-bottom: 0;
}
#company {
    font-family: "Montserrat", Helvetica;
    margin: 0;
    font-weight: 400;
}
#duration {
    font-family: "Montserrat", Helvetica;
    font-style: italic;
    font-weight: 300;
    margin-top: 0;
}

#details {
    font-size: 16px;
    font-family: "Montserrat";
}

#skills {
    padding-left: 0;
}

#skills li {
    background-color: var(--tag-bg);
    border-radius: 10px;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    list-style: none;
    display: inline-block;
    font-size: 14px;
    font-family: "Montserrat";
}

#languages li{
    font-size: 16px;
    font-family: "Montserrat";
}

@media (max-width:600px)  { 
    body {
        max-width: 100%;
        margin: 0;
    }
    #content {
        border-width: 0;
        border-radius: 0;
    }
    #name-img {
        padding: 0.5rem 1.25rem;
        flex-direction: column;
        align-items: center;
    }
    #name {
        align-items: center;
    }
    #contact {
        align-items: center;
    }
    #info {
        padding: 0.5rem 1.25rem;
    }
}

@media print {
    :root {
        font-size: 9px;
    }
    @page {
        height: auto;
        @top-center {
            content: element(header);
        }
    }
    body {
        max-width: 100%;
        margin: 0;
    }
    #content {
        border-width: 0;
        border-radius: 0;
    }
    img {
        max-height: 3cm;
    }
    #name-img, 
    #contact {
        padding: 0.5rem 1.25rem;
    }
    #info {
        padding: 0;
    }
    #skills li {
        border: 1px solid var(--tag-bg);
        font-size: 12px;
    }
    header, footer, aside, nav, form, iframe, .menu, .hero, .adslot {
        display: none;
    }
    #languages li{
        font-size: 12px;
    }
}