/* Navigation bar */

nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    align-content: space-evenly;
    justify-items: end;
    color:black;
    background-color: rgb(250,250,250,1);
    box-shadow: 0 1px 4px 0 rgba(240, 240, 240, 0.8);
    /*background-color: #4d4855;
    background-image: linear-gradient(147deg, #4d4855 0%, #000000 74%);*/
    margin-bottom: 10px;
    position: fixed;
    top:0;
    overflow: auto;
    z-index: 1100;

}

.banner {
  margin-top: 38px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(100, 100, 100, 0.5)), url('../img/Earth_from_Space_Waza_National_Park_Cameroon.jpg');
  background-size: cover;
  background-position: center;
  linear-gradient-position-y: 0px;
  background-position-y: 0px;

  display: flex;
  justify-content: space-around;
  align-items: center;

  position: relative;
  height: 30vh;
  width: 100%;
}

.banner-content {
  height: 70%;
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  align-items: center;
  text-align: left;
  position: relative;
}

.banner-content > h1 {
    color: white;
    font-size: 4vw;
    font-family: 'Open Sans', sans-serif;
}

.nomenclature {
  display: flex;
  justify-content: space-around;
  align-items: center;

  position: relative;
  width: 100%;
}

.description {
    margin: 5vh 20% 5vh 20%;
    text-align: justify;
    text-justify: inter-word;
}

.btn-banner {
  background-color: transparent;
  color: white;
  border: 2px solid $rose;
  border-radius: 3px;
  font-weight: bold;
  position: absolute;
  right: 20%;
  bottom: 20%;
}

.buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.btn-left {
    margin-right: 5vh;

}

.copy-button {
  position: absolute;
  top: 2px;
  right: 10px;
  cursor: pointer;
  color: #fff;
  background: gray;
  border-radius: 0.5em;
  padding: 2px 7px;
}

.copy-button:hover {
  color: #000;
}

.center {
    margin-left: 20vh;

}

section {
	/*margin-bottom: 50px;*/
}

.navlink {
    display: inline-block;
    font-size: 1.3em;
    position: relative;
    margin: 5px 0px 10px 100px;
    vertical-align: middle;
}

.navlink > a {
    text-decoration: none;
    color: inherit;
}

.navlink::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 2px;
    /*background-color: #F06283;
    transform-origin: center;
    transform: translate(-50%, 0) scaleX(0);
    transition: transform 0.8s ease-in-out;*/
  }

.navlink:hover {
    color: #0d6106;
    transition: all 0.2s ease-in-out;
}

.navlink:hover::before {
    /*transform: translate(-50%, 0) scaleX(1);*/
}

.wo {
    list-style-type: none;
}

/* Side info */

@media screen and (min-width: 740px){
    .flex-container {
        display: flex;
        margin: auto;
        max-width: 1200px;
    }
}

@media screen and (max-width: 740px){
    aside .picture {
        float: left;
        padding-right: 10px;

    }

    aside > section > ul {
        display: grid;
        justify-content: space-evenly;
        align-content: space-evenly;
        justify-items: end;
        width: 100%;
        margin: auto;
    }

    aside > section > ul > li {
        display: inline-block;
        grid-row: 1;
    }

    #sitename {
        display: none;
    }

    aside {
        margin-bottom: 1em;
    }

    h3.navlink {
        font-size: 1.1em;
        margin: 7px 3px 7px 3px;
    }

    aside > h1 {
        margin-top: 0.5em;
        margin-bottom: 0px;
    }

    #about > h2 {
        margin: 3px 0px 3px 0px;
    }

    .picture > img {
        height: 75px;
        width: 75px;
    }
}

#about > h2 {
    font-size: 1em;
    font-weight: normal;
}

.publications > ul > li > a{
    text-decoration: none;
}

aside {
    flex: 0 1 320px;
    box-sizing: border-box;
    padding: 50px 15px 0px 5px;
    margin-top: 0.2em;
}

aside ul {
    width: 50%;
    margin-left: 10%;
    margin-right: 40%;
    padding: 0px;
}

aside ul > li {
    list-style-type: none;
    margin-top: 2px;
    margin-bottom: 2px;
}

aside ul > li > a > span {
    position: relative;
  }

/* CSS fx on sidebar links */
aside ul > li > a > span::before, aside ul > li > a > span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e4b363;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

  aside ul > li > a > span::before {
    top: 0;
    transform-origin: center right;
  }

  aside ul > li > a > span:hover::before {
    transform-origin: center left;
    transform: scaleX(1);
  }

  aside ul > li > a > span::after {
    bottom: 0;
    transform-origin: center left;
  }

  aside ul > li > a > span:hover::after {
    transform-origin: center right;
    transform: scaleX(1);
  }



aside .picture {
    text-align: center;
    transition: all 0.5s ease;
}

aside .picture:hover {
    filter: grayscale(0%);
}


aside .picture > img {
    border-radius: 50%;
    opacity: 1;
}

aside a {
    text-decoration: none;
    color: inherit;
}

/* Footer */
footer {
    text-align: center;
    width: 100%;
    opacity: 0.5;
    font-size: 0.8em;
    margin-top: 1em;
}

/* Titles */

h1 {
    font-size: 1.3em;
}

h2 {
    margin-top: 0.2em;
    margin-bottom: 0.5em;

}

/* Structure */

@media screen and (min-width: 960px) {
    html {
        width:100vw;
        overflow-x:hidden;
    }
}

body {
    background-color: rgb(255, 255, 255,1); 
    font-family: 'OpenSans';
    font-size: 1.05em;
    padding: 0px;
    margin: 0px;
}

a {
    color: inherit;
}

.navlink, h3 {
    font-family: 'OpenSansLight';
    font-size: 20px;
}


h1, h2 {
    font-family: 'OpenSansBold';
    font-size: 20px;
}

h1 {
    margin: 10px 0px 10px 0px;
}

h2 {
    margin: 6px 0px 10px 0px;
}

h3 {
    margin: 15px 0px 6px 0px;
    font-size: 15px;
}

.content {
    flex: 1;
    padding: 50px 10px 0px 50px;
    text-align: justify;
}

a.invisible {
    position: absolute;
    top: 0;
    left: 0;
}

:target ~section {
    transition: opacity 0.2s ease-out;
    opacity: 0;
    height: 0;
    width: 100%;
    overflow: hidden;
}

.news > p:nth-child(n+11){
    display: none;
}

#news:target ~.news > p {
    display: block;
}

#news:target ~.news,
#research:target ~.research,
#publications:target ~.publications,
#teaching:target ~.teaching,
#resume:target ~.resume,
#about:target ~.about,
#supervision:target ~.supervision,
#tutorials:target ~.tutorials

{
    opacity: 1;
    width: 100%;
    transition: opacity 0.2s ease-in;
    height: auto;
}

.content ul {
    margin: 10px 0px 20px 0px;
}

.strike {
    text-decoration: line-through;
}

/* Icons */

svg.icon {
    height: 1em;
    vertical-align: middle;
    margin-right: 0.5em;
    text-decoration: none;
}

a:active, a:focus {
    border: none;
    outline: none;
}

.content a:hover {
    color: #0d6106;

}



/* Fonts */

@font-face {
	font-family: 'OpenSans';
	font-style: normal;
	font-weight: 200;
	src: local(OpenSans),
	     url('../fonts/OpenSans-VariableFont_wdth,wght.ttf') format('ttf');}

@font-face {
  font-family: 'OpenSansLight';
  src: local(OpenSansLight),url('../fonts/static/OpenSans/OpenSans-Light.ttf');
}

@font-face {
  font-family: 'OpenSansBold';
  src: local(OpenSansBold),url('../fonts/static/OpenSans/OpenSans-SemiBold.ttf');
}




.highlight pre {
  margin-bottom:0;
  word-break:normal
}

pre {
  padding:0.8rem;
  margin-top:0;
  margin-left:0;
  margin-bottom:1rem;
  font:1rem Consolas, "Liberation Mono", Menlo, Courier, monospace;
  color: black;
  word-wrap:normal;
  background-color:#f3f6fa;
  border:solid 1px #dce6f0;
  border-radius:0.3rem;
  overflow:auto;
  font-size:0.9rem;
  line-height:1.45;
  border-radius:0.3rem;
  -webkit-overflow-scrolling:touch;
  white-space: pre-line;
}

.nomenclature-img{
    width: 100%;
}

.proj-img{
    width: 65%;
}

/*
pre > code {
  display:inline;
  max-width:initial;
  padding:0;
  margin:0;
  overflow:initial;
  line-height:inherit;
  word-wrap:normal;
  background-color:transparent;
  border:0;
  padding:0;
  margin:0;
  font-size:10rem;
  color: #567482;
  word-break:normal;
  white-space:pre;
  background:transparent;
  border:0
}

*/

.pl-k {
    color: #d73a49;
}

.pl-v {
    color: #A5582A;
}

.pl-s {
    color: #032f62;
}

.pl-c {
    color: #6a737d;
}

.pl-en /* entity.name */ {
  color: #6f42c1;
}

.pl-c1 {
  color: #005cc5;
}

.description h2 {
    margin-top:50px;
    margin-bottom:20px;
}