/*
 * 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 {
  font-size: 14px;
  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.
 */

::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 {
  position: fixed;
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #3c4f61;
  background-color: rgba(60, 79, 97, 0.95);
  color: #fff;
  padding: 50% 5%;
  margin: 0;
  z-index: 100;
  font-size: 2rem;
  line-height: 2em;
}
.browserupgrade a {
  display: inline-block;
  padding: 0.25em;
  background-color: #fff;
  color: #3c4f61;
  text-decoration: none;
}

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

/* ==========================================================================
   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);
  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;
  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;
}

body {
  background: #f6f6f6;
  color: #3c4f61;
  font-family: "Share Tech Mono", monospace;
  min-height: 100vh;
  margin: 0;
}
h1 {
  padding-top: 10vh;
  text-align: center;
}
h1 img {
  padding-bottom: 2rem;
  opacity: 0.15;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  padding: 50px 5vw 50px;
  max-width: 1360px;
  margin: 0 auto;
}
.grid.no-wrap {
  flex-wrap: nowrap;
}
.grid.is-full {
  padding: 0;
  max-width: 100%;
}
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.image {
  max-width: 100%;
}
.grid-item a {
  background: #fff;
  box-shadow: 0 0 20px #3c4f6120;
  color: #a8a8a8;
  text-decoration: none;
  padding: 3rem;
  margin: 2rem;
  transition: all 200ms ease-in-out;
}
.grid-item a:visited {
  background: #fafafa;
}
.grid-item a:hover,
.grid-item a:focus {
  box-shadow: 0 0 20px #3c4f6180;
  transform: translateY(-0.5rem);
  background-color: #0e1013;
}
.grid-item span {
  padding: 1rem 0 0;
}
.grid-item.is-1 {
  width: calc(100% / 12);
}
.grid-item.is-2 {
  width: calc((100% / 12) * 2);
}
.grid-item.is-3 {
  width: calc((100% / 12) * 3);
}
.grid-item.is-4 {
  width: calc((100% / 12) * 4);
}
.grid-item.is-5 {
  width: calc((100% / 12) * 5);
}
.grid-item.is-6 {
  width: calc((100% / 12) * 6);
}
.grid-item.is-7 {
  width: calc((100% / 12) * 7);
}
.grid-item.is-8 {
  width: calc((100% / 12) * 8);
}
.grid-item.is-9 {
  width: calc((100% / 12) * 9);
}
.grid-item.is-10 {
  width: calc((100% / 12) * 10);
}
.grid-item.is-11 {
  width: calc((100% / 12) * 11);
}
.grid-item.is-12 {
  width: calc((100% / 12) * 12);
}
.is-full {
  width: 100%;
  margin: 0;
}
.is-full img {
  display: inline-block;
  max-width: 100%;
}
.has-margin {
  margin: 1rem;
}
.has-padding {
  padding: 1rem;
}
.identity-header {
  width: 100%;
  height: calc(100vh + 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.identity-header img {
  margin-top: -100px;
  max-width: 50vw;
  padding: 20%;
}
.identity-colors {
  background-color: #fff;
  box-shadow: 0 3px 60px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px 50px;
  width: 30vw;
  height: 100px;
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: -70px;
}
.color {
  margin: 5px;
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.color .pallette {
  border-radius: 6px;
  width: 6vw;
  height: 6vw;
  max-width: 90px;
  max-height: 100px;
  min-height: 70px;
}
.color p {
  margin: 0;
  font-size: 0.8rem;
  white-space: nowrap;
}
.color .code {
  font-weight: bold;
  margin-top: 10px;
  opacity: 0.8;
}
.color .name {
  font-size: 0.6rem;
  opacity: 0.5;
}
.has-shadow {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.back {
  width: 36px;
  height: 36px;
  transition: all 200ms ease-out;
  opacity: 0.5;
  position: fixed;
  left: 2rem;
  top: 2rem;
  display: block;
  z-index: 10;
}
.back:hover {
  transform: scale3d(1.2, 1.2, 1.2);
  opacity: 0.8;
}
.back svg {
  max-width: 100%;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}
.back svg:hover {
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}
.is-centered {
  text-align: center;
}
.is-weight-normal {
  font-weight: normal;
}
.is-weight-bold {
  font-weight: bold;
}
.identity-forms {
  background-color: #fff;
  display: flex;
  align-items: stretch;
}
.identity-forms > div {
  width: 50%;
}
.gridentity-geometric {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.gridentity-geometric .layout {
  max-width: 40vh;
  margin: 30px 10px;
}
.grid-item a.other {
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 20px 50px rgba(101, 101, 101, 0.16);
}
.grid-item a.other:hover,
.grid-item a.other:focus {
  transform: none;
}
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (max-width: 768px) {
  .identity-colors {
    width: 95vw;
    padding: 40px 0 30px;
  }
  .color .pallette {
    width: 10vw;
    min-height: 10vw;
  }
  .grid {
    padding: 10vh 2vw 20vh;
    flex-wrap: wrap;
  }
  .grid .grid-item {
    width: 100%;
  }
  .grid-item a {
    padding: 0;
  }
  .identity-forms {
    flex-direction: column;
    align-items: center;
  }
  .identity-forms > div {
    width: 100%;
  }
  .grid.is-full.no-wrap.lifestyle {
    flex-wrap: wrap;
    padding: 1rem 0;
  }
}

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

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

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

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important; /* Black prints faster */
    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;
  }
}
