@font-face {
  font-family: 'knockout-welterweight';
  src: url('../fonts/Knockout-HTF50-Welterweight.otf');
}

@font-face {
  font-family: 'knockout-JuniorWelterwt';
  src: url('../fonts/Knockout-HTF30-JuniorWelterwt.otf');
}



/*! HTML5 Boilerplate v6.1.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;
}

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

/*main panel styles*/

h3 {
  font-family: 'knockout-welterweight';
  font-size: 26px;
  letter-spacing: 4px;
  font-smooth: always;
}

p {
  font-family: 'Libre Baskerville', serif;
  font-style:normal;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h3 {
  -webkit-font-smoothing: antialiased;
}

a, a:visited {
  color:white;
  text-decoration: none;
}

.no-wrap-desktop {
  white-space:nowrap;
}

@media screen and (max-width:900px) {
  .no-wrap-desktop {
    white-space:normal;
  }
}


#container {
  max-width: 100vw;
  overflow: hidden;
}

.clear {
  clear:both;
}

.panel {
  min-height:100vh;
  width:100%;
  position:relative;
}

.panel.home {
  text-align:center;
}

.panel.about {
  background-color: #23313e;
}

.panel.book1 {
  background-image: url("../img/book-background.jpg");
  background-size:cover;
}

.panel.book2 {
  background-image: url("../img/shorts-background.jpg");
  background-size:cover;
}

.panel.film {
  background-image: url("../img/film-background.jpg");
  background-size:cover;
}


.panel.events {
  background-image: url("../img/events-background.jpg");
  background-size:cover;
}

.panel.shorts {
  background-image: url("../img/shorts-background.jpg");
  background-size:cover;
}
.panel.shorts {
  background-image: url("../img/shorts-background.jpg");
  background-size:cover;
}

.panel.contact {
  background-image: url("../img/contact-background.jpg");
  background-size:cover;
  background-position-y: bottom;
}



.home-background {
  position:absolute;
  top:0;
  left:0;
  height:100%;
  width:100%;
  background-size:cover;
  z-index:0;
  background-position: top center;
  opacity:0;
}

.home-background.init {
  opacity:1;
}

.home-background-1 {
  background-image: url("../img/homepage-animated/head1.jpg");
}

.home-background-2 {
  background-image: url("../img/homepage-animated/head2.jpg");
}

.home-background-3 {
  background-image: url("../img/homepage-animated/head3.jpg");
}

.home-background-4 {
  background-image: url("../img/homepage-animated/head4.jpg");
}

.home-background-5 {
  background-image: url("../img/homepage-animated/head5.jpg");
}

.home-background-6 {
  background-image: url("../img/homepage-animated/head6.jpg");
}



/* nav */
.desktop-nav {
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:100px;
  background-color:white;
}

@media screen and (max-width:900px) {
  .desktop-nav {
    display:none;
  }

}

.desktop-nav ul {
  list-style-type: none;
  width:100%;
  height:100%;
  padding:0;
  margin: 0;
  cursor:pointer;
}


.desktop-nav ul li {
  width:16.65%;
  height:100%;
  background-color:#5387b7;
  color:white;
  float:left;

  transition: opacity 0.3s;
  position:relative;
}

.desktop-nav ul li span{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-family: 'knockout-welterweight';
  font-size: 25px;
  letter-spacing: 2px;
}

.desktop-nav ul li:hover {
  opacity:0.8;
}

button:focus {
  outline:0;
}

/* mobile nav */
.menu-btn {
  display:none;
  position:fixed;
  top:20px;
  right:20px;
  z-index:100;
  cursor:pointer;
}

.hamburger {
  display:none;
  position:fixed;
  top:20px;
  right:20px;
  z-index:200;
  cursor:pointer;
}

@media screen and (max-width:900px) {
  .hamburger {
    display:block;
  }
}

.hamburger-inner, .hamburger-inner:after, .hamburger-inner:before {
  background-color:white !important;
}

.pushy {
  background-color: #5387b7 !important;
}

.mobile-nav ul {
  list-style-type: none;
  background-color: white;
  padding: 0;
  margin: 0;
  cursor: pointer;
  margin-top: 0 !important;
}

.mobile-nav ul li {
  width:100%;
  background-color:#5387b7;
  padding:20px;
  color:white;
  transition: opacity 0.3s;
  position:relative;
}

.mobile-nav ul li:hover {
  opacity:0.8;
}

.mobile-nav ul li span{
  font-family: 'knockout-welterweight';
  font-size: 18px;
  letter-spacing: 2px;
}

/* Home Panel */
h1 {
  font-size: 72px;
  display: inline-block;
  margin-top: 10vh;
  font-family: 'knockout-JuniorWelterwt';
  letter-spacing: 8px;
  position:relative;
}

@media screen and (max-width:900px) {
  h1 {
    font-size: 46px;
    margin-top: 20vh;
  }
}

h1 span:nth-child(1) {
  color:white;
}

h1 span:nth-child(2) {
  color:#5387b7;
}

.home-quote-container {
  color: white;
  width: 400px;
  position: absolute;
  left: 50%;
  margin-left: -200px;
  bottom: 150px;
  opacity:0;
}
@media screen and (max-width:900px) {
  .home-quote-container {
    color: white;
    width: 300px;
    position: absolute;
    left: 50%;
    margin-left: -150px;
    bottom: 80px;
  }
}

.home-quote-container .home-quote p{
  font-size:20px;
  font-style: italic;
  margin: 16px 0;
}

.home-quote-container .home-quote-author p {
  margin: 2px 0;
  font-size:14px;
}

.home-quote-container .home-quote-author {
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
}

/*Panel Setup*/

.panel-left {
  width:50%;
  height:100%;
  display:inline-block;
}

.panel-right {
  width:50%;
  height:100%;
  display:inline-block;
  position:absolute;
}

@media screen and (max-width:900px) {
  .panel-left {
    width:100%;
    display:block;
    position:static;
  }

  .panel-right {
    width:100%;
    display:block;
    position:static;
  }
}

.panel-content {
  margin: 0 auto;
  color: white;
  max-width: 400px;
  padding: 20px;
  padding-top:30px;
}

.full-width-content.panel-content {
  max-width: none;
  height: 100%;
  position: relative;
}

.panel-right-text h3 {
  color: white;
  position: absolute;
}

@media screen and (max-width:900px) {
  .panel-right-text h3 {
    position:static;
    margin:0;
    margin-bottom:40px;
    font-size: 18px;
    text-align: center;
    width: 46%;
    margin-left: 27%;
  }
}

/* About Section */
.about-right {
  background-image: url("../img/about-right.jpg");
  background-size:cover;
}

/* Book Section */

.book1 .panel-right-text h3 {
  bottom:20%;
}

.book-cover {
  width: 35%;
  height: auto;
  margin-bottom: 40px;
}

@media screen and (max-width:900px) {
  .book-cover {
    width: 80%;
    margin-bottom: 30px;
  }
}

/* Film section */

.film-quote {
  font-style:italic;
  margin:20px 0;
}

.film-quote span {
  font-style:normal;
  text-transform:uppercase;
  font-size:12px;
  margin-left:5px;
  white-space:nowrap;
}

.film .panel-right-text h3 {
  bottom:10%;
  width:70%;
}

@media screen and (max-width:900px) {
  .film .panel-right-text h3 {
    margin-left:15%;
  }
}

.dvd-cover {
  width: 35%;
  height: auto;
  margin-bottom: 40px;
}

@media screen and (max-width:900px) {
  .dvd-cover {
    width: 60%;
    margin-bottom: 30px;
  }
}

/*book2 section*/

.book2-content {
  width:70%;
}


/* Events Section */
.events-component-container {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translate(-50%,-50%);
  padding: 20px;
  max-height: 80%;
}


.events-component {
  max-height: 60vh;
  width: 80vw;
  max-width: 900px;
  border: 10px solid white;
  overflow-y: scroll;
}

@media screen and (max-width:900px) {
  .events-component {
    max-height:none;
  }
}

.events-container {
  padding: 0 30px;

  max-height:500px;
  /*overflow-y: scroll;*/
}

p.events-header {
  font-family: 'knockout-welterweight';
  text-align: center;
  letter-spacing: 3px;
  font-size: 18px;
}

.events-row {
  width:100%;
  margin:20px 0;
  padding:0;
}

.events-row .events-column {
  float:left;
  width:25%;
  margin:0;
  font-family: 'knockout-welterweight';
  font-size: 18px;
  letter-spacing: 3px;
  white-space: nowrap;
  text-align: left;
}

.events-row .events-column:nth-last-child(2) {
  text-align:right;
}

@media screen and (max-width:1300px) {
  .events-row .events-column {
    margin: 0;
    letter-spacing: 1px;
    font-size: 14px;
  }

  .events-row .events-column:nth-last-child(2) {
    text-align:left;
  }
}


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

  .events-component-container {
    position:static;
    top:0;
    left:0;
    transform:none;
    padding:0;
    max-height:none;
  }

  .events-component {
    border:none;
    width:100%;
  }

  .events-container {
    max-height:none;
  }

  .events-row {
    width: 100%;
    margin: 20px 0;
    padding: 0;
    border-bottom: 1px solid white;
  }

  .events-row .events-column {
    width: 50%;
    float:left !important;
  }
}

.events-row .events-column:last-child {
  float:right;
}

@media screen and (max-width:900px) {
  .events h3 {
    margin-left:0;
  }
}

/* Contact */

.contact a {
  color:white;
}

.social-icons a {
  float:left;
  margin-right:20px;
}

.social-icons a:nth-child(2) {
  margin-top:5px;
}

.social-icons img {
  width: 50px;
}


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