@import url("https://fonts.googleapis.com/css2?family=Poppins&family=Raleway:wght@800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&display=swap');

body {
  font-size: var(--text-base);
  font-family: var(--theme-content-font);
  background-color: var(--backgroundColor);
  box-sizing: border-box;
  padding: 1%;
  display: flex;
          flex-direction: column;
  min-height: 100vh;
}

#menuIcon {
  font-size: var(--text-5xl);
  position: absolute;
  visibility: hidden;
}

header {
  animation: fadeIn ease 1s;
  animation-fill-mode: both;
  display: flex;
          align-items: center;
      justify-content: space-around;
  padding: 1%;
  border: 0.3rem solid var(--borderColor);
          box-shadow: 0.5rem 0.5rem var(--shadowColor);
}

header #brand {
  border-radius: 60%;
  color: var(--borderColor);
}

header nav {
  width: 70%;
}

header nav ul {
  display: flex;
      justify-content: space-around;
  list-style: none;
}

header nav ul li :hover {
  border-bottom: 0.2rem solid var(--shadowColor);
  transition: border ease-in-out .1s;
}

header nav ul li a {
  font-family: var(--theme-content-font);
  text-decoration: none;
  color: var(--shadowColor);
}

section {
  margin: 1%;
}

section #hero {
  box-sizing: border-box;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  height: 100%;
}

section #myImage {
  object-fit: cover;
  border: 0.3rem solid var(--borderColor);
  width: 100%;
  height: 22rem;
  object-position: center;
}

section #hero p {
  font-family: var(--theme-content-font);
  font-size: var(--text-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  text-align: justify;
}

section #info {
  font-size: var(--text-base);
}

section #jobTitle {
  color: var(--shadowColor);
}

section #hero #signature{
  text-align: center;
  fill: var(--backgroundColor);
  width: 28rem;
  height: auto;
  max-width: 100%;
  display: block;
}

section #hero #signature path{
  stroke: var(--shadowColor);
}

section #hero #signature:hover path{
  stroke-dasharray: 527;
  stroke-dashoffset: 527;
  animation: sign 2.5s ease;
  animation-fill-mode: forwards;
}

section #myImage {
  animation: fadeIn ease 2s;
  animation-fill-mode: forwards;
}

#brand {
  font-family: var(--theme-heading-font);
  color: var(--borderColor);
}



@keyframes sign{
  to{
    stroke-dashoffset: 0;
  }
}

@media (max-width: 720px) {

  body:not(.sub-page){
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0;
  }

  section {
    padding-top: 2.5rem;
  }
  
  section #hero #signature{
    fill: var(--backgroundColor);
    width: min(26rem, 80vw);
    height: auto;
  }
  
  section #hero{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  #hero p{
    width: 80vw;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
  }
  
  #hero p span{
    text-align: justify;
    font-size: var(--text-sm);
    text-align: center;
  }
  
  #myImage{
    height: 14rem;
  }

  #menuIcon {
    visibility: visible;
    font-size: var(--text-4xl);
    z-index: 30;
  }

  footer {
    margin-top: auto;
    flex-shrink: 0;
  }

  /* Touch-tap replacements for :hover: the signature draw animation
     replays on each tap via shared.js. */
  header nav ul li :hover {
    border-bottom: none;
  }

  section #hero #signature:hover path {
    stroke-dasharray: none;
    stroke-dashoffset: none;
    animation: none;
  }

  section #hero #signature.tapped path {
    stroke-dasharray: 527;
    stroke-dashoffset: 527;
    animation: sign 2.5s ease;
    animation-fill-mode: forwards;
  }
}

@media (max-width: 720px) and (max-height: 620px) {
  #info {
    font-size: var(--text-xs);
  }
  section #hero #signature {
    width: min(18rem, 60vw);
    height: auto;
  }
}

@media (min-width: 721px) and (max-width: 1280px) and (max-height: 800px) {
  section #hero #signature {
    width: 21rem;
    height: auto;
  }
}
