#header {
  margin: auto auto 150px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#fittedcontent {
  width: 80%;
  display: flex;
  flex-direction: column;
  margin: -20px auto;
}
#biobox {
  margin: auto;
  text-align: left;
  font-size: 17px;
  line-height: 1.2;
  display: flex;
  flex-direction: row;
  font-family: var(--body-font);
  height: 400px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}
#bio {
  padding: 90px 20px 20px 0px;
  width: 400px;
}
#portrait {
  max-width: 270px;
  max-height: 270px;
  margin: auto 10px auto auto;
  transition: transform 0.3s ease;
}

#biobox:hover #portrait {
  transform: translateY(-20px);
  /* transform: scale(1.07); */
}
#menu {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 24px;
  width: 336px;
  position: absolute;
  right: 40px;
}
#menu a {
  color: var(--gold);
}
#menu a:hover {
  color: white;
  transition-duration: 0.3s;
}
#backhome {
  width: 250px;
  position: absolute;
  left: 40px;
}
#title {
  margin: 20px auto 0 auto;
  text-align: center;
  font-size: 40px;
  font-family: var(--title-font);
  color: var(--gold);
}
#name a {
  text-decoration: none;
  font-size: 40px;
  font-family: var(--title-font);
  color: white;
}
#social {
  position: relative;
}
#socialbox {
  width: 312px;
  height: 150px;
  display: flex;
  flex-direction: row;
  position: absolute;
  top: 0;
  margin: 100px auto auto 30px;
  justify-content: space-around;
}

.proj {
  position: relative;
  margin-bottom: 100px;
}

.projtext {
  z-index: 2;
  position: absolute;
  font-size: 24px;
  text-align: center;
  line-height: 1.2;
}

.projText h2 {
  font-size: 20px;
}

#projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 10px;
  margin: 5px 0;
}

#projects > #title {
  grid-column: 1 / -1;
}

#projects > br {
  display: none;
}

#projects > a {
  display: flex;
  justify-content: center;
}

.projectcover {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 0;
  width: 100%;
  max-width: 520px;
  margin: 10px;
  border: solid 5px var(--gold);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

@media screen and (min-width: 1025px) {
  .proj:hover .projectcover {
    transform: scale(1.05);
  }
}

.icon {
  width: 50px;
  padding: 5px;
}

#talkList {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.talk-logo {
  max-width: 196px;
  max-height: 140px;
  padding: 5px;
}

/* mobile */
@media screen and (max-width: 1024px) {
  #projects {
    grid-template-columns: 1fr;
  }
  #fittedcontent {
    width: 96%;
    display: flex;
    flex-direction: column;
    margin: -20px auto;
  }
  body {
    color: white;
  }
  #header {
    margin: auto auto 150px auto;
  }
  .projectcover {
    width: 90vw;
    max-width: 400px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  #biobox {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-top: 50px;
    height: auto;
  }
  #portrait {
    margin: auto;
  }
  #socialbox {
    width: 80%;
    height: 80px;
    justify-content: space-around;
    margin: 130px auto auto auto;
    left: 0;
    right: 0;
  }
  .projtext {
    font-size: 14px;
  }
  .projText h2 {
    font-size: 18px;
  }
  .proj {
    position: relative;
    margin-bottom: 30px;
    width: 100%;
  }

  #bio {
    padding: 5px;
    width: 100%;
    margin-bottom: -60px;
  }
  #menu {
    position: absolute;
    top: 200px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    font-size: 24px;
    width: 316px;
  }
  .talk-logo {
    max-width: 150px;
    max-height: 100px;
  }
}
