/*! 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.
 */

@font-face {
  font-family:'LynstoneWeb-Regular';
  src: url('assets/fonts/LynstoneWeb-Regular.eot'); /* IE9 Compat Modes */
  src: url('assets/fonts/LynstoneWeb-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  src: url('assets/fonts/LynstoneWeb-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
  unicode-range: U+000D-FB04;
  /*-webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;*/
  /*text-rendering: optimizeLegibility;*/
}


/* ==========================================================================
   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: #f0eadf;
  text-shadow: none;
}

::selection {
  background: #f0eadf;
  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
   ========================================================================== */

:root {
   --app-height: 100%;
}

html {
  height: var(--app-height);
}

body {
  background-color: #f0eadf;
  color: #050606;
  font-family:'LynstoneWeb-Regular';
  box-sizing: border-box;
  padding: 36px;
  min-height: calc(100vh - 72px);
  height: 100%;
  height: var(--app-height);
  position: relative;
}

p, h2, address, h1, li, h3 {
  margin:  0;
  line-height: 1.4;
  /*text-shadow: 0px 2px 3px #f3f2ed, 0px -2px 3px #f3f2ed;*/
}

.menu, header {
  margin-bottom: 20px;
}

.menu li, h2, address, p, h3 {
  font-weight:  normal;
  font-size:  .9375rem;
}

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

.menu li {
  text-transform: uppercase;
}

.menu a {
  padding: .125rem 0;
  display: block;
}

.menu li, h2 span, #music section h3 {
  letter-spacing: .1em;
}

.menu a {
  color: inherit;
  text-decoration: none;
}

.menu a:hover {
  text-decoration: underline;
}

#home {
  height:  100%;
  padding:  0px;
  min-height: calc(100vh - 72px);
}

h1 {
    position: absolute;
    top: 50%;
  }

h1 {
    background: transparent url("assets/images/gra-logo.svg") no-repeat scroll 0% 0%;
    width: 176px;
    height: 127px;
    text-indent: -3333px;
    border: 0;
    transform: translateY(-50%);
    background-size: contain;
}

#music h1 {
  background-image: none;
}

h2 span {
  text-transform: uppercase;
}

#description, #info {
  position: absolute;

}

#description {
  bottom: auto;
  top: 75%;
}

.webgl #description {
  bottom: 96px;
  top: auto;
}

#info {
  bottom: auto;
  top: calc(75% + 60px);
}

.webgl #info {
  bottom: 36px;
  top: auto;
}

address {
  font-style: normal;
}

#bgvid {
  position: relative;
  border-radius: 30px;
}

#bgvid video{
  object-fit: cover;
  width: max(100vh, 100vw);
  height: max(100vh, 100vw);
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  opacity: 0.9;
  transform-origin: center;
  transform: translateX(36px) rotate(90deg);
  overflow: hidden;
}

/*video video {
  object-fit: cover;
  
  box-shadow: inset 0 0 30px #f0eadf;
  
}*/

#shadow {
  display: none;
  position: absolute;
  z-index:  -1;
  top:  0;
  left:  0;
  width: max(100vh, 100vw);
  height: max(100vh, 100vw);
  box-shadow: inset 0px 0px 100px #f0eadf;
  border:  solid #f0eadf 10px;
  transform: translateX(36px) rotate(90deg);
}


#music section {
  margin-bottom: 80px;
}

#music section a {
  color: #050606;
  text-decoration: none;
}

#music section a:hover {
  text-decoration: underline;
}

#music section img {
  width:  100%;
  border-radius: 50%;
  max-width:  600px;
  margin-top: 40px;
}

@media only screen and (min-width: 45em) {
  #home {
    min-height:  calc(100vh - 72px);
  }

  #music {
    overflow-x: hidden;
  }

  #home .menu, h1, #description, #info {
    width: 25%;
    display: block;
    z-index: 10;
  }

  #description {
    width: 50%;
  }

  #home .menu {
    position: absolute;
  }

  #description, .webgl #description {
    position: absolute;
    bottom: 36px;
    top:  auto;
    left:  25%;
  }

  #info, .webgl #info {
    position: absolute;
    top: 50vh;
    bottom:  auto;
    left:  75%;
  }

  #bgvid{
    
  }

  #bgvid video{
    object-fit: contain;
    width: 92vw;
    height: 100vh;
    left:  auto;
    right: 0;
    transform: none;
    /*background: green;*/
  }

/*  video {
     object-fit: contain;
  }*/

  #shadow {
    box-sizing: border-box;
    display: block;
    z-index:  0;
    top:  0;
    left:  auto;
    right: 0;
    width: 92vw;
    height: 100vh;
    transform: none;
  }

  #music .menu {
    position:  fixed;
  }

  #music h1 {
    background-image: url("assets/images/gra-logo.svg");
    position: fixed;
  }

  h1 {
    margin-left: 12px;
    margin-top: -30px;
    transform: none;
  }

  #music header {
    
    position: absolute;
    left:  25%;
    width:  35%;
    max-width:  300px;
  }

  #music section {
    position: relative;
    left: 25%;
    width: 75%;
    margin-right: 0;
    max-width:  600px;
  }

  #music section h3, #music section p {
    position: relative;
    left:  50%;
    width:  50%;
  }

  #music section h3 {
    text-transform: uppercase;
  }
  

}

@media only screen and (min-width: 75em) {

  #description {
    width: 25%;
  }

}

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

