/* used to remove flash of unstyled content for page load animation */
/* https://gsap.com/resources/fouc/ */
body {
  visibility: hidden;
}

/* ---------- Main content ---------- */
.main-content {
  background-color: #318840;
}

/* ----- Project card ----- */
.project-card {
  margin-bottom: 80px;
}

.project-card:last-child {
  margin-bottom: 0;
}

.image-container {
  margin-bottom: 28px;
}

.section-image {
  width: 100%;
}

/* Project description */
.project-description {
  margin-bottom: 28px;
}

/* Tags */
.project-tags {
  align-items: center;
  display: flex;
  justify-content: start;
  margin-bottom: 32px;
}

.project-tags li {
  border-right: 2px solid #fff;
  padding-right: 30px;
}

.project-tags li:nth-child(2) {
  padding-left: 30px;
}

.project-tags li:last-child {
  border-right: none;
  padding-left: 30px;
  padding-right: 0;
}

.project-tags p {
  margin-bottom: 0;
  text-transform: uppercase;
}

/* Buttons */
.project-link-button {
  padding: 15.25px 24px;
}

/* ---------- Bakery board ---------- */
#ux-design .project-card:nth-child(3) .image-container {
  align-items: center;
  display: flex;
  justify-content: center;
}

[alt="Bakery board app homescreen"] {
  width: 50%
}

/* ---------- media queries ---------- */
@media screen and (max-width: 1354px) {
  /* ---------- Project buttons ---------- */
  .button-container {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .project-link-button {
    width: 48%;
  }
}

@media screen and (max-width: 1200px) {
  /* ---------- Project buttons ---------- */
  .button-container {
    flex-direction: row;
  }
}

@media screen and (max-width: 1114px) {
  .button-container {
    flex-direction: column;
  }
}

@media screen and (max-width: 992px) {
  h1 {
    font-size: 56px;
  }

  /* ---------- Project cards ---------- */
  .button-container {
    flex-direction: row;
  }

  .project-link-button {
    width: 32%;
  }

  /* ----- Section images ----- */
  .image-container {
    margin: 0 auto;
    margin-bottom: 28px;
    width: 80%;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 48px;
    padding-right: 20px;
  }
  
  /* ---------- Mobile nav menu ---------- */
  .mobile-nav-menu {
    overflow: scroll;
    padding-top: 0;
  }

  .main-content {
    padding-top: 176px;
  }

  .main-content .main-content-section:first-child {
    padding-top: 44px;
  }

  /* ---------- Project cards ---------- */
  /* ----- Section images ----- */
  .image-container {
    width: 100%;
  }

  /* ----- Bakery board ----- */
  #ux-design .project-card:nth-child(3) .image-container {
    width: 80%;
  }
}

@media screen and (max-width: 608px) {
  /* ---------- Project buttons ---------- */
  .button-container {
    flex-direction: column;
  }

  .project-link-button {
    width: 100%;
  }
}

@media screen and (max-width: 576px) {
  .main-content {
    padding-top: 161px;
  }

  /* ---------- Project card ---------- */
  .button-container {
    align-items: center;
  }

  .project-tags {
    justify-content: center;
  }

  .project-link-button {
    width: 50%;
  }

  /* ----- Bakery board ----- */
  #ux-design .project-card:nth-child(3) .image-container {
    width: 100%;
  }
}

@media screen and (max-width: 420px) {
  .project-tags li {
    padding-right: 4%;
  }
  
  .project-tags li:nth-child(2), .project-tags li:last-child {
    padding-left: 4%;
  }

  .project-link-button {
    width: 80%;
  }
}

@media screen and (max-width: 405px) {
  h1 {
    font-size: 32px;
  }

  .table-of-contents {
    flex-direction: column;
    gap: 12px;
  }
}

@media screen and (max-width: 350px) {
  .project-tags {
    flex-direction: column;
    gap: 8px;
  }

  .project-tags li {
    border-right: none;
    padding-right: 0;
  }
  
  .project-tags li:nth-child(2), .project-tags li:last-child {
    padding-left: 0;
  }
}
