body{
  font-family: sans-serif;
  margin-top: 1em;
}

.avatar{
  border: 2px solid #ffffff;
  box-shadow: #555555 0 0 0 6px;
  width: 120px;
  height: 120px;
  margin: auto;
  border-radius: 50%;
  overflow: hidden;
}
.avatar-animate{
  transition: box-shadow 1s;
}

#avatar img{
  max-width: 100%;
  margin-top: -25px;
}

h1{
  text-align: center;
  font-size: 1.4em;
  margin-bottom: 0;
}

#birthdate{
  font-size: .9em;
  text-align: center;
  color: #777777;
  margin-top: 0;
  margin-bottom: 0;
}
#contact{
  text-align: center;
  margin-top: .5em;
  margin-bottom: 2em;
}
#contact-button:hover{
  cursor: pointer;
}
#contact-content{
  display: inline-block;
  border: 1px dashed #cccccc;
  padding: .5em;
}
#contact-content.hidden{
  display: none;
}

#positions{
  margin: auto;
  margin-top: 1em;
  min-width: 27em;
  max-width: 40em;
  height: 10em;
  position: relative;
}

.position{
  position: absolute;
  text-align: center;
}
.position-animated {
}
.position-first{
  top: 0;
  left: 25%;
  width: 50%;
  font-size: 1.7em;
}
.position-second{
  top: 6em;
  left: 5%;
  width: 30%;
  cursor: pointer;
}
.position-third {
  top: 6em;
  left: 65%;
  width: 30%;
  cursor: pointer;
}
.position-first.clockwise{
  transition: top 1s ease-out, left 1s ease-in, font-size 1s linear, width 1s linear;
}
.position-second.clockwise{
  transition: left 1s ease-in;
}
.position-third.clockwise{
  transition: top 1s ease-in, left 1s ease-out, font-size 1s linear, width 1s linear;
}
.position-first.anticlockwise{
  transition: top 1s ease-out, left 1s ease-in, font-size 1s linear, width 1s linear;
}
.position-second.anticlockwise{
  transition: top 1s ease-in, left 1s ease-out, font-size 1s linear, width 1s linear;
}
.position-third.anticlockwise{
  transition: left 1s ease-in;
}

.position-container{
  background-color: white;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 0;
  margin: auto;
  filter: invert(100%);
}
.position-dev .position-container{
  width: 10em;
  background-image: url('../img/blue.png');
}
.position-doc .position-container{
  width: 9em;
  background-image: url('../img/yellow.png');
}
.position-teaching .position-container{
  width: 7em;
  background-image: url('../img/purple.png');
}
.position-container span{
  background-color: white;
  mix-blend-mode: difference;
  display: inline-block;
  width: 100%;
  height: 100%;
  line-height: 3em;
}

/* PANELS */

@keyframes fade-in {
  0% {
    grid-template-rows: 0fr;
    opacity: 0;
  }
  1% {
    grid-template-rows: 1fr;
    opacity: 0;
  }
  100% {
    opacity: 1;
    grid-template-rows: 1fr;
  }
}
@keyframes fade-out {
  0% {
    opacity: 1;
    grid-template-rows: 1fr;
  }
  99% {
    opacity: 0;
    grid-template-rows: 1fr;
  }
  100% {
    grid-template-rows: 0fr;
    opacity: 0;
  }
}

#content{
  max-width: 65em;
  margin: auto;
  position: relative;
}

.cv{
  margin: 1em;
  width: 100%;
  position: absolute;
  top: 0;
  opacity: 0;
  display: grid;
  grid-template-rows: 0fr;
}

.cv-container{
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  border: 1px solid gray;
  border-radius: 5px;
  margin-bottom: 1em;
}
.print-button{
  position: absolute;
  top: 1em;
  right: 1em;
  cursor: pointer;
  opacity: .4;
}
.print-button:hover{
  opacity: 1;
  transition: opacity .5s;
}
.cv h2{
  font-size: 1.4em;
  text-align: center;
  font-weight: normal;
}
.cv .skills{
  flex: 1;
  margin: 2em 0;
}
.cv .skill-group{
  padding: .4em 12.5%;
  border-right: 1px solid gray;
}
.cv .skill-group h3{
  font-size: 1em;
}
.cv .skill{
  margin-bottom: .4em;
  line-height: 1em;
}

.cv .skills .stick{
  border-radius: 5px;
  display: inline-block;
  overflow: hidden;
  height: 10px;
  width: 100%;
  box-shadow: 2px 1px 4px gray;
}

.cv .skills .stick .filled{
  display: block;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  height: 8px;
  margin: 1px 1px 1px 1px;
}
.cv .skills .stick .full{
  border-radius: 4px;
}

.cv .xp{
  flex: 2;
  margin: 2em 0;
}
.cv .year{
  font-size: 2em;
  margin-left: 1.5em;
  margin-bottom: 0;
}
.cv .item{
  margin: 2em;
  padding: 4px;
  border-radius: 3px;
  box-shadow: 3px 3px 6px #999;
}
.cv .item.first-of-year{
  margin-top: 0;
}
.cv .item .content{
  padding: 10px;
}
.cv .item h3{
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.5em;
  margin-top: 0;
}
.cv .item h4{
  margin-bottom: 0;
}
.cv .item h4 a, .cv .item h4 a:hover, .cv .item h4 a:active{
  color: inherit;
  text-decoration: none;
}
.cv .item h4 a:hover{
  color: inherit;
  text-decoration: underline;
}
.cv .item .location{
  font-style: italic;
  font-size: .9em;
  margin: 0;
}
.cv .item .location::before{
  content: ' - ';
}
.cv .item .tool{
  border-radius: 1em;
  display: inline-block;
  font-size: .9em;
  padding: .2em .5em;
  margin-bottom: .25em;
}

.cv-current{
  opacity: 1;
  grid-template-rows: 1fr;
}
.cv-animate{
  animation: 1s fade-out;
}
.cv-animate.cv-current{
  animation: 1s fade-in;
}

/* MOBILE */

@media(max-width: 600px){
  #positions{
    min-width: auto;
    max-width: 100%;
  }
  .position-first{
    top: 0;
    left: 0;
    width: 100%;
    font-size: 1.7em;
  }
  .position-second{
    top: 6em;
    left: 0;
    width: 50%;
    cursor: pointer;
  }
  .position-third {
    top: 6em;
    left: 50%;
    width: 50%;
    cursor: pointer;
  }
  .cv-container{
    display: block;
    padding: 0 1em;
  }
}

/* THEME DEV */

#cv-dev{
  margin: 0;
  font-family: sans-serif;
  color: #2c5eab;
}
#cv-dev .cv-container{
  border-color: #afc0e1;
  box-shadow: 0px 0px 10px #afc0e1;
}
.avatar-dev{
  box-shadow: #2c5eab 0 0 0 6px;
}
.position-dev .position-container span{
  color: #2c5eab;
}

#cv-dev .cv-container{
  background-color: #f5faff;
}
#cv-dev .skills .stick{
  border: 1px solid #2c5eab;
}
#cv-dev .skills .stick .filled{
  background-color: #2c5eab;
}
#cv-dev .skill-group{
  border-color: #b8b8ff;
}

#cv-dev .item {
  border-left: 3px solid #2c5eab;
  background-color: #bfd8ff;
}

#cv-dev .item .content{
  background-color: #bfd8ff;
}
.cv .item .location{
  color: #6792d5;
  font-weight: normal;
}
#cv-dev .item .tool{
  background-color: #2c5eab;
  color: white;
}

/* THEME DOC */

#cv-doc{
  margin: 0;
  font-family: sans-serif;
  color: #827505;
}
#cv-doc .cv-container{
  border-color: #d5cd89;
  box-shadow: 0px 0px 10px #d5cd89;
}

.position-doc .position-container span{
  color: #8f852c;
}
.avatar-doc{
  box-shadow: #8f852c 0 0 0 6px;
}

#cv-doc .cv-container{
  background-color: #fffded;
}
#cv-doc .skills .stick{
  border: 1px solid #8f852c;
}
#cv-doc .skills .stick .filled{
  background-color: #ac9b00;
}
#cv-doc .skill-group{
  border-color: #d5cd89;
}

#cv-doc .item {
  border-left: 3px solid #8f852c;
  background-color: #f2eba0;
}

#cv-doc .item .content{
  background-color: #f2eba0;
}
#cv-doc .item .location{
  color: #9e9436;
  font-weight: normal;
}
#cv-doc .item h3{
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.5em;
  margin-top: 0;
}
#cv-doc .item .tool{
  background-color: #8f852c;
  color: white;
}

/* THEME TEACHING */

#cv-teaching{
  margin: 0;
  font-family: sans-serif;
  color: #a81d59;
}
#cv-teaching .cv-container{
  border-color: #caa7ba;
  box-shadow: 0px 0px 10px #caa7ba;
}

.avatar-teaching{
  box-shadow: #9f3563 0 0 0 6px;
}
.position-teaching .position-container span{
  color: #9f3563;
}

#cv-teaching .cv-container{
  background-color: #fff2f9;
}
#cv-teaching .skills .stick{
  border: 1px solid #9f3563;
}
#cv-teaching .skills .stick .filled{
  background-color: #a81d59;
}
#cv-teaching .skill-group{
  border-color: #caa7ba;
}

#cv-teaching .item {
  border-left: 3px solid #9f3563;
  background-color: #ffc6df;
}

#cv-teaching .item .content{
  background-color: #ffc6df;
}
#cv-teaching .item .location{
  color: #b13169;
  font-weight: normal;
}
#cv-teaching .item h3{
  font-style: italic;
  text-transform: uppercase;
  font-size: 1.5em;
  margin-top: 0;
}
#cv-teaching .item .tool{
  background-color: #9f3563;
  color: white;
}
