/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

*, *:after, *:before {
    box-sizing: border-box;
}

html {
    color: #222222;
    font-size: 1em;
    line-height: 1.4;
    min-width: 320px;
}

body {
    font-size: 100%;
    font-family: "Raleway", sans-serif;
    color: #030D18;
    background-color: #D0CDB6;
}

a {
    color: #C02D2D;
    text-decoration: none;
}

/* ==========================================================================
   Additional resets or restyles
   ========================================================================== */
ul {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */
::-moz-selection {
    background: #B3D4FC;
    text-shadow: none;
}

::selection {
    background: #B3D4FC;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #CCCCCC;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */
audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */
textarea {
    resize: vertical;
}

/* =====================================
    Header
   ===================================== */
.cl-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    background-color: #030D18;
}

/* =====================================
    Floater Left
   ===================================== */
#id-floater-left {
    position: fixed;
    top: 50px;
    left: 1vw;
    width: 10vw;
    z-index: 5;
    color: #F0EEE1;
    float: left;
    /*margin: 0 0 0 20px;*/
    opacity: 0;
}

#id-floater-left.is-hidden {
    /*noinspection CssInvalidPropertyValue*/
    top: calc(-10vw * 1.2175 - 310px);
}

@media only screen and (min-width: 768px) {
    #id-floater-left {
        opacity: 100;
        transition: ease-out top 0.5s;
    }
}

@media only screen and (min-width: 1200px) and (min-height: 768px) {
    #id-floater-left {
        top: 60px;
    }
}

.cl-logo img {
    display: block;
    width: 100%;
}

/* =====================================
    Floater Right
   ===================================== */
#id-floater-right {
    position: fixed;
    top: 50px;
    right: 0;
    width: 12vw;
    min-width: 170px;
    z-index: 5;
    color: #F0EEE1;
    float: right;
    opacity: 0;
}

#id-floater-right.is-hidden {
    top: -310px;
}

@media only screen and (min-width: 768px) {
    #id-floater-right {
        opacity: 100;
        transition: ease-out top 0.5s;
    }
}

@media only screen and (min-width: 1200px) and (min-height: 768px) {
    #id-floater-right {
        top: 60px;
    }
}

/* =====================================
    Navigation
   ===================================== */
.cl-main-nav {
    position: fixed;
    top: 0;
    height: 50px;
    width: 100%;
    z-index: 10;
    background-color: #393A3B;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cl-main-nav li a {
    display: block;
    padding: 1.6em;
}

.cl-main-nav li:last-child a {
    border-bottom: none;
}

.cl-main-nav nav,
.cl-main-nav ul,
.cl-main-nav li,
.cl-main-nav a {
    height: 100%;
}

.cl-main-nav ul {
    width: auto;
    border-radius: 0.25em;
    list-style: none;
    margin: 0 auto;
    text-align: center;
    background-color: transparent;
}

.cl-main-nav li {
    display: inline-block;
    margin: 0 -2px;
}

.cl-main-nav li a {
    position: relative;
    text-align: center;
    display: block;
    padding: 15px 2vw 0 2vw;
    border-bottom: none;
    width: auto;
    /*transition: ease-out padding 0.25s;*/
    color: #D0CDB6; /*rgba(240, 238, 225, 1.0);*/
}

.cl-main-nav li a b {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
}

.cl-main-nav li a:hover b,
.cl-main-nav li a.active b,
.cl-main-nav li.active b {
    color: white;
}

@media only screen and (min-width: 1200px) and (min-height: 768px) {
    .cl-main-nav {
        height: 60px;
    }

    .cl-main-nav li a {
        width: 9vw;
        padding: 20px 0 0 0;
    }

    .cl-main-nav li a b {
        font-size: 0.9rem;
    }
}

/* =====================================
    User Nav
   ===================================== */

.cl-user-nav {
    position: fixed;
    top: 0;
    left: 20px;
    width: inherit;
    height: 100%;
    padding-top: 20px;
    z-index: 11;
    color: #CCCABD;
    font-size: 0.9em;
    line-height: 1.2em;
}

.cl-user-nav a {
    color: #CCCABD;
    font-size: 0.9em;
}

.cl-user-nav a:hover,
.cl-user-nav a.active {
    color: white;
}

/* =====================================
    Social Media Icons
   ===================================== */
.cl-social-nav {
    position: absolute;
    top: 72px;
    right: 7px;
    width: 38px;
    height: inherit;
    z-index: 1;
}

.cl-social-nav nav,
.cl-social-nav ul,
.cl-social-nav li,
.cl-social-nav a {
    /*height: 100%;*/
}

.cl-social-nav ul {
    border-radius: 0.25em;
    list-style: none;
    margin: 0 0;
    text-align: center;
    background-color: transparent;
}

.cl-social-nav li {
    display: inline-block;
}

.cl-social-nav li a {
    position: relative;
    width: 38px;
    height: 38px;
    text-align: center;
    display: block;
}

.cl-social-nav li a svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 6px;
    opacity: 1;
    transition: fill .2s ease;
}

.cl-social-nav li a img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 5px;
    opacity: 1;
    transition: opacity .4s ease;
}

.cl-social-nav li a svg {
    fill: #000000;
}

@media only screen and (min-width: 768px) {
    .cl-social-nav {
        position: fixed;
        top: 8px;
        right: 12px;
        width: inherit;
        height: 33px;
        z-index: 11;
    }

    .cl-social-nav li a {
        width: 33px;
        height: 33px;
    }

    .cl-social-button-fb:hover svg {
        fill: #4862A3;
    }

    .cl-social-button-ig:hover svg {
        fill: #954BD3;
    }

    .cl-social-button-yt:hover svg {
        fill: #DD2C28;
    }

    .cl-social-button-sc:hover svg {
        fill: #F67D13;
    }
}

@media only screen and (min-width: 1200px) and (min-height: 768px) {
    .cl-social-nav {
        top: 12px;
        right: 12px;
        height: 38px;
    }

    .cl-social-nav li a {
        width: 38px;
        height: 38px;
    }
}

/* =====================================
    Sections
   ===================================== */
.cl-section {
    width: 100%;
}

.cl-section:after {
    content: "";
    display: table;
    clear: both;
}

.cl-section-last {
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.25);
}

.cl-text-wrapper {
    width: 90%;
    margin: 0 auto 0 auto;
    padding: 1em 0 1em 0;
}

.cl-text-wrapper h3,
.cl-text-wrapper p {
    line-height: 1.6;
}

.cl-text-wrapper h2 {
    margin-bottom: .6em;
    font-size: 1.25rem;
    font-weight: 700;
}

@media only screen and (min-width: 768px) {
    .cl-text-wrapper {
        width: 70%;
        max-width: 80em;
        margin: 0 auto;
        padding: 0.1em 0 4em 0;
    }
}

@media only screen and (min-width: 768px) {
    .cl-text-wrapper,
    .cl-text-wrapper h3,
    .cl-text-wrapper p {
        font-size: 1.0rem;
    }

    .cl-text-wrapper h2 {
        font-size: 1.5rem;
    }
}

@media only screen and (min-width: 1200px) and (min-height: 900px) {
    .cl-text-wrapper,
    .cl-text-wrapper h3,
    .cl-text-wrapper p {
        font-size: 1.1rem;
    }

    .cl-text-wrapper h2 {
        font-size: 1.75rem;
    }
}

@media only screen and (min-width: 1500px) and (min-height: 900px) {
    .cl-text-wrapper,
    .cl-text-wrapper h3,
    .cl-text-wrapper p {
        font-size: 1.25rem;
    }

    .cl-text-wrapper h2 {
        font-size: 1.9rem;
    }
}

/* =====================================
    Header Slideshow
   ===================================== */
#id-slideshow-header {
    height: 470px;
    padding: 70px 0 0 0;
}

.cl-slideshow-header-slide:nth-of-type(1) {
    position: relative;
    height: 100%;
    background: url(../img/headers/header_simple.png) no-repeat center;
    background-size: contain;
}

@media only screen and (min-width: 768px) {
    #id-slideshow-header {
        padding: 0;
        margin: 50px 0 0 0;
        height: 50vw;
        max-height: calc(100vh - 50px);
        box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.75)
    }

    .cl-slideshow-header-slide:nth-of-type(n) {
        /*height: 100%;*/
    }

    .cl-slideshow-header-slide:nth-of-type(1) {
        background: url(../img/headers/header1.jpg) no-repeat center bottom;
        background-size: 100%;
    }

    .cl-slideshow-header-slide:nth-of-type(2) {
        background: url(../img/headers/header2.jpg) no-repeat center top;
        background-size: 100%;
    }
}

@media only screen and (min-width: 1200px) and (min-height: 768px) {
    #id-slideshow-header {
        margin: 60px 0 0 0;
        max-height: calc(100vh - 60px);
    }
}

/* =====================================
    About Quotes Slideshow
   ===================================== */
#id-slideshow-quotes {
    width: 100%;
    margin: 2em auto 0;
}

/* =====================================
    Band Slideshow
   ===================================== */
#id-slideshow-band-nav {
    width: 100%;
    min-width: calc(5 * 5vw + 5 * 10px);
    margin: 0 auto;
}

@media only screen and (min-width: 768px) {
    #id-slideshow-band-nav {
        width: 80%;
    }
}

.cl-slideshow-band-nav-slide {
    height: 5vw;
    min-height: 10vh;
    margin: 5px;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border-color .2s ease;
}

#id-slideshow-band-nav .slick-current {
    border-color: #393A3B;
}

.cl-slideshow-band-nav-slide:hover {
    border-color: #393A3B;
}

.cl-slideshow-band-nav-slide img {
    width: 100%;
    height: 100%;
}

#id-slideshow-band-main {
    width: 100%;
    max-width: 55vh;
    margin: 15px auto 0 auto;
}

.cl-slideshow-band-main-slide {
    width: 100%;
    height: 100%;
}

.cl-slideshow-band-main-slide p {
    margin: 0 0 10px 0;
    text-align: center;
}

.cl-slideshow-band-main-slide img {
    width: 100%;
    height: 100%;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);*/
}

/* =====================================
    Media Slideshow
   ===================================== */
#id-slideshow-media {
    max-width: calc(100vw - 80px);
    margin: 0 auto 0 auto;
}

div.cl-slideshow-media-slide {
    margin: 0 25px 0 25px;
    opacity: 0.5;
    transition: opacity 500ms ease;
}

div.cl-slideshow-media-slide img {
    display: block;
    max-height: calc(80vw * 0.667);
    max-width: 80vw;
    width: auto;
    height: auto;
}

#id-slideshow-media div.slick-center {
    opacity: 1;
}

@media only screen and (min-width: 768px) {
    #id-slideshow-media {
        max-width: calc(100vw - 80px);
    }

    div.cl-slideshow-media-slide img {
        max-height: calc(100vh * 0.667);
        max-width: 100vh;
    }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */
/*
 * Hide visually and from screen readers
 */
.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */
.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:
 * https://www.drupal.org/node/897638
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

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

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */
@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000000 !important;
        /* Black prints faster:
                                          http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
