/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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: #0a0a0a;
  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: #20456f;
  text-shadow: none;
}

::selection {
  background: #20456f;
  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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@font-face {
    font-family: 'Stretch Pro Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Stretch Pro Regular'), url('fonts/StretchPro.woff') format('woff');
}

@font-face {
  font-family: 'synergysns';
  src:
    url('fonts/synergysns.ttf?txtgy3') format('truetype'),
    url('fonts/synergysns.woff?txtgy3') format('woff'),
    url('fonts/synergysns.svg?txtgy3#synergysns') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'synergysns' !important;
  speak: never;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-spotify:before {
  content: "\e901";
}
.icon-bandcamp:before {
  content: "\e900";
}
.icon-link:before {
  content: "\e9cb";
}
.icon-instagram:before {
  content: "\ea92";
}
.icon-twitter:before {
  content: "\ea96";
}
.icon-soundcloud:before {
  content: "\eac3";
}

body {
  background: #20456f url(../img/bg.jpg) top center fixed;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
}

a {
  color: #0687f5;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #ddd;
  opacity: 0.9;
}

#presented-by {
  display: flex;
  flex-direction: row;
  width: 50%;
  margin: 30px auto 50px auto;
  justify-content: space-evenly;
}

#presented-by a {
  display: block;
}

#logos {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

#logos .logo {
  display: block;
  align-self: center;
}

#logos .synergy {
  /*max-height: 60px;*/
  max-height: 3vw;
  margin-bottom: 10px;
}

#logos .extend {
  /*max-height: 50px;*/
  max-height: 2.5vw;
}

#when {
    font-family: 'Stretch Pro Regular', Helvetica, Arial, sans-serif;
    background: rgba(255,255,255,0.8);
    text-align: center;
    margin: 10px 0 15px 0;
    padding: 10px 0;
    overflow: hidden;
}
#datetime {
  color: #222;
  position: relative;
  margin-bottom: 10px;
}

#datetime, #countdown {
  color: #444;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#when .lines {
  flex: 1;
  display: flex;
  flex-direction: row;
}

#when .lines div {
  flex: 1;
  transform: skewX(-45deg);
  background: #010101;
  height: 3px;
  max-width: 20px;
}

#when .lines.left {
  transform: translateX(-3px);
}
#when .lines.right {
    transform: translateX(3px);
}
#when .lines.left div {
    margin-right: 20px;
}

#when .lines.right div {
    margin-left: 20px;
}

#when .lines.left div:first-child {
  max-width: inherit;
}

#when .lines.right div:last-child {
  max-width: inherit;
}

#countdown {
  position: relative;
}

#artists {
    text-align: center;
    margin: 10px 0;
    overflow: hidden;
}

#artists {
  position: relative;
  display: flex;
  justify-content: center;
}

#artists div {
  flex: 1;
}

.artist-bar {
  height: 3px;
  margin: 10px 0;
  background: rgba(255, 255, 255, 0.8);
}

.artists {
  background: rgba(255, 255, 255, 0.8);
  padding: 0 70px;
}
.artists img {
  max-height: 300px;
  max-width: 90vw;
}

#artists .details img {
  max-height: 26vw;
  opacity: 0.8;
}
#artists .details {
  position: relative;
  /*background: rgba(255,0,0,0.5);*/
}
#artists .details.left {
  /*background-image: url(../img/details-left.png);*/
}
#artists .details.right {
  /*background-image: url(../img/details-right.png);*/
}

#twitch-embed {
  text-align: center;
  margin-bottom: 30px;
}

#twitch-placeholder {
  height: 0;
  padding-top: 56.25%;
  max-width: 80%;
  background: red;
  margin: 0 auto;
}

#twitch-embed iframe {
  max-width: 80%;
}

#twitch-embed iframe:nth-child(2) {
  visibility: hidden;
  position: absolute;
}

#streaming-on {
  font-family: 'Stretch Pro Regular', Helvetica, Arial, sans-serif;
  color: #eee;
  text-align: center;
  padding: 30px;
}

#streaming-on a {
  color: #20456f;
  text-shadow: 1px 1px 0 #fff;
  text-decoration: none;
}

footer {
  font-family: 'Stretch Pro Regular', Helvetica, Arial, sans-serif;
  text-align: left;
  color: #eee;
  padding: 30px;
}

footer a {
  color: #20456f;
  text-shadow: 1px 1px 0 #fff;
  text-decoration: none;
}

.soundcloud-embed {
  background: #fff;
  padding: 10px;
}

#performers {
  max-width: 80%;
  margin: 0 auto;
  padding-top: 20px;
}

.performer {
  display: grid;
  grid-template-columns: 400px auto;
  grid-template-rows: auto auto; 
  column-gap: 10px;
  row-gap: 10px;
  margin-bottom: 30px;
}

.performer .headshot {
  grid-column: 1;
  grid-row: 1;
}

.performer .bio-track {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
}

.performer .bio {
  flex: 1;
  text-shadow: 1px 1px 0 #000, 2px 2px 1px #000;
}

.performer .logo {
  grid-column: 1;
  grid-row: 2;
}

.performer .sns {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
}

.bio h1 {
  margin-top: 0;
  font-family: 'Stretch Pro Regular', Helvetica, Arial, sans-serif;
}

.bio h1 span {
  font-family: sans-serif;
}

.bio h1 span.br {
  font-size: 0;
}

.sns a {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
    background: #181818;
    border-radius: 100%;
    height: 40px;
    width: 40px;
    display: inline-block;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
}

.sns a span {
  display: none;
}

.sns .icon-bandcamp, .sns .icon-spotify {
  font-size: 32px;
}

#performers .artist-bar {
  margin-bottom: 30px;
}


@media only screen and (min-width: 1140px) {
  #artists .details img {
    max-height: 300px;
  }
}

@media only screen and (max-width: 900px) {
  #logos .synergy {
    max-height: inherit;
    max-width: 50vw;
  }
  #logos .extend {
    max-height: inherit;
    max-width: 60vw;
  }

  #twitch-embed iframe,
  #performers,
  .soundcloud-embed {
    max-width: 94%;
  }

  .performer {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto auto auto auto; 
    column-gap: 10px;
    row-gap: 10px;
    margin-bottom: 20px;
  }

  #performers .artist-bar {
    margin-bottom: 20px;
  }

  .performer .headshot {
    grid-column: 1;
    grid-row: 1;
  }

  .performer .bio-track {
    grid-column: 1;
    grid-row: 4;
  }

  .performer .logo {
    grid-column: 1;
    grid-row: 2;
  }

  .performer .sns {
    grid-column: 1;
    grid-row: 3;
  }

  .performer .headshot, .performer .logo {
    margin: 0 auto;
  }

  .performer .sns {
      justify-content: space-around;
  }

  .bio h1 {
    display: none;
  }

}

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

/*
 * Hide visually and from screen readers
 */

.hidden,
[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
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

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

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  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: " ";
  display: table;
}

.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: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

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

@media print {
  *,
  *::before,
  *::after {
    background: #fff !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:
   * https://web.archive.org/web/20180815150934/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;
  }
}

