/**************************************************************************
 * Basic Styles
 *************************************************************************/
.content {
  position: relative;
}

#event-nav ul {
  float: right;
  margin: 0;
  padding: 0;
}

#event-nav li {
  float: left;
  height: 68px;
  line-height: 68px;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  position: relative;
}

/* Use pseudo-element instead of old, background .png */
#event-nav li.active:after {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 15px solid;
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  font-size: 0;
  line-height: 0;
}

#event-nav li a {
  text-decoration: none;
}

#event-control-bar {
  height: auto;
  padding: 1em;
  position: relative;
}

#event-control-bar.event-list {
  margin-bottom: 3em;
}

.view-calendar #event-control-bar {
  margin-bottom: 2em;
}

#event-control-bar .event-list-title {
  color: #999;
  font-size: 21px;
  /* font-weight: bold; */
  left: 30px;
  position: absolute;
  top: 15px;
}

.event-left {
  float: left;
}

.event-right {
  float: right;
}

/** Controls - Controls are separate for cal/list views because they have very different markup **/
/* list controls */
#event-stage {
  position: relative;
}

#event-stage .sort-heading {
  margin-top: 2em;
}

.list-controls {
  display: none;
  float: left;
  line-height: 30px;
  max-width: 221px;
  position: absolute;
  text-align: center;
  top: -110px;
  width: 30%;
}

.list-month-title {
  /* font-weight: bold; */
  line-height: 30px;
  margin: 0 25px 0 0;
}

.list-event-prev {
  position: absolute;
  right: 20px;
  top: 7px;
  content: "";
  width: 0;
  height: 0;
  border-right: 11px solid #333;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  font-size: 0;
  line-height: 0;
}

.list-event-next {
  position: absolute;
  right: -4px;
  top: 7px;
  content: "";
  width: 0;
  height: 0;
  border-left: 11px solid #eee;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  font-size: 0;
  line-height: 0;
}

.list-event-prev.hasPrev {
  border-right-color: #ff3c5e;
  cursor: pointer;
}

.list-event-next.hasNext {
  border-left-color: #ff3c5e;
  cursor: pointer;
}

/* calendar controls */
.calendar-month {
  /* background: url('/_assets/img/layouts/events_3/month-arrows.png') no-repeat right 8px; */
  display: block;
  float: left;
  left: 10px;
  line-height: 30px;
  margin: 0;
  padding-right: 50px;
  position: relative;
  text-align: center;
  top: -110px;
  width: 221px;
}

.calendar-month:before {
  position: absolute;
  right: 20px;
  top: 24px;
  content: "";
  width: 0;
  height: 0;
  border-right: 11px solid #333;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  font-size: 0;
  line-height: 0;
}

.calendar-month:after {
  position: absolute;
  right: -4px;
  top: 24px;
  content: "";
  width: 0;
  height: 0;
  border-left: 11px solid #333;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  font-size: 0;
  line-height: 0;
}

.calendar-prev {
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 24px;
  content: "";
  width: 0;
  height: 0;
  border-right: 11px solid #ff3c5e;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  font-size: 0;
  line-height: 0;
  z-index: 2;
}

.calendar-next {
  cursor: pointer;
  position: absolute;
  right: -4px;
  top: 24px;
  content: "";
  width: 0;
  height: 0;
  border-left: 11px solid #ff3c5e;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  font-size: 0;
  line-height: 0;
  z-index: 2;
}

/* ---------- List ---------- */
.list-time {
  border: none;
  float: left;
  line-height: 1.3;
  margin-right: -68px;
  text-align: center;
  text-transform: uppercase;
  width: 3em;
}

p.list-time-day,
p.list-time-month {
  display: block;
  margin: 0;
  padding: 0;
}

p.list-time-day {
  border-radius: 0;
  font-size: 20px;
  line-height: 1;
  padding: 10px 0 6px;
}

p.list-time-month {
  border-radius: 0 0 2px 2px;
  font-size: .75em;
  line-height: 1;
  padding: 8px 0;
}

.list-day-detail {
  padding-left: 68px;
}

.list-weekday {
  border-bottom: 1px solid;
  line-height: 1.5;
  margin-bottom: .65em;
  padding: 14px 0;
  font-size: 1.25rem;
  text-transform: uppercase;
  font-weight: 500;
}

@media (min-width: 768px) {
  .list-weekday {
    font-size: 1.5rem;
  }
}

.nrf-message {
  text-align: center;
}

.day-stage {
  margin-top: 20px;
}

/* -------- Calendar ------- */
#cal-responsive {
  display: none;
}

.calendar {
  table-layout: fixed;
  width: 100%;
}

.calendar th {
  line-height: 1.1;
  padding: 10px;
  text-align: center;
}

.calendar td {
  border: 1px solid;
  height: 75px;
  padding: 3px;
  vertical-align: top;
}

.calendar td > a {
  border-radius: 3px;
  display: block;
  float: left;
  /* font-weight: bold; */
  line-height: 1.1;
  margin-bottom: 5px;
  padding: 3px;
  text-decoration: none;
}

.calendar td ul {
  clear: both;
  margin: 0 0 0 15px;
  padding: 0;
}

.calendar td ul li {
  line-height: 1.1;
  margin: 0 0 15px;
}

/* Featured Events */
#featured-events {
  margin: 45px 0;
}

.featured-event {
  /* float: left; */
  margin-bottom: 2%;
  /* width: 31.68%; */
}

.featured-event.end {
  margin-right: 0;
}

.featured-image {
  display: block;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  width: 100%;
  padding-top: 56.25%;
}

.featured-image .event-photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  opacity: 1.0;
  transition: opacity .25s ease-in-out;
  -moz-transition: opacity .25s ease-in-out;
  -webkit-transition: opacity .25s ease-in-out;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.featured-description {
  left: 0;
  padding: 6% 3.45%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  opacity: 1.0;
  background: transparent;
}

.featured-image:hover > .event-photo {
  opacity: 0.08;
}

.featured-description > p {
  margin: 0;
  top: 50%;
  position: relative;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  text-align: center;
}

.event-row {
  margin-bottom: 10px;
  width: 100%;
}

/**************************************************************************
 * Search field
 *************************************************************************/
#category-selector,
#event_categories div {
  float: left;
}

#event-search {
  display: block;
  margin-left: 1em;
  float: right;
  position: relative;
}

#event-search-term {
  border: 0;
  height: 47px;
  padding: 4px 1em 0;
  background-color: #f7f7f7;
}

#search_submit {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
  width: 18%;
  height: 47px;
  text-align: center;
  margin: 0;
  padding: 0;
  font-size: 0;
  color: #ff3c5e;
  background-color: #660ba2;
  text-indent: -9999px;
  cursor: pointer;
  border: none;
}

#search_submit + span.icon {
  color: #ff3c5e;
  font-size: 1.25rem;
  z-index: 2;
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  right: .5em;
  pointer-events: none;
}

#search_submit:hover + span.icon {
  color: #fafafa;
}

/**************************************************************************
 * Font & Sizing
 *************************************************************************/
#event-nav li {
  font-size: 20px;
}

.list-month-title {
  font-size: 22px;
}

.calendar th {
  font-size: 17px;
}

.calendar td {
  /* this is the number */
  font-size: 13px;
}

.calendar td ul li {
  font-size: 12px;
}

.calendar-month {
  font-size: 22px;
  font-weight: 400;
}

.list-time-day {
  font-size: 24px;
}

.featured-description p {
  font-size: 14px;
}

.featured-start {
  margin-bottom: 0;
}

.featured-event .meta {
  font-size: 12px;
  display: none;
  /* Seems to be unnecessary clutter maybe */
}

.featured-event h2 {
  line-height: 1.35;
}

/**************************************************************************
 * Colors
 ***************************************************************************/
#event-nav {
  background-color: transparent;
  border-bottom: 2px solid;
}

#event-nav li a:hover,
#event-nav li.active a {
  /* color: #303030; */
}

#event-control-bar {
  background-color: transparent;
}

/* .calendar-month,
.list-month-title {
  color: #999;
} */
.calendar th {
  background-color: #333;
  color: #fff;
}

.calendar td {
  border-color: #dfdfdf;
}

.calendar td > a {
  color: #333;
}

.calendar td > a:hover {
  background-color: #599885;
  color: #fff;
}

.list-time-day {
  background-color: #f7f7f7;
}

.list-time-month {
  background-color: #660ba2;
  color: #fafafa;
}

.meta {
  color: #555;
}

/**************************************************************************
 * Common Overrides
 *************************************************************************/
.calendar td ul li {
  list-style: none;
}

.calendar td ul li a {
  text-decoration: none;
}

.event h3 {
  margin-bottom: 5px;
}

/*******************************************************
 * For smaller displays
 *******************************************************/
@media only screen and (max-width: 50em) {
  #event-nav ul {
    float: none;
  }
  #event-nav li {
    height: auto;
    padding: 2.5% .5em;
    text-align: center;
    width: 45%;
    font-size: 1em;
    line-height: 1.5;
  }
  #event-nav li.featured.active,
  #event-nav li.active {
    background: 0;
  }
  #event-nav li.active:after {
    border-bottom: 12px solid;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    bottom: -2px;
  }
  #event-nav li a {
    display: inline-block;
  }
  .list-controls {
    width: 75%;
  }
  #cal-responsive {
    display: block;
  }
  #cal-wrap {
    display: none;
  }
  .featured-description {
    display: none;
  }
  #event-control-bar {
    height: auto;
  }
  .content.view-calendar #event-control-bar {
    display: none;
  }
  #event-control-bar .event-right {
    border-bottom: none;
    float: none;
    margin-bottom: 40px;
    padding-bottom: 10px;
    width: 100%;
  }
  #category-selector {
    float: none;
    margin: 0 auto 1em;
  }
  #category-selector #category_select-button {
    margin: auto;
  }
  #event-search {
    float: none;
    margin: 0 auto 1em;
    position: relative;
    width: 196px;
  }
  #event-search-term {
    float: none;
    padding: 0 1em;
    width: 85%;
    height: 40px;
  }
  #search_submit {
    float: right;
    left: 0;
    position: relative;
    top: 0;
    width: 15%;
    height: 40px;
  }
  #search_submit + span.icon {
    right: 6px;
    font-size: 1rem;
    transition: color .25s ease-in-out;
    -moz-transition: color .25s ease-in-out;
    -webkit-transition: color .25s ease-in-out;
  }
  #event-nav li:last-child {
    display: none;
  }
  .floatleft {
    float: none;
    margin-bottom: 10px;
  }
  #event-stage .list-controls {
    text-align: left;
    width: 210px;
    margin-left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    top: -110px;
  }
}

@media (max-width: 375px) {
  #event-nav ul li {
    font-size: 16px;
  }
}

/**************************************************************************
 * HTML 5 considerations
 *************************************************************************/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section {
  display: block;
}

audio,
canvas,
video {
  display: inline-block;
}

/**************************************************************************
 * Helper Functions - From HTML 5 Boilerplate

/* Hide from both screenreaders and browsers: h5bp.com/u */
.hidden {
  display: none !important;
  visibility: hidden;
}

/* Hide only visually, but have it available for screenreaders: h5bp.com/v */
.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: h5bp.com/p */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/* Hide visually and from screenreaders, but maintain layout */
.invisible {
  visibility: hidden;
}

/* Contain floats: h5bp.com/q */
.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

.push {
  clear: both;
}

.floatleft {
  float: left;
}
