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


/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  background: #000;
  color: #ccc;
  width: 100%;
  text-align: right;
}

.header h1 {
  margin: 0;
  float: left;
}

/* Wrapper */

.wrapper {
  max-width: 90%;
  margin: 0 auto;
}

@media (min-aspect-ratio: 4/3) {

  .wrapper {
    max-width: 80%;
  }

}

@media (min-aspect-ratio: 16/9) {

  .wrapper {
    max-width: 70%;
  }

}

/* Main Navigation */

.nav-main ul {
  list-style: none;
  margin: 0;
  float: right;
}

.nav-main li {
  float: left;
}

.nav-main a {
  color: #fc0;
  text-decoration: none;
  padding: 12px 24px;
  display: inline-block;
}

.nav-main a:hover {
  color: #f90;
}

@media screen and (max-width: 959px) {

  .nav-main {
    display: none;
  }

}

/* Sections */

.section h2 {
  position: relative;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: normal;
  margin-top: 8vh;
  margin-bottom: 2vh;
}

@media (max-width: 959px) and (orientation: landscape) {

  .section h2 {
    margin-top: 48px;
  }

}

/* Background Images */

.section--story {
  background: #000 url(../img/bg/story-bg.jpg) no-repeat;
  background-position: center;
  background-size: cover;
}

.section--stills {
  background: #000 url(../img/bg/stills-bg.jpg) no-repeat;
  background-position: center;
  background-size: cover;
}

.section--contact {
  background: #000 url(../img/bg/contact-bg.jpg) no-repeat;
  background-position: center;
  background-size: cover;
}

/* Centered Content */

.center {
  height: 80vh;
  position: relative;
}

.center * {
  position: absolute;
  top: 40vh;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Blockquotes */

blockquote {
  padding: calc(2vw + 2vh + 1vmin);
  margin: calc(1vw + 1vh + 0.5vmin);
  background: rgba(255, 255, 255, 0.75);
  font-size: calc(1vw + 1vh + 0.5vmin);
}

blockquote p {
  margin: 0;
}

/* Slider Images */

.stills-slider {
  position: relative;
}

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

/* Trailer Iframe */

.iframe-container {
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Vcard */

.vcard {
  max-width: 75%;
}

/* Events */

.events {
}

/* Screenings */

.screening {
  display: block;
  margin-bottom: calc(1vw + 1vh + 0.5vmin);
  font-size: calc(0.6vw + 0.6vh + 0.3vmin);
}

.screening__date {
  float: left;
  width: 15%;
  margin-right: 5%;
  box-sizing: border-box;
  border: 2px solid #e40303;
  padding: calc(0.6vw + 0.6vh + 0.3vmin);
}

.screening__location {
  float: left;
  width: 25%;
  margin-right: 5%;
}

.screening__text {
  float: left;
  width: 50%;
  color: #666;
}

@media screen and (max-width: 767px) {

  .screening {
    font-size: calc(0.8vw + 0.8vh + 0.4vmin);
  }

  .screening__date {
    width: 30%;
    margin-right: 10%;
  }

  .screening__location {
    width: 60%;
    margin-right: 0;
  }

  .screening_text {
    margin-top: calc(0.8vw + 0.8vh + 0.4vmin);
    float: none;
    width: auto;
  }

}

.screening__weekday {
  display: block;
  color: #ff8c00;
  text-align: center;
}

.screening__day {
  display: block;
  color: #ead900;
  text-align: center;
  font-size: calc(2vw + 2vh + 1vmin);
}

.screening__month {
  display: block;
  color: #008026;
  text-align: center;
}

.screening__time {
  display: block;
  color: #004dff;
  text-align: center;
}

.screening__event {
  color: #e40303;
}

.screening__cinema {
  display: block;
  color: #750787;
  font-weight: bold;
}

.screening__adress {
  display: block;
  color: #004dff;
}

.screening__pseudolink {
  color: #004dff;
}

/*!
 * fullPage 2.7.8
 * https://github.com/alvarotrigo/fullPage.js
 * MIT licensed
 *
 * Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
 */
html.fp-enabled,
.fp-enabled body {
    margin: 0;
    padding: 0;
    overflow:hidden;

    /*Avoid flicker on slides transitions for mobile phones #336 */
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
#superContainer {
    height: 100%;
    position: relative;

    /* Touch detection for Windows 8 */
    -ms-touch-action: none;

    /* IE 11 on Windows Phone 8.1*/
    touch-action: none;
}
.fp-section {
    position: relative;
    -webkit-box-sizing: border-box; /* Safari<=5 Android<=3 */
    -moz-box-sizing: border-box; /* <=28 */
    box-sizing: border-box;
}
.fp-slide {
    float: left;
}
.fp-slide, .fp-slidesContainer {
    height: 100%;
    display: block;
}
.fp-slides {
    z-index:1;
    height: 100%;
    overflow: hidden;
    position: relative;
    -webkit-transition: all 0.3s ease-out; /* Safari<=6 Android<=4.3 */
    transition: all 0.3s ease-out;
}
.fp-section.fp-table, .fp-slide.fp-table {
    display: table;
    table-layout:fixed;
    width: 100%;
}
.fp-tableCell {
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    height: 100%;
}
.fp-slidesContainer {
    float: left;
    position: relative;
}
.fp-controlArrow {
    -webkit-user-select: none; /* webkit (safari, chrome) browsers */
    -moz-user-select: none; /* mozilla browsers */
    -khtml-user-select: none; /* webkit (konqueror) browsers */
    -ms-user-select: none; /* IE10+ */
    position: absolute;
    z-index: 4;
    top: 50%;
    cursor: pointer;
    width: 0;
    height: 0;
    border-style: solid;
    margin-top: -20px;
    -webkit-transform: translate3d(0,0,0);
    -ms-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}
.fp-controlArrow.fp-prev {
    left: 2%;
    width: 0;
    border-width: 20px 20px 20px 0;
    border-color: transparent rgba(255, 255, 255, 0.75) transparent transparent;
}
.fp-controlArrow.fp-next {
    right: 2%;
    border-width: 20px 0 20px 20px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.75);
}
.fp-scrollable {
    overflow: scroll;
}
.fp-notransition {
    -webkit-transition: none !important;
    transition: none !important;
}
#fp-nav {
    position: fixed;
    z-index: 100;
    margin-top: -32px;
    top: 50%;
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
}
#fp-nav.right {
    right: 17px;
}
#fp-nav.left {
    left: 17px;
}
.fp-slidesNav{
    position: absolute;
    z-index: 4;
    left: 50%;
    opacity: 1;
}
.fp-slidesNav.bottom {
    bottom: 17px;
}
.fp-slidesNav.top {
    top: 17px;
}
#fp-nav ul,
.fp-slidesNav ul {
  margin: 0;
  padding: 0;
}
#fp-nav ul li,
.fp-slidesNav ul li {
    display: block;
    width: 8px;
    height: 8px;
    padding: 8px;
    position:relative;
}
.fp-slidesNav ul li {
    display: inline-block;
}
#fp-nav ul li a,
.fp-slidesNav ul li a {
    display: block;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
}
#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span,
#fp-nav ul li:hover a.active span,
.fp-slidesNav ul li:hover a.active span{
    background: #f60;
    border-radius: 100%;
 }
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    border: 0;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.75);
    left: 50%;
    top: 50%;
    margin: -4px 0 0 -4px;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}
#fp-nav ul li .fp-tooltip {
    position: absolute;
    top: -2px;
    color: #fff;
    font-size: 14px;
    font-family: arial, helvetica, sans-serif;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    display: block;
    opacity: 0;
    width: 0;
    cursor: pointer;
}
#fp-nav ul li:hover .fp-tooltip,
#fp-nav.fp-show-active a.active + .fp-tooltip {
    -webkit-transition: opacity 0.2s ease-in;
    transition: opacity 0.2s ease-in;
    width: auto;
    opacity: 1;
}
#fp-nav ul li .fp-tooltip.right {
    right: 20px;
}
#fp-nav ul li .fp-tooltip.left {
    left: 20px;
}
.fp-auto-height.fp-section,
.fp-auto-height .fp-slide,
.fp-auto-height .fp-tableCell{
    height: auto !important;
}


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