/*

Theme Name: Harrison Dempsey
Description: Custom theme built for hdempsey.io. Using Wordpress because it handles a bunch of stuff I'd prefer not to have to manage manually.

*/


/* -----------Reset----------- */
html, body {
  margin: 0px;
  padding: 0px;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* -----------Main----------- */

body {
  background: url('img/dots.png');
  background-position-x: 18px;
  background-position-y: 18px;
  color: #131313;
}

.page, .intro, .recent-work, .other, .contact {
  max-width: 900px;
  width: 80%;
  margin: auto;
}

h1, h2, h3, h4, h5, h6, a, p {
  font-family: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -moz-font-feature-settings: "liga" on;
}

h2 {
  font-size: 20px;
  border-bottom: solid #12CDE1 5px;
  margin: 0;
}

h3 {
  font-size: 20px;
  margin: 0;
}

a {
  text-decoration: none;
}

.intro-blurb {
  width: 180px;
}

.recent-blurb {
  width: 118px;
}

.prev-blurb {
  width: 215px;
}

.contact-blurb {
  width: 125px;
}

.next-blurb {
  width: 78px;
}

header {
  height: 92px;
  background: white;
}

.navigation {
  display: flex;
  width: 80%;
  max-width: 900px;
  margin: auto;
}

.navigation h1 {
  flex: 1;
  color: #303030;
  margin-top: 25px;
  margin-bottom: 0;
  font-size: 26px;
}

.nav li {
    display: inline-flex;
    margin: 18px 10px;
    padding: 0 5px;
    font-weight: 600;
}

.nav li.active {
    border-bottom: solid #12CDE1 5px;
    padding-bottom: 29px;
}

.nav li.active a {
  color: #12CDE1;
}

.navigation a, .nav li a {
  color: #303030;
}

.intro {
    margin-top: 80px;
    margin-bottom: 80px;
}

.intro p {
    font-size: 18px;
}

.card.large-card:first-child {
    margin-top: 25px;
}

.card.large-card {
  margin: 50px 0;
  border-radius: 6pt;
}

.card {
  background: #fff;
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  justify-content: space-around;
  box-shadow: 0 20px 20px rgba(0,0,0,.065);
  -webkit-transition: all 220ms cubic-bezier(.02, .01, .47, 1);
  -moz-transition: all 220ms cubic-bezier(.02, .01, .47, 1);
  transition: all 220ms cubic-bezier(.02, .01, .47, 1);
  z-index: 1;
  white-space: normal;
  color: #3c3c3c;
  border-radius: 6px;
  list-style: none;
}

.card:hover {
  box-shadow: 0 30px 30px rgba(0,0,0,.12);
  transform: translate(0,-5px);
  transition-delay: 0s !important;
}

.card-body {
  padding: 20px;
  -webkit-flex: 2;
          flex: 2;
  border-top-right-radius: 6pt;
  border-bottom-right-radius: 6pt;
}

.previous-work, .contact-details {
  -webkit-flex-flow: row wrap;
  display: flex;
  margin-top: 25px;
  margin-bottom: 80px;
}

.prev-work-item {
  margin-right: 0px;
  width: 280px;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  justify-content: space-around;
  display: flex;
}

.previous-work a:last-child {
    margin-right: 0;
}

.previous-work a {
    margin-right: 30px;
}

.prev-work-item .card-image {
  border-top-left-radius: 6pt;
  border-top-right-radius: 6pt;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.prev-work-item .card-body {
    border-bottom-left-radius: 6pt;
    border-bottom-right-radius: 6pt;
}

.contact-details a {
    margin-right: 45px;
}

.contact-details a:last-child {
    margin-right: 0;
}

/* -----------Article----------- */

.hero {
  height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero img {
  width:100%;
  height:auto;
  background: rgba(0, 0, 0, .6);
}

.hero-info {
  position: absolute;
   left: 50%;
   top: 50%;
   transform: translate(-50%, -50%);
   color: #fff;
   font-weight: bold;
   text-shadow: 0px 1px 0px #303030;
}

.hero-info h2 {
  font-size: 34px;
}

.hero-info .meta-info {
  text-align: center;
}

.page h3 {
  border-bottom: solid #12CDE1 5px;
}

.page p:first-child {
    margin-top: 40px;
}

.page p {
    font-size: 18px;
}

.page img {
  width: 100%;
  height: auto;
  margin: 20px 0;
}

/* .page img:hover {
  cursor: zoom-in
}
.page img:active {
  cursor: zoom-out;
  transform: scale(1.25);
} */

.page img.break-out {
  width: 120%;
  height: auto;
  margin: 20px 0 20px -100px;
}

/* -----------Images----------- */

.card-email {
  background: url('img/email.png');
  border-top-left-radius: 6pt;
  border-bottom-left-radius: 6pt;
}

.card-twitter {
  background: url('img/twitter.png');
  border-top-left-radius: 6pt;
  border-bottom-left-radius: 6pt;
}

.card-linkedin {
  background: url('img/linkedin.png');
  border-top-left-radius: 6pt;
  border-bottom-left-radius: 6pt;
}
.card-image-large {
  background-repeat: round;
  height: 200px;
  width: 300px;
}

.prev-work-item .card-image-large {
  opacity:0.7;
  -webkit-transition: opacity 220ms cubic-bezier(.02, .01, .47, 1);
  -moz-transition: opacity 220ms cubic-bezier(.02, .01, .47, 1);
  transition: opacity 220ms cubic-bezier(.02, .01, .47, 1);
}

.prev-work-item:hover .card-image-large {
  opacity:1;
}

.card-image-small {
  background-repeat: round;
  height: 70px;
  width: 70px;
}


/* -----------Media Queries----------- */


@media (max-width: 1125px) {
  .navigation {
    width: 100%;
  }
  .page, .intro, .recent-work, .other, .contact {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .navigation {
    width: 90%;
    margin: 0 40px;
  }

  .page, .intro, .recent-work, .other, .contact {
    width: 90%;
    margin: 40px;
  }

  .prev-work-item {
    width: 100%;
    margin: 20px auto;
  }

  .previous-work a {
    margin-right: 0;
  }

  .card-image-large {
    border-top-left-radius: 6pt;
    border-bottom-left-radius: 6pt;
    border-top-right-radius: 0pt;
    border-bottom-right-radius: 0pt;
  }

  .contact-details a {
    margin: 20px 0;
    width: 100%;
  }

  .page img.break-out {
    width: 111%;
    height: auto;
    margin: 10px 0 10px -20px;
  }
}

@media (max-width: 780px) {
  .navigation {
    width: 95%;
    margin: 0 20px;
  }

  .page, .intro, .recent-work, .other, .contact {
    width: auto;
    margin: 20px;
  }

}

@media (max-width: 680px) {
  .navigation {
    width: auto;
    margin: 0 20px;
  }

  .navigation h1 {
    font-size: 18pt;
    margin-top: 26px;
  }

  .nav {
    padding: 0px;
  }

  .nav li {
    margin: 18px 0px;
  }
  .page, .intro, .recent-work, .other, .contact {
    width: auto;
    margin: 20px;
  }

  .card-image-large {
    background-repeat: no-repeat;
    height: 200px;
    width: 100%;
    border-top-left-radius: 6pt;
    border-bottom-left-radius: 0;
    border-top-right-radius: 6pt;
    border-bottom-right-radius: 0pt;
  }

  .card-body {
    -webkit-flex: initial;
    flex: initial;
  }

  .card-jswsp {
    background: url('../img/board2.png');
    border-top-left-radius: 6pt;
    border-bottom-left-radius: 6pt;
  }

  .card-jswboard {
    background: url('../img/board2.png');
  }

  .card-powerup {
    background: url('../img/board2.png');
  }

  .card-laem {
    background: url('../img/laem2.png');
  }

  .card-roar {
    background: url('../img/theroar2.png');
  }

  .card-techly {
    background: url('../img/techly2.png');
  }

  .card-email {
    background: url('../img/email2.png');
  }

  .card-twitter {
    background: url('../img/twitter2.png');
  }

  .card-linkedin {
    background: url('../img/linkedin2.png');
  }
}
