body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: #0d2831;
  color: #e8e8e8;
  box-sizing: content-box;
  font-family: "Roboto", sans-serif;
  font-size: 3vw;
  --primary-color: #ff9a3d;
  --dark-neutral: #aeaeae;
  --lightest: #e8e8e8;
  cursor: default;
  scroll-behavior: smooth;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: "Source Code Pro", monospace;
}

h1 {
  font-size: 6vw;
  margin: 1rem 0;
}

h2 {
  margin: 0;
}

header {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 2rem 0rem;
  text-align: left;
  padding: 1rem;
  width: 67%;
  margin: 0;
}

ul {
  list-style: none;
}

.App {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#nav {
  position: sticky;
  top: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 40, 49, 1) 0%,
    rgba(13, 40, 49, 0.73) 64%,
    rgba(13, 40, 49, 0.25) 100%
  );
  border-radius: 1rem;
  width: 100%;
  z-index: 1;
}

#nav_ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  justify-content: flex-end;
  padding: 0 2rem;
}

.nav_li {
  margin-right: 1rem;
  font-size: 1rem;
}

.nav-li > button {
  font-size: 1rem;
  color: #e8e8e8;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-link {
  color: #e8e8e8;
  padding: 0.5rem;
}

#about-text,
#exp,
#contact {
  border: 1px solid var(--primary-color);
  padding: 1rem;
}

#about {
  flex-direction: column-reverse;
  align-items: center;
}

#about-text > p {
  line-height: 1.4;
}
.photo-container {
  position: relative;
  margin: 0.5rem;
}

#profile-picture {
  max-width: 200px;
  margin: 1rem;
}
#photo-border {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 1.5rem;
  left: 2rem;
  border: 1px solid var(--primary-color);
  z-index: -1;
}

.about-ul {
  list-style: none;
}

.about-li:hover::before,
.exp-li:hover::before {
  border-color: transparent var(--primary-color);
}

.about-li::before,
.exp-li::before {
  content: "";
  border-color: transparent #c4c4c4;
  border-style: solid;
  border-width: 0.35em 0 0.35em 0.45em;
  display: block;
  height: 0;
  width: 0;
  left: -1em;
  top: 0.9em;
  position: relative;
}

.exp-heading {
  margin-bottom: 0;
  margin-left: 1.25rem;
}

.exp-ul {
  margin-top: 0rem;
  margin-left: 1.2rem;
}

.project-img {
  width: 200px;
}

.project-card-text p .primary-button {
  width: 80%;
  margin: 1rem;
  padding: 0;
  color: #e8e8e8;
}

.project-card-text .primary-button a {
  color: #e8e8e8;
}

.project-img {
  width: 70%;
}

#contact p a {
  display: inline;
  outline: none;
  padding: 2px 1px 0;
  color: #e8e8e8;
}

#contact p {
  line-height: 140%;
  margin-left: 1.2rem;
}

#contact p a:hover {
  background: rgba(255, 154, 61, 0.53);
  color: rgba(13, 40, 49, 0.73);
  transition: all 0.5s ease;
}

.primary-button {
  transition: all 0.5s ease;
  background: none;
  border: 1px solid var(--primary-color);
  padding: 0.5rem;
  color: #e8e8e8;
  text-decoration: none;
  border-radius: 0.6rem;
}
.primary-button a {
  color: inherit;
  text-decoration: none;
}

.primary-button:hover {
  background: var(--dark-neutral);
  color: #111;
  border: 1px solid var(--dark-neutral);
}

#intro {
  text-align: left;
  margin-left: 1rem;
}

#intro p:first-child {
  color: var(--primary-color);
  font-family: "Source Code Pro", monospace;
}

#link-twig {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 0.5rem;
}

#twig {
  display: none;
}

.fab {
  font-size: 1.5rem;
  color: var(--dark-neutral);
}

#link-twig > a {
  text-decoration: none;
  color: black;
}

.collapse-button {
  display: block;
  text-align: left;
  background: none;
  border: none;
  color: var(--lightest);
  font-size: 1rem;
}

.collapse-button:hover {
  transition: all 0.5s ease;
  background: var(--dark-neutral);
  color: #111;
}

.collapse-content.collapsed {
  display: none;
}

.collapsed-content.expanded {
  display: block;
  width: 100%;
}

/* --------------------Non-mobile------------------------------*/

@media screen and (min-width: 601px) {
  html {
    font-size: 100%;
  }

  section {
    margin: 2rem 0rem;
  }

  #intro {
    padding-right: 30%;
    margin-left: 5%;
  }

  #about {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 80%;
  }

  #about-text {
    max-width: 60%;
  }

  #about-text p {
    line-height: 150%;
  }

  #photo-border {
    width: 85%;
    left: 2rem;
  }

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

  .exp-container {
    display: flex;
    flex-direction: row;
  }
  .project-card {
    display: flex;
    flex-direction: row;
    margin: 1rem 1rem;
  }
  .project-card-text {
    justify-content: space-around;
  }

  #link-twig {
    position: fixed;
    left: 1rem;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 30%;
    width: auto;
    justify-content: space-between;
    margin-bottom: 0;
  }

  #twig {
    display: block;
    border-left: 3px solid var(--dark-neutral);
    height: 7rem;
  }
}
