/* -------------------------------- 

Primary style

-------------------------------- */

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

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Open Sans", sans-serif;
    color: #ffffff;
    background-color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    /* never visible - this is used in jQuery to check the current MQ */
    /*content: 'mobile';*/
    content: 'desktop';
    display: none;
}

@media (max-width: 768px) {
    body::before {
        content: 'mobile';
    }
}

@media (max-height: 600px) {
    body::before {
        content: 'mobile';
    }
}


/*
@media only screen and (min-width: 1050px) {
  body::before {
    /* never visible - this is used in jQuery to check the current MQ */


/*
    content: 'desktop';
  }
}
*/


/* -------------------------------- 

Main Components 

-------------------------------- */

@media (min-width: 768px) and (min-height: 600px) {
    body[data-hijacking="on"] {
        overflow: hidden;
    }
}

.cd-section {
    height: 100vh;
}

[data-animation="parallax"] .cd-section>div,
[data-animation="fixed"] .cd-section>div,
[data-animation="opacity"] .cd-section>div {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
}

body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (min-width: 768px) and (min-height: 600px) {
    [data-hijacking="on"] .cd-section {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
    }
    [data-hijacking="on"] .cd-section>div {
        visibility: visible;
    }
    [data-hijacking="off"] .cd-section>div {
        opacity: 0;
    }
    [data-animation="rotate"] .cd-section {
        /* enable a 3D-space for children elements */
        -webkit-perspective: 1800px;
        -moz-perspective: 1800px;
        perspective: 1800px;
    }
    [data-hijacking="on"][data-animation="rotate"] .cd-section:not(:first-of-type) {
        -webkit-perspective-origin: center 0;
        -moz-perspective-origin: center 0;
        perspective-origin: center 0;
    }
    [data-animation="scaleDown"] .cd-section>div,
    [data-animation="gallery"] .cd-section>div,
    [data-animation="catch"] .cd-section>div {
        box-shadow: 0 0 0 rgba(25, 30, 46, 0.4);
    }
    [data-animation="opacity"] .cd-section.visible>div {
        z-index: 1;
    }
}

@media only screen and (min-width: 768px) and (min-height: 600px) {
    .cd-section:first-of-type>div::before {
        display: none;
    }
}

@media only screen and (min-width: 768px) and (min-height: 600px) {
    .cd-section>div {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        /* Force Hardware Acceleration */
        -webkit-transform: translateZ(0);
        -moz-transform: translateZ(0);
        -ms-transform: translateZ(0);
        -o-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    [data-hijacking="on"] .cd-section>div {
        /* position: absolute;*/
    }
    [data-animation="rotate"] .cd-section>div {
        -webkit-transform-origin: center bottom;
        -moz-transform-origin: center bottom;
        -ms-transform-origin: center bottom;
        -o-transform-origin: center bottom;
        transform-origin: center bottom;
    }
}

nav {
    position: fixed;
    z-index: 99;
    width: 100%;
}

nav>div {
    position: absolute;
    top: 15px;
    right: 15px;
}

.cd-vertical-nav {
    margin: auto;
    width: 70%;
    padding-top: 5px;
    padding-bottom: 5px;
}

.nav-fijo {
    background-color: #d3d4d8;
    padding-top: 45px;
}

.nav-fijo .cd-vertical-nav {
    position: relative;
    top: initial;
}

.cd-vertical-nav li img {
    max-width: 90px;
}

.cd-vertical-nav a {
    display: block;
    font-family: 'Raleway', sans-serif;
    color: #352e2a !important;
    font-size: 18px;
}

.cd-vertical-nav a.cd-prev {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
    margin-bottom: 10px;
}

.cd-vertical-nav a.inactive {
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity 0.2s 0s, visibility 0s 0.2s;
    -moz-transition: opacity 0.2s 0s, visibility 0s 0.2s;
    transition: opacity 0.2s 0s, visibility 0s 0.2s;
}

@media only screen and (min-width: 768px) and (min-height: 600px) {
    .cd-vertical-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-left: 0;
    }
}