/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * 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 #ccc;
    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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    background: #ffffff;
min-width: 755px;
}

.page-wrapper {
    font-family: 'CL-Regular', sans-serif;
min-width: 755px;
}

.page-header__wrapper {
    height: 40px;
    width: 100%;
    background: #ffffff;
    position: absolute;
    border-bottom: 1px solid #dfdfdf;
    top: 0;
    z-index: 3;
min-width: 755px;
}

.page-header__wrapper__triangle {
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 120px 100px 0 100px;
    border-color: #ffffff transparent transparent transparent;
    content: ' ';
    position: absolute;
    left: 50%;
    margin-left: -100px;
    top: 40px;
}

.page-header__nav {
    text-align: center;
    padding-left: 50px;
    z-index: 5;
    position: relative;
}

.page-header__nav__item {
    font-size: 22px;
    color: #000000;
    text-decoration: none;
    margin-right: 105px;
    display: inline-block;
    height: 30px;
    padding-top: 5px;
    position: relative;
}

/*.page-header__nav__item:hover:after, .page-header__nav__item--active:after {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 8px 12px;
    border-color: transparent transparent #000000 transparent;
    display: block;
    content: ' ';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -10px;
}*/

/*.page-header__nav:hover .page-header__nav__item--active:after {
    display: none;
}*/

.page-header__nav__item--active {
    font-weight: bold;
}

.page-header__nav__item:last-child {
    margin: 0;
}

.page-content {
    background: url('../img/splash.jpg') no-repeat top center;
    background-size: cover;
    height: 300px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.page-header__wrapper h1 {
    color: #000000;
    font-size: 26px;
    width: 200px;
    height: 120px;
    position: absolute;
    left: 50%;
    margin-left: -100px;
    top: -120px;
    z-index: 4;
    text-align: center;
    text-transform: uppercase;
    line-height: 27px;
    margin-top: 0;
    font-weight: normal;
    margin-bottom: 0;
}

.page-footer__wrapper {
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 3;
}

.page-footer__descriptor {
    font-size: 39px;
    color: #ffffff;
    text-transform: uppercase;
}

.page-content__video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background: url('../img/splash.jpg') no-repeat;
    background-size: cover;
    -webkit-transition: 1s opacity;
    transition: 1s opacity;
}

.page-content__video-strip {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../img/strip.png);
    display: block;
    z-index: 2;
    opacity: 0.5;
}

.page-content__section {
    background: rgba(0, 0, 0, .5);
    width: 760px;
    min-height: 200px;
    z-index: 3;
    position: absolute;
    color: #ffffff;
    overflow: hidden;
    padding: 27px 20px;
    left: 100%;
    top: 50%;
    opacity: 0;

    -webkit-transition-duration: .4s;
    -o-transition-duration: .4s;
    -moz-transition-duration: .4s;
    transition-duration: .4s;
}

.page-content__section.page-content__section--active {
    left: 50%;
    margin-left: -380px;
    opacity: 1;
}

.page-content__section.page-content__section__video {
    padding: 0;
    overflow: visible;
}

.page-content__section__video__part {
    width: 100%;
    height: 100%;
    float: left;
}

.page-content__section__video__row {
    width: 100%;
    margin-bottom: 70px;
}

.page-content__section__video__col {
    width: 25%;
    height: 100%;
    float: left;
    position: relative;
}

.page-content__section__video__col__description {
    width: 100%;
    height: 54px;
    background: #ffffff;
    position: absolute;
    bottom: 0;
    font-size: 18px;
    overflow: hidden;
    color: #000000;
    text-align: center;
    border-right: 1px solid #000000;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: table;
}

.page-content__section__video__col__description > div {
    display: table-cell;
    vertical-align: middle;
}

.page-content__section__video__col:last-child .page-content__section__video__col__description {
    border: 0;
}

.page-content__section__video__col:nth-child(even) {
    background: red;
}

.page-content__section__video__col:nth-child(odd) {
    background: black;
}

.page-content__section__video__row:last-child {
    margin-bottom: 0;
}

.page-content__section__content {
    width: 700px;
    overflow: auto;
    margin: 27px 20px;
}

.page-content__section__content h2 {
    margin-top: 0;
}

.socials-block {
    position: absolute;
    right: 30px;
    top: 60px;
    z-index: 3;
}

.socials-item {
    display: inline-block;
    margin-bottom: 5px;
}

.socials-item__facebook {
    width: 45px;
    height: 45px;
    background: url(../img/facebook.png) no-repeat;
}

.socials-item__instagram {
    width: 45px;
    height: 45px;
    background: url(../img/instagram.png) no-repeat;
    margin-right: 0;
}

.socials-item__youtobe {
    width: 45px;
    height: 45px;
    background: url(../img/youtobe.png) no-repeat;
    margin-right: 0;
}

.under-construction {
    position: absolute;
    font-size: 50px;
    color: #ffffff;
    width: 310px;
    text-align: center;
    height: 70px;
    left: 50%;
     margin-left: -155px;
    top: 50%;
    margin-top: -110px;
}

.portfolio-slider__wrapper {
    height: 290px;
}

.page-content__section__portfolio {
    width: 100%;
    height: 395px !important;
    background: none;
    margin-left: 0 !important;
    padding: 0;
}

.page-content__section__portfolio.page-content__section--active {
    left: 0 !important;
}

.portfolio-slider__item {
    height: 290px !important;
}

.slick-list {
    padding: 0 !important;
}

.portfolio-slider__controls {
    position: absolute;
    left: 0;
    top: 315px;
    width: 100%;
}

.portfolio-slider__control {
    position: absolute;
    top: 0;
    width: 24px;
    height: 79px;
    background: url(../img/slider-control.png) no-repeat;
    cursor: pointer;
}

.portfolio-slider__control.portfolio-slider__control--left {
    left: 50px;
}

.portfolio-slider__control.portfolio-slider__control--right {
    right: 50px;
    transform: rotate(180deg)
}

.video-slider__wrapper {
    height: 100%;
    overflow: hidden;
}

.video-slider__item {
    height: 100%;
}

.video-slider__item iframe {
    height: 100%;
    width: 100%;
}

.video-slider__controls {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    margin-top: -40px;
}

.video-slider__control {
    position: absolute;
    top: 0;
    width: 24px;
    height: 79px;
    background: url(../img/slider-control.png) no-repeat;
    cursor: pointer;
}

.video-slider__control.video-slider__control--left {
    left: -64px;
}

.video-slider__control.video-slider__control--right {
    right: -64px;
    transform: rotate(180deg)
}

.video-slider__wrapper.slick-slider {
    margin: 0 !important;
}

.video-slider__wrapper .slick-list, .video-slider__wrapper .slick-track {
    height: 100% !important;
}

.form__wrapper {
    width: 375px;
    margin: 0 auto;
}

.form__wrapper button {
    color: #ffffff;
    text-transform: uppercase;
    background: #242424;
    border: 0;
    outline: none;
    float: right;
}

.form__row {
    margin-bottom: 1px;
}

.form__col {
    float: left;
}

.form__col.has-error {
    color: red;
}

.form__result {
    float: right;
    margin-right: 10px;
    background: rgba(0,0,0,0.5);
    padding: 3px 10px 2px 10px;
    display: none;
}

.form__col:first-child {
    background: #242424;
    width: 106px;
    padding: 3px 7px;
}

.form__col input[type=text] {
    height: 28px;
    border: 0;
    background: #7a7a7a;
    padding: 0 10px;
    outline: none;
    width: 235px;
}

.form__col textarea {
    height: 70px;
    border: 0;
    background: #7a7a7a;
    padding: 10px;
    outline: none;
    width: 235px;
}

.page-content__section--contacts {
    /*background: none;*/
    width: 500px !important;
    margin-left: -250px !important;
    height: 260px !important;
}

.page-content__section--contacts .page-content__section__content {
    width: 500px !important;
}

.page-content__video__control {
    width: 26px;
    height: 21px;
    position: absolute;
    bottom: 35px;
    z-index: 4;
    left: 20%;
    cursor: pointer;
}

.page-content__video__control.page-content__video__control--music-on {
    background: url(../img/music-on.png);
}

.page-content__video__control.page-content__video__control--music-off {
    background: url(../img/music-off.png);
}

.nano > .nano-content:focus {
    outline: none !important;
}

.developer-link {
    display: block;
    width: 56px;
    height: 41px;
    background: url('../img/developer.png') no-repeat;
    position: absolute;
    z-index: 5;
    bottom: 35px;
    right: 50px;
}

/* ==========================================================================
   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 only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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: #000 !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 #999;
        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;
    }
}

.nano > .nano-content{
        height: 280px !important;
        overflow-y: auto !important;
}