/*
 * @file
 * jQuery FlexSlider
 * Version 2.0
 * http://www.woothemes.com/flexslider/
 *
 * Contributing author: Tyler Smith (@mbmufffin)
 * Modified by Keegan Robinson for Bandwidth Drupal integration
 */

/**
 * Styles that apply to all devices
 */
@media all and (min-width: 0.063em) {

  /**
   * Browser resets
   */
  .flex-container a:active,
  .flexslider a:active,
  .flex-container a:focus,
  .flexslider a:focus {
    outline: none;
  }
  .slides,
  .flex-control-nav,
  .flexslider li,
  .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /**
   * FlexSlider necessary styles
   */
  .flexslider {
    margin: 0;
    padding: 0;
  }
  .flexslider .slides > li {
    display: none;
  }
  .flexslider .slides img {
    width: 100%;
    height: auto;
    display: block;
  }
  .flex-pauseplay span {
    text-transform: capitalize;
  }

  /**
   * Clearfix for the .slides element
   */
  .slides:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
  }
  html[xmlns] .slides {
    display: block;
  }
  * html .slides {
    height: 1%;
  }

  /**
   * No JavaScript fallback
   */
  .no-js .slides > li:first-child {
    display: block;
  }

  /**
   * FlexSlider Default Theme
   */
  .flexslider {
    position: relative;
    zoom: 1;
  }
  .flex-viewport {
    max-height: 2000px;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    transition: all 1s ease;
    position: relative;
    z-index: 1;
  }
  .loading .flex-viewport {
    max-height: 300px;
  }
  .flexslider .slides {
    zoom: 1;
  }
  .carousel li {
    margin-right: 5px
  }

  /**
   * Direction nav
   */
  .flex-direction-nav {
    *height: 0;
  }
  .flex-direction-nav a {
    width: 30px;
    height: 30px;
    margin: -20px 0 0;
    display: block;
    background: url('../images/icon-slideshow-controls.png') no-repeat 0 0;
    position: absolute;
    top: 50%;
    z-index: 10;
    cursor: pointer;
    text-indent: -9999px;
    opacity: 0;
    -webkit-transition: all .3s ease;
  }
  .flex-direction-nav .flex-next {
    background-position: 100% 0;
    right: -36px;
  }
  .flex-direction-nav .flex-prev {
    left: -36px;
  }
  .flexslider:hover .flex-next {
    opacity: 0.8;
    right: 5px;
  }
  .flexslider:hover .flex-prev {
    opacity: 0.8;
    left: 5px;
  }
  .flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {
    opacity: 1;
  }
  .flex-direction-nav .flex-disabled {
    opacity: .3 !important;
    filter: alpha(opacity=30);
    cursor: default;
  }

  /**
   * Control nav
   */
  .flex-control-nav {
    width: 100%;
    position: absolute;
    bottom: -40px;
    text-align: center;
  }
  .flex-control-nav li {
    margin: 0 6px;
    display: inline-block;
    zoom: 1;
    *display: inline;
  }
  .flex-control-paging li a {
    width: 11px;
    height: 11px;
    display: block;
    background: #666;
    background: rgba(0,0,0,0.5);
    cursor: pointer;
    text-indent: -9999px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -o-border-radius: 20px;
    border-radius: 20px;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
  }
  .flex-control-paging li a:hover {
    background: #333;
    background: rgba(0,0,0,0.7);
  }
  .flex-control-paging li a.flex-active {
    background: #000;
    background: rgba(0,0,0,0.9);
    cursor: default;
  }
  .flex-control-thumbs {
    width: 99%;
    margin: 0;
    padding: 0 0 0 1%;
    position: static;
    overflow: hidden;
    text-align: center;
  }
  .flex-control-thumbs li {
    width: 19%;
    margin: 1% 1% 0 0;
  }
  .flex-control-thumbs img {
    display: block;
    position: relative;
    top: -1px;
    left: -1px;
    cursor: pointer;
    border: 1px solid #FFFFFF;
    width: 100%;
    opacity: .4;
  }
  .flex-control-thumbs img:hover {
    opacity: 1;
  }
  .flex-control-thumbs .flex-active {
    opacity: 1;
    cursor: default;
    border: 1px solid #0073CF;
  }
  .flex-control-thumbs .flex-active:hover {
    border-color: #C30045;
  }

  /**
   * Drupal specific styles
   */
  .slide {
    position: relative;
  }
  .slide .content {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80%;
    text-align: center;
  }
  .slide h2 {
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px #333333;
    font-weight: bold;
    line-height: 1em;
  }
  .slide p {
    display: none;
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.25em;
    line-height: 1.2em;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px #333333;
  }
  .flex-control-thumbs img {
    -webkit-transition: opacity 1.5s;
    -moz-transition: opacity 1.5s;
    -o-transition: opacity 1.5s;
    transition: opacity 1.5s;
  }
  .flex-control-thumbs .flex-active {
    -webkit-transition: border-color .5s;
    -moz-transition: border-color .5s;
    -o-transition: border-color .5s;
    transition: border-color .5s;
  }
  .slide .button {
    padding: 0.7em 5em 0.7em 1em;
  }

}

/**
 * Styles that apply to tablet sized devices and larger
 */
@media all and (min-width: 45em) {

  /**
   * Drupal specific styles
   */
  .slide h2 {
    margin-bottom: 0.25em;
    font-size: 2em;
    line-height: 1em;
  }
  .slide p {
    display: block;
  }
  .slide .content {
    top: 26%;
  }

  /**
   * Increase border size
   */
  .flex-control-thumbs img {
    top: -3px;
    left: -3px;
    border: 3px solid #FFFFFF;
  }
  .flex-control-thumbs .flex-active {
    border: 3px solid #0073CF;
  }

}

/**
 * Styles that apply to desktop sized devices and larger
 */
@media all and (min-width: 64em) {

  /**
   * Drupal specific styles
   */
  .slide h2 {
    font-size: 3em;
    line-height: 1em;
  }
  .slide p {
    font-size: 1.5em;
  }

}
