/*--

State rules are ways to describe how our modules or layouts will look when in a particular state. Is it hidden or expanded? Is it active or inactive? They are about describing how a module or layout looks on screens that are smaller or bigger. They are also about describing how a module might look in different views like the home page or the inside page.

--*/

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

body.main-nav-is-open {
  left: 200px;
}
.mobile-menu-button.is-active {
  background: rgba(58, 84, 93, 1);
}
.main-nav.is-open {
  opacity: 1;
}
/* ==============
    Media Quieries
   ============== */

@media only screen and (min-width: 700px) {
  #l-article-pagination a {
    font-size: 1.2em;
    margin: 2px 8px;
  }
  #l-article-pagination ul {
    width: auto;
    display: inline;
  }
  #l-article-pagination .next,
  #l-article-pagination .last {
    margin-top: 2px;
  }
}
@media only screen and (min-width: 768px) {
  body {
    overflow-x: inherit;
  }
  body,
  .main-nav {
    -webkit-transition: inherit;
    -moz-transition: inherit;
    transition: inherit;
  }
  .main-nav-inner,
  .hero-inner,
  .music-player-inner,
  .content-area-inner,
  footer {
    max-width: 786px;
    margin: 0 auto;
  }
  /*-- Main Navigation Menu --*/
  .mobile-menu-button {
    display: none;
  }
  .content-area {
    background: url('../img/background-top.jpg') no-repeat center top;
    background: url('../img/background-top.jpg') no-repeat center top, url('../img/background-bottom.jpg') no-repeat center bottom;
    background-size: 1200px auto;
    min-height: 1140px;
  }
  .main-nav {
    background: transparent url(../img/background-nav.jpg) repeat-x center bottom;
  }
  .template-home .main-nav {
    background: transparent url(../img/background-nav-dark.jpg) repeat-x center bottom;
  }
  .main-nav {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    opacity: 1;
    -webkit-overflow-scrolling: inherit;
    -webkit-transition: inherit;
    -moz-transition: inherit;
    transition: inherit;
    z-index: 99;
  }
  .main-nav-inner {
    position: relative;
  }
  .main-nav-inner:before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    width: 135px;
    height: 135px;
    background: url(../img/logo-small.png) transparent no-repeat center center;
  }
  .template-home .main-nav-inner:before {
    top: 10px;
    left: 10px;
    width: 165px;
    height: 165px;
    background: url(../img/logo.png) transparent no-repeat center center;
  }
  .main-nav ul {
    width: 60%;
    display: inline-block;
    float: right;
  }
  .main-nav li {
    float: left;
    width: 20%;
  }
  .main-nav a {
    height: 95px;
    font-family: "Kreon", serif;
    font-size: 1.5em;
    line-height: 1.25em;
    text-align: center;
    font-weight: 400;
    display: block;
    padding: 30px 10px 15px;
    color: #fff;
    border-top: none;
    border-bottom: 1px solid RGBA(113, 159, 182, 0);
    background: none;
    filter: inherit;
    -webkit-transition: all .25s ease-in-out;
    -moz-transition: all .25s ease-in-out;
    -ms-transition: all .25s ease-in-out;
    -o-transition: all .25s ease-in-out;
    transition: all .25s ease-in-out;
  }
  
  .main-nav a:hover,
  .main-nav a:active,
  .main-nav .active a {
    border-bottom: 5px solid RGBA(113, 159, 182, .5);
  }

  .template-home .main-nav a:hover,
  .template-home .main-nav a:active,
  .template-home .main-nav .active a {
    border-bottom: 5px solid RGBA(113, 159, 182, .5);
  }
  
  /*-- Promoted Tab --*/
  .promoted-ad {
    display: block;
  }
  .main-nav li.promoted {
    border: 5px solid #81A0A9;
    width: 400px;
    height: auto;
    padding: 0px;
    position: fixed;
    right: -400px;
    top: 20%;
    background: #39535B;
    border-radius: 11px 0 0 10px;
    border-right: none;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    transition: all 0.5s ease;
    z-index: 10;
  }
  .main-nav li.promoted a.promoted-tab {
    position: absolute;
    top: 20px;
    left: -75px;
    padding: 10px;
    display: block;
    width: 75px;
    height: 115px;
    border: 5px solid #81A0A9;
    border-radius: 11px 0 0 10px;
    border-right: none;
    overflow: hidden;
    text-align: left;
    text-indent: -999em;
    background: url(../img/pre-sales.png) #39535B center center no-repeat;
    -webkit-transition: inherit;
    -moz-transition: inherit;
    transition: inherit;
    z-index: 10;
    opacity: .5;
  }
  .main-nav li.promoted:hover,
  .main-nav li.promoted:active {
    right: 0;
  }
  .main-nav .promoted-ad a:hover {
    background: transparent;
  }
  .main-nav li.promoted:hover a.promoted-tab {
    opacity: 1;
  }
  .main-nav .promoted-ad a {
    float: none;
    height: auto;
  }
  .main-nav .promoted-ad img {
    width: 100%;
    height: auto;
    border-radius: 5px;
  }
  /*-- Header --*/
  .header-container {
    border: none;
  }
  .header-container header {
    display: none;
  }
  
  .hero {
    background-image: url(../img/slider-bg.jpg);
    background-repeat: repeat-x;
    background-position: 0% 0%;
  }
  
  /*- Animate hero background forward -*/ 
  @-webkit-keyframes animatedBackground-right {
	from { background-position: 0% 0%; }
	to { background-position: 70% 0%; }
  }
  @-moz-keyframes animatedBackground-right {
	from { background-position: 0% 0%; }
	to { background-position: 70% 0%; }
  }
  @-o-keyframes animatedBackground-right {
	from { background-position: 0% 0%; }
	to { background-position: 70% 0%; }
  }
  @keyframes animatedBackground-right {
	from { background-position: 0% 0%; }
	to { background-position: 70% 0%; }
  }

  
  /*- Animate hero background backward -*/
  @-webkit-keyframes animatedBackground-left {
	from { background-position: 70% 0%; }
	to { background-position: 0% 0%; }
  }
  @-moz-keyframes animatedBackground-left {
	from { background-position: 70% 0%; }
	to { background-position: 0% 0%; }
  }  
  @-o-keyframes animatedBackground-left {
	from { background-position: 70% 0%; }
	to { background-position: 0% 0%; }
  }  
  @keyframes animatedBackground-left {
	from { background-position: 70% 0%; }
	to { background-position: 0% 0%; }
  }

  .hero.anamate-right {
    -webkit-animation: animatedBackground-right 2s ease-in-out;
    -moz-animation: animatedBackground-right 2s ease-in-out;
    -o-animation: animatedBackground-right 2s ease-in-out;
    animation: animatedBackground-right 2s ease-in-out;
    background-position: 70% 0%;
  }
  .hero.anamate-left {
    -webkit-animation: animatedBackground-left 2s ease-in-out;
    -moz-animation: animatedBackground-left 2s ease-in-out;
    -o-animation: animatedBackground-left 2s ease-in-out;
    animation: animatedBackground-left 2s ease-in-out;
    background-position: 0% 0%;
  }
  
  .hero-inner {
    max-width: 786px;
  }
  .hero.no-background {
    background: none;
  }
  .flex-viewport {
    box-shadow: 0px 0px 60px rgba(0,0,0,.7);
  }
  
  /*-- Main --*/
  main {
    clear: both;
    width: 100%;
    position: relative;
    top: auto;
    left: auto;
    -webkit-box-shadow: inherit;
    box-shadow: inherit;
    z-index: inherit;
  }
  .wrapper {
    width: auto;
    margin: 0 20px;
  }
  .content-container {
    width: 65%;
    float: left;
  }
  .aside-container {
    width: 35%;
    float: right;
    color: #b4b4b4;
    background-color: rgba(0,0,0,.1);
    background: -moz-linear-gradient(left,  rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 100%);
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(0,0,0,0.15)), color-stop(100%,rgba(0,0,0,0)));
    background: -webkit-linear-gradient(left,  rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 100%);
    background: -o-linear-gradient(left,  rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 100%);
    background: -ms-linear-gradient(left,  rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 100%);
    background: linear-gradient(to right,  rgba(0,0,0,0.15) 0%,rgba(0,0,0,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#26000000', endColorstr='#00000000',GradientType=1 );
    border-left: 1px solid rgba(113, 159, 182, 0.1);
  }
  .footer-container {
    clear: both;
  }
  .page-subhead-container {
    max-width: 776px;
    margin: 0 auto;
    overflow: hidden;
  }
  .page-subhead-title {
    max-width: 450px;
    display: block;
    float: left;
  }
  .page-subhead-music-player {
    width: 306px;
    float: left;
    margin-top: 20px;
  }
  #l-article-pagination a {
    font-size: 1em;
    margin: 2px 4px;
  }
  /*-- Photo Gallery --*/
  .template-gallery .content-container {
    width: 100%;
    float: none;
  }
  .template-gallery .aside-container {
    width: 100%;
    float: none;
  }
  .photo-gallery-nav {
    width: 25%;
    float: right;
    background: rgba(0, 0, 0, .5);
    padding: 10px;
    height: 460px;
  }
  .photo-gallery-nav li {
    width: 100%;
    float: none;
  }
  .photo-gallery-iframe {
    width: 75%;
    float: left;
    height: 560px;
  }
}
@media only screen and (min-width: 800px) {
  .main-nav-inner,
  .hero-inner,
  .music-player-inner,
  .content-area-inner,
  footer {
    max-width: 800px;
    margin: 0 auto;
  }
  .main-nav-inner {
    max-width: 800px;
    margin: 0 auto;
  }
  .header-container {
    display: none;
  }
}
@media only screen and (min-width: 1015px) {
  .main-nav-inner,
  .hero-inner,
  .music-player-inner,
  .content-area-inner,
  footer {
    max-width: 1015px;
    margin: 0 auto;
  }
  footer.wrapper {
    width: 1015px;
    margin: 0 auto;
  }
  .page-subhead-container {
    max-width: 1000px;
  }
  .page-subhead-title {
    max-width: 635px;
  }
  .page-subhead-music-player {
    width: 355px;
    margin-top: 20px;
  }
  #l-article-pagination a {
    font-size: 1.4em;
    margin: 2px 8px;
  }
}
/* ==========================================================================
   Helper Classes
   ========================================================================== */

.is-hidden {
  display: none!important;
  visibility: hidden;
}
.is-visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
.is-visuallyhidden.is-focusable:active,
.is-visuallyhidden.is-focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}
.is-invisible {
  visibility: hidden;
}
audio#mfMaster {
  display: none;
}
.chromeframe {
  margin: .2em 0;
  background: #ccc;
  color: #000;
  padding: .2em 0;
}