body {
  margin: 0;
  background-color: #333;
}

.divider {
  height: 0.3vh; /* or the height you want for your divider */
  background-color: #fff; /* color of the divider */
  width: 100%; /* or the width you prefer */
  margin-top: 19vh;
  margin-bottom: 5vh;
  margin-left: auto;
  margin-right: auto;
}

.wrapper {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  perspective: 10px;
}

header {
  right: 8px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transform-style: preserve-3d;
  z-index: -1;
}

.background {
  transform: translate3d(0, 0, -10px) scale(2);
}
.foreground {
  transform: translate3d(0, 0, -5px) scale(1.5);
}

.background,
.foreground {
  will-change: transform;
  position: absolute;
  height: 100%;
  width: 103%;
  object-fit: cover;
  z-index: -1;
}

.title {
  font-family: "Trebuchet MS";
  font-size: 8vw;
  text-align: center;
  color: white;
  text-shadow: 0 0 5px black;
}

bar {
  width: 100%;
  padding-bottom: 2rem;
  background-color: #333;
  color: #333;
}

nav {
  font-family: "Bahnschrift SemiBold";
  background: #333;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px box-sizing border-box;
}

nav div ul {
  display: flex;
  flex-direction: row;
  padding: 0; /* Add this to remove default padding */
  list-style: none; /* Add this to remove default list styling */
  white-space: nowrap; /* Prevents the text from wrapping onto the next line */
}

nav div ul li {
  display: inline-block;
  text-align: center;
}

nav div ul li a {
  font-size: 20px;
  padding: 10px 25px;
  border-radius: 50px;
  transition: 0.2s;
  margin: auto;
}

a:hover {
  color: black;
  background: white;
}
a.active {
  color: white;
  background: #424949;
}

a:link {
  text-decoration: none;
}
a:visited {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
a:active {
  text-decoration: none;
}

section {
  font-family: "Bahnschrift SemiBold";
  font-size: 3.8vw;
  text-justify: auto;
  padding: 2.5rem;
  background-color: #333;
  color: white;
}

h1 {
  padding-top: 0.5em;
  margin: 0;
  padding-bottom: 10px; /* adjust it to your needs */
}

.paragraph1 {
  margin: 0;
  padding-bottom: 0px; /* adjust it to your needs */
}

.paragraph2 {
  margin: 0;
  padding-bottom: 0px; /* adjust it to your needs */
}

.pbar {
  margin: 0;
  padding: 0px 0; /* adjust it to your needs */
  letter-spacing: -0.05em;
}

.paragraph3 {
  font-size: 0.8em;
  padding-right: 1em;
  padding-top: 0.3em;
}

.headshot {
  float: right;
  width: 6em;
  height: auto;
  border-radius: 50%;
  padding-right: 2em;
  margin-bottom: 2vh;
  margin-top: 0.2em;
}

/* Media query for screens with a max width of x pixels */
@media screen and (max-width: 700px) {
  .headshot {
    float: none;
    display: block;
    margin: 0 auto; /* Center the image */
    padding-right: 0;
  }
  h1 {
    padding-top: 0.5em;
    margin: 0;
    padding-bottom: 10px; /* adjust it to your needs */
    text-align: center;
  }
  .paragraph1 {
    margin: 0;
    padding-bottom: 0px; /* adjust it to your needs */
    text-align: center;
  }
  .paragraph2 {
    margin: 0;
    padding-bottom: 0px; /* adjust it to your needs */
    text-align: center;
  }
}

.nav-bar {
  width: 100%;
}

.nav-bar ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 1;
}
.nav-bar ul li {
  display: flex;
  color: white;
  font-size: 20px;
  padding: 10px 25px;
  border-radius: 20px;
  transition: 0.2s;
  align-items: center;
  justify-content: center;
  margin: 58px auto 0 auto;
  margin-bottom: 28px;
}

@media only screen and (min-width: 1021px) {
  .hamburger {
    display: none;
  }
}

@media only screen and (max-width: 1020px) {
  .hamburger {
    display: block;
    cursor: pointer;
  }
  .hamburger .line {
    width: 30px;
    height: 3px;
    background: white;
    margin: 6px 0;
  }
  nav {
    background: #333;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: right;
    padding: 0 32px;
  }

  .nav-bar {
    height: 0;
    position: absolute;
    top: calc(100vh + 80px);
    left: 0;
    right: 0;
    width: 100vw;
    background: #333;
    transition: 0.5s;
    overflow: hidden;
  }

  .nav-bar.active {
    /* existing styles */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 500px; /* or however tall you want it */
  }

  .nav-bar ul {
    display: flex;
    flex-direction: column; /* This will stack the list items vertically */
    list-style: none; /* Remove bullet points from the list */
    width: 100%; /* Full width of the nav-bar */
    text-align: center; /* Center the text of each list item */
  }

  .nav-bar ul li {
    margin: 20px 0; /* Add some vertical space between the list items */
    z-index: 10;
  }

  .divider {
    margin-top: 9vh;
  }
}
