*{
  font-family: 'EB Garamond', sans-serif;
  color: #40826D;
  text-align: center;
}
body{
  height: 100%;
  margin: 0;
}
#wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
#navBar{
  max-width: 95%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 20px;
}
.navA{
  text-decoration: none;
  float: left;
  font-size: 20px;
  font-weight: bold;
  padding: 10px;
  width: auto
}
.navB{
  text-decoration: none;
  float: right;
  font-size: 20px;
  font-weight: bold;
  padding: 10px;
  width: auto;
}
.name{
  text-decoration: none;
  font-size: 50px;
  padding: 10px;
  width: auto;
}
a:hover {
  background-color: #40826D;
  color: white;
  border-radius: 20px;
  padding: 10px;
}

#contact{
  width: 100%;
  horiz-align: center;
  background-color: #40826D;
  padding: 10px;
  display: flex;
  position: sticky;
  bottom: 0;
  left: 0;
}
#contact table{
  width: 70%;
  margin: auto;
  border-collapse: collapse;
}
#contact h1 {
  color: white;
  text-align: left;
}
#contact td, #contact a{
    color: white;
    padding: 5px;
    text-decoration: none;
}
#contact a:hover{
  background-color: white;
  color: #40826d;
  border-radius: 20px;
  padding: 5px;
}

main{
  flex-grow: 1;
}

#aboutMe{
  display: flex;
  max-width: 100%;
}
#me{
  float: left;
  margin: auto 5%;
  clip-path: circle(50%);
  max-width: 40%;
  height: auto;
  aspect-ratio: 1/1;
}
#aboutMeWords{
  float: right;
  margin: 10px 5%;
  max-width: 60%;
  height: auto;
}
#aboutMeWords h2{
  margin: 0;
}

#projects{
  padding: 10px;
  position: relative;
}
#tree{
  width: 100%;
  height: auto;
  border-radius: 20px;
}
#projects h3{
  position: absolute;
  top: 20%;
  left: 20%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: xxx-large;
  text-shadow: 0 0 5px black;
  padding: 10px;
  margin: 0;
}
#projectA{
  position: absolute;
  top: 30%;
  left: 20%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: xx-large;
  text-shadow: 0 0 5px black;
  padding: 10px;
  text-decoration: none;
}
#projectA:hover{
  background-color: #40826d;
}

section{
  display: flex;
  justify-content: space-around;
  margin-bottom: 40px;
}

#skills{
  max-width: 30%;
  margin: 0 5%;
}
li{
  text-align: left;
  overflow-wrap: normal
}
#littleBox{
  max-width: 60%;
  margin: 0 2.5%;
}

table{
  width: auto;
}
h4{
  text-align: left;
  margin: 0;
}
#education{
  padding: 0 20px;
}

.label{
  text-align: right;
  padding: 0 10px;
}
.data{
  text-align: left;
}
#portfolio{
  margin-bottom: auto;
}

@media (max-width: 768px){
  #navBar{
    margin: 10px 0 20px 0;
    display: grid;
    grid-template-columns: auto auto;
    grid-row-gap: 10px;
  }
  .name{
    grid-area: 1 / 1 / span 1 / span 2;
  }
  #aboutMe{
    max-width: 100%;
    display: block;
    margin: 5px auto;
  }
  #me{
    display: block;
    clip-path: circle(50%);
    max-width: 90%;
    height: auto;
    align-self: center;
    margin: 0 5%;
  }
  #aboutMeWords{
    margin-top: 0;
    margin-bottom: 0;
    display: block;
    text-align: center;
    max-width: 90%;
    height: auto;
  }
  #projects{
    position: relative;
    display: inline-block;
    margin: 0;
  }
  #projects h3{
    position: absolute;
    top: 20%;
    left: 40%;
    transform: translate(-50%, -50%);
    font-size: x-large;
    padding: 5px;
    width: auto;
  }
  #projectA{
    position: absolute;
    top: 35%;
    left: 45%;
    font-weight: bolder;
    transform: translate(-60%, -50%);
    text-shadow: 0 0 5px black;
    font-size: large;
    padding: 5px;
    width: auto;
  }
  section, #skills, #education, #experience{
    display: block;
  }
}

@media (max-width: 1400px){
  #me{
    margin: auto auto auto 10px;
  }
}
