/*
 *
 * Rules for adjusting the menu display
 *
 */

.header__menu {
  display: none;
}

@media screen and (max-width: 549px) {
  .nav {
    z-index: 10;
    background-color: #ffffff;
    position: fixed;
    right: 0;
    top: 80px;
    /* This transform moves the drawer off canvas. */
    -webkit-transform: translate(300%, 0);
    transform: translate(300%, 0);
    /* Optionally, we animate the drawer. */
    transition: transform 0.3s ease;
  }
  .nav.open {
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
  }
  .nav__item, .current__item {
    display: list-item;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    text-align: left;
  }
  .header__menu {
    display: inline-block;
    position: absolute;
    right: 0;
  }
  .header__menu svg {
    width: 32px;
    fill: #0e0e0e;
    padding-right: 12px;
  }
}

/*
 *
 * Rules for adjusting the header
 *
 */

@media screen and (min-width: 400px) and (max-width: 499px) {
  .nav__item, .current__item {
    line-height: 16px;
    padding: 14px;
    font-size: 14px;
  }
}

@media screen and (min-width: 500px) and (max-width: 549px) {
  .nav__item, .current__item {
    line-height: 18px;
    padding: 16px;
    font-size: 16px;
  }
}

@media screen and (min-width: 550px) and (max-width: 699px) {
  .nav__item, .current__item {
    line-height: 16px;
    padding: 8px;
    font-size: 10px;
    padding-top: 60px;
  }
}

@media screen and (min-width: 700px) and (max-width: 899px) {
  .header__logo {
    height: 100px;
  }
  .nav__item, .current__item {
    line-height: 18px;
    padding: 10px;
    font-size: 14px;
    padding-top: 80px;
  }
  .page__title {
    padding-top: 170px;
  }
}

@media screen and (min-width: 900px) and (max-width: 1199px) {
  .header__logo {
    height: 120px;
  }
  .nav__item, .current__item {
    line-height: 20px;
    padding: 12px;
    font-size: 16px;
    padding-top: 100px;
  }
  .page__title {
    padding-top: 190px;
  }
}

@media screen and (min-width: 1200px) {
  .header__logo {
    height: 120px;
  }
  .nav__item, .current__item {
    line-height: 22px;
    padding: 14px;
    font-size: 18px;
    padding-top: 100px;
  }
  .page__title {
    padding-top: 190px;
  }
}


/*
 *
 * Rules for adjusting the main photo and blurb
 *
 */

@media screen and (min-width: 400px) and (max-width: 449px) {
  .main__blurb {
    font-size: 14px;
  }
}

@media screen and (min-width: 450px) and (max-width: 499px) {
  .main__blurb {
    font-size: 16px;
  }
}

@media screen and (min-width: 500px) and (max-width: 549px) {
  .main__blurb {
    font-size: 18px;
  }
}

@media screen and (min-width: 550px) and (max-width: 599px) {
  .main__blurb {
    font-size: 20px;
  }
}

@media screen and (min-width: 600px) and (max-width: 649px) {
  .main__blurb {
    font-size: 22px;
  }
}

@media screen and (min-width: 650px) and (max-width: 699px) {
  .main__blurb {
    font-size: 24px;
  }
}

@media screen and (min-width: 700px) and (max-width: 749px) {
  .main__blurb {
    font-size: 26px;
  }
}

@media screen and (min-width: 750px) and (max-width: 799px) {
  .main__blurb {
    font-size: 28px;
  }
}

@media screen and (min-width: 800px) and (max-width: 849px) {
  .main__blurb {
    font-size: 30px;
  }
}

@media screen and (min-width: 850px) and (max-width: 899px) {
  .main__blurb {
    font-size: 32px;
  }
}

@media screen and (min-width: 900px) and (max-width: 949px) {
  .main__blurb {
    font-size: 34px;
  }
}

@media screen and (min-width: 950px) and (max-width: 999px) {
  .main__blurb {
    font-size: 36px;
  }
}

@media screen and (min-width: 1000px) and (max-width: 1049px) {
  .main__blurb {
    font-size: 38px;
  }
}

@media screen and (min-width: 1050px) and (max-width: 1099px) {
  .main__blurb {
    font-size: 40px;
  }
}

@media screen and (min-width: 1100px) and (max-width: 1149px) {
  .main__blurb {
    font-size: 42px;
  }
}

@media screen and (min-width: 1150px) and (max-width: 1199px) {
  .main__blurb {
    font-size: 44px;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1249px) {
  .main__blurb {
    font-size: 46px;
  }
}

@media screen and (min-width: 1250px) and (max-width: 1299px) {
  .main__blurb {
    font-size: 48px;
  }
}

@media screen and (min-width: 1300px) and (max-width: 1349px) {
  .main__blurb {
    font-size: 50px;
  }
}

@media screen and (min-width: 1350px) and (max-width: 1399px) {
  .main__blurb {
    font-size: 52px;
  }
}

@media screen and (min-width: 1400px) and (max-width: 1449px) {
  .main__blurb {
    font-size: 54px;
  }
}

@media screen and (min-width: 1450px) and (max-width: 1499px) {
  .main__blurb {
    font-size: 56px;
  }
}

@media screen and (min-width: 1500px) {
  .main__blurb {
    font-size: 58px;
  }
}


/*
 *
 * Rules for adjusting the featured work section
 *
 */

/* Switch from single column to single row when the screen is wide enough */
@media screen and (max-width: 800px) {
  .featured__work2, .featured__work3, .featured__work4 {
    width: 100%;
  }
}

/* Adjust font sizes */
@media screen and (min-width: 400px) and (max-width: 899px) {
  .project__label {
    font-size: 22px;
  }

  .project__description {
    font-size: 22px;
  }

  .about__page h2 {
    font-size: 22px;
  }

  .page__title, .page__header {
    font-size: 24px;
  }
}

@media screen and (min-width: 900px) and (max-width: 1199px) {
  .project__label {
    font-size: 24px;
  }

  .project__description {
    font-size: 24px;
  }

  .about__page h2 {
    font-size: 24px;
  }

  .page__title, .page__header {
    font-size: 26px;
  }
}

@media screen and (min-width: 1200px) and (max-width: 1399px) {
  .project__label {
    font-size: 26px;
  }

  .project__description {
    font-size: 26px;
  }

  .about__page h2 {
    font-size: 26px;
  }

  .page__title, .page__header {
    font-size: 28px;
  }
}

@media screen and (min-width: 1400px) {
  .project__label {
    font-size: 28px;
  }

  .project__description {
    font-size: 28px;
  }

  .about__page h2 {
    font-size: 28px;
  }

  .page__title, .page__header {
    font-size: 30px;
  }
}

/*
 *
 * Rules for adjusting the footer
 *
 */

/* Stack the social media logos when the screen is too narrow */
@media screen and (min-width: 700px) {
  .footer__social__logos {
    flex-direction: row;
  }
}

@media screen and (min-width: 400px) and (max-width: 479px) {
  .footer {
    font-size: 16px;
  }
  .footer__contact__info h2 {
    font-size: 14px;
  }
  .footer__copyright p {
    font-size: 12px;
  }
}

@media screen and (min-width: 480px) and (max-width: 599px) {
  .footer {
    font-size: 18px;
  }
  .footer__contact__info h2 {
    font-size: 16px;
  }
  .footer__copyright p {
    font-size: 14px;
  }
}

@media screen and (min-width: 600px) and (max-width: 849px) {
  .footer {
    font-size: 20px;
  }
  .footer__contact__info h2 {
    font-size: 18px;
  }
  .footer__copyright p {
    font-size: 16px;
  }
}

@media screen and (min-width: 850px) {
  .footer {
    font-size: 22px;
  }
  .footer__contact__info h2 {
    font-size: 20px;
  }
  .footer__copyright p {
    font-size: 18px;
  }
}


/*
 *
 * Rules for adjusting the contact form
 *
 */

@media screen and (max-width: 650px) {
  .contact__left__column, .contact__right__column {
    width: 100%;
  }
}
