/* = Page Structural = */
:root{
    --bs-link-color:#433db6;
    --bs-link-hover-color: #5634b3;
    /*#3f51b5;*/
}
body{
    position: fixed;
    display: flex;
    overflow: hidden;
    height: 100%;
    width: 100%;
    flex-direction: column;
}
.navbar{
    position: sticky;
    top: 0;
    z-index: 1;
}
.navbar-brand:hover{
    --bs-navbar-brand-hover-color: white !important;
}
.nav-link:hover{
    --bs-nav-link-hover-color: rgb(165, 201, 255);
}
.nav-link:focus{
    --bs-nav-link-hover-color: white;
}
.navbar-brand{
    font-weight: 600;
    margin-right: 5px;
    white-space: break-spaces;
    margin-left: 36px;
    /*flex-flow: row wrap;*/
}
@media only screen and (max-width: 471px) {
    .navbar-brand{
        line-height: 17px;
        height: 30px;
        flex-direction: column;
        padding: 0;
        margin-top: -10px;
        margin-left: 36px;
    }
    .navbar-brand>span{
        font-size: 12px;
    }
}
/* Menu burger */
.nav-menu {
    width: 42px;
    height: 31px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
  }
  
  .nav-menu span {
    display: block;
    position: absolute;
    height: 5px;
    width: 80%;
    background: rgba(255,255,255,0.5);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
    margin-left: 10%;
  }
  .nav-menu span:hover{
    background: rgba(255,255,255,0.8);
  }

  .nav-menu span:nth-child(1) {
    top: 4px;
  }
  
  .nav-menu span:nth-child(2),.nav-menu span:nth-child(3) {
    top: 12px;
  }
  
  .nav-menu span:nth-child(4) {
    top: 20px;
  }
  
  #navbar-toggler:checked+.nav-menu span{
    background: rgba(255,255,255,0.8);
  }
  #navbar-toggler:checked+.nav-menu span:nth-child(1) {
    top: 12px;
    width: 0%;
    left: 40%;
  }
  
  #navbar-toggler:checked+.nav-menu span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  
  #navbar-toggler:checked+.nav-menu span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  
  #navbar-toggler:checked+.nav-menu span:nth-child(4) {
    top: 12px;
    width: 0%;
    left: 40%;
  }

.navbar-toggler{
    border: var(--bs-border-width) solid rgba(255, 255, 255, 0.5);
}
#navbar-toggler{
    display: none;
}
#navbar-toggler:checked+label{

}
#navbar-toggler:checked+label+div{
    display: unset;
}
/* // */

*{
    font-family: 'Montserrat', sans-serif;
}
ul{
    list-style-type: none;
}
svg{
    height: 50px;
    width: 50px;
}
*[asvg="devicon"]{
    stroke: white;
    transition: .2s;
    width: 50px;
    height: 50px;
}
*[asvg="devicon"]:hover{
    stroke: #ffc400;
}
h1,h2,h3,h4,h5,h6{
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    margin-top: 1rem;
    margin-bottom: .5rem;
    line-height: 1.25;
    color: #313131;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
}
h1{
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

/*h1::before,h1::after{
    content: ' ';
    position: absolute;
    left: 0;
    background-color: inherit;
    height: inherit;
    width: 100%;
    margin-left: -100%;
}
h1::after{
    left: unset;
    right: 0;
    margin-right: -100%;
}*/
.page:first-of-type{
    margin-top: 50px;
}
.page:last-of-type{
    margin-bottom: 50px;
}
.page{
    margin-top: 25px;
    margin-bottom: 25px;
}
/* Home page */
.portraitCointainer{
    z-index: 2;
    position: sticky;
    top: 50px;
}
.portrait{
    overflow: hidden;
    height: 200px;
    transition: all 1s ease-in-out;
    width: 200px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}
.portrait>img{
    width: 200px;
    /*height: 200px;*/
    margin: 0 auto;
    object-fit: cover;
    margin-top: -8px;
}
/*@media only screen and (max-width: 991px) {*/
    .portrait-title>h2,.portrait-title>h3{
        text-align: center;
    }
/*}*/
.portrait-title h3 {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(0,0,0, 0.54);
    margin: 0px 0 10px 0;
}
.portrait-title+ul>li{
    margin-left: 15px;
    margin-right: 15px;
}
.links{
    font-size: 40px;
}
.links li,.links a{
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 42px;
    width: 42px;
}
.links svg:hover{
    fill: var(--bs-link-hover-color);
}
.fa-graduation-cap{
    color: var(--bs-link-color);
    font-size: 20px;
}
.description>p,.description>h5{
    margin-bottom: 0;
    color: #313131;;
}
.description>p+p{
color: rgba(0,0,0, 0.54);
}
.description>p:last-of-type{
    margin-bottom: 1rem;
}
.thesis{
    font-style: italic;
    color: rgba(0,0,0, 0.54);
}
.thesis::before{
    content: 'Thesis: ';
}

/*header{
    display: flex;
    align-items: center;
}*/

/* Window */
content{
    scroll-behavior: smooth;
    display: block;
    overflow: auto;
    height: 100%;
    width: 100%;
}
/*input[name="window"]:checked*/
label[for="window"],input[name="window"]{
    display: none;
}
input[name="window"]:checked+.container>label[for="window"]{
    display: block;
    float: right;
    cursor: pointer;
    fill: var(--bs-link-color);
}
input[name="window"]:checked+.container>label[for="window"]:hover{
    fill: var(--bs-link-hover-color);
}
input[name="window"]:checked+.container .text-justify label{
    cursor: pointer;
}
input[name="window"]:checked+.container .text-justify label:not(:last-of-type){
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-decoration-color: currentcolor;
    text-decoration-thickness: auto;
    display: unset;
}
.learnMore{
    background-color: var(--bs-link-color);
    width: auto;
    padding: 8px;
    border-radius: 5px;
    color: white;
    margin-top: 12px;
    cursor: pointer;
    display: table;
}
.link, .link *{
    color: var(--bs-link-color) !important;
    cursor: pointer;
    text-decoration: none;
}
.link:hover,.link *:hover{
    color: var(--bs-link-hover-color) !important;
}
.learnMore:hover{
    background-color: var(--bs-link-hover-color) !important;;
}

input[name="window"]+.container{
    left: 100%;
    transition: left 0.2s;
}
input[name="window"]+.container span,
input[name="window"]:checked+.container .learnMore,
input[name="window"]:checked+.container .preview{
    display: none;
}
input[name="window"]:checked+.container{
    transition: left 0.2s;
    position: fixed;
    height: 100%;
    width: 100%;
    z-index: 9;
    top: 0;
    left: 0;
    background: rgb(226, 226, 226);
    overflow-y: auto;
    max-width: unset;
    padding: 30px;
    margin: 0;
}
input[name="window"]+.container .galery label>div,
input[name="window"]+.container .galery label>div>img{
    max-height: 268px;
    width: auto;
}
#Publications>input[name="window"]:not(:checked)+.container>div>div>* {
    flex: 0 0 auto;
    width: 100%;
}
#Publications>input[name="window"]:not(:checked)+.container{
    padding: 0;
}
input[name="window"]:checked+.container span{
    display: unset;
}
input[name="window"]:checked+.container .galery>div+div{
    display: flex;
}
.max-width-520{
    max-width: 520px;
    width: 100%;
}

/* Gallery */
.galery{
    background-color: rgba(240, 240, 240, 0.2);
    display: inline-block;
    padding: 2px;
    border-radius: 5px;
    box-shadow: 0 1px 2px 1px rgba(0,0,0,0.2);
    flex-direction: column;
}
.galery>div{
    margin-bottom: 2px;
    margin-top: 2px;
}
.galery>div+div{
    display: none;
    justify-content: center;
    margin-bottom: 0;
    border-top: 1px solid rgba(0,0,0,0.1);
}
.galery input{
    display: none;
}

.galery label{
    cursor: pointer;
    flex: 1 0 0%;
}
.galery>div:first-of-type>div{
    display: none;
}
.galery label>img{
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 100px;
}
.galery input:checked+div{
    width: 100%;
    max-height: 268px;
    display: block;
    overflow: hidden;
}
.galery input:checked+div>label,
.galery input:checked+div>label>div,
.galery input:checked+div>label>div>img{
    width: 100%;
}
.galery input:checked+div>label>div>img{
    max-width: 750px;
}
.imageMax:checked+div{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 100% !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.7);
    padding: 10%;
    z-index: 2;
}
.imageMax:checked+div,
.imageMax:checked+div>img{
    width: 100% !important;
    max-height: unset !important;
}

/* Contacts */
#Contacts a{
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}
#Contacts i{
    font-size: 38px;
    margin-right: 1rem;
}

/* Privacy */
#Privacy+.container{
    display: inline-block;
    width: auto;
    padding: 0;
    line-height: 10px;
    text-decoration: none;
}

#Privacy:checked+.container{
    width: 100%;
    padding: 30px;
    line-height: unset;
}
#noJS+.container div.text-justify,
#Privacy+.container div.text-justify{
    max-width: 400px;
}
#noJS+.container>label,
#Privacy+.container>label{
    position: absolute;
    right: 30px;
}
    

/* Usable */
at::after{
    content: '@';
}
.bg-gray{
    background-color: rgb(240, 240, 240);
}
.bg-blue{
    background-color: var(--bs-link-color);
}
.bg-blue a{
    color: white;
}
.my-0{
    margin-top: 0px;
    margin-bottom: 0px;
}
.text-justify{
    text-align: justify;
}
.text-center{
    text-align: center;
}
.project-link{
    margin-bottom: 30px;
    display: block;
    margin-top: -10px;
}
.article-links>a{
    background-color: var(--bs-link-color);
    color: white !important;
    border-radius: 5px;
    padding: 2px;
    margin-left: 1px;
    margin-right: 1px;
    cursor: pointer;
    text-decoration: none !important;
}
.article-links>a:hover{
    background-color:var(--bs-link-hover-color);
}
.height-inherit{
    height: inherit;
}
/*.height-inherit>.height-inherit{
    height: calc(100% - 100px);
}*/

/*.articleInfo>div>a:first-of-type{
    min-width: 72px;
    display: inline-block;
}*/
.articleInfo{
    display: inline-block;
    /*margin-bottom: 10px;*/
}
.articleInfo *{
    font-size: 14px;
    line-height: 16px;
    color: rgba(0,0,0,0.6);
}
.articleInfo td:first-of-type{
    padding-right: 16px;
}

.technologies>div>div{
    flex: 1 0 0%;
    padding-right: .5rem;
    padding-left: .5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    text-align: left;
}



/* Other */
#alt{
    display: none;
}
#alt+label{
    position: fixed;
    z-index: 2;
    /*display: none;*/
}
#alt:checked~content div .portrait{
    animation: morph 8s ease-in-out infinite;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}
.alt{
    display: none;
}
#alt:checked~* *.alt{
    display: unset;
}
/* DEV */
#alt:checked~.navbar .navbar-brand{
    line-height: 17px;
    height: 30px;
    flex-direction: column;
    padding: 0;
    margin-top: -10px;
    margin-left: 36px;
}
#alt:checked~.navbar .navbar-brand>span{
    font-size: 12px;
}
@keyframes morph {
    0% {
          border-radius:  60% 40% 30% 70% / 60% 30% 70% 40%;
          background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
      } 
      
      50% {
          border-radius:  30% 60% 70% 40% / 50% 60% 30% 60%;
          background: linear-gradient(45deg, var(--third) 0%, var(--secondary) 100%);
      }
    
      100% {
          border-radius:  60% 40% 30% 70% / 60% 30% 70% 40%;
          background: linear-gradient(45deg, var(--primary) 0%, var(--secondary) 100%);
      } 
  }

  .geeks{
    background-image: linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .geeks+span{
      display: block !important;
      color: rgba(0,0,0,0);
  }
