@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

*{
  margin:0;
  padding:0;
  user-select: none;
}

html, body{
  font-family: Lato, Quicksand, sans-serif;
  color: #252422;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body{
  display: flex;
  flex-direction: column;
}

.section{
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
}

#nav{
  position: fixed;
  display: flex;
  flex-direction: row;
  background-color: #4cc9f0;
  align-items: center;
  width: 100%;
  box-shadow: 0 4px 4px 0 rgba(0,0,0,0.2);
  z-index: 9999;
}

#nav a{
  margin: 1em 0.5em;
  cursor: pointer;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

#nav > a:first-child{
  font-size: 1.5em;
  margin: 0.8em 2em 0.8em 1.5em;
  cursor: pointer;
}

.side-panel{
  display: flex;
  flex-direction: column;
  padding-top: 8em;
  padding-left: 4em;
  padding-right: 4em;
  align-items: center;
  width: 30%;
}

.side-panel > h1{
  width: 100%;
  text-align: center;
  font-size: 2.5em;
}

#profile-picture{
  width: 15em;
  border-radius: 50%;
}

#name{
  font-size: 2.5em;
  font-weight: bold;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

#contact{
  display: flex;
  flex-direction: row;
}

#contact a{
  display: flex;
  border-radius: 5px;
  border: 1px solid #778da9;
  color: #778da9;
  margin: 0.5em;
  padding: 0.5em 0.5em;
  font-size: 0.8em;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

#contact img{
  width: 1.2em;
  margin-right: 0.5em;
  filter: invert(58%) sepia(14%) saturate(689%) hue-rotate(174deg) brightness(92%) contrast(92%);
}

#contact i{
  margin-right: 0.5em;
}

.divider{
  margin-top: 6em;
  height: 80%;
  border-right: 1px solid #d9d9d9;
}

.main-panel{
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 6em;
  padding-left: 4em;
  padding-right: 4em;
}

#bio-header{
  margin-top: 1em;
}

#canvas{
  margin-top: 3em;
}

.bio{
  font-size: 1.2em;
  margin-top: 1em;
  line-height: 1.5em;
}

.bio a{
  text-decoration: none;
  background:
    linear-gradient(-webkit-link 0 0)
    bottom /var(--d, 0) 1px
    no-repeat;
  transition:0.5s;
}

.project-block{
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1em 2em;
  margin: 1.5em 0;
  background:
    linear-gradient(#252422 0 0) var(--d, 0) 0,
    linear-gradient(#252422 0 0) 0 var(--d, 0),
    linear-gradient(#252422 0 0) var(--p, 100%) 100%,
    linear-gradient(#252422 0 0) 100% var(--p, 100%);
  background-size: var(--d, 0) 2px, 2px var(--d, 0);
  background-repeat: no-repeat;
  transition: 0.5s, background-position 0s 0.5s;
}

.project-block-desc{
  padding-right: 2em;
  line-height: 1.5em;
  font-size: 1.2em;
  width: 80%;
  color: #252422;
}

.project-block-img{
  width: 20%;
  display: flex;
  justify-content: center;
}

.project-block-img img{
  width: 6em;
  height: 6em;
}

.project-divider{
  width: 90%;
  margin-left: 2em;
  border-bottom: 1px solid #d9d9d9;
}

.pub-entry{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 1em 0;
  background:
    linear-gradient(#252422 0 0) var(--d, 0) 0,
    linear-gradient(#252422 0 0) 0 var(--d, 0),
    linear-gradient(#252422 0 0) var(--p, 100%) 100%,
    linear-gradient(#252422 0 0) 100% var(--p, 100%);
  background-size: var(--d, 0) 2px, 2px var(--d, 0);
  background-repeat: no-repeat;
  transition: 0.5s, background-position 0s 0.5s;
  padding: 1em 2em;
  cursor: pointer;
  text-decoration: None;
}

.pub-entry-desc{
  padding-right: 2em;
  line-height: 1.5em;
  font-size: 1.2em;
  width: 80%;
  color: #252422;
}

.pub-entry-img{
  width: 20%;
  display: flex;
  justify-content: center;
}

.pub-entry-img img{
  width: 6em;
  height: 6em;
}

.title{
  color: #0046FF;
}

.me{
  text-decoration: underline;
}

@media (min-width: 771px) {
  .bio a:hover {
    --d: 100%;
  }

  #contact a:hover img{
    filter: invert(78%) sepia(72%) saturate(2018%) hue-rotate(163deg) brightness(95%) contrast(97%);
  }

  #nav a:hover{
    color: #fffcf2;
  }

  #contact a:hover{
    color: #4cc9f0;
    border-color: #4cc9f0;
  }

  .project-block:hover{
    --d: 100%;
    --p: 0%
  }

  .pub-entry:hover{
    --d: 100%;
    --p: 0%
  }
}


@media (max-width: 770px) {
  .section{
    flex-direction: column;
    height: 100vh;
    padding-top: 5em;
    padding-bottom: 3em;
    box-sizing: border-box;
  }

  .even{
    background-color: #FCF9EA;
  }

  #mobile-landing-parent{
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  #nav{
    justify-content: center;
  }

  #nav a:not(:first-child){
    display: none;
  }

  .side-panel {
    width: 100%;
    padding: 0;
    margin-bottom: 1em;
  }

  #mobile-landing{
    height: 100vh;
    justify-content: center;
    margin-bottom: 0;
  }

  #mobile-landing-second-page{
    height: auto;
    justify-content: center;
    padding-top: 5em;
    padding-bottom: 3em;
  }

  #bio-header{
    margin-top: 0;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 1em;
  }

  .main-panel {
    width: auto;
    padding-top: 0em;
    padding-left: 1.5em;
    padding-right: 1.5em;
  }

  #canvas{
    margin-top: 1em;
  }

  .divider{
    display: none;
  }

  .project-divider{
    display: none;
  }

  .project-block, .pub-entry{
    padding-left: 0;
    padding-right: 0;
  }

  .project-block-desc, .pub-entry-desc{
    padding-right: 1.5em;
    width: 70%;
  }

  .project-block-img, .pub-entry-img{
    width: 30%;
  }
}

@media (max-width: 1200px) {
  .section{
    height: auto;
  }

  .divider{
    display: none;
  }

  #canvas{
    margin-top: 2em;
  }

  .project-block-desc, .pub-entry-desc{
    width: 70%;
  }

  .project-block-img, .pub-entry-img{
    width: 30%;
  }
}
