#main {
  display: flex;
  flex-direction: column;
}

#downloadResume {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#downloadResume a {
  margin-top: 1em;
  border-radius: 4px;
  background-color: rgb(250, 1, 1);
  width: fit-content;
  padding: 7px 14px;
  cursor: pointer;
  text-decoration: none;
}

#downloadResume > a:hover {
  background-color: #ffffff;
  color: #000000;
}

#section1,
#section2,
#section3,
#section4,
#section5 {
  width: 73%;
  padding: 0 2em;
  margin: auto;
  font-size: 1.2em;
}

#section1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#section1 #name {
  font-family: 'Allura';
  font-size: 2.7em;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 0;
}

#title {
  font-size: 2.7em;
  margin: 0;
  background: linear-gradient(90deg, red, white, red);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-weight: bold;
}

#section1 h4 {
  border-top: 2px solid red;
  border-bottom: 2px solid red;
  padding: 1em 0;
  text-align: center;
}

#section1 .summary {
  text-align: center;
  margin: 0 0 1.5em 0;
}

#section2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-titles {
  font-size: 1.4em;
  letter-spacing: 1px;
  color: red;
  margin: 1em 0 0 0;
  font-weight: 900;
  text-align: center;
}

.areas-of-expertise {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
}

.areas-of-expertise > ul {
  list-style: square;
}

.areas-of-expertise > ul > li {
  margin: 0.5em 0;
}

#section3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#skills {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 1em;
}

#skills > div > h3 {
  margin: 0 0 0.5em 0;
}

#section4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.jobs-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 1em;
}

.job-description {
  width: 100%;
}

.ul-container ul,
#section5 ul {
  margin-left: 2em;
  list-style: square;
}

.jobs h4 {
  margin-bottom: 4px;
  text-align: center;
}

.job-title {
  margin: auto;
  text-align: center;
  border-bottom: 2px solid red;
  padding-bottom: 5px;
  width: fit-content;
}

.job-separator {
  width: 100%;
  margin: 1em 0;
}

.list-underline {
  border-bottom: 2px solid red;
  padding-bottom: 5px;
  width: fit-content;
  padding: 2px;
}

#section5 {
  width: 80%;
  margin: auto;
}

.bachelor {
  display: flex;
}

#bachelor-title {
  margin-right: 4px;
  border-bottom: 2px solid red;
  padding-bottom: 3px;
}

@media only screen and (max-width: 1055px) {
  #main {
    height: fit-content !important;
    margin-bottom: 2em;
  }

  #downloadResume {
    font-size: small;
  }

  .areas-of-expertise > ul > li,
  .ul-container ul li,
  #section5 ul li {
    font-size: 1em;
  }

  .bachelor {
    padding-bottom: 0;
  }

  #section1,
  #section2,
  #section3,
  #section4,
  #section5 {
    width: 90%;
  }
}

@media only screen and (max-width: 940px) {
  .bachelor {
    flex-direction: column;
  }

  #bachelor-title {
    width: fit-content;
    margin-bottom: 0;
  }

  .bachelor p {
    margin: 4px 0 0 0;
  }
}

@media only screen and (max-width: 780px) {
  .areas-of-expertise {
    flex-direction: column;
  }

  #section1 #title {
    font-size: 1.8em;
  }

  #skills > div {
    width: 50%;
  }

  #section1,
  #section2,
  #section3,
  #section4,
  #section5 {
    width: 78%;
  }

  .right-side-skill {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .skill-bottom {
    margin-top: 2em;
  }
}

@media only screen and (max-width: 447px) {
  #section1 #name {
    font-size: 1.3em;
  }

  #section1 #title {
    font-size: 1.4em;
  }

  .jobs h4 {
    margin-top: 0;
  }

  .section-titles {
    font-size: 1.2em;
  }

  .ul-container ul,
  #section5 ul {
    margin-left: 0;
  }

  .areas-of-expertise > ul > li,
  .ul-container ul li,
  #section5 ul li {
    font-size: 0.9em;
  }
}
