body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    font-family: 'Quicksand', sans-serif;
}

body:not(#page) {
    background-color: #ddd;
}

#vignette {
    position: absolute;
    z-index: -1;
    text-align: center;
    width: 100%;
}

#vignette > img {
    display: block;
    margin: auto;
}

h1 {
    font-family: 'Anonymous Pro', monospace;
}

h2, h3, h4, h5 {
    font-family: 'Cutive Mono', monospace;
    margin: 8px 0 0 3px;
}

ul {
    list-style: none;
    padding: 0 0 0 45px;
}

li {
    display: inline-flex;
    width: 100%;
    margin: 2px 0;
}

a, a:visited {
    color: #da3e3e;
}

.blank-filler {
    display: flex;
    flex: 1 auto;
}

.blank-filler.w-330 {
    flex: 22%;
}
.blank-filler.w-300 {
    flex: 20%;
}

.red {
    color: #da3e3e;
}

.row {
    display: flex;
    align-content: center;
    width: 100%;
    justify-content: space-between;
}

div#print-button {
    display: flex;
    position: fixed;
    top: 5%;
    left: 2%;
    flex-direction: column;
    background-color: rgba(255,255,255, 0.5);
    padding: 5px 40px 5px 10px;
    transition: 0.2s ease-in;
    opacity: 0.4;
    z-index: 100;
}
div#print-button:hover {
    opacity: 1;
    background-color: white;
}

div#print-button a {
    text-decoration: none;
    font-size: 17px;
    margin: 8px 0;
    display: flex;
    justify-content: start;
    align-content: center;
}

div#print-button a .material-icons {
    margin-right: 5px;
}

/* Tooltip container */
.tooltip {
    position: relative;
    display: inline-block;
}

/* Tooltip text */
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip text */
    position: absolute;
    z-index: 10;
    bottom: 105%;
    left: 50%;
    margin-left: -60px;

    /* Fade in tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 16px;
    line-height: 19px;
}

/* Tooltip arrow */
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip.bottom .tooltiptext {
    bottom: initial;
    top: 100%;
}

.tooltip.bottom .tooltiptext:after {
    border-color: transparent transparent #555 transparent !important;
    top:  initial;
    bottom: 100%;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/*================= PAGE AGENCEMENT ==================*/

#page {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 10px auto;
    width: 930px;
    height: 1310px;
    background-color: white;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.2);
    overflow: hidden;
    font-size: 21px;
}

#page.auto-height {
    height: auto !important;    
}

body#page {
    box-shadow: none !important;
    margin: 0 !important;
}

#header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 16%;
    display: flex;
    background-color: #da3e3e;
    flex-direction: row;
}

#header:before, #header:after {
    content: "";
    position: absolute;
    bottom: 0;
    z-index: 1;
    display: block;
}

#header:after {
    right: 0;
    border-bottom: 150px solid rgba(0,0,0,0.2);
    border-left: 300px solid rgba(0,0,0,0);
}

#header:before {
    border-left: 802px solid rgba(255,255,255,0.4);
    border-top: 165px solid rgba(0,0,0,0);
}

#sider {
    position: absolute;
    background-color: #eee;
    padding: 27px 15px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: calc( 100% - 5% - 27px * 2 );
    width: 29.5%;
    top: 5%;
    left: 2.5%;
    z-index: 2;
    box-shadow: 0.8px -0.8px 5px rgba(0,0,0,0.15);
}

#title {
    font-family: 'Quicksand', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#photo {
    width: 240px;
    height: 100%;
    margin: auto 0;
    display: flex;
    justify-content: center;
    align-content: inherit;
    z-index: 2;
}

.img-container {
    height: 150px;
    width: 151px;
    border-radius: 110px;
    background-color: white;
    margin: auto;
    overflow: hidden;
    background: url(img/photo.jpg) -8px 50% no-repeat;
    background-size: calc( 100% + 12px );
    border: 6px solid white;
}

.light {
    color: white;
}

#header #title h1 {
    margin: 15px 0 12px;
    z-index: 2;
}

#header #title h3 {
    margin: 35px 0 0;
    font-size: 24px;
    z-index: 2;
}

#content, #sider {
    padding: 15px;
    font-size: 18px;
    line-height: 25px;
}

#page i.material-icons {
    position: relative;
    font-size: 21px;
    margin: auto 0;
    left: -30px;
    width: 0;
    height: 19px;
}

/*================= SIDER ==================*/

#sider h2, #sider h3 {
    font-size: 30px;
    text-decoration: underline;
}

.small-logo {
    position: absolute;
    left: 29px;
    width: 21px;
    height: 25px;
    background-repeat: no-repeat;
    background-position: 50%;
    background-size: contain;
}

#linkedin-logo {
    background-image: url(img/linkedin.svg);
}
#id-logo {
    background-image: url(img/id.svg);
}
#github-logo {
    background-image: url(img/github.svg);
}

.pointer {
    position: relative;
    width: 6px;
    height: calc( 100% + 12px );
    z-index: 3;
    top: -6px;
    left: -1.5px;
    background-color: #da3e3e;
}

.language-block, .program-block {
    padding: 1.5px 10.5px;
    margin: 4px 0;
}

.language-block h5 {
    margin: 0;
    font-size: 18px;
    font-family: 'Quicksand', sans-serif;
}

.jauge {
    width: 100%;
    height: 11px;
    background-color: white;
    display: flex;
    border-radius: 6px;
}

.value {
    height: 100%;
    background-color: #8e4949;
    border-radius: 6px 0 0 6px;
}

.value.v10 { width: 12%; }
.value.v25 { width: 28%; }
.value.v40 { width: 38%; }
.value.v50 { width: 48%; }
.value.v60 { width: 58%; }
.value.v70 { width: 68%; }
.value.v80 { width: 78%; }
.value.v90 { width: 88%; }
.value.max { width: 98%; }

.language-block .row {
    margin: 3px 0 6px;
    font-size: 18px;
}
.program-block .row {
    margin: 4px 0;
    height: 25px;
}
.program-block .row span {
    font-size: 14px;
    line-height: 25px;
    font-weight: bolder;
}
.program-block .row h5 {
    margin: 0;
    font-size: 15px;
}
.program-block .jauge {
    background-color: #444;
    height: 9px;
}
.program-block .pointer {
    background-color: #eee;
    height: 100%;
    top: 0px;
}
.program-block .value {
    background-color: white;
}

#graph img {
    height: auto;
    width: 120%;
    margin: 30px -33px -23px;
}

#graph {
    width: 100%;
}

#sports {
    display: flex;
    flex-direction: column;
    margin-top: 23px;
}

span.subtitle {
    font-size: 21px;
}

#sports-emojis {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sports .emojis {
    font-size: 29px;
}

#badminton {
    width: 29px;
    height: 29px;
    background: url(img/badminton.png) 50% no-repeat;
    background-size: contain;
}

#trips > div.countries {
    margin: 10px 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-self: center;
    flex-direction: row;
}

#trips > div.countries > span {
    margin: 3px;
    display: block;
    height: 25px;
    width: 40px;
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
}

span#cameroon { background-image: url(img/country-flags/cm.svg) }
span#france { background-image: url(img/country-flags/fr.svg) }
span#switzerland { background-image: url(img/country-flags/ch.svg) }
span#netherlands { background-image: url(img/country-flags/nl.svg) }
span#italy { background-image: url(img/country-flags/it.svg) }
span#belgium { background-image: url(img/country-flags/be.svg) }
span#usa { background-image: url(img/country-flags/us.svg) }
span#roumania { background-image: url(img/country-flags/ro.svg) }
span#estonia { background-image: url(img/country-flags/ee.svg) }
span#latvia { background-image: url(img/country-flags/lv.svg) }
span#lithuania { background-image: url(img/country-flags/lt.svg) }
span#hungria { background-image: url(img/country-flags/hu.svg) }
span#poland { background-image: url(img/country-flags/pl.svg) }
span#germany { background-image: url(img/country-flags/de.svg) }

div#trips {
    margin-top: 10px;
}

/*================= CONTENT ==================*/

#content {
    position: relative;
    width: 61%;
    left: calc( 2.5% + 29.5% + 30px );
    color: #444;
}

div#content h2 {
    position: relative;
    background-color: black;
    color: white;
    width: 88%;
    padding: 6px 20px;
    box-shadow: 15px 9px #da3e3e;
    margin: 0 0 15px;
}

div#content h2:after {
    content: "";
    border-bottom: 47px solid white;
    border-left: 24px solid transparent;
    right: -18px;
    bottom: -12px;
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
}

#content h4 {
    font-size: 19px;
    margin: 1px 35px;
}

#content li .year {
    justify-content: center;
    align-items: flex-start;
    display: flex;
    font-weight: bold;
    font-size: 21px;
}

span.icon-container {
    display: inline-flex;
    height: 21px;
    align-items: center;
    color: #555;
}

#education span.location {
    font-size: 14px;
    padding-left: 30px;
}

#education .location b {
    margin-left: 3px;
}

.year-details > span {
    line-height: 25px;
}

#education .year {
    align-self: center;
    font-size: 20px;
}

.divider-10 {
    display: inline-block;
    width: 10px;
    height: 10px;
    position: relative;
}

.divider-15 {
    display: block;
    min-width: 22px;
}


.divider-20 {
    display: block;
    min-width: 30px;
}

.divider-50 {
    display: none;
    flex: 1;
}

#content ul {
    padding-left: 20px;
}

#interships span.inter-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 23px;
}

.inter-details {
    line-height: 21px;
    font-size: 16px;
}

#interships .space-time {
    display: flex;
    align-items: center;
    margin: 3px 0 0 30px;
}

#interships .space-time > span.location {
    width: 240px;
}

#interships li {
    margin: 6px 0;
}
#interships li.compressed {
    margin: 2px 0;
}

#engineering .container {
    display: flex;
    flex-direction: row;
}

#engineering .col {
    padding-left: 40px;
    font-size: 17px;
    margin: 6px 0;
    list-style: initial;
    flex: 50%;
}

#engineering .col li {
    display: list-item;
    margin: 0;
    line-height: 20px;
    font-size: 16px;
}

#dev-logos {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    margin: 3px 7px 9px;
}

#dev-logos .logo-container {
    display: block;
    min-width: 80px;
    min-height: 74px;
    background-position: 50%;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 2px;
}
#angular-logo {
    background-image: url(img/angular.png); 
}
#git-logo {
    background-image: url(img/git.png);
    background-size: 60px !important;
}
#jenkins-logo {
    background-image: url(img/jenkins.svg); 
    background-size: 100px !important;
}
#travis-logo {
    background-image: url(img/travis.png); 
}
#joomla-logo {
    background-image: url(img/joomla.png);
    background-size: 115px !important;
}
#maven-logo {
    background-image: url(img/maven.png); 
}
#spark-logo {
    background-image: url(img/spark.png); 
}
#npm-logo {
    background-image: url(img/npm.png);
}
#spring-logo {
    background-image: url(img/spring.png);
    width: 103px;
}
#jquery-logo {
    background-image: url(img/jquery.png);
    background-size: 86px !important;
    width: 98px;
}
#symfony-logo {
    background-image: url(img/symfony.png); 
}
#vue-logo {
    background-image: url(img/vue.png);
    background-size: 70px !important;
}
#docker-logo {
    background-image: url(img/docker.png);
    background-size: 80px !important;
}
#kotlin-logo {
    background-image: url(img/kotlin.png);
}
#azure-logo {
    background-image: url(img/azure-devops.png);
}
#nodejs-logo {
    background-image: url(img/nodejs.png);
}
#netcore-logo {
    background-image: url(img/netcore.png);
}
#flutter-logo {
    background-image: url(img/flutter.png);
}
#android-logo {
    background-image: url(img/android.png);
}
#python-logo {
    background-image: url(img/python.png);
}
