header {
  background-color: lightsalmon;
  width: 100%;
  border-bottom: 5px groove chocolate;
  margin-bottom: 1em;
}

body {
  background-image: url("../img/Background_3.svg");
  background-repeat: repeat;
  background-size: 128px;
}

.profile {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
}
.bio-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1 1;
  background-color: bisque;
}
.portrait {
  background-image: url("../img/profile_cropped.png");
  flex: 10 1 30%;
  height: 90%;
  background-size: 250px;
  background-position: 30% 20px;
  border-radius: 100%;
  background-repeat: no-repeat;
  margin: 20px;
  background-color: lightsalmon;
}
.bio-text {
  flex: 1 1 70%;
}
.bio {
  font-family: DPComic Regular, 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 1.7rem;
  color: lab(0.2444 0 328.2);
}
.socials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  height: 100%;
  box-sizing: border-box;
}
.social {
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 0;
}
.github-logo {
  border-radius: 100%;
  transition: box-shadow 0.3s, background-color 0.3s;
  box-shadow: none;
}
.linkedin-logo {
  border-radius: 4px;
  transition: box-shadow 0.3s, background-color 0.3s;
  box-shadow: none;
}
.codeberg-logo {
  border-radius: 100%;
  transition: box-shadow 0.3s, background-color 0.3s;
  box-shadow: none;
}
.linkedin-logo:hover,
.codeberg-logo:hover,
.github-logo:hover {
  background-color: white;
  box-shadow: 0 0 10px 10px white;
}
.mail-link {
  background-color: transparent;
  background-image: url("../anim/MailButton-Sheet.svg");
  background-size: 600px 60px;
  border: none;

  animation-name: close-mail;
  animation-duration: 0.3s;
  animation-timing-function: steps(9);
  animation-iteration-count: 1;
  animation-direction: reverse;
}
.mail-link:hover {
  animation-name: open-mail;
  animation-duration: 0.3s;
  animation-timing-function: steps(9);
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: forwards;
}

@keyframes open-mail {
  from {background-position: 0 0;}
  to   {background-position: -540px 0;}
}
@keyframes close-mail {
  from {background-position: 0 0;}
  to   {background-position: -540px 0;}
}
.resume-link {
  background-color: transparent;
  background-image: url("../anim/ResumeButton-Sheet.svg");
  background-size: 420px 60px;
  border: none;

  animation-name: fold-paper;
  animation-duration: 0.3s;
  animation-timing-function: steps(6);
  animation-delay: 0s;
  animation-iteration-count: 1;
  animation-direction: reverse;
}
.resume-link:hover {
  animation-name: unfold-paper;
  animation-duration: 0.3s;
  animation-timing-function: steps(6);
  animation-delay: 0s;
  animation-iteration-count: 1;
  animation-direction: normal;
  animation-fill-mode: forwards;
}
@keyframes fold-paper {
  from {background-position: 0 0;}
  to   {background-position: -360px 0;}
}
@keyframes unfold-paper {
  from {background-position: 0 0;}
  to   {background-position: -360px 0;}
}



.tag {
  margin-top: 20px;
  height: 32px;
  position: relative;
  width: max-content;
  left: 15%;
  background-image: url("../img/Tag-Center.svg");
}
.tag::before {
  position: absolute;
  top: 0;
  left: -10px;
  content: url("../img/Tag-Left.svg");
}
.tag::after {
  position: absolute;
  top: 0;
  right: -10px;
  content: url("../img/Tag-Right.svg");
}
.tag > h2 {
  font-family: Medodica Regular, Calibri, 'Trebuchet MS', sans-serif;
  font-size: 36px;
  font-weight: bolder;
  color: black;
  position: relative;
  text-align: left;
  margin: 0;
  padding: 0 10px;
  text-wrap: nowrap;
  transform: skew(-15deg) translate(-9px, -6px);
  z-index: 1;
}

.bookcase {
  display: flex;
  max-width: 100%;
  flex-flow: row wrap;
}
.shelf {
  background-image: url("../img/Bookcase-Center.svg");
  height: 210px;
  display: flex;
  flex: 1 1 auto;
}
.shelf::before {
  position: relative;
  left: 0;
  content: url("../img/Bookcase-Edge.svg");
}
.shelf::after {
  position: relative;
  content: url("../img/Bookcase-Edge.svg");
}
.shelf-padding {
  padding: 0 1.5em;
  width: inherit;
  margin: auto;
}

.tooltip {
  position: relative;
  cursor: pointer;
  padding: 0;
  width: inherit;
  margin: auto;
}
.tooltip-text {
  width: 200px;
  background-color: antiquewhite;
  color: black;
  font-family: Calibri, 'Trebuchet MS', sans-serif;
  text-align: center;
  border-radius: 6px;
  border: 4px solid navajowhite;
  padding: 10px 10px;
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 105%;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  transform: translateX(-50%);
}
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: navajowhite transparent transparent transparent;
}
.tooltip:hover .tooltip-text {
  opacity: 1;
}

.project-link {
  /* This is for the tab selection to cover the entire thumbnail. */
  display: inline-block;
  height: max-content;
}
.project-thumbnail {
  margin: 0;
  max-height: 175px;
  max-width: 100%;
  border: 3px groove silver;
  transition: transform 0.5s;
  box-shadow: 0 3px 5px black;
  background-color: black;
}
.project-thumbnail:hover {
  transform: scale(1.05);
}

@media screen and (max-width: 800px) {
  .profile {
    flex-direction: column;
  }
  .portrait {
    height: 300px;
  }
  .bio {
    font-size: 24px;
  }
  .socials {
    flex-wrap: wrap;
    flex-direction: row;
  }


  .tag {
    height: 20px;
    background-size: 6px;
  }
  .tag::before {
    height: 1px;
    left: -7px;
    transform: scaleX(62%) scaleY(62%);
  }
  .tag::after {
    height: 1px;
    transform: scaleX(62%) scaleY(62%);
  }
  .tag > h2 {
    font-size: 24px;
    transform: skew(-15deg) translate(-9px, -2px);
  }

  .shelf {
    height: 105px;
    background-size: auto 105px;
  }
  .shelf::before {
    height: 50%;
    transform: translateY(-26%) scaleY(50%);
  }
  .shelf::after {
    height: 50%;
    transform: translateY(-26%) scaleY(50%);
  }
  .shelf-padding {
    padding: 0 1em;
  }

  .project-thumbnail {
    max-height: 75px
  }
}
