/**
 * @file
 * Subtheme specific CSS.
**/

/***********************
 ***** Font Tweaks *****
***********************/
body {
  font-family: 'proximaNovaRegular';
  font-style: normal;
  font-weight: 300;
  line-height: 1.2;
}

h1 {
  font-family: nationalBook;
  text-transform: uppercase;
  color: #888a8d;
  margin: 0;
}

b,strong {
  font-weight: bold;
}

.navbar-nav {
  text-transform: uppercase;
  font-size: 16px;
  font-family: 'proximaNovaRegular';
  margin: 0 1.5em 0 0;
  padding: 0 0 0 0;
  font-weight: 700;
}

.--nationalBook,
.nationalBook {
  font-family: 'nationalBook';
  font-style: normal;
  font-weight: 300;
}

.--nationalBookItalic,
.nationalBookItalic {
  font-family: 'nationalBookItalic';
  font-style: italic;
  font-weight: 300;
}

.--nationalBookMediumItalic,
.nationalBookMediumItalic {
  font-family: 'nationalBookMediumItalic';
  font-style: italic;
  font-weight: 500;
}

.--proximaNovaRegular,
.proximaNovaRegular {
  font-family: 'proximaNovaRegular';
  font-style: normal;
  font-weight: 300;
}

.--proximaNovaSBold,
.proximaNovaSBold {
  font-family: 'proximaNovaSBold';
  font-style: normal;
  font-weight: 700;
}

.--letterSpacing1 {
  letter-spacing: 1px;
}

.--fontSmaller,
.fontSmaller {
  font-size: smaller;
}

.--fontLarger,
.fontLarger {
  font-size: larger;
}

.--fontLarger,
.fontXLarge {
  font-size: x-large;
}

/**************************
 ***** General Tweaks *****
**************************/
img {
  max-width: 100%;
  height: auto;
}

.nav-link {
  color: #52902e;
}

.layout-main-wrapper .nav-link:focus, .layout-main-wrapper .nav-link:hover,
.nav-link:focus, .nav-link:hover,
.link:focus, .link:hover,
a:focus, a:hover {
  color: #e27b1c;
}

/********************************
 ***** Header Region Tweaks *****
********************************/
#block-mainlogo {
  height: 196px;
  margin: .75em 0;
  background-image: url('images/header_bk.png');
}

#block-mainlogo > .content {
  background: white;
  width: 80%;
  min-width: 220px;
  margin-left: auto;
  margin-right: auto;
  height: 196px;
  padding-left: .75em;
  padding-right: .75em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#block-mainlogo > .content .field--name-field-media-image {
  max-width: 290px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

#block-mainlogo > .content .field--name-field-media-image img {
  margin: 0;
}

#block-mainlogo > .content .field--name-field-image-caption {
  line-height: 1;
}

.region-header-belt {
  background-color: #8BBE5D;
  color: white;
  min-height: 3.5em;
}

.region-header-belt .block {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-top: .5rem;
}

.region-header-belt p {
  margin: .5em;
  padding: 0;
}

.region-header-belt a {
  color: white;
}

#navbar-top .nav-link {
  color: white;
}

#navbar-top .nav-link:focus, #navbar-top .nav-link:hover {
  text-decoration: underline;
}

@media (min-width: 769px) {
  #block-mainlogo > .content {
    margin-left: 16.6666667%;
    width: 25%;
  }

  #block-mainlogo > .content > .field--name-field-media-image img {
    margin-top: 16px;
  }
}


/* =============================================================================
 *   Jake's edits
 * ========================================================================== */

/*
 * assorted changes
 */
 .add-large-margin-bottom {
  margin-bottom: 3em;
}

.indent-body-lists.pane-node-body ul {
  margin-left: 1.5em;
}

input.form-text[type="text"] {
    height: 2.5em;
}

.font-smaller {
    font-size: smaller;
}

.add-1em-m-top {
    margin-top: 1em;
}

.no-m-bottom {
    margin-bottom: 0;
}

.add-1em-m-bottom {
    margin-bottom: 1em;
}

.add-2em-m-bottom {
    margin-bottom: 2em;
}

.add-3em-m-bottom:not(.views-row-last) {
    margin-bottom: 3em;
}

/* Increase mobile text size*/
@media screen and (max-width: 768px) {
    p {
        font-size: 120%;
    }
}

/*
 * search form
 */
.page-search .block-facetapi {
    margin-bottom: 1em;
}

.page-search .block-facetapi > h2 {
    background: #8bbe5d;
    padding-left: 10px;
    color: #5c5c5c;
    font-size: 1.8em;
    margin: 0;
}

.page-search .block-facetapi > .content {
    background: #efefef;
    padding: 1em 0 .5em;
}

.page-search .block-facetapi > .content a {
    color: #52902e;
}

.page-search #views-exposed-form-search-page::after {
    content: "Below is a list of all results that match your search terms. Use the facets to further refine your results.";
}

.page-search .views-widget-filter-search_api_views_fulltext input {
    width: 25em;
    max-width: 100%;
}

.page-search .views-field-search-api-excerpt {
    background: lightyellow;
    padding: .5em;
    margin: 1em 0;
}

.page-search .pager {
    padding: 2em 0 0
}

.page-search .c-search > .view-footer {
    text-align: center;
    background: #efefef;
    padding: .5em;
}

.page-search .c-search .views-field-title h2 {
  line-height: 1.1;
}

.type-icon {
    float: right;
    height: 4em;
    width: 4em;
    margin: 1em;
    clear: right;
}

.type-icon .field-content {
    font-size: 1px;
    visibility: hidden;
}

.type-presenter {
    background-image: url(images/presenter-gray.png);
    background-size: contain;
}

.type-event {
    background-image: url(images/event-gray.png);
    background-size: contain;
}

.type-page {
    background-image: url(images/page-gray.png);
    background-size: contain;
}

.region-header #block-search-form {
    position: absolute;
    right: 3em;
    top: -6em;
}

.c-search .view-content {
    margin: 1em;
}

.c-search--upcoming-events .view-content {
    padding: 1em;
    background: #efefef;
}

.no-results {
  border: 5px dotted pink;
  padding: 1em;
}

.no-results h2 {
  margin-top: .75rem;
}

/*
 * Views
 */

/* Entity pager */
.h-event-pager {
    position: relative;
}

/* Filters */
.themed-filters .views-exposed-form {
    position: relative;
    background: #ddd;
}

.themed-filters .views-exposed-widgets {
    margin: 0;
}

.themed-filters .views-exposed-widgets .views-exposed-widget {
    padding: .5em;
    display: inline-block;
}

.themed-filters .views-exposed-form .views-buttons {
    text-align: center;
    margin-bottom: .25em;
    clear: left;
}

.themed-filters .views-exposed-form .views-buttons .views-submit-button,
.themed-filters .views-exposed-form .views-buttons .views-reset-button {
    float: none;
    padding: .5em;
}

.themed-filters .views-exposed-form .views-buttons .views-submit-button input,
.themed-filters .views-exposed-form .views-buttons .views-reset-button input {
    margin: 0;
}

/*
 * Menu tweaks
 */
#mainmenu {
    position: relative;
    z-index: 999;
}

#mobileMenu a {
    color: #3F7112;
}

#mobileMenu a:hover {
    color: #264D00;
}

@media screen and (min-width:480px) and (max-width:768px),
screen and (min-device-width:480px) and (max-device-width:768px) {
  .region-header #block-search-form {
    right: 1em !important;
    top: -16em !important;
  }

  #mobileMenu ul {
    margin-top: 2em;
  }
}

@media screen and (min-width:240px) and (max-width:480px),
screen and (min-device-width:240px) and (max-device-width:480px) {
  .region-header #block-search-form {
    right: 1em !important;
    top: -16em !important;
  }

  #mobileMenu ul {
    margin-top: 2em;
  }
}

/*
 * front page slideshow
 */
.views_slideshow_cycle_main {
  width: 99.5%;
  float: left;
}
.views_slideshow_cycle_main .views-slideshow-cycle-main-frame {
  width: 99.5% !important;
  height: auto;
}
.views_slideshow_cycle_main .views-slideshow-cycle-main-frame-row {
  width: 99.5% !important;
  height: auto;
}
.views_slideshow_cycle_main .field-content {
  max-width: 99.5%;
  width: 99.5%;
}
.views_slideshow_cycle_main .field-content img {
  max-width: 99.5%;
  width: 99.5%;
  height: auto;
  margin: 0;
  padding: 0;
}

/*
 * front page genre tags
 */
#options ul li {
  width: 16.27% !important;
  text-align: center !important;
  border: 1px solid hsla(0, 0%, 0%, 0.2);
  margin-bottom: 0;
}

@media screen and (min-width:480px) /*and (max-width:768px)*/,
screen and (min-device-width:480px) /*and (max-device-width:768px)*/ {
  #options ul li {
    width: 22% !important;
    margin-left: 2%;
  }

    .view-id-list_of_events .view-content img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: .5em;
    }
}

@media screen and (min-width:240px) and (max-width:480px),
screen and (min-device-width:240px) and (max-device-width:480px) {
  #options ul li {
    width: 30% !important;
    margin-left: 2%;  }

    .view-id-list_of_events .view-content img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        padding: .5em;
    }
}

@media print {
  a[href]:after {
    content:none;
  }
}

/*
 * New events isotope page
 */

.c-iso-filter {
    padding-bottom: 1.0em;
}

.c-iso-filter ul.isotope-options {
    margin: 0;
    list-style: none;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    max-width: 97.5%;
}

.c-iso-filter .isotope-options.clearfix::after {
    width: 0;
}

.c-iso-filter ul.isotope-options li {
    flex: 1 1 calc(25% - 4px);
    margin: 2px;
    min-width: 8em;
}

.c-iso-filter ul.isotope-options li {
    text-align: center !important;
    border: 1px solid hsla(0,0%,0%,0.2);
}

.c-iso-filter ul.isotope-options li a.selected {
    background-color: #e68d3b;
    text-shadow: none;
    color: white;
}

.c-iso-filter ul.isotope-options li a {
    font-family: proxima_nova_rgregular;
    display: block;
    padding: 0.4em 0.5em;
    background-color: #818287;
    color: #fff !important;
    font-size: 0.8em;
    text-shadow: 0 1px hsla(0,0%,100%,0.5);
    border-left: 1px solid hsla(0,0%,100%,0.3);
    border-right: 1px solid hsla(0,0%,0%,0.2);
}

.c-iso-events__recent-title hr {
    border-color: rgb(230, 141, 59);
}

.c-iso-events__recent-title h2 {
    font-family: nationalBookItalic;
    color: rgb(230, 141, 59);
}

.view-content-events-front .view-footer {
  text-align: center;
}

.view-content-events-front a {
  text-decoration: none;
}

.view-content-events-front .c-event-info--bottom a {
  color: #222;
}

.view-content-events-front.isotope-container {
    list-style-type: none;
}

.view-content-events-front.isotope-container .isotope-element {
    margin: 5px;
    line-height: 1;
    border: 1px solid #efefef;
}

.isotope-element .invisible-image-link {
    position: absolute;
    z-index: 999;
    opacity: 0;
    transition: .5s;
}

.view-content-events-front .isotope-element .field--type-image,
.view-content-events-front .isotope-element .field--type-image img {
  margin: 0;
  float: initial;
}

.isotope-element:hover .c-event-info--bottom,
.isotope-element:hover .c-event-info--sash {
    opacity: 0;
    transition: .5s;
}

.isotope-element:hover .c-event-info--reveal {
    opacity: 1;
    transition: .5s;
}

.isotope-element:hover .c-event-info__wrapper--reveal {
    opacity: .95;
    transition: .5s;
}

.c-event-date {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
    background-image:url('images/corner.png');
    background-repeat:no-repeat;
    background-position: right top;
    width: 64px;
    height: 60px;
    z-index: 999;
}
.c-event-date .field-content {
    padding-top: 10px;
    padding-right: 3px;
    text-align: right;
    color: #8bbe5d;
    font-size: 90%;
}

.c-event-info--sash {
    background-image: url(images/booksash.png);
    background-repeat: no-repeat;
    height: 100px;
    width: 100px;
    position: absolute;
    top: 0;
}

.view-display-id-block_upcoming .c-event-info--sash.--livestream,
.view-display-id-block_ongoing .c-event-info--sash.--livestream,
.view-display-id-attachment_upcoming .c-event-info--sash.--livestream,
.view-display-id-attachment_ongoing .c-event-info--sash.--livestream  {
    background-image: url(images/booksash-watch.png);
}

.view-display-id-block_upcoming .c-event-info--sash.--inperson,
.view-display-id-attachment_upcoming .c-event-info--sash.--inperson {
  background-image: url(images/booksash-in-person.png);
}

.view-display-id-block_recent .c-event-info--sash.--livestream,
.view-display-id-attachment_recent .c-event-info--sash.--livestream {
  background-image: url(images/booksash-watch.png);
}

.view-display-id-block_school .c-event-info--sash.--school,
.view-display-id-attachment_school .c-event-info--sash.--school,
.view-display-id-block_a_school .c-event-info--sash.--school,
.view-display-id-attachment_a_school .c-event-info--sash.--school {
  background-image: url(images/booksash-school-visit.png);
}

.c-event-info__recording-link--sash,
.c-event-info__room--sash {
    font-size: .1px;
}

.c-event-info__wrapper--reveal {
    background: #fff;
    height: 100%;
    position: absolute;
    width: 100%;
    opacity: 0;
    overflow: hidden;
    transition: .5s;
    z-index: 1;
}

.c-event-info--reveal {
    opacity: 0;
    position: absolute;
    top: 50px;
    left: 20px;
    right: 20px;
}

.c-event-info__title--reveal {
    color: #8bbe5d;
    text-transform: uppercase;
    letter-spacing:2px
}

.c-event-info__presenter--reveal {
  color: #818287;
}

.c-event-info__blurb--reveal {
    color: #000;
    margin-top: 15px;
    font-size: 95%;
}


.c-event-info--bottom {
    position: absolute;
    color: #222;
    bottom: 0px;
    width: 224px;
    min-height: 80px;
    padding: 5px;
    /*background: url(/sites/all/themes/wbf/img/transparent.png);*/
    background: url('images/transparent.png');
}

.c-event-info__presenter--bottom,
.c-event-info__title--bottom {
    padding-left: 7px;
    padding-top: 7px;
}

/*
 * Sticky Buttons Region
 */
#stickybuttons {
    position: fixed;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(255,255,255,.9);
    padding: .5em 0 .25em;
}

#stickybuttons a {
    color: #5c5c5c !important;
}

.region-stickybuttons {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

.region-stickybuttons > div {
    padding: 0 .5em;
}

#block-block-7 .button {
    background-color: #a5dbdc;
}

#block-block-7 .button:hover {
    background-color: #e68d3b;
}

/*
 * fix things on events author descriptions list
 */
[class*="column"] + [class*="column"]:nth-child(3) {
  float: right;
}

.eventNode {
  clear: right;
}

.row.eventNode > .row.eventNode {
    margin-left: 0;
    margin-right: 0;
}

/*
 * Assorted views
 */
.view-list-of-events .views-exposed-form .views-widget .description {
  display: none;
}

/*
 * Events
 */
.c-event__link {
    margin-top: .5em;
    margin-bottom: .5em;
}

.c-event__link a,
.c-event__link a:hover {
    color: #5c5c5c;
}

/*
 * Sponsors
 */

.supporters ul li {
    display: block;
    margin-left: 0;
}

.supporters ul li:after {
    display: none;
}

/*
 * Menu and search
 */
@media (max-width: 768px) {
    .region-header #block-search-form {
        position: initial;
        text-align: center;
        top: 0;
        right: 0;
    }
    .page-search .region-header #block-search-form {
        display: none;
    }
}

/*
 * Hide and reveal image credit
 */
.reveal-element {
    position: absolute;
    bottom: 0;
    max-width: 146px;
    text-align: center;
    padding: 8px;
    opacity: 0;
    transition: .5s;
}

div.large-3:hover .reveal-element {
    position: absolute;
    bottom: 0;
    max-width: 146px;
    text-align: center;
    padding: 8px;
    background: #fff;
    border: 1px solid #ccc;
    opacity: 0.9;
    transition: .5s;
}

/*
 * Presenter
 */
 .twitter-link,
.facebook-link,
.instagram-link,
.x-link {
  padding-right: 15px;
}

.--icon {
  display: inline-block;
  height: 38px;
  text-indent: -9999px;
  width: 40px;
}

.twitter-link.--icon {
  background-image: url(images/twitter.png);
}

.twitter-link.--icon:hover,
.twitter-link.--icon:focus {
  background-image: url(images/twitter_hover.png);
}

.x-link.--icon {
  background-image: url(images/x_darkgray.png);
  background-size: contain;
}

.x-link.--icon:hover,
.x-link.--icon:focus {
  background-image: url(images/x_green.png);
}

.facebook-link.--icon {
  background-image: url(images/facebook.png);
}

.facebook-link.--icon:hover,
.facebook-link.--icon:focus {
  background-image: url(images/facebook_hover.png);
}

.instagram-link.--icon {
  background-image: url(images/instagram.png);
}

.instagram-link.--icon:hover,
.instagram-link.--icon:focus {
  background-image: url(images/instagram_hover.png);
}