/******************************************************************************/
/* General styles */

html, body {
    background-color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
	line-height: 1.9;
}

*::selection {
    color: white;
    background-color: #3BE;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

em {
    font-size: 12px;
    font-style: italic;
}

strong {
	font-weight: bold;
}

a, a:visited {
	color: #3BE;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}


/******************************************************************************/
/* Header */

header {
    background-image: url('img/blackmamba_@2X.png');
    color: #EEE;
    font-family: 'Poiret One', cursive;
    overflow: auto;
    padding: 10px 0;
    text-align: center;
}

h1 {
	font-size: 40px;
    line-height: 1;
    margin-bottom: 15px;
}

h2 {
	font-size: 150%;
    font-style: italic;
}


/******************************************************************************/
/* Left column */

#data h4 {
	font-size: 16px;
	font-weight: bold;
    margin-bottom: 5px;
}
#data h4:not(:first-of-type) {
    margin-top: 30px;
}

#data p {
    margin-bottom: 10px;
}

.tag-list li {
	display: inline;
}

.tag-list li:not(:last-child):after {
	content: ", ";
}

/******************************************************************************/
/* Right column */

h3 {
    color: #444;
    font-size: 150%;
    font-weight: bold;
	margin-bottom: 20px;
    text-align: center;
}

.job {
	margin-top: 30px;
}

.timeline {
    color: #000;
    font-size: 12px;
    margin-top: 4px;
}

.timeline .time-ellapsed {
    color: #777;
    font-weight: 600;
    margin-left: 5px;
    font-size: 11px;

}
.timeline .time-ellapsed:before {
    content: "[\2009";
}
.timeline .time-ellapsed:after {
    content: "\2009]";
}

.position {
    color: #000;
    font-size: 18px;
    font-weight: bold;
}

.topics-list, .bullet-list {
    list-style: square;
    margin-left: 2em;
}

.location {
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
}

.company-description, .fineprint {
	color: #666;
    font-size: 90%;
    font-style: italic;
}

.job-description {
    color: #777;
    font-size: 13px;
    font-style: italic;
    line-height: 18px;
    margin: 6px 0;
}

.job-sub-section {
    font-weight: 500;
    margin-top: 12px;
}

/******************************************************************************/
/* Education */

.institute {
    line-height: 1.2;
    margin-top: 4px;
}

.publication {
    margin-top: 15px;
    padding-left: 15px;
}

.publication .position {
    font-size: 16px;
    font-weight: normal;
}

/******************************************************************************/
/* Footer */
footer {
    border-top: solid 1px #EEE;
    margin: 40px 15%;
}


/******************************************************************************/
/* Layout */

.container {
    margin: 20px auto;
    max-width: 900px;
    width: 100%;
}

section:not(:last-child) {
    margin-bottom: 40px;
}

#data {
    text-align: center;
}

#data, #work-experience, #education, header h1, header h2 {
    box-sizing: border-box;
    padding: 0 20px;
}


/******************************************************************************/
/* Media queries */

/* On screens larger than mobile, create a two-column layout with the #data on
 * the left and then #work-experience and #education on the right */
@media print, (min-width: 680px) {

    /* Set up flex containers */
    .container {
        display: flex;
        flex-wrap: wrap;
    }
    main .container {
        justify-content: flex-end;
        padding-top: 20px;
    }

    /* Left column */
    #data, header h1 {
        border-right: solid 1px #EEE;
        text-align: right;
        flex-basis: 35%;
        margin-bottom: 0;
    }

    /* Right column */
    #work-experience, #education, header h2 {
        flex-basis: 65%;
    }
    header h2 {
        font-style: normal;
        line-height: 40px;
        text-align: left;
    }
    h3 {
        text-align: left;
    }
}
/* For printing, change the two-column layout a bit. Reduce the width and line
 * spacing of the left column to allow fitting nicely on two pages. Also change
 * the header to be vertically stacked on the right column. */
@media print {
    html, body {
        line-height: 1.5;
    }
    header {
        background: none;
        color: #444;
        padding: 0;
    }
    header .container {
        align-items: flex-end;
        flex-direction: column;
    }
    header h1, header h2 {
        border: 0;
        text-align: left;
        width: 70%
    }
    .container {
        margin: 0;
    }
    #data, header h1 {
        flex-basis: 30%;
    }
    #data h4:not(:first-of-type) {
        margin-top: 20px;
    }
    #data ul, #data p {
        line-height: 1.75;
    }
    #work-experience, #education, header h2 {
        flex-basis: 70%;
    }
    a, a:visited {
        color: #333;
        text-decoration: underline;
    }
}