/*! HTML5 Boilerplate v5.3.0 | 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
 *
 * These selection rule sets have to be separate.
 * 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
   ========================================================================== */

/* ==========================================================================
   FONTS
   ========================================================================== */
body {
  font: 18px/22px "interface", sans-serif;
}

h1,
h2 {
  font-family: "co-headline", sans-serif;
}

p {
  margin: 0;
}
.blurb {
  margin-top: 1em;
}


.stroke {
  -webkit-text-stroke-color: white;
  -webkit-text-stroke-width: 1px;
}

h1 {
  word-wrap: break-word;
  font-size: 2.5em;
  line-height: 1em;
  margin-top: 0;
  margin-bottom: 0;
}

.liam {
  word-wrap: normal;
}

.when {
  margin-top: 1em;
}

h2 {
  font-size: 1.5em;
  line-height: 1em;
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}

a:link {
  color: #000000;
  text-decoration: none;
}

a:visited {
  color: #000000;
  text-decoration: none;
}

a:hover {
  color: #000000;
  text-decoration: underline;
}

a:active {
  color: #000000;
  text-decoration: none;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: -55%;
  padding-bottom: 43%;
  margin-left: 0.5em;
  color: #ffffff;
}

figcaption p {
  font-size: 2em;
  line-height: 1.1em;
}
figcaption p:last-child {
  font-size: 1.5em;
  line-height: 1.1em;
}

.alternative {
  color: #000000;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.links li:first-child {
  margin-top: 1em;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

#wrapper {
  margin: 1em auto;
  width: 284px;
}

.projects {
  margin-left: -18px;
}

img {
  max-width: 320px;
}

.projectlinks li:first-child {
  margin-bottom: 1em;
}

.applink {
  margin-bottom: 1em;
}

.projectimage {
  margin-bottom: 1em;
}

.projectfooter {
  margin-top: 1em;
}

.previous {
  margin-top: 1em;
}

/* ==========================================================================
   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
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * 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;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/*
 * 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 only screen and (min-width: 375px) {
  /* Style adjustments for viewports that meet the condition */

  #wrapper {
    margin: 1em auto;
    width: 339px;
  }

  h1 {
    width: 76%;
  }

  img {
    max-width: 375px;
  }
}

@media only screen and (min-width: 414px) {
  /* Style adjustments for viewports that meet the condition */

  #wrapper {
    margin: 1em auto;
    width: 378px;
  }

  h1 {
    width: 72%;
  }

  img {
    max-width: 414px;
  }
}

@media only screen and (min-width: 768px) {
  #wrapper {
    width: 732px;
    margin-right: 1em;
    margin-left: 1em;
  }

  header {
    float: left;
    width: 100%;
  }

  h1 {
    width: 700px;
  }

  h2 {
    margin-top: -100px;
    float: none;
    margin-left: 248px;
  }

  h3,
  h4 {
    margin-left: 248px;
  }

  .when {
    margin-left: 248px;
    padding-bottom: 150px;
    margin-top: -100px;
  }

  .home {
    float: right;
    margin-right: 100px;
  }

  .individual {
    margin-left: 270px;
  }

  .individual p {
    margin-left: -1em;
    margin-right: 1.8em;
  }

  .projectimage img {
    max-width: 100%;
  }

  .homefooter {
    margin-left: -1em;
  }

  .projectfooter {
    margin-left: 0.8em;
    padding-top: 2em;
  }
}

@media only screen and (min-width: 1024px) {
  div#wrapper section.home ul.projects {
    display: grid;
    grid-template-columns: 410px 410px;
    grid-gap: 1em;
    margin-right: -350px;
  }
}

@media only screen and (min-width: 1100px) {
  .individual {
    width: 780px;
  }

  /*li:nth-child(6){
	position: relative;
	left: 430px;
	bottom: 1000px;
}
li:nth-child(7){
	position: relative;
	left: 430px;
	bottom: 1000px;
}

li:nth-child(8){
	position: relative;
	left: 430px;
	bottom: 1000px;
}

ul.projects{
	height: 1000px;
}*/
}

@media only screen and (min-width: 1500px) {
  div#wrapper section.home ul.projects {
    display: grid;
    grid-template-columns: 410px 410px 410px;
    grid-gap: 1em;
    margin-right: -820px;
  }
}

@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 https request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after,
  *:first-letter,
  *:first-line {
    background: transparent !important;
    color: #000 !important; /* Black prints faster:
                                   https://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,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

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

  thead {
    display: table-header-group;
  }

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

  img {
    max-width: 100% !important;
  }

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

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