/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */


   .bounce {
     -moz-animation: bounce 2s infinite;
     -webkit-animation: bounce 2s infinite;
     animation: bounce 2s infinite;
   }

   @keyframes bounce {
     0%, 20%, 50%, 80%, 100% {
       transform: translateY(0);
     }
     40% {
       transform: translateY(-6px);
     }
     60% {
       transform: translateY(-2px);
     }
   }


/*
1.0 Navigation
2.0 Contents
2.1 General Information
2.2 Projects
2.3 Contact
*/

html,body {
    height:100%;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
}

iframe {
    border: none;
}

.bounce {
  -moz-animation: bounce 2s infinite;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-2px);
  }
}

#grid {
  display: grid;
  max-width: 100%;
  grid-template-columns: 80px 1fr 1fr 80px;
  grid-template-rows: 80px 220px 100px 100px;
  grid-column-gap: 10px;
}

a {
  text-decoration: none;
}

/* ==========================================================================
1.0 NAVIGATION
========================================================================== */

nav {
  color: #818181;
  display: flex;
  align-items: center;
  padding-left: 40px;
  grid-column: 2 / 4;
  grid-row: 1 / 1;
}

.bottom-border{
  border-bottom: 1px solid #818181;
  grid-column: 1 / span 4;
  grid-row: 1 / 1;
  z-index: -9;
}

.nav-link {
  padding-right: 1rem;
  font-size: .7rem;
}

nav a {
  color: #818181;
  letter-spacing: 2px;
}

nav a:hover {
  color: #404040;
}

#logo-block {
  background: #404040;
  width: 80px;
  height: 80px;
  grid-column: 1 / 1;
  grid-row: 1 / 1;
  align-items: center;
  justify-items: center;
  display: grid;
}

.logoAnimation {
  height: 40px;
  width: 40px;

  align-items: center;
  justify-items: center;
  grid-column: 1 / span 1;
  grid-row: 1 / 1;
}

.homeclick {
  z-index: 99;
  width: 80px;
  height: 80px;
  align-items: center;
  justify-items: center;
  grid-column: 1 / span 1;
  grid-row: 1 / 1;
}

.work {
  grid-column: 1 / span 4;
  grid-row: 5 / 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9em, 1fr));
  grid-template-rows: repeat(8, 100px);
}




/* ==========================================================================
2.0 CONTENTS
========================================================================== */

.jumbo-lead {
  font-size: 2.25rem;
  color: #818181;
  font-weight: 200;
  line-height: 2.75rem;
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  align-self: center;
}

.info-container {
  grid-column: 2 / span 2;
  grid-row: 3 / 4;
  display: grid;
  grid-template-columns: 0.5fr .75fr 0.5fr .75fr .75fr 0.5fr .75fr .75fr;
}

.footer-container {
  grid-column: 2 / span 2;
  grid-row: 6 / 7;
  display: grid;
  grid-template-columns: 0.5fr .75fr 0.5fr .75fr .75fr;
  margin-top: 7rem;
}

.about {
  font-weight: 200;
}

/* ==========================================================================
2.1 GERNERAL INFORMATION
========================================================================== */


.title h6 {
  font-size: 0.625rem;
  letter-spacing: 2px;
  color: #818181;
  font-weight: 600;
  margin-top: 0;
}

.social {
  order: 1;
  margin-left: 15px;
}

.info-block a {
  color: #818181;
}

.info-block a:hover {
  color: #404040;
  text-decoration: none;
}

.info-block ul  {
  padding: 0;
  margin-top: -2px;
}

.info-block ul li {
  font-size: 0.625rem;
  color: #818181;
  font-weight: 100;
  list-style: none;
  line-height: 20px;
}

#nav-arrow-container {
    align-items: center;
    justify-items: center;
    grid-column: 2 / span 2;
    grid-row: 4 / 4;
    display: grid;
}

#nav-arrow {
  width: 8px;
  margin: 10px;
}

/* ==========================================================================
2.2 PROJECTS
========================================================================== */

.work .project a {
  text-decoration: none;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 3s ease-out;
}

.work .project a:hover {
  opacity: .5;
}

.project {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.projectTitle {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
  padding-left: .5rem;
  padding-top: .5rem;
  z-index: 10;
  align-self: center;
  justify-self: center;
  text-align: center;
  color: #ffffff;
}

.projectImg {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
}

.type {
  font-size: 0.625rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
  /*transform: rotate(-90deg);*/
  z-index: 1;
  margin-top: 2px;
}

.projectTitle h5,
.projectName h5 {
  font-size: 0.625rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}

.projectTitle h3,
.projectName h3 {
  font-size: 1.5rem;
  font-weight: 200;
  margin: 0;
}

.projectName {
  padding-top: 80px;
}

.raincityName {
  grid-column: 1 / span 4;
  grid-row: 12 / span 1;
  text-align: left;
}

.sectionHeader {
  text-align: center;
  font-size: 2.25rem;
  color: #404040;
  font-weight: 200;
  line-height: 2.75rem;
  padding: 80px 0;
}

.DST .projectImg {
  background: url("../img/bayer_DST_header.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-position: center;
  grid-column: 1 / 1;
  grid-row: 1 / 1;
}

.cropTour .projectImg {
  background: url("../img/bayer_CropTour_header.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  grid-column: 1 / 1;
  grid-row: 1 / 1;
}

.mygmcstory .projectImg {
  background: url("../img/gm_mystory_header.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  grid-column: 1 / 1;
  grid-row: 1 / 1;

}

.oneareacode .projectImg {
  background: url("../img/oneareacode_header.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  grid-column: 1 / 1;
  grid-row: 1 / 1;
}

.oneareacode .projectTitle {
  color:#818181;
}

.raincity .projectImg {
  background: url("../img/branding/branding-raincity.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-position: center;
  grid-column: 1 / 1;
  grid-row: 1 / 1;
}

.raincity .projectTitle {
  display: none;
}

.wormhole .projectImg {
  background: url("../img/branding/branding-wormhole.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-position: center;
  grid-column: 1 / 1;
  grid-row: 1 / 1;
}

.wormhole .projectTitle {
  display: none;
}

.nslc .projectImg {
  background: url("../img/branding/branding-NS.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-position: center;
  grid-column: 1 / 1;
  grid-row: 1 / 1;
}

.nslc .projectTitle {
  display: none;
}

.box {
  background-color: #818181;
  display: grid;
  align-items: center;
  justify-items: center;
  opacity: .25;
}

.one {
  grid-column: 8 / span 2;
  grid-row: 11 / span 1;
}

.background {
  background-repeat: no-repeat;
  min-width: 100%;
}

.showcase {
  width: 33.33%;
  overflow: hidden;
  background: #000000;
}

.showcase img {
  max-width: 100%;
  -webkit-transition: opacity 2s; /* Safari */
  transition: opacity 2s;
}

.showcase:hover img{
  opacity: 0.8;
  border: none !important;
}

.overlay {
  width: 100%;
  background: #000000;
  opacity: 0;
  -webkit-transition: opacity 2s; /* Safari */
  transition: opacity 2s;
}

.project:hover .overlay {
  opacity: .25;
}

/* ==========================================================================
2.3 CONTACT
========================================================================== */

footer {
  padding: 80px 0;
}


/* ==========================================================================
2.4 PROJECTS
========================================================================== */

.singleProject {
  grid-column: 1 / span 4;
  grid-row: 2 / 6;
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 1fr 80px;
  grid-column-gap: 10px;
  grid-row-gap: 10px;
}

.projectName {
  grid-column: 3 / span 2;
}

.projectDisplay {
  grid-column: 2 / span 4;
  grid-row: 2 ;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.singleProject img {
  max-width: 100%;
  min-height: 100%;
  margin: 0 auto;
  display: block;
}

.projectInfo {
  column-count: 2;
}

.projectInfo p {
  margin-top: 0;
  margin-bottom: 10px;
}

.projectInfo,
.caption {
  font-size: 0.6875rem;
  line-height: 0.975rem;
  color: #818181;
  margin-top: 0;
  margin-bottom: 10px;
}

.projectInfo {
  grid-column: 2 / span 2;
  grid-row: 2 / span 3;
}

.dstproject .DST {
  background: none;
  grid-column:  span 2;
  grid-row:  span 1;
}

.dstproject .pImg1 {
  grid-column: span 2;
  grid-row: span 1;
}

.dstproject .pImg2 {
  grid-column: span 1;
  grid-row: span 1;
}

.dstproject .pImg3 {
  grid-column: span 2;
  grid-row: span 1;
}

.dstproject .pImg4 {
  grid-column: span 2;
  grid-row: span 1;
}

.dstproject .pImg5 {
  grid-column: span 2;
  grid-row: span 1;
}

.dstproject .pImg6 {
  grid-column: span 2;
  grid-row: span 1;
}

.croptourproject .cropTour {
  background: none;
  grid-column: span 2;
  grid-row: span 2;
}


.croptourproject .pImg1 {
  grid-column: span 2;
  grid-row: span 2;
}

.croptourproject .pImg2 {
  grid-column: span 2;
    grid-row: span 2;
}

.croptourproject .pImg3 {
  grid-column: span 2;
    grid-row: span 2;
}

.croptourproject .pImg4 {
  grid-column: span 2;
  grid-row: span 2;
}


.mygmc .mygmcstory {
  background: url("../img/gm_mystory_header.jpg");
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  grid-column: 4 / span 8;
  grid-row: 1 / span 4;
}

.mygmc .pImg1 {
  grid-column:span 2;
  grid-row: span 2;
  padding-bottom: 40px;
}

.mygmc .pImg2 {
  grid-column:span 2;
  grid-row: span 2;
}


.oac .oneareacode {
  grid-column: span 2;
  grid-row: span 3;
}

.oac .pImg1 {
  grid-column: span 2;
  grid-row: span 3;
  justify-self: center;
  align-self: center;
}

.oac .pImg2 {
  grid-column: span 1;
  grid-row: span 3;
}

.oac .pImg3 {
  grid-column: span 1;
  grid-row: span 3;
}

.oac .pImg3 img {
  width: 80%;
}

.wormAnimation {
  grid-column: span 2;
}

.wormAnimation iframe {
  width: 100%;
  min-height: 50vh;
}

.worm .pImg1 {
  grid-column: span 1;
}

.worm .pImg2 {
  grid-column: span 1;
}

.raincityProject .raincity {
  grid-column: span 2;
  grid-row: span 3;
}

.raincityProject .projectInfo {
  columns: 1;
}

.raincityProject .pImg1 {
  grid-column: span 1;
  grid-row: span 3;
}

.raincityProject .pImg2 {
  grid-column: span 1;
  grid-row: span 3;
}

.nslcproject .firstImg {
  grid-column: span 2;
  grid-row: span 1;
}

.nslcproject .pImg1 {
  grid-column: span 1;
  grid-row: span 1;
}

.nslcproject .pImg2 {
  grid-column: span 1;
  grid-row: span 1;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media (max-width:960px) {
  .footer-container {
    grid-column: 2 / span 4;
    grid-row: 6 / 7;
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }
}

@media (min-width: 320px) and (max-width: 689px) {
  .projectName {
    grid-column: 1 / span 6;
    padding: 2rem 1rem 0 1rem;
  }

  .projectDisplay {
    grid-column: 1 / span 6;
    grid-row: 2;
  }
}

@media (min-width: 690px) and (max-width: 873px) {
  #grid {
    display: grid;
    max-width: 100%;
    grid-template-columns: 80px 1fr 1fr 80px;
    grid-template-rows: 80px 220px 200px 100px;
    grid-column-gap: 10px;
  }

  .work {
    grid-column: 1 / span 4;
    grid-row: 5 / 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9em, 1fr));
    grid-template-rows: repeat(12, 100px);
  }

  .info-container {
    grid-column: 2 / span 2;
    grid-row: 3 / 3;
    display: grid;
    grid-template-columns: 0.5fr .75fr 0.75fr 1fr 1fr;
  }

  .projectName {
    grid-column: 2 / span 4;
  }

  .oneareacode {
    grid-column: span 4;
    grid-row: span 4;
  }

  .mygmcstory {
    grid-row: span 4;
  }

  .wormhole {
    grid-row: span 4;
  }

}

@media (min-width: 874px) and (max-width: 1024px) {
  #grid {
    display: grid;
    max-width: 100%;
    grid-template-columns: 80px 1fr 1fr 80px;
    grid-template-rows: 80px 220px 200px 100px;
    grid-column-gap: 10px;
  }
  .project {
    grid-column: span 3;
  }

  .DST {
    grid-column: span 4;
    grid-row: span 3;
  }

  .cropTour {
    grid-column: span 4;
    grid-row: span 3;
  }
  .mygmcstory {
    grid-column: span 2;
    grid-row: span 6;
  }

  .oneareacode {
    grid-row: span 4;
  }

  .wormhole {
    grid-row: span 4;

  }

  .work {
    grid-column: 1 / span 4;
    grid-row: 5 / 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
    grid-template-rows: repeat(12, 100px);
  }

}

@media (min-width: 1024px) and (max-width: 1152px) {
  .project {
    grid-column: span 3;
  }

  .DST {
    grid-column: span 4;
    grid-row: span 3;
  }

  .cropTour {
    grid-column: span 4;
    grid-row: span 3;
  }

  .mygmcstory {
    grid-column: span 4;
    grid-row: span 6;
  }

  .oneareacode {
    grid-row: span 4;
  }

  .wormhole {
    grid-row: span 4;
    grid-column: span 2;
  }

  .work {
    grid-column: 1 / span 4;
    grid-row: 5 / 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
    grid-template-rows: repeat(10, 100px);
  }
}

@media (min-width: 1153px) {
  .project {
    grid-column: span 3;
  }

  .DST {
    grid-column: span 5;
    grid-row: span 3;
  }

  .cropTour {
    grid-column: span 5;
    grid-row: span 3;
  }

  .mygmcstory {
    grid-column: span 4;
    grid-row: span 6;
  }

  .oneareacode {
    grid-row: span 4;
  }

  .wormhole {
    grid-row: span 4;
  }

  .work {
    grid-column: 1 / span 4;
    grid-row: 5 / 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8em, 1fr));
    grid-template-rows: repeat(10, 100px);
  }
}

@media (max-width: 760px) {
  #grid {
    display: grid;
    max-width: 100%;
    grid-template-columns: 80px 1fr 1fr 80px;
    grid-template-rows: 80px 220px 1fr 100px;
    grid-column-gap: 10px;
  }

  .info-container {
    grid-column: 2 / span 3;
    grid-row: 3 / 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 10px;
  }

  .info-block.title {
    grid-column: 1;
}

}

@media (max-width: 520px) {
  #grid {
    display: grid;
    max-width: 100%;
    grid-template-columns: 60px 1fr 1fr 80px;
    grid-template-rows: 60px 1fr 1fr .25fr;
    grid-column-gap: 10px;
  }

  #logo-block {
    background: #404040;
    width: 60px;
    height: 60px;
    grid-column: 1 / 1;
    grid-row: 1 / 1;
    align-items: center;
    justify-items: center;
    display: grid;
  }

  .homeclick {
    width: 60px;
    height: 60px;
  }

  .jumbo-lead {
    font-size: 2.25rem;
    color: #818181;
    font-weight: 200;
    line-height: 2.75rem;
    grid-column: 2 / 5;
    grid-row: 2 / 3;
    align-self: center;
  }

  nav {
    padding-left: 0;
  }
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
