/*
---note: these are common colors.  designer may use some one off colors in layouts, etc.

$white: #ffffff;
$black: #000000;
$dark: #181f2a;
$altdark: #212832;
$red: #dd4c1a;
$orange: #feae5d;
$lightorange: #f4c154;
$blue: #a9b4b8;
$light: #f1f6f8;

*/
/**************************************************************************
 * Helper Functions - From HTML 5 Boilerplate
 *************************************************************************/
.push {
  clear: both;
}

.floatleft {
  float: left;
}

/**************************************************************************
 * event nav
 *************************************************************************/
#content #event-nav {
  font-weight: 400;
}

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

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

#content #event-nav li.active {
  background: url("/_assets/img/layouts/events/view-arrow-featured.png") no-repeat center bottom;
}

#content #event-nav li.featured.active {
  background: url("/_assets/img/layouts/events/view-arrow-featured.png") no-repeat center bottom;
}

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

#event-control-bar {
  position: relative;
  padding: 10px;
  height: 40px;
  padding-top: 20px;
}

#event-control-bar h3 {
  margin: 0;
}

#event-control-bar.event-list {
  margin-bottom: 2em;
  padding: 20px 0 10px;
}

#event-control-bar .event-list-title {
  position: absolute;
  top: 15px;
  left: 30px;
  font-size: 1.25em;
  font-weight: 700;
}

.event-left {
  float: left;
}

.event-right {
  float: right;
}

/** Controls - Controls are separate for cal/list views because they have very different markup **/
/* list controls */
.list-controls {
  float: left;
  position: relative;
  left: 22px;
  top: -80px;
  width: 30%;
  width: 221px;
  line-height: 30px;
  padding-right: 50px;
  text-align: left;
  display: none;
}
@media (min-width: 1028px) {
  .list-controls {
    text-align: center;
  }
}

.list-month-title {
  margin: 2px 25px 0 0;
  line-height: 40px;
  /* event-control-bar height */
  font-weight: 700;
}

.list-event-prev {
  float: left;
  position: absolute;
  right: 42px;
  top: 12px;
  font-size: 18px;
  display: none;
}
@media (min-width: 1028px) {
  .list-event-prev {
    right: 28px;
  }
}

.list-event-next {
  float: left;
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 18px;
  display: none;
}

.list-event-prev.hasPrev {
  cursor: pointer;
  display: block;
}
.list-event-prev.hasPrev:hover {
  opacity: .6;
}

.list-event-next.hasNext {
  cursor: pointer;
  display: block;
}
.list-event-next.hasNext:hover {
  opacity: .6;
}

/* calendar controls */
.calendar-month {
  display: block;
  width: 221px;
  float: left;
  margin: 0 0 0 0;
  line-height: 40px;
  /* event-control-bar height */
  position: relative;
  top: -48px;
  left: 10px;
  font-weight: 700;
  padding: 0;
  padding-right: 50px;
  text-align: center;
  *text-align: right;
  /*ie7 hack to make the layout at least look decent */
}

.calendar-prev {
  cursor: pointer;
  display: block;
  position: absolute;
  right: 16px;
  top: 4px;
  text-align: left;
  font-size: 18px;
}
.calendar-prev:hover {
  opacity: .6;
}

.calendar-next {
  cursor: pointer;
  display: block;
  position: absolute;
  right: 0;
  top: 4px;
  text-align: left;
  font-size: 18px;
}
.calendar-next:hover {
  opacity: .6;
}

/* ---------- List ---------- */
.list-time {
  width: 60px;
  float: left;
  margin-right: -80px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
}

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

p.list-time-day {
  text-transform: uppercase;
  font-size: 1.25em;
  border: 1px solid;
  border-top: 0;
}

p.list-time-month {
  text-transform: uppercase;
  font-size: 1.125em;
  border: 1px solid;
  border-bottom: 0;
  padding: 0;
}

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

.list-weekday {
  line-height: 1.1;
  font-size: 1.5em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 10px;
  margin-bottom: 10px;
  margin-top: 30px;
  font-weight: 700;
}
@media (min-width: 1028px) {
  .list-weekday {
    font-size: 2.5em;
  }
}

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

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

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

.calendar {
  width: 100%;
  table-layout: fixed;
  border: 0;
  text-align: left;
}

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

.calendar td {
  text-align: left;
  padding: 3px;
  height: 75px;
  /* will grow ... not sure how but it does */
  border: 1px solid;
  border-left: 0;
  border-top: 0;
  vertical-align: top;
}

.calendar td:first-child {
  border-left: 1px solid;
}

.calendar td > a {
  /* this is the clickable number */
  font-weight: 700;
  text-decoration: none;
  line-height: 1.1;
  display: block;
  padding: 3px;
  float: left;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  margin-bottom: 5px;
}

#content .calendar td ul {
  margin: 0 0 0 1.5em;
}

#content .calendar td ul {
  margin: 0 0 0 1em;
  padding: 0;
  clear: both;
}

#content .calendar td ul li {
  font-size: .875em;
  list-style: none;
  margin: 0 0 .5em 0;
  padding: 0;
  line-height: 1.1em;
}

#content .calendar td ul li:before {
  display: none;
}

/* Featured Events */
#featured-events {
  margin: 3em 0;
}

.featured-event {
  float: left;
  width: 31.68%;
  margin: 0 2.4% 3em 0;
  border-radius: 2em 0 0 0;
  overflow: hidden;
}

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

.featured-image {
  position: relative;
  overflow: hidden;
  display: block;
  margin-bottom: 1em;
  text-decoration: none;
  width: 100%;
  *z-index: 0;
}

.featured-image img {
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  left: 0;
  top: 0;
}

.featured-image img.featured-image-push {
  width: 100%;
  position: relative;
}

.featured-description {
  position: absolute;
  left: 0;
  top: 0;
  width: 92%;
  height: 88%;
  padding: 6% 4%;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.featured-image:hover .featured-description {
  opacity: 1;
  visibility: visible;
}

#content .featured-description p {
  margin: 0;
}

.featured-event h6 {
  margin: .125em 0;
}

.event-row {
  margin-bottom: 1em;
  width: 100%;
}

/**************************************************************************
 * Filtering
 *************************************************************************/
/* @group Select Menus */
#event-control-bar .ui-selectmenu-button {
  margin: 0 auto 1em auto;
  text-align: left;
}
@media (min-width: 1028px) {
  #event-control-bar .ui-selectmenu-button {
    float: left;
    margin: 0 1em 0 0;
  }
}

@media (min-width: 1028px) {
  #module-search {
    clear: none;
    padding: 0;
    float: left;
    margin: 0 0 0 0;
  }
}

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

/**************************************************************************
 * Font & Sizing
 *************************************************************************/
a {
  text-decoration: none;
}

.event h4 {
  margin-bottom: .25em;
}

#content #event-nav li {
  font-size: 1.25em;
}

.list-month-title {
  font-size: 1.375em;
}

.list-month-search h4 {
  margin-bottom: .25em;
}

.calendar th {
  font-size: 1em;
}

.calendar td {
  font-size: .875em;
}

.calendar td ul li {
  font-size: .75em;
}

.calendar-month {
  font-size: 1.375em;
  text-transform: none;
}

p.list-time-day {
  font-size: 1.5em;
}

#content .featured-description p {
  font-size: .875em;
  margin: 0 !important;
}

.featured-start {
  margin-bottom: 5px;
}

/**************************************************************************
* Fonts and Colors
***************************************************************************/

.calendar th,
.calendar td > a:hover,
p.list-time-month {
  background-color: #181f2a;
}

p.list-time-day,
p.list-time-month {
  border-color: #181f2a;
}

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

.calendar th,
.calendar td > a:hover,
.list-time-month,
.featured-description p {
  color: #ffffff;
}

#content #event-nav {
  background-color: #f1f6f8;
}

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

.featured-description {
  background-color: rgba(24, 31, 42, 0.7);
}

@media (max-width: 64em) {
  #content #event-nav ul {
    float: none;
  }

  #content #event-nav li {
    height: auto;
    line-height: 1.3em;
    text-align: center;
    width: 45%;
    padding: 2.5%;
    padding-top: 3%;
  }

  #content #event-nav li.featured.active,
  #content #event-nav li.active {
    background: 0;
  }

  #content #event-nav li a {
    display: inline-block;
  }

  .list-controls {
    width: 75%;
  }

  #cal-responsive {
    display: block;
  }

  #cal-wrap {
    display: none;
  }

  .featured-event {
    width: 40%;
    margin: 0 5% 2% 5%;
  }

  .featured-event.end {
    margin: 0 5% 2% 5%;
  }

  .featured-description {
    display: none;
  }

  #event-control-bar {
    height: auto;
    text-align: center;
  }

  .content.view-calendar #event-control-bar {
    display: none;
  }

  #event-control-bar .event-right {
    float: none;
    width: 100%;
    padding-bottom: 10px;
    margin-bottom: 40px;
  }

  #category-selector {
    float: none;
    margin-bottom: 10px;
  }

  select.sorter {
    width: 80%;
    margin: 0 auto 1em auto;
  }

  #content #event-nav li:last-child {
    display: none;
  }

  .floatleft {
    float: none;
    margin-bottom: 10px;
  }
}


/*UDATE NAV BAR*/
#content #event-nav li {
  background-image: none !important;
  font-size: 18px !important;
  font-weight: 700;
  padding-left: 0px !important;
  padding-right: 0px  !important;
  margin: 0 14px;
}
#content #event-nav li.active a {
  font-weight: 700;
}
#content #event-nav li.active{
  border-bottom-width: 2px;
  border-bottom-style: solid;
}
@media (max-width: 64em) {
  #content #event-nav li {
    width: 50%;
    box-sizing: content-box;
    margin : 0px;
  }
}
#module-search-term::placeholder {
    opacity: 0.5;
}
#module-search-term::-webkit-input-placeholder {
  opacity: 0.5;
}
#module-search-term:-moz-placeholder {
  opacity: 0.5;
}
#module-search-term::-moz-placeholder {
  opacity: 0.5;
}
#module-search-term:-ms-input-placeholder {
  opacity: 0.5;
}
