/*! 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;
    max-width: 100%;
    overflow-x: hidden;
}

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

/*
** General and Own Resets
*/

body {
  color: #FFF;
  min-height: 100vh;
  min-width: 100%;
  max-width: 100%;
  background: linear-gradient(89deg, #b20000, #6c0034);
}

figure {
  padding: 0;
  margin: 0;
}

figure img {
  width: 100%;
  margin: 0 0 30px 0;
}

/*
** Fonts
*/

@font-face {
  font-family: 'GT-Pressura-Bold';
  src: url("https://www.grillitype.com/fonts/gt-pressura/GT-Pressura-Bold.eot");
  /* IE9 Compat Modes */
  src: url("https://www.grillitype.com/fonts/gt-pressura/GT-Pressura-Bold.eot?#iefix") format("embedded-opentype"), url("../fonts/gt-pressura/GT-Pressura-Bold.woff") format("woff"), url("https://www.grillitype.com/fonts/gt-pressura/GT-Pressura-Bold.ttf") format("truetype");
  /* Safari, Android, iOS */
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-family: 'GT-Pressura-Bold', sans-serif;
  font-size: 3em;
  margin: 0;
  padding: 0 0 30px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1em;
}

.col p {
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  margin-bottom: 30px;
  padding: 0;
}

.col p:last-of-type {
  margin-bottom: 0;
}

/*
** Links
*/

#intro a {
  font-family: 'GT-Pressura-Bold', sans-serif;
  text-decoration: none;
  color: #FFF;
  display: inline-block;
  border: 1px solid #fff;
  margin: 0;
  padding: 20px 25px;
  font-size: 20px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
  line-height: 18px;
  border-radius: 3px;
  transition: all 0.2s ease-in-out;
}

#intro a:hover {
  color: #a00000;
  background-color: #fff;
}

/*
** Backgrounds
*/

section {
  background-size: 70%;
}

/*
** Video
*/

#video {
  margin: 0 0 0 25px;
  /*margin-top: 200px;*/
  max-width: 100%;
  width: calc(100% - 50px);
  height: calc(100vh - 410px);
  z-index: -2;
  overflow: hidden;
}

#dots {
  position: absolute;
  z-index: -1;
  margin: 0;
  max-width: 100%;
  width: calc(100% - 50px);
  height: calc(100vh - 410px);
  background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAGUlEQVQYV2NkYGD4z8DAwMiABFA4MHEKBQFmoAEGlW1mUAAAAABJRU5ErkJggg==);
}

video#bgvid {
    position: relative;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
}

#video img {
  width: 100%;
}

/*
** Menu
*/

.logo-container {
    margin: 0 auto;
    padding: 30px 0;
    width: 150px;
}

.logo-container svg {
    fill: #fff;
}

#menu {
  position: fixed;
  z-index: 998;
  overflow: hidden;
}

#menu #menu-button {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  /*background-color: blue;*/
}

#menu #menu-button svg {
  fill: #fff;
  width: 40px;
  height: 40px;
}

#menu #menu-button-close {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
}

#menu #menu-button-close svg {
  fill: #000;
  width: 40px;
  height: 40px;
}

#menu #menu-button:hover,
#menu #menu-button-close:hover {
  cursor: pointer;
}

#menu nav {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: url(../img/backgrounds/bg-menu.jpg) no-repeat center bottom;
    background-size: 100%;
    background-color: #fff;
  }

#menu nav ul {
    margin: 0 auto;
    width: auto;
    padding-top: 50px;
  }

#menu nav ul li {
    margin: 0 0 20px;
  }

#menu nav ul li a {
    font-family: 'GT-Pressura-Bold', sans-serif;
    text-decoration: none;
    color: #000;
    margin: 0 0 0 0;
    padding: 10px 0;
    font-size: 24px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
    line-height: 16px;
    transition: all 0.2s ease-in-out;
    border-radius: 3px;
  }

#menu nav a:hover {
    color: #de0303;
    /*background-color: #fff;*/
  }

#menu nav ul li:last-of-type {
  margin-top: 30px;
  margin-left: -10px;
  /*text-align: center;*/
}

#menu nav a.social {
  width: 30px !important;
  height: 30px !important;
  padding: 5px;
  border-radius: 20px;
  display: inline-block;
}

svg path {
  fill: inherit;
    /* To reach SVGs rendered through USE, since they are in the shadow DOM */
}

#menu nav a.social svg {
  width: 30px !important;
  height: 30px !important;
  fill: #000;
}

#menu nav a.social:hover svg {
  fill: #de0303;
}

/*
** Specific Sections Stuff
*/

section {
  background-size: 70%;
  /*padding: 75px 0 25px 0;*/
  padding: 0 0 50px 0;
  margin: 0;
}

/* Inici */

#inici {
  height: calc(100vh - 210px);
  padding: 0;
}

/* Intro */

#intro {
  position: relative;
  top: -200px;
  background: url(../img/backgrounds/bg-intro.jpg) no-repeat right bottom;
  padding: 25px 0 30px 0;
}

#intro h1 {
  height: 150px;
  margin: 0;
  font-size: 60px;
  text-align: center;
      z-index: 850;
}

#intro h1 {
  text-align: center;
}


/* Diables Adults */

#diables-adults {
  margin-bottom: 100px;
  background: url("../img/backgrounds/bg-diables-adults.jpg") no-repeat left bottom;
}

/* Percussió Adults */

#timbalers-adults {
  padding-bottom: 50px;
  margin-bottom: 100px;
  background: url("../img/backgrounds/bg-timbalers.jpg") no-repeat right bottom;
}

/* Diables Infantils */

#diables-infantils {
  padding-bottom: 10px;
  margin-bottom: 100px;
  background: url("../img/backgrounds/bg-diables-infantils.jpg") no-repeat left bottom;
}

/* percussio Infantils */

#percussio-infantils {
  margin-bottom: 100px;
  min-height: 100vh;
  background: url("../img/backgrounds/bg-timablers-infantils.jpg") no-repeat right center;
}

/* Bicorn */

#bicorn {
  padding-bottom: 30px;
  margin-bottom: 100px;
  background: url("../img/backgrounds/bg-bicorn.jpg") no-repeat right bottom;
}

/* Galeria */

#galeria {
  margin-bottom: 100px;
}

#galeria div#flickrembed,
#galeria small {
  /*display: none !important;*/
}

#galeria div:last-of-type a,
small {
  display: none !important;
}

/* Galeria 2 */

#galeria2 {
  padding-top: 150px;
  margin-bottom: 150px;
}

#galeria2 div#flickrembed,
#galeria2 small {
  /*display: none !important;*/
}

#galeria2 div:last-of-type a,
small {
  display: none !important;
}


/* Contacte */

#contacte {
  padding-top: 150px;
  margin-bottom: 150px;
}

#contacte p {
  font-size: 18px;
}

#contacte p span {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 10px 0 0;
}

#contacte svg {
  fill: #fff;
}

#contacte a {
  color: #fff;
}

/* Calendari */

#calendari .gcf-title-block,
#calendari .gcf-last-update-block {
  display: none;
}

#calendari .gcf-item-block {
  margin: 0 0 30px;
}

#calendari .gcf-item-daterange {
  display: block;
  font-size: 20px;
}

#calendari .gcf-item-title {
  margin: 0 0 10px;
  display: block;
}

#calendari .gcf-item-title a:link,
#calendari .gcf-item-title a:visited {
  color: #fff;
  font-family: 'GT-Pressura-Bold', sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  margin: 0 0 10px;
  text-decoration: none;
}

/* Historia */

#historia {
  width: 100%;
  /*min-height: 100vh;*/
  height: 2500px;
  background-color: #fff;
  color: #000;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999;
  opacity: 1;
  display: none;
  -webkit-animation-name: animahistoria;
  -webkit-animation-duration: 1s;
  animation-name: animahistoria;
  animation-duration: 1s;
}

@-webkit-keyframes animahistoria {
    from {opacity: 0}
    to {opacity: 1}
}

@keyframes animahistoria {
    from {opacity: 0}
    to {opacity: 1}
}

#historia .historia-inner {
  max-width: 600px;
  padding: 50px;
  margin: 0 auto;
}

#historia .historia-inner p {
  font-size: 16px;
  line-height: 2;
}

#historia .historia-tanca {
  position: fixed;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
}

#historia .historia-tanca:hover {
  cursor: pointer;
}

#historia .historia-tanca svg {
  fill: #000;
  width: 40px;
  height: 40px;
}

#footer a:link,
#footer a:visited {
  color: #fff;
}

/*
** 768px or more
*/

@media
only screen and (min-width: 426px) /*and (max-width: 991px) and (max-resolution: 1.5dppx),
only screen and (min-width: 768px) and (max-width: 1500px) and (min-resolution: 1.5dppx)*/ {
/* Intro */

  #intro {
    position: relative;
    top: -125px;
    background: url(../img/backgrounds/bg-intro.jpg) no-repeat right bottom;
    padding: 25px 0 50px 0;
  }

  #intro h1 {
    height: 100px;
    margin: 0;
    font-size: 80px;
    text-align: center !important;
  }

}


/*
** 992px or more
*/

@media
only screen and (min-width: 992px) /*and (max-width: 1299px) and (max-resolution: 1.5dppx),
only screen and (min-width: 1500px) and (max-width: 2549px) and (min-resolution: 1.5dppx)*/ {

    /* Menu on the left */

    .logo-container {
      position: fixed;
      padding: 70px 0 0 70px;
      width: 200px;
    }

    #menu-links {
      display: block;
    }

    #menu {
      display: block;
      position: fixed;
      z-index: 998;
      overflow: hidden;
      padding-top: 340px;
    }

    #menu #menu-button {
        display: none;
      }

    #menu #menu-button-close {
        display: none;
      }

    #menu nav {
      display: block;
      position: relative;
      width: auto;
      height: auto;
      background: none;
      background-color: transparent;
      background-size: 100%;
    }

    #menu nav ul {
      list-style: none;
      width: 240px;
      padding: 0;
      margin: 0 0 0 50px;
    }

    #menu nav ul li {
        margin: 0;
      }

    #menu nav ul li a {
      color: #FFF;
      display: block;
      font-size: 20px;
      line-height: 18px;
      transition: all 0.4s ease-in-out;
      border-radius: 3px;
    }

    #menu nav a:hover {
      color: #a00000;
      background-color: #fff;
    }

    #menu nav ul li:last-of-type {
      margin-top: 30px;
      text-align: center;
    }

    #menu nav a.social {
      width: 30px !important;
      height: 30px !important;
      padding: 5px;
      border-radius: 20px;
      display: inline-block;
    }

    #menu nav a.social svg {
      width: 30px !important;
      height: 30px !important;
      fill: #fff;
    }

    #menu nav a.social:hover svg {
      fill: #a00000;
    }

  /* Inici */

  #inici {
      height: calc(100vh);
      padding: 0;
  }

  /* Video */

  #video {
      margin: 25px 0 0 25px;
      max-width: 100%;
      width: calc(100% - 50px);
      height: calc(100vh - 150px);
      z-index: -2;
      overflow: hidden;
  }

  #dots {
      width: calc(100% - 50px);
      height: calc(100vh - 150px);
  }

  /* Intro */

  #intro {
    position: relative;
    top: -125px;
    background: url(../img/backgrounds/bg-intro.jpg) no-repeat right bottom;
    padding: 25px 0 50px 0;
  }

  #intro h1 {
    height: 100px;
    margin: 0;
    font-size: 80px;
    text-align: center !important;
  }

  /* Typography fixes */

  h1 {
    font-size: 4em;
  }

  #contents p {
    padding: 0 20px 0 0;
  }

  /* Seccions */

  section {
    background-size: 70%;
    padding: 75px 0 25px 0;
    margin: 0;
  }

  #diables-adults {
    padding-top: 150px;
    padding-bottom: 200px;
    margin-bottom: 150px;
    background: url("../img/backgrounds/bg-diables-adults.jpg") no-repeat left bottom;
  }

  #diables-adults figure {
    margin-top: -50px;
  }

  #timbalers-adults {
    padding-bottom: 50px;
    margin-bottom: 100px;
    background: url("../img/backgrounds/bg-timbalers.jpg") no-repeat right bottom;
  }

  #timbalers-adults p {
    padding: 0 20px;
  }

  #diables-infantils {
    padding-top: 150px;
    padding-bottom: 50px;
    margin-bottom: 150px;
    background: url("../img/backgrounds/bg-diables-infantils.jpg") no-repeat left bottom;
  }

  #percussio-infantils {
    padding-top: 100px;
    margin-top: 100px;
    margin-bottom: 50px;
    min-height: 100vh;
    background: url("../img/backgrounds/bg-timablers-infantils.jpg") no-repeat right center;
  }

  #percussio-infantils img {
    margin-top: 50px;
  }

  #bicorn {
    padding-top: 100px;
    padding-bottom: 150px;
    margin-bottom: 150px;
    background: url("../img/backgrounds/bg-bicorn.jpg") no-repeat right bottom;
  }

  #bicorn figure {
    margin-top: -100px;
  }

  #galeria {
    padding-top: 150px;
    margin-bottom: 150px;
  }

  #contacte {
    padding-top: 150px;
    margin-bottom: 150px;
  }

  #historia .historia-inner p {
    font-size: 20px;
    line-height: 1.8;
  }

}

/*
** 1200px or more
*/

@media

only screen and (min-width: 1200px) /*and (max-resolution: 1.5dppx),
only screen and (min-width: 2600px) and (min-resolution: 1.5dppx)*/ {

  /* Inici */

  #inici {
      height: calc(100vh);
      padding: 0;
  }

  /* Video */

  #video {
      margin: 25px 0 0 25px;
      max-width: 100%;
      width: calc(100% - 50px);
      height: calc(100vh - 100px);
      z-index: -2;
      overflow: hidden;
  }

  #dots {
      width: calc(100% - 50px);
      height: calc(100vh - 100px);
  }

  /* Intro */

  #intro {
    position: relative;
    top: -75px;
    background: url(../img/backgrounds/bg-intro.jpg) no-repeat right bottom;
    padding: 25px 0 50px 0;
  }

  #intro h1 {
    height: 100px;
    position: relative;
    top: -80px;
    font-size: 120px;
    text-align: center !important;
  }

}

/*
** 1600px or more
*/

@media
only screen and (min-width: 1600px) /*and (max-resolution: 1.5dppx),
only screen and (min-width: 2600px) and (min-resolution: 1.5dppx)*/ {

  /* Backgrounds */

  section {
    background-size: 100%;
  }

  /* Typography fixes */

  h1 {
    font-size: 4em;
  }

  #intro h1 {
    font-size: 110px;
  }

  #contents p {
    font-size: 16px;
  }

  /* Sections Specific */

  #intro h1 {
    font-size: 120px;
    margin-bottom: 100px;
    padding: 0 0 30px 0;
    letter-spacing: 5px;
    text-align: left;
    line-height: 100px;
    text-transform: uppercase;
  }

}

@media
only screen and (max-width: 768px) and (orientation: landscape) {

  /* Inici */

  #inici {
      height: calc(100vh - 210px);
      padding: 0;
      margin: -50vh 0 50vh 0;
      margin-bottom: calc(50vh + 50px);
  }

  /* Video */

  #video {
      margin: 25px 0 0 25px;
      max-width: 100%;
      width: calc(100% - 50px);
      height: calc(100vh);
      z-index: -2;
      overflow: hidden;
  }

  #dots {
      width: calc(100% - 50px);
      height: calc(100vh);
  }

}

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://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: 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:
   http://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:
                                   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,
    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;
    }

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

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

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