/*BOOTSTRAP OVERWRITES*/

html, body {
  font-family: 'Source Sans Pro', sans-serif;
}

p {
  color: #424348;
  line-height: 2.1em;
}
p.footertext {
  color: #CDCDCD;
  margin-left: 30px;
}
/*UTILITIES*/

.bottom__line {
  margin-bottom: 0.25em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid #222328;
}

.top__line {
  margin-top: 2em;
  padding-top: 0.5em;
  border-top: 4px solid #222328;
}

.caps {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.serif {
  font-family: 'Playfair Display', serif;
}
/* center pics and caption for them */

.centerpic {
      margin: 0 auto;
}

.captiondiv {
  text-align: center;
  font-size: 13px;
}

/*NAV*/

nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: baseline;
  padding: 1.125em 2em;
  z-index: 1;
  justify-content: flex-end;
  -webkit-transition: background-color 0.2s, padding 0.2s;
  transition: background-color 0.2s, padding 0.2s;
  background: #F4F3F3;

}

.nav--scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.125em 2em;
}

nav h4 {
  font-family: 'Playfair Display', serif;
  color: #424348;

}

nav a {
  text-decoration: none;
  color: #B9B9B9;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  list-style-type: none;
  font-weight: bold;
  padding: 0 0.75em;
  font-size: 14px;
  z-index: 2;
  -webkit-transition: color 0.25s;
  transition: color 0.25s;
}

nav .active {
  color: #424348;
}

nav a:hover {
  color: #424348;
  text-decoration: none;
}

nav a:first-child {
  flex-grow: 1;
}

nav a:focus {
  text-decoration: none;
  color: #424348;
}

/*HEADER*/

header {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 2em);
  width: auto;
  background: #F4F3F3;
  margin: 0em 0em 0em 0em;
  background-image: url('../img/streambg1.jpg');
  /*background-size: 1020px 731px;
  background-size: contain;*/
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
}

.cover {
  text-align: center;
  padding: 1em;
  margin: auto;
  background: #F4F3F3;
  border-radius: 10px;


}

.stroke {
  height: 3px;
  background-color: #424348;
  margin-top: 1.5em;

}

header h1 {
  margin: 0;
  position: relative;
  font-size: 6em;
  font-family: 'Playfair Display', serif;
}

header h5 {
  font-family: 'Playfair Display', serif;
  line-height: 1.5em;
  color: #898b93;
}

/*ABOUT*/

#about {
  padding-top: 6em;
}

/*WORK*/

.project__card {
  display: flex;
  flex-flow: row wrap;
  background-color: #222328;
  text-decoration: none;
  margin: 1em 0;
  align-items: center;
}

.project__card:hover {
  text-decoration: none;
}

.project__card--text {
  position: relative;
  padding: 0em 1em;
  flex: 1 50%;
  color: #f1f2f3;
}

.project__card--text h3 {
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0.5em;
  line-height: 1em;
}

.project__card--text p {
  color: #d1d2d3;
  line-height: 1.5em;
}

.project__card--photo {
  flex: 1 50%;
  padding: 1em;
}

.project__card--photo img {
  width: 100%;
}

.imgcenter {
  border: 2px solid black; 
  margin: auto;
}

/*CONTACT*/

.contact a {
  color: #222328;
  text-decoration: none;
}

.contact h3 {
  padding: 0.5em;
  -webkit-margin-before: 0em;
  -webkit-margin-after: 0em;
  border-bottom: 1px solid #222328;
  -webkit-transition: background-color 0.25s, color 0.25s;
  transition: background-color 0.25s, color 0.25s;
}

.contact h3:hover {
  background-color: #222328;
  color: #F1F2F3;
}

/*FOOTER*/

footer {
  background-color: #222328;
  color: #c1c2c3;
  padding: 3em 0;
  margin-top: 4em;
}

footer h6 {
  line-height: 1.5em;
  max-width: 18em;
}

/*ANIMATIONS*/

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lengthen {
  from {
    max-width: 0%;
    margin-left: 50%;
  }

  to {
    max-width: 100%;
    margin-left: 0%;
  }
}

/*MEDIA QUERIES*/

@media (max-width: 576px) {
  header {
    background-attachment:initial;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  } 

  header h1 {
    font-size: 4em;
  }

  header h5 {
    font-size: 1.25em;
  }

  .project__card--text {
    flex: 1 100%;
  }

  .project__card--photo {
    flex: 1 100%;
  }

}

@media (max-width: 340px) {
  header {
    background-attachment:initial;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  } 

  nav {
    padding: 0.75em 2em;
  }

  nav a {
    letter-spacing: 0.08em;
    padding: 0 0.5em;
    font-size: 12px;
  }

  header h1 {
    font-size: 3em;
  }

  header h5 {
    font-size: 1em;
  }

  p {
    font-size: 0.9em;
    line-height: 1.8em;
  }

  #about {
    padding-top: 3.5em;
  }
}
