* {
    box-sizing: border-box;
    font-size: 16px;
}

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

body {
    text-align: justify;
    font-family: 'Yanone Kaffeesatz', 'Times New Roman', serif;
    color: #69605c;
}

.active-link {
    color: crimson;
}

.lang-selection {
    background-color: whitesmoke;
    display: grid;
    grid-gap: 0.2em;
    grid-template-columns: 1.25em auto auto;
}

.links-container {
    max-width: 20em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-end;
}

.globe-container {
    width: 1.25em;
    height: 1.25em;
}

#globe_svg {
    clip-path: ellipse(45% 42% at 50% 50%);
    -webkit-clip-path: ellipse(45% 42% at 50% 50%);
    fill: #3a95f0;
    transition: fill 0.5s;
}

#globe_svg:hover {
    fill: blue;
    cursor: pointer;
}

.lang-link {
    text-align: center;
    width: 4.5em;
}

.inactive-link {
    width: 0;
    height: 0;
    visibility: hidden;
}

.inactive-link.made-visible {
    visibility: visible;
    width: 4.5em;
    height: auto;
}

.flag-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: 0.2em;
}

#lang-flag {
    width: 1.5em;
    height: 0.75em;
}

nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background-color: whitesmoke;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    align-items: center;
}

.navigation {
    display: flex;
    justify-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
}

.navigation > li > a {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.125em;
    color: hsl(27, 75%, 60%);
    transition: color;
    margin: 0 0.3125em;
}

.navigation > li > a:hover {
    color: red;
}

ul {
    list-style-type: none;
}

nav ul {
    background-color: #fbffe0;
    width: 100%;
}

.menu-icon {
    display: none;
    cursor: pointer;
    background-color: lightgray;
    border-radius: 0.15em;
}

.bar1, .bar2, .bar3 {
    width: 0;
    height: 0;
    background-color: #c7968f;
    margin: 0.1875em 0;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-0.3125em, 0.3125em);
    transform: rotate(-45deg) translate(-0.3125em, 0.3125em);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-0.3125em, -0.3125em);
    transform: rotate(45deg) translate(-0.3125em, -0.3125em);
}

h1, h2 {
    font-size: 1.5em;
    font-weight: 300;
    color: darkred;
}

h3 {
    font-weight: 400;
}

.wrapper {
    font-family: Assistant, serif;
    color: #540302;
    margin: 0;
    padding: 1vw;
    border: 1vw solid #fbffe0;
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.flex-container{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 2em;
}

.work {
    background-color: #fbffe0;
    padding: 2vh 2vw;
    border-bottom: 0.125em solid #ccaaaa;
}

.work ul {
    background-color: white;
    border-radius: 0.3125em;
    border: 1px dotted gray;
    padding-right: 0.9375em;
}

.abstract {
    width: 30%;
}

.description{
    width: 70%;
    list-style-type: none;
}

.description li:before {
    content: "∻";
    color: red;
    font-size: 1em;
}

.tasks{
    padding: 1em 0.5em;
}

.education {
    text-align: center;
}

#edu_heading {
    padding-top: 1.5em;
}

.edu-box {
    margin: 1.5em 0;
}

hr {
    width: 50vw;
    height: 0.125em;
    background-image: linear-gradient(to right, white, gray, white);
    border: none;
}

code {
    color: steelblue;
}

footer {
    color: #855f28;
/*     margin: 0vw; */
    padding: 1vw;
    background-color: #d2d9a7;
    border-top: 0.125em solid;
}

.contact {
    text-align: center;
}

.contact-info {
    display: flex;
    max-width: 5em;
    justify-content: space-between;
    margin: 1em auto;
}

.linkedin-icon {
    background-color: #0077B5;
}

.email-icon {
    background-color: #859113;
}

@media (max-width: 800px) {
    .flex-container {
        flex-wrap: wrap;
    }

    .abstract, .description {
        width: 100%;
    }

    .navigation > li > a {
        font-size: 0.75em;
        font-weight: 200;
    }

    h1, h2 {
        font-size: 1.125em;
        padding: 0.3125em;
    }

    h3 {
        font-size: 1em;
    }

    p {
        font-size: 0.875em;
    }
    
    span, a {
        font-size: inherit;
    }

    .description ul {
        font-size: 0.875em;
    }
}

@media (max-width: 600px) {
    
    .links-container {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    
    .inactive-link {
        visibility: hidden;
        height: 0;
        width: 0;
    }
    
    .inactive-link.made-visible {
        visibility: visible;
        height: auto;
        width: auto;
        border-left: 1px solid blue;
        padding-left: 0.2em;
    }
    
    .lang-link {
        width: auto;
    }
    
    .bar1, .bar2, .bar3 {
        width: 1.5em;
        height: 0.25em;
        transition: 0.4s;
    }

    .menu-icon {
        display: inline-block;
    }
    
    .navigation {
        position: absolute;
        top: 0;
        right: 1.5em;
        height: 0;
        width: auto;
        overflow: hidden;
        display: block;
        text-align: right;
        transition: 0.4s;
        background-color: lightgray;
        border-radius: 1em 0 1em 0;
    }
    
    .navigation.expand {
        height: 7.1em;
        border-left: 0.15em solid slategray;
        border-bottom: 0.15em solid slategray;
    }
    
    .navigation > li {
        padding: 0.4em 0.1em;
    }
    
    .navigation li a {
        color: #b3200b;
    }
    
}
