/*
Theme Name: Zoo Historia
Theme URI: http://latempesta.cc
Author: XVC - based on Danny Machal's theme
Author URI: http://latempesta.cc
Description: A devdmbootstrap4 child theme.
Version: 1.25
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Template: devdmbootstrap4
*/


/*************************************************/
/****************     @IMPORTS      **************/

@import url('https://fonts.googleapis.com/css?family=Montserrat:200,300,400,600,700,800&display=swap');
@import 'https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css';


@font-face {
    font-family: icons;
    src: url('./fonts/icons.eot');
    src: url('./fonts/icons.eot#iefix') format("embedded-opentype"), url('./fonts/icons.woff') format("woff"), url('./fonts/icons.ttf') format("truetype"), url('./fonts/icons.svg#icons') format("svg");
    font-weight: normal;
    font-style: normal;
}


:root {
  --num-etapes: 7;
  --ample-barra: 25px;
  --alt-historia: 66vh;
  --ample-etapa: 4000px;
  --color-etapa1: #01a66c; /* verd      */
  --color-etapa2: #c6001b; /* vermell   */
  --color-etapa3: #c86200; /* taronja   */
  --color-etapa4: #016ba9; /* blau clar */
  --color-etapa5: #022567; /* blau fosc */
  --color-etapa6: #9e0057; /* fucsia    */
  --color-etapa7: #5b008c; /* lila      */
  --groc: #ffcf00;

  --color-etapa1b: rgba(1,166,108,0.95);
  --color-etapa2b: rgba(198,0,27,0.95);
  --color-etapa3b: rgba(200,98,0,0.95);
  --color-etapa4b: rgba(1,107,169,0.95);
  --color-etapa5b: rgba(2,37,103,0.95);
  --color-etapa6b: rgba(158,0,87,0.95);
  --color-etapa7b: rgba(91,0,140,0.95);
}


/* CSS pàgina ZOO */
.dmbs-main.page-error {
    display: table;
    height: 532px;
    width: 100%;
    margin-bottom: 0;
    background: url(/themes/custom/bs_base_theme/images/contents/page-error-bg-xs.jpg) no-repeat center;
    background-size: cover;
}
.dmbs-main.page-error > div {
    display: table-cell;
    background: rgba(0,0,0,0.45);
    color: #fff;
    text-align: center;
    vertical-align: middle;
}
.dmbs-main.page-error {
    height: 795px;
    background-image: url("./img/page-error-bg.jpg");
}
.dmbs-main.page-error .page-error-message h2 {
    margin: 10px 0;
    font-size: 3.4rem;
}
.dmbs-main.page-error .page-error-message {
    margin: 50px 20px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 20px;
}
.dmbs-main.page-error .page-error-message {
    display: inline-block;
    margin: 50px;
    text-align: left;
    padding-left: 110px;
    vertical-align: middle;
}
.dmbs-main.page-error .page-error-message .icon-badge .icon {
    width: 52px;
    height: 52px;
    font-size: 52px;
    line-height: 1;
    display: inline-block;
    margin: 16px auto 0;
}
.dmbs-main.page-error .page-error-message .icon-badge {
    float: left;
    margin-left: -110px;
    margin-top: 28px;
}
.dmbs-main.page-error .page-error-message .icon-badge {
    width: 84px;
    height: 84px;
    text-align: center;
    display: inline-block;
    border-radius: 50%;
    background: #00a56d;
}
.icon.-mono::before {
    content: "";
}
.icon:before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    content: "";
    display: inline-block;
    font-family: 'icons';
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    speak: none;
    text-transform: none;
}


/* CSS web història */

.dmbs-content-wrapper {
    margin-top:0px;
}
.col-md-9.dmbs-main {
    margin-top: 110px;
}

.white {
    background-color: #FFFFFF;
}

#content-wrapper, #historia-wrapper {
    height: 100%;
}
.scrollContainer {
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
}
.scrollContainer {
    height: 100%;
    margin: auto;
}
#historia-wrapper .scrollContent {
    height: 100%;
}

.horizontal.scrollContainer {
    overflow-y: hidden;
    overflow-x: scroll;
}
#historia-wrapper.scrollContainer .scrollContent {
    width: 100%;
    height: auto;
}
#historia-wrapper.scrollContainer.horizontal .scrollContent {
    width: auto;
    height: 100%;
}
#historia-wrapper.horizontal {
    white-space: nowrap;
    font-size: 0;  /* fix for spaces between inline block divs */
    overflow: hidden;
    height: 100vh;
}
#historia-wrapper.horizontal div {
    font-size: 13px;
}
#historia-wrapper .scrollContent, #historia-wrapper.horizontal .scrollContent {
    font-size: 0;
}
#historia-wrapper .scrollContent div {
    font-size: 13px;
}
#historia-wrapper section {
}

.teclat-controls {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 99;
    transition: all 1s;
    background: url('./img/zoo-teclat-6.svg') center no-repeat rgba(0,0,0,0.7);
    display: none;
}
.teclat-controls:hover {
    transform: scale(1.1);
    transition: all 1s;
}
.teclat-controls-close {
    position: relative;
/*    top: calc(50% - 210px); */
	top: calc(50% - 220px);
    font-size: 28px !important;
    cursor: pointer;
    text-align: center;
}
.teclat-controls-close .fa-times {
    position: relative;
    top: -3px;
}

/* PORTADA */

section#titlechart {
    text-align: center;
    position: relative;
    height: 100%;
    min-height: 500px;
    min-width: 100%;
    height: 100vh;
}
.horizontal section, .horizontal section#titlechart{
    /*display: inline-block;*/
    display: block;
    vertical-align: top;
    /*min-height: 350px !important;*/
    /*height: 60vh;*/
    height: var(--alt-historia);
}

section#titlechart #description {
    top: 50%;
    left: 50%;
    position: absolute;
    width: 600px;
    height: 300px;
    margin: -150px auto auto -300px;
}
section#titlechart.home #description {
    padding-top: 0;
    padding-bottom: 100px;
}
section#titlechart #description h1 {
    margin: 0;
}
section#titlechart #description h2 {
    margin-bottom: 20px;
}
section#titlechart #description a.viewsource {
    margin-bottom: 20px;
    display: inline-block;
}
section#titlechart #description code {
    background-color: #E1F1FF;
    padding-left: 2px;
    padding-right: 2px;
    white-space: nowrap;
}

section#titlechart #description ol, section#titlechart #description p {
    text-align: left;
    max-width: 400px;
    margin: 10px auto 10px auto;
    white-space: normal;
}
section#titlechart #description ol {
    list-style-position: outside;
}
#historia-wrapper section#titlechart #description:after {
    content: "↧";
    font-size: 40px;
    display: block;
}
#historia-wrapper.horizontal section#titlechart #description:after {
    content: "↦";
}



/* Fons estándar per les etapes */

section.etapa * {
    /*font-size: 13px; */
}
section.etapa {
    font-size: 0;
    text-align: center;

    overflow-x: scroll;
    overflow-y: hidden;
}

section.etapa.activat {
    display: block;
}
section.etapa.fullheight {
    min-height: 100%;
}
section.etapa.doublewidth, .spacer.doublewidth {
    min-width: 200%;
}
.horizontal section.etapa {
    text-align: inherit;
    white-space: nowrap;

    background: rgba(41,184,229,1);
    background: -moz-linear-gradient(top, rgba(41,184,229,1) 0%, rgba(179,220,237,1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(41,184,229,1)), color-stop(100%, rgba(179,220,237,1)));
    background: -webkit-linear-gradient(top, rgba(41,184,229,1) 0%, rgba(179,220,237,1) 100%);
    background: -o-linear-gradient(top, rgba(41,184,229,1) 0%, rgba(179,220,237,1) 100%);
    background: -ms-linear-gradient(top, rgba(41,184,229,1) 0%, rgba(179,220,237,1) 100%);
    background: linear-gradient(to bottom, rgba(41,184,229,1) 0%, rgba(179,220,237,1) 100%);
 /*   filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#29b8e5', endColorstr='#b3dced', GradientType=0 );*/

}
.horizontal section.etapa.fullwidth {
    min-width: 100%;
}


/* Etapes: FONS */


.layer-bg {
    display: block;
    position: absolute;
    bottom: 0px;
    left: 0;
   /* background: transparent url('./images/bg_trees02.png') -60px 0 repeat-x;
   */ z-index: 10;
    width: 100%;
    height: 700px;
   /* background: transparent url('./images/parallax-1-elefant-v2-01.png') 0px 0 repeat-x;
    */
    background-size: contain !important;
    background-position: 0% 100% !important;
}

#layer-bg_1.lazy,
#layer-bg_2.lazy,
#layer-bg_3.lazy,
#layer-bg_4.lazy,
#layer-bg_5.lazy,
#layer-bg_6.lazy,
#layer-bg_7.lazy {
    background: none;
}


.no-webp  #layer-bg_1 {
    background: url('./images/parallax-1-elefant-03.png') 0px 0 repeat-x;
}
.webp  #layer-bg_1 {
    background: url('./images/parallax-1-elefant-03.webp') 0 0 no-repeat;    
}

#layer-bg_2 {
    background: transparent url('./images/parallax-2-estru-03.png') 0px 0 repeat-x;
}
#layer-front_1, #layer-front_2, #layer-front_3,
#layer-front_6, #layer-front_7  {
    display: block;
    position: absolute;
    bottom: -40px;
    left: 0;
    z-index: 15;
    width: 100%;
    height: 700px;
    background: transparent url('./images/parallax-front.png') 0px 0 repeat-x;
}

#layer-bg_3 {
    background: transparent url('./images/parallax-3-lleo-03.png') 0px 0 repeat-x;
}
/*
#content_etapa_4 #layer-bg {
    background: transparent url('./images/parallax-4-floquet-03.png') 0px 0 repeat-x;
}*/
.no-webp #layer-bg_4 {
    background: url('./images/parallax-4-floquet-03.png') 0px 0 repeat-x;
}
.webp #layer-bg_4 {
    background: url('./images/parallax-4-floquet-03.webp') 0 0 no-repeat;    

}
#layer-front_4  {
    display: block;
    position: absolute;
    bottom: -40px;
    left: 0;
    z-index: 15;
    width: 100%;
    height: 700px;
    background: transparent url('./images/parallax-4-floquet-03-front.png') 0px 0 repeat-x;
}
/*
#content_etapa_5 #layer-bg {
    background: transparent url('./images/parallax-5-orca-07.png') 0px 0 repeat-x;
}*/
.no-webp #layer-bg_5 {
    background: url('./images/parallax-5-orca-08.png') 0px 0 repeat-x;
}
.webp #layer-bg_5 {
    background: url('./images/parallax-5-orca-08.webp') 0 0 no-repeat;    
}
#layer-front_5  {
    display: block;
    position: absolute;
    bottom: 0px;
    left: 0;
    z-index: 15;
    width: 100%;
    height: 700px;
    background: transparent url('./images/parallax-5-orca-08-front.png') 0px 0 repeat-x;
}

/*#content_etapa_6 #layer-bg {
    background: transparent url('./images/parallax-6-komodo-03.png') 0px 0 repeat-x;
}
*/
.no-webp #layer-bg_6 {
    background: url('./images/parallax-6-komodo-03.png') 0px 0 repeat-x;
}
.webp #layer-bg_6 {
    background: url('./images/parallax-6-komodo-03.webp') 0 0 no-repeat;
}

/*#content_etapa_7 #layer-bg {
    background: transparent url('./images/parallax-7-lludriga-05.png') 0px 0 repeat-x;
}
*/
.no-webp #layer-bg_7 {
    background: url('./images/parallax-7-lludriga-05.png') 0px 0 repeat-x;
}
.webp #layer-bg_7 {
    background: url('./images/parallax-7-lludriga-05.webp') 0 0 no-repeat;
}

#ttl_etapa_3 { 
    background: rgba(255,243,213,1);
    background: -moz-linear-gradient(top, rgba(255,243,213,1) 0%, rgba(255,232,171,1) 31%, rgba(255,220,130,1) 73%, rgba(245,145,30,1) 100%);
    background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(255,243,213,1)), color-stop(31%, rgba(255,232,171,1)), color-stop(73%, rgba(255,220,130,1)), color-stop(100%, rgba(245,145,30,1)));
    background: -webkit-linear-gradient(top, rgba(255,243,213,1) 0%, rgba(255,232,171,1) 31%, rgba(255,220,130,1) 73%, rgba(245,145,30,1) 100%);
    background: -o-linear-gradient(top, rgba(255,243,213,1) 0%, rgba(255,232,171,1) 31%, rgba(255,220,130,1) 73%, rgba(245,145,30,1) 100%);
    background: -ms-linear-gradient(top, rgba(255,243,213,1) 0%, rgba(255,232,171,1) 31%, rgba(255,220,130,1) 73%, rgba(245,145,30,1) 100%);
    background: linear-gradient(to bottom, rgba(255,243,213,1) 0%, rgba(255,232,171,1) 31%, rgba(255,220,130,1) 73%, rgba(245,145,30,1) 100%);
/*    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fff3d5', endColorstr='#f5911e', GradientType=0 );*/
}


/* Stop orca etapa5 */
#ttl_etapa_5 .animals-etapes.stop {
    position: relative;
    left: 2400px;
}

.layer-front {
    display: block;
    position: absolute;
    bottom: 50px;
    left: 0;
/*    background: transparent url('./images/bg_front-grass.png') 0 0 repeat-x; */
    z-index: 11;
    width: 100%;
    height: 84px;
    background-size: contain !important;
    background-position: 0% 100% !important;
}


/*************************************************/
/****************     LOADER     **************/

/* Paste this css to your style sheet file or under head tag */
/* This only works with JavaScript, 
if it's not present, don't show loader */
.no-js #loader { display: none;  }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
.se-pre-con {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: url('./img/Preloader_2.gif') center no-repeat #fff;
    /*display: none;*/
}

#turn {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: #fff;
    display: none; 
}
#turn p {
    color: black;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-top: calc(50vh - 100px);
    font-weight: 600;
}
#turn img {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/*************************************************/
/****************     GLOBALS      **************/

body {
   /* font-family:"Oswald", Sans Serif;*/
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 20px;
    line-height: 26px;
    background-color: transparent;
    color: white;
}

.home {
    overflow: hidden;
}

h1, h2, h3 {
    color: white;
  /*  color: #4f4f4f;*/
    font-weight: 600;
    white-space: normal;
}

.single-event, .single-destacat {
 /*   background-color: black; */
}

.single-event .slide-content, .single-destacat .slide-content {
    text-align: center;
}

/*************************************************/
/****************     TITOL WEB     **************/

header #titol {
    top: 57px;
    background-color: #000;
    height: 45px;
    position: fixed;
    width: 100%;
    z-index: 100;
    display: flex;
}

#titol .text {
    width: 80%;
    line-height: 40px;
    font-size: 20px !important;
    margin-left: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}
#titol .text span {
    font-weight: 300;
    font-size: 18px;
}
#titol .text.mobile {
    display: none;
}

.wpml-ls-statics-shortcode_actions.wpml-ls.wpml-ls-legacy-list-horizontal {
    width: 25%;
    text-align: right;
    font-weight: 400;
    font-size: 14px;
}

.wpml-ls-item a {
    color: white !important;
    background-color: black !important;
    border: none;
    font-size: 14px;
    line-height: 32px;
    text-decoration: none;
}
.wpml-ls-legacy-dropdown-click {
    width: 5.5em !important;
    position: absolute;
    right: 0;
}
.wpml-ls-link:hover {
    text-decoration: none !important;
    font-weight: 400;
}
.js-wpml-ls-item-toggle.wpml-ls-item-toggle {
    font-weight: 400;
}
/*************************************************/
/****************     MENU NAV ZOO  **************/

.show {display:block;}


.container.dmbs-header-nav-container {
    /*display: none;*/
    position: absolute;
    width: 100%;
}

#navbar {
    background-color: #222 !important;
    position: fixed;
    width: 100%;
    z-index: 100;
/*    top: 45px;*/

}

.navbar {
   /* position: fixed;
    min-height: 50px;
        z-index: 999;
    margin-bottom: 0px; */
    padding: 0px !important;
    height: 57px;
}

.navbar  #block-usersareablock {
    vertical-align: top;
    display: inline-block;
    height: 56px;
    position: absolute;
    right: -15px;

}

.navbar  #block-usersareablock a {
    width: auto;
    height: 56px;
    display: inline-block;
    padding: 20px 10px 0 10px;
    border-radius: 0 !important;
    vertical-align: top;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    text-align: left;
    background: var(--groc);
    text-decoration: none;
}

#block-usersareablock a, #block-usersareablock a .icon {
    color: #005094;
    transition: all 0.2s;
}

#block-usersareablock a:hover {
    background: #005094;
    color: var(--groc);
}

#block-usersareablock a:hover span {
    background: #005094;
    color: var(--groc);
}
.icon::before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    content: "";
    display: inline-block;
    font-family: 'icons';
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    speak: none;
    text-transform: none;
}
.icon.-entrar::before {
    content: "";
    text-decoration:none;
}

.navbar-expand-lg .navbar-collapse {
    display: block !important;
    margin-right: 112px;
    text-align: right;
}

.navbar-nav {
    display: block;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}


@media screen and (min-width:960px) {
    #navbar, .menu-item {
        display: inline-block;
        font-size: 12px !important;
        font-family: "Open Sans",sans-serif;
        font-weight: 600;
    }
}


.navbar-dark .navbar-nav .nav-link {
    color: rgb(255, 255, 255);
}
.nav-link {
    padding: 0.9rem 2px !important;
}
.navbar-brand img {
   /* width: 100%;
    margin-top: 10px;
    margin-left: -17px;
*/
    width: 90%;
    margin-top: 0px;
    margin-left: -25px;
}

.navbar-nav {
    font-size: 1.2rem;
   /* margin-left: 1.2rem; */
    text-transform: uppercase;
    height: 100%;
   /* margin-left: auto;
    margin-right: auto;*/
}

.nav-link {
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    line-height: 23px;
}
.navbar-nav > li > a:hover {
    border-bottom: 3px solid var(--groc);
    color:white !important;
}


.dropbtn {
    padding: 10px 25px;
    background-color: black;
    color:white;
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    border:none;
}

.dropbtn:hover {
    background-color: #444;
}



.navbar-toggler {
    position: absolute;
    left: 15.5px;
    transition: top 0.2s;
    top:5px;
}
.navbar-toggler > span {
    width: 30px;
    height: 30px;
    position: relative;
    display: block;
}

.navbar-toggler > span span {
    width: 100%;
    height: 3px;
    background: #fff;
    display: block;
    position: absolute;
    opacity: 1;
    left: 0;
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
}
.navbar-toggler > span span:nth-child(1) {
    top: 3px;
}
.navbar-toggler > span span:nth-child(2) , .navbar-toggler > span span:nth-child(3) {
    top: 50%;
    margin-top: -1.5px;
}
.navbar-toggler > span span:nth-child(4) {
    bottom: 3px;
}
.navbar-dark .navbar-toggler {
    border: none;
}


@media screen and (max-width:1200px) {

    #navbar {
        height: 46px;
    }

    #navbar .container {
        width: 100%;
    }

    #block-usersareablock {
        display: none !important;
    }
    .navbar-expand-lg .navbar-collapse {
        margin-right: 0px;
    }
    .navbar-brand {
        height: 62px;
    }
    .navbar-brand img {
        width: 48px !important;
    }

    /* Barra títol */
    header #titol {
        top: 46px;
    }
    #titol .text {
        font-size: 1.5vw !important;
        line-height: 43px;
    }
    #titol .text span {
        font-size: 1.4vw;
    }
}


@media screen and (max-width:992px) {

    #titol .text {
        width: 100%;
        font-size: 2vw !important;
    }
    #titol .text span {
        font-size: 1.9vw;
    }

    /* Menú hamburguesa */

    .navbar-toggler.dmbs-header-nav-mobile-toggle {
        display: none;
    }
    .navbar-collapse.collapse, .navbar-collapse.collapsing {
        display: none !important;
    }
    #header-nav-content.show {
        background-color: #222;
        display: block !important;
        top: 46px;
        position: absolute;
        width: 100%;
        padding: 0 50px;
        text-align: left;
    }    
    .navbar-brand {
        width: 74px;
        height: 62px;
        position: relative;
        display: block;
        margin: 0 auto;
        text-align: center;
        transition: all 0.2s;
        vertical-align: middle;
    }

    .navbar-brand img {
        width: 48px !important;
    }

    /* barra títol - selector idioma */
    .wpml-ls-legacy-dropdown-click {
        position: absolute !important;
        top: -43px;
        right: 0px;
    }
    .wpml-ls-item a {
        background-color: #222 !important;
    }
	.share-text {
		top: -45px;
	}
} 



/*************************************************/
/****************     DESTACATS     **************/

.layer-destacats { /* capa destacats */
   position: absolute;
   top: calc(var(--alt-historia) - 450px);
   z-index: 80;
   height: 100%;
}

#destacat-1-0 {
    top: 50px !important;
    left: 1000px;
} 
#destacat-1-1 {
    top: 150px !important;
    left: 2100px;
}
#destacat-1-2 {
    top: 100px !important;
    left: 2700px;
}


#destacat-2-0 {
    top: 50px !important;
    left: 1200px;
}
#destacat-2-1 {
    top: 150px !important;
    left: 1700px;
}
#destacat-2-2 {
    top: 100px !important;
    left: 2500px;
}



#destacat-3-0 {
    top: 50px !important;
    left: 1000px;
} 
#destacat-3-1 {
    top: 150px !important;
    left: 1600px;
}
#destacat-3-2 {
    top: 100px !important;
    left: 2100px;
}


#destacat-4-0 {
    top: 50px !important;
    left: 700px;
}
#destacat-4-1 {
    top: 150px !important;
    left: 1200px;
}
#destacat-4-2 {
    top: 100px !important;
    left: 1700px;
}
#destacat-4-3 {
    top: 125px !important;
    left: 2200px;
}

#destacat-5-0 {
    top: 50px !important;
    left: 800px;
}
#destacat-5-1 {
    top: -50px !important;    
    left: 1500px;
}
#destacat-5-2 {
    top: -20px !important;
    left: 1900px;
}
#destacat-5-3 {
    top: 20px !important;
    left: 2400px;   
}
#destacat-5-4 {
    top: 0px !important;
    left: 2900px;    
}

#destacat-6-0 {
    top: 50px !important;
    left: 1200px;
}
#destacat-6-1 {
    top: 150px !important;
    left: 1800px;
}
#destacat-6-2 {
    top: 100px !important;
    left: 2200px;
}


#destacat-7-0 {
    top: 50px !important;
    left: 1200px;
}
#destacat-7-1 {
    top: 150px !important;
    left: 1800px;
}
#destacat-7-2 {
    top: 100px !important;
    left: 2200px;
}


.destacat {
    white-space: normal;
    width: 350px;
  /*  height: 300px; */
    padding: 10px;
    position: absolute;
    color:black;
    cursor: pointer;
    display: flex;
    border-radius: 5px;
    box-shadow: 0px 20px 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(255,255,255,0.7) !important;

}

.destacat .img-wrap {
    overflow: hidden;
    height: 90px;
    width: 90px;
    position: relative;
}
.destacat .img-wrap.video::after {
    content: "";
    position: absolute;
    background-image: url("./img/marca-video-1.svg");
    width: 41px;
    height: 41px;
    opacity: 0.9;
    top: 25px;
    left: 25px;
}

.destacat img {
    height: 90px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    margin-top: 0 !important;
} 
.destacat-txt {
    margin-left:10px;
    width: 200px;
    overflow: hidden;
    font-weight: 600;
    color: #444;
}
.destacat .titol {
    font-size:20px;
    margin: 10px 0px;
}
.destacat .text {
    font-size: 14px;
    margin:0px;
}

.etapa.activat .destacat {
   animation: float 3s ease-out infinite; 
}

@keyframes float {
  50% {
     transform: translate(0, 20px);
  }
}

@keyframes fall {
  0% { 
    transform: rotate(-80deg);
    top: 0px; }
  38% {
    transform: rotate(40deg); 
    top: 150px;   
    margin-left:50px;} 
  80% {
    transform: rotate(-385deg); 
    top: calc(66vh - 150px);
    margin-left:-50px;
    }
  100% { 
    transform: rotate(-355deg); 
    top: calc(66vh - 100px);
    margin-left:0px;}
}  

@keyframes shadow {
  0% { 
    width:50%; }
  50% {
    width:20%; 
    } 
  100% {
    width:50%; 
    }
}



/*************************************************/
/***********     PARALLAX CONTAINER     **********/


.layer-title { /* Títol Etapa */
    position: absolute;
    top: 30%;
    left: 0;
    background-color: #00a56d;
    z-index: 20;
}
.layer-title h2 {
    margin: 5px 25px;
    color: var(--groc);
}
#parallaxContainer_1 .layer-title {
    background-color: var(--color-etapa1);
}
#parallaxContainer_2 .layer-title {
    background-color: var(--color-etapa2);
}
#parallaxContainer_3 .layer-title {
    background-color: var(--color-etapa3);
}
#parallaxContainer_4 .layer-title {
    background-color: var(--color-etapa4);
}
#parallaxContainer_5 .layer-title {
    background-color: var(--color-etapa5);
}
#parallaxContainer_6 .layer-title {
    background-color: var(--color-etapa6);
}
#parallaxContainer_7 .layer-title {
    background-color: var(--color-etapa7);
}

div[id^="parallaxContainer"] {
    /*width: 100vw;*/
   /* height: 66vh; */
    /*height: 60vh;*/
    height: var(--alt-historia);
    width: var(--ample-etapa);
    top: 0px;
    position: relative;
    overflow: hidden;
    /*
    left: 55vw; */ /* Desplaçament per ajustar canvis d'etapa */
}





/*************************************************/
/***********          LOADER.           **********/
.loading {
    background: url('../img/ico_loading.gif') no-repeat center center;
}
/*
section {
    opacity: 0;
    -webkit-transition:opacity .6s;
    -moz-transition:opacity .6s;
    -o-transition:opacity .6s;
    transition: opacity .6s;
}*/
.loaded section {
    opacity: 1;
}


/*************************************************/
/***********         VARIS         **********/

#target {
   z-index: 9; 
}

.layer5 { /* capa destacat2*/
    position: absolute;
    top: 200px;
    z-index: 100;
    height: 100%;
}


/*************************************************/
/***********         TIME LINE          **********/

/* Marcadors */

.sidebar-toggler, .marcador-etapa, .marcador-premis {
    display: none; /* Inicialment estan ocults */
}

.marcador-etapa {
    position: fixed;
    right: 100px;
    width: 110px;
    border-radius: 0 0 20px 20px;
    height: 67px;
    z-index: 90;
    background-color: #222;
    padding: 20px 20px 20px 20px;
    top: 90px;
    text-align: center;
    font-size: 30px;
    color: white;
    font-weight: 400;
    text-align: center;
}
.marcador-premis {
    position: fixed;
    top: 77px;
    left: 40%;
    width: 120px;
    justify-content: space-between;
    background-color: #222;
    padding: 15px 15px 0px 15px;    
    border-radius: 0 0 20px 20px;
    z-index: 85;
}

.marcador {
    position: fixed;
    top: 120px;
    left: 100px;
    width: 250px;
    justify-content: space-between;
    background-color:gray;
    padding: 5px 15px;
    border-radius: 20px;
    height: 45px;
    z-index:90;
    display: none;
}

.marcador .text {
    font-size: 30px;
    font-weight: 800;
    line-height: 32px;
}

#premis_comptador {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 35px;
    color: var(--groc);
    font-weight: 400;
    background-image: url("./img/icona-premi.svg)");
    background-repeat: no-repeat;
    height: 64px;
    background-position: 7px;
    background-size: 40%;
}
#premis_comptador .text {
    position: relative;
    left: 60px;
    top: 18px;
}
#premis_comptador.update {
    animation: fa--heartbeat 1s 2;
    transform-origin: top;
}

@keyframes fa--heartbeat {
  0%   { transform: scale(1);  }
  15%  { transform: scale(1.3);}
  30%  { transform: scale(1);  }
  45%  { transform: scale(1.3);}
  60%  { transform: scale(1);  }
  100% { transform: scale(1);  }
 }   

#premis_comptador img {
    width: 50px;
    position: relative;
    /*top: -12px;*/
    transform: scale(0.7);
    -webkit-transform: scale(0.7);
}


/* Botó PLAY - autoscroll */
.butons-scroll {
    position: absolute;
    top: -60px;
}

/* Botos navegació Timeline */
.ttl-button-prev {
    top: 23px;
    position: absolute;
    left: 15px;
    color: white; /*#0037A2;*/
    z-index: 20;
}
.ttl-button-prev:hover {
    left: 13px;
    opacity: 0.8;
}
.ttl-button-next {
    top: 23px;
    position: absolute;
    right: 15px;
    color: white; /*#0037A2;*/
    z-index: 20;
}
.ttl-button-next:hover {
    right: 13px;
    opacity: 0.8;
}


/* Progress Bar */
.progress-container {
  width: auto;
  height: 1px;
/*  background: rgba(0,55,162,0.5);*/
  background: white; /*#0037A2;*/

  margin-bottom: 10px;
  /*margin-left: 50px;
  margin-right: 55px; */
}

.progress-bar {
  height: 2px;
  background: white; /*#0037A2;*/
  width: 0%;
}



/* Timeline Next-Fwd */
.ttl-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
 /*   background-color: #F2CE31;*/
    height: 25%;
    max-height: 80px; 
}


/* Timeline event */
.events {
   /* background-color: #222;*/
    padding: 0;
   /* font-size: 20px; */
    /*position: fixed;*/
    position: absolute;
    left: 0;
    bottom: 0;
    /* height: 33vh; */
/*    height: 40vh;*/
     height: calc(100vh - var(--alt-historia));

  /* height: 0px; */
    z-index: 50;
    /*width: 100vw;*/
    width: 100%;
   /* transition: all 1s;*/
}

.event, .event.etapa {
    display: inline-block;
  /*
  position: relative !important; */
    height: 0;
    width: 1500px !important;
}


.hide {
    display:none;
}

.timeline-nav {
    height: 100%;    
}
.timeline-nav div[id^="ttl"] {
/*.timeline-nav #ttl_2 { */
/*  top:25px; 
    padding:0px 10px;
*/
    top: 0px;
    width:100%;
    position: absolute;
    z-index:10;
    padding: 0;
}

.timeline-nav div[id^="ttl"] ul {
    display: flex;
    list-style: none;
    flex-direction: row;
   /* flex-wrap: wrap;*/
    text-align: center;
    justify-content: space-between;
    margin-bottom: 7px;
   /* padding: 0 30px;*/   
    padding: 0 15px 0 30px;
}

.timeline-nav .ttldate {
    margin-right:10px;
    display: inline-block;

}

.timeline-nav .ttldate::before {
    content: '';
    position: absolute;
    background-color: white; 
    margin-left: -5px;
    z-index: 99;
    width: 11px;
    height: 11px;
    top: -4px;
    border-radius: 50%;
}


.timeline-nav .ttldate::before {
    width: 10px;
    height: 10px;
    top: -4px;
}

.timeline-nav .ttldate {
    margin-right: 20px;
}

.ttldate.etapa .titol {
    text-transform: uppercase;
    font-family: montserrat;
    font-weight: 600;
}

.ttldate.etapa .num {
    font-family: montserrat;
    font-weight: 600;
    font-size: 13px !important;
    line-height: 18px;
}

.ttldate a {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    padding: 5px 12px;
    display: block;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.ttldate a:hover, .ttldate.active a {
    border-radius: 5px;
    border: 2px solid var(--groc);
}


.ttldate.active::before {
    content: '' !important;
    position: absolute !important;
    width: 11px !important;
    height: 11px !important;
    background-color: inherit !important;
    background-color: #F2CE31 !important;
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
    animation: ripple 1.5s 0.2s infinite;
    -webkit-animation: ripple 1.5s 0.2s infinite;

}
@-webkit-keyframes ripple {
  20% {
    box-shadow: 0px 0px 0px 6px transparent;
  }
  
  100% {
    box-shadow: 0px 0px 0px 6px transparent,
                0px 0px 0px 8px #555,
                0px 0px 0px 14px transparent,
                0px 0px 2px 16px #888;
  }
}


/* bloc resums */

div[id^="resum-events"] {
/*#resum-events {*/
    height: 60%;
    position: relative;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
    top: 20%;
}

div[id^="resum-events"] ul {
/*#resum-events ul {*/
    margin: 0;
}

/*li[class^="ttlresum-"] {*/

.ttlresum {
    opacity: 0;
    transition: all 0.7s;
    top: 100%;
    left: 0px;
    position: absolute;
    width: 100%;
    margin: auto;
    list-style: none;
    height: auto;
    overflow: hidden;

    background-position: center center;
    background-size: cover;
    background-blend-mode: multiply;
}

.ttlresum img {
    position: absolute;
    width: 100%;
    mix-blend-mode: multiply;
}

/*li[class^="ttlresum-"].active {*/
.ttlresum.active {
    opacity: 1;
    top:0;
}

#resum-events_1 .ttlresum {
    background-color: var(--color-etapa1);
}
#resum-events_2 .ttlresum {
    background-color: var(--color-etapa2);
}
#resum-events_3 .ttlresum {
    background-color: var(--color-etapa3);
}
#resum-events_4 .ttlresum {
    background-color: var(--color-etapa4);
}
#resum-events_5 .ttlresum {
    background-color: var(--color-etapa5);
}
#resum-events_6 .ttlresum {
    background-color: var(--color-etapa6);
}
#resum-events_7 .ttlresum {
    background-color: var(--color-etapa7);
}

.ttlresum-txt {
    width: 100%;
    margin: 0;
    position: relative;
    height: 100%;
    padding: 3%;
    overflow: hidden;
}

.ttlresum-more {   
    right: 30px;
    position: absolute;
    top: 25px;
    background-image: url("./img/marca-mes.svg");
    width: 41px;
    height: 41px;
    cursor: pointer;
}
.ttlresum-more.video::after {
    content: "";
    position: absolute;
    width: 41px;
    height: 41px;
    opacity: 1;
    background-image: url("./img/marca-video-1.svg");
    left: -41px;
    background-size: auto;
}

.ttlresum-more:hover {
    margin-top: -2px;
    opacity: 0.8;
}

.ttlresum-txt .titol {
    text-align: left;
    text-transform: uppercase;
    color: white;
    font-size: 23px !important;
    line-height: 26px;
    padding-right: 80px;
    font-weight: 600;
    margin-bottom: .5rem;
    white-space: normal;

}

.ttlresum-txt p {
    color: white;
    font-size: 23px;
    line-height: 26px;
    white-space: normal;

}

/* Scroll Bar - Only WebKit Browers */

/* width */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #AAAAAA; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #555; /*rgba(255,255,255,0.5); */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}


/* bloc MODALS */

div[id*="etapa_1"].dmodal, div[id^="destacat-modal-1"], #pagina_final_etapa_1, #pagina_seguent_etapa_1 {
    background-color: var(--color-etapa1b);
}
div[id*="etapa_2"].dmodal, div[id^="destacat-modal-2"], #pagina_final_etapa_2, #pagina_seguent_etapa_2 {
    background-color: var(--color-etapa2b);
}
div[id*="etapa_3"].dmodal, div[id^="destacat-modal-3"], #pagina_final_etapa_3, #pagina_seguent_etapa_3 {
    background-color: var(--color-etapa3b);
}
div[id*="etapa_4"].dmodal, div[id^="destacat-modal-4"], #pagina_final_etapa_4, #pagina_seguent_etapa_4 {
    background-color: var(--color-etapa4b);
}
div[id*="etapa_5"].dmodal, div[id^="destacat-modal-5"], #pagina_final_etapa_5, #pagina_seguent_etapa_5 {
    background-color: var(--color-etapa5b);
}
div[id*="etapa_6"].dmodal, div[id^="destacat-modal-6"], #pagina_final_etapa_6, #pagina_seguent_etapa_6 {
    background-color: var(--color-etapa6b);
}
div[id*="etapa_7"].dmodal, div[id^="destacat-modal-7"], #pagina_final_etapa_7, #pagina_seguent_etapa_7 {
    background-color: var(--color-etapa7b);
}


.carousel-inner {
    width: 600px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.ttlmodal-close, .destacat-modal-close {
    position: absolute;
    top: 30px;
    /*right: calc(10% - 60px);*/
    right: 5vw;
    color: white; /*#F2CE31;*/
   /* font-family: dashicons;*/
    font-size: 36px !important;
    cursor: pointer;
    width: 60px;
    z-index: 50;
}
.ttlmodal-close:hover, .destacat-modal-close:hover {
    margin-top: -2px;
    opacity: 0.8;
}
.dmodal {
    position: fixed;
    left: 0;
    top: 100%;    
    transition: all 700ms ease;
    opacity: 1;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 200;
    text-align: center;
}
.modal-img, .modal-img {
    width: 90%;
    height: 450px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    clear: both;
    margin-bottom: 0px;
    background-color: rgba(0, 0, 0, 0);
    margin-left: auto;
    margin-right: auto;
    cursor: zoom-in;
    background-size: cover;
}
.modal-img-caption {
    font-size: 15px;
    font-style: italic;
}
.modal-wrap {
 /*   overflow-y: scroll;
    -webkit-overflow-scrolling: touch; */
    width: 60%;
    height: 100%;
    color: #fff;
 /*   margin: 5% auto 10% auto;*/
    margin: 20px auto 0 auto;

  /*background: url('./img/Preloader_2.gif') center no-repeat ;*/
}
.single-modal-wrap {
    /*overflow-y: scroll;*/
}

.modal-txt {
    padding: 5%;
}
.modal-txt h2 {
    margin-bottom: 20px;
    text-align: center; 
}
.modal-txt p {
    white-space: normal;
    font-size:20px;
    line-height: 26px;
    text-align: justify;
    text-justify: inter-word;
}
.modal-txt iframe {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.dmodal.active, .dmodal.active {
    top: 0;
    display: block;
    /*top: 70px; */
}

.modalscroll, .modalscrolltop  {
    position: absolute;
    bottom: 10%;
    left: 50%;
    display: none;
}
.modalscrolltop {
    display: none;
}

.modalscroll span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    box-sizing: border-box;
}
.modalscrolltop span {
    position: absolute;
    top: 0;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    box-sizing: border-box;
}

.modalscrolltop span:nth-child(2) {
    margin-top: 10px;
}



/**************************/
/*     ANIMALS ETAPES     */
/**************************/


div[id^="animal-etapa_"] {
  transform: translate3D(200px, 50px, 0);
  /*animation: walk 0.78s steps(9) infinite; */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
 /* position: fixed; */
  position: absolute;
  z-index: 15;
  cursor: pointer;
}
.animals-etapes {
  /*  left: -80vw;*/
    position: absolute;
    transition: all 0.7s;
    top: 0;
}



.animal-etapa::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    width: 300px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    -webkit-filter: blur(2px);
    filter: blur(2px);
    -moz-border-radius: 100%;
    -webkit-border-radius: 100%;
    border-radius: 100%;
    z-index: 0;
}
.animal-etapa::after > .saltant {
    animation: shadow 1.5s ease 1 alternate;
    -webkit-animation: shadow 1.5s ease 1 alternate;
}


/* Animal Etapa 1 - ELEFANT */
#animal-etapa_1 {
    height: 500px;
    top: calc( var(--alt-historia) - 520px );
    margin-left: 33vw;
    left: 0;
}
#animal-etapa_1-slides:after {
    bottom: -500px;
}
#animal-etapa_1-slides {
  /*  background: url("./img/elefant-v1.png") no-repeat;  */
    width: 500px;
}
#animal-etapa_1-camina svg,#animal-etapa_1-salt svg {
    width: 500px !important;
    height: 500px !important;
}

#animal-etapa_1-slides {
  background-position: 0px 0;
}
#animal-etapa_1-slides.esq {
  transform:scaleX(-1);
}
#animal-etapa_1 span {
    position: absolute;
    top: 52%;
    left: 45%; /*22%; */
    width: 150px; /*250px; */
    text-align: center;
    height: 200px;
    /*background-color: red;*/
}

#animal-etapa_1-salt.saltant span, div[id$="-salt"].saltant span {
 /*   -webkit-animation: jump-animal 1s 1; */
    animation: bounce 1s;
    -webkit-animation: bounce 1s;
   /* animation-direction: alternate;
    animation-iteration-count: 1;*/  
}
@keyframes bounce {
  0% { transform: translate3d(0, 0, 0);     }
  70% { transform: translate3d(0, 0, 0);     }
  100%   { transform: translate3d(0, -120px, 0); }
}

#animal-etapa_1-salt, div[id$="-salt"]  {
    display: none;
}
#animal-etapa_1-salt.saltant, div[id$="-salt"].saltant {
    display: block;
}
#animal-etapa_1-camina, div[id$="-camina"]  {
    display: none;
}
#animal-etapa_1-camina.caminant, div[id$="-camina"].caminant {
    display: block;
}


/* Animal Etapa 2 - ESTRUÇ */
/* Canviar imatge, ajustar height i width, top */

#animal-etapa_2 {
    height: 250px;
    top: calc( var(--alt-historia) - 270px );
    margin-left: 36vw;
    left: 0;
}

#animal-etapa_2-slides:after {
    bottom: -250px;
    width: 150px;
}
#animal-etapa_2-slides {
    width: 250px;
}

#animal-etapa_2-slides {
  background-position: 0px 0;
}
#animal-etapa_2-slides.esq {
  transform:scaleX(-1);
}
#animal-etapa_2 span {
    position: absolute;
    top: 20%;
    left: 20%; /*22%; */
    width: 150px; /*250px; */
    text-align: center;
    height: 200px;
    /*background-color: red;*/
}
#animal-etapa_2-salt {
    top: 5px;
}
#animal-etapa_2-salt.saltant {
 /*   -webkit-animation: jump-animal 1s 1; */
    animation: salt-estruç 1.5s;
    animation-direction: alternate;
    animation-iteration-count: 2;
    -webkit-animation: salt-estruç 1.5s;
    -webkit-animation-direction: alternate;
    -webkit-animation-iteration-count: 2;
}
@keyframes salt-estruç {
  0%   { transform: translate3d(0, 0, 0);     }
  33%  { transform: translate3d(0, -100px, 0);     }
  66%  { transform: translate3d(0, +24px, 0); }
  75%  { transform: translate3d(0, +10px, 0); }
  85%  { transform: translate3d(0, +5px, 0); }
  90%  { transform: translate3d(0, -5px, 0); }
  100% { transform: translate3d(0, -5px, 0); }
}

/* Animal Etapa 3 - LLEO */
/* Canviar imatge, ajustar height i width, top */

#animal-etapa_3 {
    height: 400px; /* 450px */
    top: calc( var(--alt-historia) - 310px ); /*- 510px*/
    margin-left: 33vw;
    left: 0;
}
#animal-etapa_3-slides:after {
    bottom: -300px; /* -500px;*/
    margin: auto 90px;
}
#animal-etapa_3-slides {
  /*  background: url("./img/elefant-v1.png") no-repeat;  */
    width: 500px;
}
#animal-etapa_3-camina {
    top:45px;
}
#animal-etapa_3-camina svg /*,#animal-etapa_3-salt svg */ {
  /*  width: 450px !important;
    height: 450px !important;*/
    width: 400px !important;
    height: 245px !important;
 /*   top: 40px;
    position: relative;
    left: 40px;*/
}
#animal-etapa_3-salt svg {
    width: 400px !important;
    top: -67px;
    position: relative;
}

#animal-etapa_3-slides {
  background-position: 0px 0;
}
#animal-etapa_3-slides.esq {
  transform:scaleX(-1);
}
#animal-etapa_3 span {
    position: absolute;
    top: 16%;
    left: 46%; /*22%; */
    width: 200px; /*250px; */
    text-align: center;
    height: 200px;
    /*background-color: red;*/
}

#animal-etapa_3-salt {
    top: 47px; /*81px;*/
}
#animal-etapa_3-salt.saltant {
 /*   -webkit-animation: jump-animal 1s 1; */
    animation: salt-lleo 0.35s;
   /* transform: translate3d(0, +40px, 0);*/
    animation-direction: alternate;
    animation-iteration-count: 2;

    -webkit-animation: salt-lleo 0.35s;
    -webkit-animation-direction: alternate;
    -webkit-animation-iteration-count: 2;
}
@keyframes salt-lleo {
  0% { transform: translate3d(0, -40px, 0);     }
  5% { transform: translate3d(0, -80px, 0);     }
  100% { transform: translate3d(0, -150px, 0);     }

}


/* Animal Etapa 4 - FLOQUET */
/* Canviar imatge, ajustar height i width, top */

#animal-etapa_4 {
    height: 200px;
    top: calc( var(--alt-historia) - 220px );
    margin-left: 36vw;
    left: 0;
}
#animal-etapa_4-slides:after {
    bottom: -205px;
    width: 220px;
}
#animal-etapa_4-slides {
  /*  background: url("./img/elefant-v1.png") no-repeat;  */
    width: 200px;
    margin: auto -10px;
   /* width: 260px;*/
}

#animal-etapa_4-slides {
  background-position: 0px 0;
}
#animal-etapa_4-slides.esq {
  transform:scaleX(-1);
}
#animal-etapa_4 span {
    position: absolute;
    top: 25%;
    left: 35%; /*22%; */
    width: 120px; /*250px; */
    text-align: center;
    height: 150px;
    /*background-color: red;*/
}
#animal-etapa_4-salt {
    top: -60px;
}
#animal-etapa_4-salt.saltant {
 /*   -webkit-animation: jump-animal 1s 1; */
    animation: salt-floquet 1s;
    animation-direction: alternate;
    animation-iteration-count: 2; 
    -webkit-animation: salt-floquet 1s;
    -webkit-animation-direction: alternate;
    -webkit-animation-iteration-count: 2; 
}
@keyframes salt-floquet {
  40% { transform: translate3d(0, -10px, 0);     }
  100% { transform: translate3d(0, -100px, 0);     }
}
@-webkit-keyframes salt-floquet {
  40% { transform: translate3d(0, -10px, 0);     }
  100% { transform: translate3d(0, -100px, 0);     }
}

/* Animal Etapa 5 - ORCA */
/* Canviar imatge, ajustar height i width, top */

#animal-etapa_5 {
    height: 250px;
    top: calc( var(--alt-historia) - 270px );
 /*   margin-left: 18vw;*/
    left: 0;
    transform: scale(0.88);
}
#animal-etapa_5-slides:after {
    bottom: -250px;
}
#animal-etapa_5-slides {
    margin: auto -10px;
    width: 1800px;
}

#animal-etapa_5-camina {
    background: url("./img/orca-total-2.png") no-repeat;
     animation: orca-nada 3.5s steps(19) infinite;
    height: 900px;
    position: relative;
    overflow: hidden;
    top: -620px;
    width: 900px;
}
@keyframes orca-nada {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}


#animal-etapa_5-slides {
  background-position: 0px 0;
}
#animal-etapa_5-slides.esq {
  transform:scaleX(-1);
  left: -900px;
}
#animal-etapa_5 span {
    position: absolute;
    top: 70%;
    left: 50%; /*22%; */
    width: 200px; /*250px; */
    text-align: center;
    height: 200px;
    /*background-color: red;*/
}
#animal-etapa_5-salt {
    /*top: -335px;*/
    bottom: 530px;
}

#animal-etapa_5-salt.saltant {
    background: url("./img/orca-total-2.png") no-repeat;
    animation: salt-orca 1.5s steps(19) 1;
    height: 900px;
    position: relative;
    overflow: hidden;
    top: -620px;
    width: 900px;

 /*   -webkit-animation: jump-animal 1s 1; */
 /*   animation: salt-orca 1s;
    animation-direction: alternate;
    animation-iteration-count: 2; */
}
@keyframes salt-orca {
  0% { transform: translate3d(0, 0px, 0);background-position: 100% 0%;      }
  50% { transform: translate3d(0, -50px, 0);     }
  100% { transform: translate3d(0, 0px, 0); background-position: 100% 100%;     }

}

#animal-etapa_5-salt.saltant span {
    top: 67%;
    animation: bounce5 1.5s;
}

@keyframes bounce5 {
  0% { transform: translate3d(0, 0, 0);     }
  40% { transform: translate3d(0, 0, 0);     }
  100%   { transform: translate3d(0, -200px, 0); }
}



/* Animal Etapa 6 - KOMODO */
/* Canviar imatge, ajustar height i width, top */

#animal-etapa_6 {
    height: 120px;
    top: calc( var(--alt-historia) - 130px );
    margin-left: 18vw;
    left: 0;
}
#animal-etapa_6-slides:after {
   /* bottom: 110px;*/
    bottom: 2px;
    left: 50px;
}

#animal-etapa_6-slides {
  /*  background: url("./img/elefant-v1.png") no-repeat;  */
    margin: auto -10px;
    width: 390px;
    height: 125px;
}


#animal-etapa_6-camina {
    background: url("./img/komodo-camina.png") no-repeat 50% 0 / 100% auto;
     animation: komodo-camina 100s steps(19) infinite;
    height: 120px;
    position: relative;
    overflow: hidden;
}
@keyframes komodo-camina {
    0% { background-position: 50% 0%; }
    100% { background-position: 50% 100%; }
}


#animal-etapa_6-slides {
  background-position: 0px 0;
}
#animal-etapa_6-slides.esq {
  transform:scaleX(-1);
}
#animal-etapa_6 span {
    position: absolute;
    top: 25%;
    left: 40%; /*22%; */
    width: 200px; /*250px; */
    text-align: center;
    height: 180px;
    /*background-color: red;*/
}
#animal-etapa_6-salt {
    top: -120px;
}
#animal-etapa_6-salt.saltant {
    background: url("./img/komodo-salta.png") no-repeat 50% 0 / 100% auto;
    animation: salt-komodo 1.5s steps(14) 1;
    height: 240px;
    position: relative;
    overflow: hidden;

 /*   -webkit-animation: jump-animal 1s 1; */
 /*   animation: salt-orca 1s;
    animation-direction: alternate;
    animation-iteration-count: 2; */
}
@keyframes salt-komodo {
  0% { background-position: 50% 0%;      }
  100% { background-position: 50% 100%;     }

}



/* Animal Etapa 7 - LLUDRIGA */
/* Canviar imatge, ajustar height i width, top */

#animal-etapa_7 {
    height: 250px;
    top: calc( var(--alt-historia) - 240px );
    margin-left: 18vw;
    left: 0;
}
#animal-etapa_7-slides:after {
    bottom: -5px;
    left: 120px;
    width: 200px;
}
#animal-etapa_7-slides {
    background-position: 0px 0;
    margin: auto -10px;
    width: 350px;
    height: 200px;
}

#animal-etapa_7-camina {
    height: 200px;
    position: relative;
    overflow: hidden;
    top: 0px;
    left: 0px;
}


#animal-etapa_7-slides.esq {
  transform:scaleX(-1);
  transform-origin: 250px;
}
#animal-etapa_7 span {
    position: absolute;
    top: 48%;
    left: 56%; /*22%; */
    width: 130px; /*250px; */
    text-align: center;
    height: 100px;
    /*background-color: red;*/
}
#animal-etapa_7-salt {
    top: 15px;
}
#animal-etapa_7-salt.saltant {
    animation: salt-lludriga 0.3s;
    height: 220px; 
    position: relative; 
    animation-direction: alternate;
    animation-iteration-count: 2;
}
@keyframes salt-lludriga {
  0% { transform: translate3d(0, 10px, 0);      }
  80% { transform: translate3d(0, -95px, 0);     }
  100% { transform: translate3d(0, -100px, 0);     }
}

#animal-etapa_7-salt.saltant span {
    top: 14%;
    left: 48%;
    height: 150px;
    animation: bounce7 1s;
}

@keyframes bounce7 {
  0% { transform: translate3d(0, 0, 0);     }
  40% { transform: translate3d(0, 0, 0);     }
  100%   { transform: translate3d(0, -200px, 0); }
}



/*************************************************/
/***********          SIDEBAR           **********/


.sidebar-menu {
    position: fixed;
    padding: 40px 10px 0px 10px;
    left: -400px;
    top: 100px;
    z-index: 85;
    transition: all 0.7s;
    height: 100vh;
    background-color: #222;
    max-width: 400px;
    overflow-y: scroll;
} 
#sidebar-menu-title {
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    color: white;
    font-size: 1.75rem;
    font-weight: 600;
    white-space: normal;
    display: block;
    line-height: 40px;
    margin-bottom: .5rem;
}
.sidebar-menu.showsidebar {
    left: 0px;
}
.sidebar-event {
    margin-left: 20px;
}
.sidebar-wrap ul {
    padding: 0px;
}
.sidebar-wrap li {
    margin-bottom: 0px;
    font-weight: 400;
    list-style: none;
    padding-left: 20px;
    font-weight: 600;
    display: inline-flex;
    width: 100%;
    padding: 15px 50px;
    cursor: pointer;
}
.sidebar-wrap li:hover {
    opacity: 0.7;
}
.sidebar-menu .anys {
    font-weight: 400;
    margin-left: 20px;
}
#sidebar-etapa_1 {
    background-color: var(--color-etapa1);
}
#sidebar-etapa_2 {
    background-color: var(--color-etapa2);
}
#sidebar-etapa_3 {
    background-color: var(--color-etapa3);
}
#sidebar-etapa_4 {
    background-color: var(--color-etapa4);
}
#sidebar-etapa_5 {
    background-color: var(--color-etapa5);
}
#sidebar-etapa_6 {
    background-color: var(--color-etapa6);
}
#sidebar-etapa_7 {
    background-color: var(--color-etapa7);
}

/* Icon - menu Hamburguesa SIDEBAR */

.sidebar-toggler {
    background-color: #222;
    padding: 20px 30px 20px 40px;
    border-radius: 0 0 20px 0;
    position: fixed;
    top: 91px;
    left: -10px;
    z-index: 90;
    border: none;
}
.sidebar-toggler > span {
    width: 26px;
    height: 26px;
    position: relative;
    display: block;
}
.sidebar-toggler >  span span {
  /*  background-color: #222; */
    background-color: white;
    width: 100%;
    height: 4px;
    display: block;
    position: absolute;
    opacity: 1;
    left: 0;
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
    border-radius: 1px;
}
.sidebar-toggler >  span span:nth-child(1) {
    top: 3px;
}
.sidebar-toggler > span span:nth-child(2) /*, .navbar-toggler > span span:nth-child(3)*/ {
    top: 50%;
 /*   margin-top: -1.5px;*/
    margin-top: 0px;
}
.sidebar-toggler > span span:nth-child(3) {
 /*   bottom: 3px;*/
     bottom: 0px;
}

.sidebar-toggler {
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}
.sidebar-toggler.open {
    background-color: transparent;
}

.sidebar-toggler span {
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}

.sidebar-toggler.open span span:nth-child(1) {
  top: 13px;
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
}

.sidebar-toggler.open span span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.sidebar-toggler.open span span:nth-child(3) {
  top: 13px;
  -webkit-transform: rotate(-135deg);
  -moz-transform: rotate(-135deg);
  -o-transform: rotate(-135deg);
  transform: rotate(-135deg);
}


#credits {
    font-size: 14px;
    font-weight: 300;
    margin-left: 10px;
}
#credits a {
    color: white;
    font-weight: 400;
}
/*
.ttl_etapes li:nth-child(1) {
    display: none;
}
*/

#bibliografia {
    font-size: 14px;
    font-weight: 300;
    margin-left: 10px;
    color: white !important;
    margin-top: 20px;
    line-height: 18px;
    height: 350px;
}

#bibliografia a {
    color: white !important;
}
#bibliografia-text {
    padding: 10px;
}
#bibliografia ul, #bibliografia li {
    padding: 0px;
}
#bibliografia li {
    width: auto;
    padding: 0px;
    display: block;
    cursor: auto;
    font-weight: normal;
    margin-bottom: 10px;
}
#bibliografia li:hover {
    opacity: 1 !important;
}

/*************************************************/
/***********          PEDRES            **********/

.pedres {
    position: absolute;
    width: 91px;
    height: 46px;
    z-index: 10;
}
#pedra1, #pedra2, #pedra3 {
    top: calc(var(--alt-historia) - 100px);
    text-align: center;
    background-image: url("./img/pedra.png");
    position: absolute;
    width: 91px;
    height: 46px;
}
#pedra1 {
    left:1000px;
}
#pedra2 {
    left:1700px;
}
#pedra3 {
    left:2100px;
}

/*************************************************/
/***********        FINAL ETAPA         **********/

.final-historia {
    margin-left: auto;
    margin-right: auto;
    padding: 5%;
}
.final-historia iframe {
    width: 100%;
    height: 460px;
}
.final-historia img {
    width: 100%
}

#final-historia-title-complet, #final-historia-title-una, #final-historia-title-parcial, #final-historia-title-cap {
	display: none;
}
.final-historia-title {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    width: 80%;
	margin-left: auto;
	margin-right: auto;
}
.final-historia-title span {
    color: var(--groc);
}
.final-historia-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

#pagina_seguent_etapa_7 .pseguent-animals {
    display: block;
}
/*************************************************/
/***********          PREMIS            **********/

.premis-etapes, .destacat-mes {
    position: absolute;
    width: 91px;
    height: 46px;
    z-index: 10;
}

.premis-etapes {
    display: none;
}

div[id^="premi0-etapa"], div[id^="premi1-etapa"], div[id^="premi2-etapa"], div[id^="premi3-etapa"], div[id^="premi4-etapa"] {
/*.premi1-etapa, .premi2-etapa, .premi3-etapa {*/
/*    top: calc(66vh - 350px);*/
    text-align: center;
    position: absolute;
/*  background-image: url("./img/plantan3.png");
    width: 70px;
    height: 64px;
 */
    background-image: url("./img/logo-zoo-premi.png");
    width: 70px;
    height: 70px;
    box-shadow: 0px 20px 10px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}
.premi1-etapa, div[id^="premi1-etapa"] {
   /* left:1350px;*/
}
.premi2-etapa, div[id^="premi2-etapa"] {
 /*   left:2300px;*/
 /*   top: calc(66vh - 250px);*/
}
.premi3-etapa, div[id^="premi3-etapa"] {
  /*  left:3200px;*/

}
.destacat-mes-icona { /* marca més */
    position: absolute;
    top: 25px;
    left: 290px;
    background-image: url("./img/marca-mes.svg");
    width: 41px;
    height: 41px;
}

.destacat-premi, .destacat-mes-icona {
  display:block;
  -webkit-animation: ring 6s 2s ease-in-out infinite;
  -webkit-transform-origin: 50% 50%;
  -moz-animation: ring 6s 2s ease-in-out infinite;
  -moz-transform-origin: 50% 50%;
  animation: ring 6s 2s ease-in-out infinite;
  transform-origin: 50% 50%;
}

.premi0-etapa, .premi1-etapa, .premi2-etapa, .premi3-etapa, .premi4-etapa,
div[id^="premi0-etapa"],div[id^="premi1-etapa"],div[id^="premi2-etapa"],div[id^="premi3-etapa"],div[id^="premi4-etapa"] {
    display:block;
    top: calc(var(--alt-historia) - 100px);
   -webkit-animation: fall 2s ease-in-out 1;
   -moz-animation: fall 2s ease-in-out 1;
    animation: fall 2s ease-in-out 1;


}

@-webkit-keyframes ring {
  0% { -webkit-transform: rotateZ(0); }
  1% { -webkit-transform: rotateZ(30deg); }
  3% { -webkit-transform: rotateZ(-28deg); }
  5% { -webkit-transform: rotateZ(34deg); }
  7% { -webkit-transform: rotateZ(-32deg); }
  9% { -webkit-transform: rotateZ(30deg); }
  11% { -webkit-transform: rotateZ(-28deg); }
  13% { -webkit-transform: rotateZ(26deg); }
  15% { -webkit-transform: rotateZ(-24deg); }
  17% { -webkit-transform: rotateZ(22deg); }
  19% { -webkit-transform: rotateZ(-20deg); }
  21% { -webkit-transform: rotateZ(18deg); }
  23% { -webkit-transform: rotateZ(-16deg); }
  25% { -webkit-transform: rotateZ(14deg); }
  27% { -webkit-transform: rotateZ(-12deg); }
  29% { -webkit-transform: rotateZ(10deg); }
  31% { -webkit-transform: rotateZ(-8deg); }
  33% { -webkit-transform: rotateZ(6deg); }
  35% { -webkit-transform: rotateZ(-4deg); }
  37% { -webkit-transform: rotateZ(2deg); }
  39% { -webkit-transform: rotateZ(-1deg); }
  41% { -webkit-transform: rotateZ(1deg); }

  43% { -webkit-transform: rotateZ(0); }
  100% { -webkit-transform: rotateZ(0); }
}

@-moz-keyframes ring {
  0% { -moz-transform: rotate(0); }
  1% { -moz-transform: rotate(30deg); }
  3% { -moz-transform: rotate(-28deg); }
  5% { -moz-transform: rotate(34deg); }
  7% { -moz-transform: rotate(-32deg); }
  9% { -moz-transform: rotate(30deg); }
  11% { -moz-transform: rotate(-28deg); }
  13% { -moz-transform: rotate(26deg); }
  15% { -moz-transform: rotate(-24deg); }
  17% { -moz-transform: rotate(22deg); }
  19% { -moz-transform: rotate(-20deg); }
  21% { -moz-transform: rotate(18deg); }
  23% { -moz-transform: rotate(-16deg); }
  25% { -moz-transform: rotate(14deg); }
  27% { -moz-transform: rotate(-12deg); }
  29% { -moz-transform: rotate(10deg); }
  31% { -moz-transform: rotate(-8deg); }
  33% { -moz-transform: rotate(6deg); }
  35% { -moz-transform: rotate(-4deg); }
  37% { -moz-transform: rotate(2deg); }
  39% { -moz-transform: rotate(-1deg); }
  41% { -moz-transform: rotate(1deg); }

  43% { -moz-transform: rotate(0); }
  100% { -moz-transform: rotate(0); }
}

@keyframes ring {
  0% { transform: rotate(0); }
  1% { transform: rotate(30deg); }
  3% { transform: rotate(-28deg); }
  5% { transform: rotate(34deg); }
  7% { transform: rotate(-32deg); }
  9% { transform: rotate(30deg); }
  11% { transform: rotate(-28deg); }
  13% { transform: rotate(26deg); }
  15% { transform: rotate(-24deg); }
  17% { transform: rotate(22deg); }
  19% { transform: rotate(-20deg); }
  21% { transform: rotate(18deg); }
  23% { transform: rotate(-16deg); }
  25% { transform: rotate(14deg); }
  27% { transform: rotate(-12deg); }
  29% { transform: rotate(10deg); }
  31% { transform: rotate(-8deg); }
  33% { transform: rotate(6deg); }
  35% { transform: rotate(-4deg); }
  37% { transform: rotate(2deg); }
  39% { transform: rotate(-1deg); }
  41% { transform: rotate(1deg); }

  43% { transform: rotate(0); }
  100% { transform: rotate(0); }
}



/*************************************************/
/***********     PREMI FINAL ETAPES     **********/

.premi-close {
    position: absolute;
    top: 0px;
    right: 0px;
    color: white; /*#F2CE31;*/
    font-family: dashicons;
    font-size: 36px !important;
    cursor: pointer;
    width: 50px;
    border-radius: 25px;
    padding: 7px;
    z-index: 1;
}
.pagina_final_etapa {
    /*background: rgba(0,0,0,.8);*/
    background: var(--color-etapa1b);
    position: fixed;
    display: block;
    height: 100%;
    width: 100%;
    left: 0;
    top: 100%;
    transition: all 700ms ease;
    z-index: 200;
    text-align: center;
}
.pagina_final_etapa.active {
    top: 0;
}

.premi-content {
    margin-left: auto;
    width: 400px;
    margin-right: auto;
    position: relative;
    top: 140px;
}

.premi-wrap {
    overflow: hidden;
    border-radius: 50%;
    background: white;
    height: 400px;
}

.premi-txt .title {
    color:black;
    font-size: 1.75rem !important;
    font-weight: 600;
    white-space: normal;
    margin-top: 0;
    margin-bottom: .5rem;
}
.premi-txt {
    top: 70px;
    position: relative;
    z-index: 10;
}
.premi-txt p {
    white-space: normal;
    font-size: 20px;
    line-height: 26px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    color: black;
}
.premi-aminal {
    position: relative;
    top: 50px;
    width: 200px;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

#premi_animal_etapa_1 {
    /* background-image: url(./img/etapa1-premi-final.gif); */
    top: -20px;
    width: 300px;
    height: 300px;
    left: 12px;
    background-size: cover;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border-radius: 37%;
}
#premi_animal_etapa_2 {
 /*   background: url(./img/etapa2-premi-final.gif);*/
    height: 200px;
    width: 200px;
    top: 70px;
    position: relative;
    background-size: cover;
    margin-right: auto;
    margin-left: auto;
}
#premi_animal_etapa_3 {
    background: url('./img/etapa3-premi-final.gif');
    top: -20px;
    width: 300px;
    height: 300px;
    left: 0px;
    position: relative;
    background-size: cover;
    margin-right: auto;
    margin-left: auto;
    border-radius: 41%;
}
#premi_animal_etapa_4 {
    /* background: url('./img/etapa4-premi-final.gif'); */
    top: 32px;
    width: 250px;
    height: 250px;
    left: 0px;
    position: relative;
    background-size: cover;
    margin-right: auto;
    margin-left: auto;
    border-radius: 30%;
}
#premi_animal_etapa_5 {
    /* background: url('./img/etapa5-premi-final.gif'); */
    top: -102px;
    width: 400px;
    height: 400px;
    left: 0px;
    position: relative;
    background-size: cover;
    margin-right: auto;
    margin-left: auto;
    border-radius: 50%;
}
#premi_animal_etapa_5::before {
    background: url('./img/etapa5-premi-final-front.png');
    width: 400px;
    height: 400px;
    content: "";
    display: block;
    position: absolute;
    top: 50px;
    left: -15px;
}
#premi_animal_etapa_6 {
    /* background: url(./img/etapa6-premi-final.gif); */
    width: 300px;
    height: 300px;
    /* left: -50px; */
    top: -43px;
    background-size: cover;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    z-index: 0;
}
#premi_animal_etapa_7 {
    /* background: url('./img/etapa7-premi-final.gif'); */
    width: 250px;
    height: 250px;
    /* left: -30px; */
    top: 0px;
    background-size: cover;
    margin-right: auto;
    margin-left: auto;
    position: relative;
}

/*************************************************/
/***********     PAG ETAPA SEGÜENT      **********/
.pagina_seguent_etapa {
    /*background: rgba(0,0,0,.8);*/
    background: var(--color-etapa1b);
    position: fixed;
    display: block;
    height: 100%;
    width: 100%;
    left: 0;
    top: 100%;
    transition: all 700ms ease;
    z-index: 200;
    text-align: center;
}
.pagina_seguent_etapa .img-wrap {
    overflow: hidden;
    position: relative;
}
.pseguent-close {
    position: absolute;
    top: 5px;
    right: 0px;
    color: white; /*#F2CE31;*/
    font-family: dashicons;
    font-size: 36px !important;
    cursor: pointer;
    width: 50px;
    border-radius: 25px;
   /* padding: 7px; */
    z-index: 1;
}
.pseguent-wrap {
    width: 100%;
    position: relative;
    overflow-y: scroll;
    height: 100%;

}
.pagina_seguent_etapa.active {
    top: 0;
}
.pseguent-content {
    border-radius: 20px;
    margin: 0 0 0 -200px;
    margin-left: auto;
    max-width: 900px;
    width: 90vw;
    margin-right: auto;
    position: relative;
    top: 40px;
    height: 85%;
    overflow: hidden;
}

.row.presentacio-animal-etapa, .row.row.presentacio-animal-etapa-seguent {
    margin: 0px;
    position: relative;

}
.columna1 {
    border-right: 1px solid rgba(255,255,255,0.5);
}
.columna1, .columna2 {
    width: 50%;
    margin-bottom: 20px;
}
.pseguent-animals {
    display: flex;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.2);

}
.pseguent-animals .title {
    font-size: 1.75rem !important;
    font-weight: 600;
    white-space: normal;
    margin-bottom: .5rem;
    margin-top: 20px;
}
.presentacio-animal-etapa {
    padding: 40px 60px 20px 60px;
    text-align: left;
}
.presentacio-animal-etapa-seguent {
    padding: 40px 60px 20px 60px;
    text-align: left;
}
.columna1 p {
    white-space: normal;
}
.columna1 img, .columna2 img {
    height: 200px;
    cursor: pointer;
    cursor: pointer;
    left: 50%;
    transform: translateX(-50%) translateY(0%);
    position: relative;
}
.row.cercles-animals {
    justify-content: space-between;
    padding: 20px 20px;
    margin: 0px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 0 0 20px 20px;
}

.cercles-animals img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    width: 100px;
    height: 100px;
    border: 3px solid #F2CE31;
    background-color:white;
    opacity: 0.2;
    border-radius: 50%;
}

img[class^="premi_animal_etapa_"].active {
    filter:none;
    opacity: 1;
}



/* Confetti */

#confetti-container{

}
.confetti{
  height: 10px;
  width: 10px; 
  border-radius: 50%;
  /*background-color: red;*/
  position: absolute;
  z-index: 5;
}




/************************************************/


#etapa-nav label {
 /*   width:calc(100% / var(--num-etapes));*/
}

input[type="radio"] {
    display: none;
}
input[type="radio"]:not(:checked) ~ label > * {
}


input[type="radio"]:checked ~ label > * {
  display: none;
}

.expanded div, .expanded .foto, .expanded .titol {
    padding-left: 7px;
    font-size: 1.2em;
    white-space: nowrap;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    font-family: montserrat;
    font-size: 20px !important;
    font-weight: 600;
    position: relative;
    top: calc(50% - 10px );
    left: 0;
    text-transform: uppercase;
    display: block;
}
.expanded .num {
    font-size: 50px !important;
    display: block;
}
input[type="radio"]:not(:checked) ~ label::before {
    /*left: auto !important; */
}


input[type="radio"] ~ label div {
 /*   transform: rotate(90deg);
    -webkit-transform: rotate(270deg) !important;
*/
}

label.minimized {
    width: var(--ample-barra) !important;
    cursor: pointer;
}
label.minimized div {
    display: none;
}

label.expanded {
    width:calc(100% / var(--num-etapes)); 
}


#content_etapa_1 label.expanded .foto {
    background-image: url('./img/cercle-etapa1.svg');
    background-repeat: no-repeat;
    background-position: bottom left;
    width: 14%;
    height: 53%;
    position: absolute !important;
}
#content_etapa_2 label.expanded .foto {
    background-image: url('./img/cercle-etapa2.svg');
    background-repeat: no-repeat;
    background-position: bottom left;
    width: 14%;
    height: 53%;
    position: absolute !important;
    left: calc(100% / var(--num-etapes));
}
#content_etapa_3 label.expanded .foto {
    background-image: url('./img/cercle-etapa3.svg');
    background-repeat: no-repeat;
    background-position: bottom left;
    width: 14%;
    height: 53%;
    position: absolute !important;
    left: calc(100% / var(--num-etapes) * 2);
}
#content_etapa_4 label.expanded .foto {
    background-image: url('./img/cercle-etapa4.svg');
    background-repeat: no-repeat;
    background-position: bottom left;
    width: 14%;
    height: 53%;
    position: absolute !important;
    left: calc(100% / var(--num-etapes) * 3);
}
#content_etapa_5 label.expanded .foto {
    background-image: url('./img/cercle-etapa5.svg');
    background-repeat: no-repeat;
    background-position: bottom left;
    width: 14%;
    height: 53%;
    position: absolute !important;
    left: calc(100% / var(--num-etapes) * 4);
}
#content_etapa_6 label.expanded .foto {
    background-image: url('./img/cercle-etapa6.svg');
    background-repeat: no-repeat;
    background-position: bottom left;
    width: 14%;
    height: 53%;
    position: absolute !important;
    left: calc(100% / var(--num-etapes) * 5);
}
#content_etapa_7 label.expanded .foto {
    background-image: url('./img/cercle-etapa7.png');
    background-repeat: no-repeat;
    background-position: bottom left;
    width: 14%;
    height: 53%;
    position: absolute !important;
    left: calc(100% / var(--num-etapes) * 6 );
}

#rad1 ~ label.expanded::before {
    border-top: 40px solid transparent;
    border-left: 40px solid var(--color-etapa1);
    border-bottom: 40px solid transparent;
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% / var(--num-etapes));
}

#rad2 ~ label.expanded::before {
    border-top: 40px solid transparent;
    border-left: 40px solid var(--color-etapa2);
    border-bottom: 40px solid transparent;
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% / var(--num-etapes) * 2);
}

#rad3 ~ label.expanded::before {
    border-top: 40px solid transparent;
    border-left: 40px solid var(--color-etapa3);
    border-bottom: 40px solid transparent;
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% / var(--num-etapes) * 3);
}

#rad4 ~ label.expanded::before {
    border-top: 40px solid transparent;
    border-left: 40px solid var(--color-etapa4);
    border-bottom: 40px solid transparent;
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% / var(--num-etapes) * 4);
}
#rad5 ~ label.expanded::before {
    border-top: 40px solid transparent;
    border-left: 40px solid var(--color-etapa5);
    border-bottom: 40px solid transparent;
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% / var(--num-etapes) * 5);
}

#rad6 ~ label.expanded::before {
    border-top: 40px solid transparent;
    border-left: 40px solid var(--color-etapa6);
    border-bottom: 40px solid transparent;
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% / var(--num-etapes) * 6 - 1px);
}
/*
#rad7 ~ label.expanded::before {
    border-top: 40px solid transparent;
    border-left: 40px solid var(--color-etapa7);
    border-bottom: 40px solid transparent;
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% / var(--num-etapes) * 7);
}
*/
input[type="radio"]:not(:checked) ~ label  {
  /*  width:calc(100% / var(--num-etapes)); */
  /*  -webkit-filter: grayscale(50%);
    filter: grayscale(50%);*/
}
input[type="radio"]:not(:checked) ~ label > * {
    opacity: 0.5;
}
input[type="radio"]:not(:checked) ~ label:hover  {
 /*   -webkit-filter: none;
    filter: none;*/
}
input[type="radio"]:not(:checked) ~ label:hover span  {
    opacity: 1;
}

#content_etapa_1 label, #content_etapa_1 .accslide {
    background-color: var(--color-etapa1);
}
#content_etapa_2 label, #content_etapa_2 .accslide {
    background-color: var(--color-etapa2) !important;
}
#content_etapa_3 label, #content_etapa_3 .accslide {
    background-color: var(--color-etapa3); /*#ffcf00;*/
}
#content_etapa_4 label, #content_etapa_4 .accslide {
    background-color: var(--color-etapa4); /*#2196f3;*/
}
#content_etapa_5 label, #content_etapa_5 .accslide {
    background-color: var(--color-etapa5);
}
#content_etapa_6 label, #content_etapa_6 .accslide {
    background-color: var(--color-etapa6);
}
#content_etapa_7 label, #content_etapa_7 .accslide {
    background-color: var(--color-etapa7);
}

#content_etapa_1 .ttlresum-txt {
 /*   background-color: rgba(1,166,108,0.5);*/
}



#etapa-nav {
    padding: 0;
    list-style: none;
    margin:0;

}

/* LIST */


/* FORM */
input {
  position: absolute;
  top: -9999px;
  left: -9999px;
}

label {
  display: block;
  float: left;
  height: 100vh;
  width: var(--ample-barra);
  overflow: hidden;
  background: #30354a;
  text-align: center;
  font-size: 14px;
  line-height: 50px;
  transition: background 300ms ease;
  margin:0;
  z-index: 60;
}



input[type="radio"]:checked ~ label {
  background: #2196f3;
  color: #fff;
  cursor: default !important;
}

/* SLIDES */
.accslide {
  display: block;
  height: 100%;
  width: 0px;
  padding: 0;
  float: left;
  /*overflow-x: scroll;*/
  overflow: hidden;
  font-sizes: 12px;
  line-height: 1.5;
  transition: width 700ms ease;
  height: 100vh;
  position: relative;
}
.accslide * {
  /*padding-left: 10px;*/
}
.accslide img {
 /* margin-top: 10px;*/
}




#etapa-nav li:nth-child(1):nth-last-child(2) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 2  );
}

#etapa-nav li:nth-child(2):nth-last-child(1) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 2 );
}

#etapa-nav li:nth-child(1):nth-last-child(3) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 3 );
}

#etapa-nav li:nth-child(2):nth-last-child(2) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 3 );
}

#etapa-nav li:nth-child(3):nth-last-child(1) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 3 );
}

#etapa-nav li:nth-child(1):nth-last-child(4) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 4 );
}

#etapa-nav li:nth-child(2):nth-last-child(3) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 4 );
}

#etapa-nav li:nth-child(3):nth-last-child(2) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 4 );
}

#etapa-nav li:nth-child(4):nth-last-child(1) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 4);
}

#etapa-nav li:nth-child(1):nth-last-child(5) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 5);
}

#etapa-nav li:nth-child(2):nth-last-child(4) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 5);
}

#etapa-nav li:nth-child(3):nth-last-child(3) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 5);
}

#etapa-nav li:nth-child(4):nth-last-child(2) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 5);
}

#etapa-nav li:nth-child(5):nth-last-child(1) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 5);
}

#etapa-nav li:nth-child(1):nth-last-child(6) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 6);
}

#etapa-nav li:nth-child(2):nth-last-child(5) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 6);
}

#etapa-nav li:nth-child(3):nth-last-child(4) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 6);
}

#etapa-nav li:nth-child(4):nth-last-child(3) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 6);
}

#etapa-nav li:nth-child(5):nth-last-child(2) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 6);
}

#etapa-nav li:nth-child(6):nth-last-child(1) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 6);
}

#etapa-nav li:nth-child(1):nth-last-child(7) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 7);
}

#etapa-nav li:nth-child(2):nth-last-child(6) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 7);
}

#etapa-nav li:nth-child(3):nth-last-child(5) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 7);
}

#etapa-nav li:nth-child(4):nth-last-child(4) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 7);
}

#etapa-nav li:nth-child(5):nth-last-child(3) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 7);
}

#etapa-nav li:nth-child(6):nth-last-child(2) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 7);
}

#etapa-nav li:nth-child(7):nth-last-child(1) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 7);
}

#etapa-nav li:nth-child(1):nth-last-child(8) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 8);
}

#etapa-nav li:nth-child(2):nth-last-child(7) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 8);
}

#etapa-nav li:nth-child(3):nth-last-child(6) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 8);
}

#etapa-nav li:nth-child(4):nth-last-child(5) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 8);
}

#etapa-nav li:nth-child(5):nth-last-child(4) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 8);
}

#etapa-nav li:nth-child(6):nth-last-child(3) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 8);
}

#etapa-nav li:nth-child(7):nth-last-child(2) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 8);
}

#etapa-nav li:nth-child(8):nth-last-child(1) input[type="radio"]:checked ~ .accslide {
  width: calc(100% - var(--ample-barra) * 8);
}


.blink{
        animation: blink 1.5s linear infinite;
        cursor: pointer;
    }

@keyframes blink{
0%{opacity: 0.2;}
/*50%{opacity: 0.7;}*/
100%{opacity: 0.8;}
}


/*************************************************/
/****************     @MEDIA        **************/

@media screen and (max-width:1200px) {


    .sidebar-menu {
        top: 80px;
    }
}



@media screen and (max-width:1024px) {



    /* Imatge franges inicials */
    label.expanded .foto {
        background-position: 70% 100% !important;
    }

    .marcador-etapa {
        right: 0px;
        width: 100px;
        border-radius: 0 0 0px 20px;
        padding: 20px 15px 20px 15px;
    }

    /* Destacats */
    .destacat .titol {
        font-size: 12px;
    }

    .destacat-txt {
        width: 125px;
    }
    .destacat {
        width: 275px;
    }
    .destacat-mes-icona {
        left: 215px;
    }

/*
}


@media screen and (max-width:960px) {*/

    /* Barres inicials etapes */
    #etapa-nav label.minimized {
        display: none;
    }

    #etapa-nav li input[type="radio"]:checked ~ .accslide {
        width: 100% !important;
    }

    /* amplada de les etapes */
    div[id^="parallaxContainer"] {
        width: calc( var(--ample-etapa) * 0.7 );
    }

    /* mida dels animals */
    #animal-etapa_1 {
        top: calc( var(--alt-historia) - 450px );
        margin-left: 30vw;
        transform: scale(0.7);
    }
    #animal-etapa_2 {
        transform: scale(0.7);
        top: calc( var(--alt-historia) - 220px );
        margin-left: 32vw;
    }
    #animal-etapa_3 {
        transform: scale(0.7);
        top: calc( var(--alt-historia) - 290px );
        margin-left: 29vw;
    }
    #animal-etapa_4 {
        transform: scale(0.7);
        top: calc( var(--alt-historia) - 190px );
        margin-left: 36vw;
    }
    #animal-etapa_5 {
        top: calc( var(--alt-historia) - 220px );
    /*    margin-left: 20vw;*/
        transform: scale(0.6);
    }
    #animal-etapa_6 {
        top: calc( var(--alt-historia) - 120px );
        margin-left: 30vw;
        transform: scale(0.7);
    }
    #animal-etapa_7 {
        top: calc( var(--alt-historia) - 200px );
        margin-left: 30vw;
        transform: scale(0.7);
    }

    /* Límit orca etapa 5 */
    #ttl_etapa_5 .animals-etapes.stop {
        left: 1700px;
    }

    /* resums */
    div[id^="resum-events"] {
        width: 90vw;
    }
    .ttlresum-txt p {
        font-size: 14px;
        line-height: 19px;
        font-weight: 400;
    }
    /* modals */

    .modal-wrap {
        width: 80%;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch; 
    }

    /* Destacats */

    .destacat {
        background-color: rgba(255,255,255,0.7) !important;
    }

    #destacat-1-0 {
    top: 100px !important;
    left: 700px;
	} 
	#destacat-1-1 {
	    top: 150px !important;
	    left: 1400px;
	}
	#destacat-1-2 {
	    top: 125px !important;
	    left: 1800px;
	}


	#destacat-2-0 {
	    top: 120px !important;
	    left: 800px;
	}
	#destacat-2-1 {
	    top: 150px !important;
	    left: 1100px;
	}
	#destacat-2-2 {
	    top: 125px !important;
	    left: 1800px;
	}



	#destacat-3-0 {
	    top: 120px !important;
	    left: 700px;
	} 
	#destacat-3-1 {
	    top: 150px !important;
	    left: 1100px;
	}
	#destacat-3-2 {
	    top: 125px !important;
	    left: 1400px;
	}


	#destacat-4-0 {
	    top: 120px !important;
	    left: 500px;
	}
	#destacat-4-1 {
	    top: 150px !important;
	    left: 850px;
	}
	#destacat-4-2 {
	    top: 125px !important;
	    left: 1150px;
	}
	#destacat-4-3 {
	    top: 125px !important;
	    left: 1500px;
	}

	#destacat-5-0 {
	    top: 120px !important;
	    left: 600px;
	}
	#destacat-5-1 {
	    top: 130px !important;    
	    left: 1000px;
	}
	#destacat-5-2 {
	    top: 100px !important;
	    left: 1300px;
	}
	#destacat-5-3 {
	    top: 110px !important;
	    left: 1600px;   
	}
	#destacat-5-4 {
	    top: 0px !important;
	    left: 2000px;    
	}

	#destacat-6-0 {
	    top: 120px !important;
	    left: 800px;
	}
	#destacat-6-1 {
	    top: 150px !important;
	    left: 1200px;
	}
	#destacat-6-2 {
	    top: 125px !important;
	    left: 1500px;
	}


	#destacat-7-0 {
	    top: 120px !important;
	    left: 800px;
	}
	#destacat-7-1 {
	    top: 150px !important;
	    left: 1200px;
	}
	#destacat-7-2 {
	    top: 125px !important;
	    left: 1500px;
	}

}


@media screen and (max-width:768px) {


    #titol .text {
        width: 100%;
        font-size: 2.5vw !important;
        text-align: center;
		margin: 0px;
    }

    /* Ocultar teclat per a dispositius amb pantalla inferior a 768px */
    .teclat-controls.show {
        display: none;
    }
    /* Barres inicials etapes */
    .rad ~ label.expanded::before {
        margin-left: -20px;
    }
    .expanded div, .expanded span {
        font-size: 12px !important;
        padding-left: 0;
    }

    .ttlresum-more {
        right: 0px;
        top: 0px;
    }
    .ttlresum {
        height: 150px;
    }
    .ttlresum-txt {
        padding: 2% 10% 0 5%;
        overflow: hidden;
    }
    .ttlresum-txt p {
        display: none;
    }



    /* modals */
    .modal-wrap {
        width: 100%;
    }
    .modal-txt p {
        font-size: 16px;
    }
    h2 {
        font-size: 1.5rem;
    }
    .ttlresum-txt .titol {
        text-align: left;
        text-transform: uppercase;
        color: white;
        font-size: 1.2rem !important;
        line-height: 1.3rem;
        width: 94%;
        padding-right: 0px;
    }
    .ttlmodal-close, .destacat-modal-close, .pseguent-close {
        background-color: var(--groc);
        border-radius: 50px;
        width: 40px;
        height: 40px;
        top: 20px;
        right: 20px;
    }

    .fa.fa-times {
        margin-top: 2px;
    }

    /* pag final etapa */
    .presentacio-animal-etapa, .presentacio-animal-etapa-seguent {
        padding: 40px 30px 20px 30px;
    }

    .columna1 img, .columna2 img {
      /*  height: 150px;*/
    }

    .columna1, .columna2 {
        width: 100%;
    }
    .columna1 {
        border-bottom: 1px solid rgba(255,255,255,0.5);
        border-right: none;
    }
    .columna1 img, .columna2 img {
        height: 150px;
    }

    /* final història */
    .final-historia iframe {
        height: 45vw;
    }

    /* modal - imatges */
    .modal-slides img {
        height: 350px !important;
    }

}


@media screen and (max-width:680px) {

	/* share icons */
	.share-text {
	    left: 0px;
	    margin-left: 10px;
	}

	/* timeline */
    .timeline-nav .ttldate {
        margin-right: 20px;
        margin-top: 5px;
    }

    .ttldate a {
        font-size: 15px;
        padding: 2px 5px;
    }

    .timeline-nav div[id^="ttl"] ul {
        padding: 0 20px 0 40px;
    }
}

@media screen and (max-width:590px) {


    #titol .text {
        display: none;
    }
    #titol .text.mobile {
        display: block;
        font-size: 4vw !important;
        text-align: center;
        margin: 0px;
    }

    .share-text {
        width: 100px !important;
    }

    .share-text span {
        display: none;
    }

    .navbar-toggler.dmbs-header-nav-mobile-toggle {
        display: none;
    }

    label {
      float: none;
    }
    /* Barres inicials etapes */
    #historia-wrapper.horizontal {
    /*    top: 84px;*/
        position: relative;
    }
    .expanded div, .expanded .foto, .expanded .titol {
        display: inline-flex;
    }
    .expanded div, .expanded span {
        font-size: 20px !important;
        top: calc(50% - 20px );
        display: inline-flex;
        padding-left: 10px;
    }
    #etapa-nav {
        height: 100%;
        background-color: #222 !important;
    }
    label.expanded {
        width: 92%;
    /*    height: calc(100vh / var(--num-etapes));*/
        height: calc( (100vh - 84px) / var(--num-etapes) - 5px);
        position: absolute;
        margin-left: 4%;
        margin-right: 4%;
    }
    label.expanded::before {
        transform: rotate(90deg);
        left: 50% !important;
    }

    #content_etapa_1 .expanded {
        margin-top: 0px;
    }

    #rad1 ~ label.expanded {
        top: calc((100vh - 84px) / var(--num-etapes) * 1 - 45px);
    }
    #rad2 ~ label.expanded {
        top: calc((100vh - 84px) / var(--num-etapes) * 2 - 50px);
    }
    #rad3 ~ label.expanded {
        top: calc((100vh - 84px) / var(--num-etapes) * 3 - 55px);
    }
    #rad4 ~ label.expanded {
        top: calc((100vh - 84px) / var(--num-etapes) * 4 - 60px);
    }
    #rad5 ~ label.expanded {
        top: calc((100vh - 84px) / var(--num-etapes) * 5 - 65px);
    }
    #rad6 ~ label.expanded {
        top: calc((100vh - 84px) / var(--num-etapes) * 6 - 70px);
    }
    #rad7 ~ label.expanded {
        top: calc((100vh - 84px) / var(--num-etapes) * 7 - 75px);
    }


    #etapa-nav {
        padding-bottom: 100px;
        top: 50px !important;
        position: relative;
    }

    .expanded::after {
        border-top: 25px solid transparent;
        border-bottom: 25px solid transparent;
        content: "";
        position: absolute;
        transform: rotate(90deg);
        left: calc(50% - 26px);
        top: -20px;
    }

    #rad2 ~ label.expanded::after {
        border-left: 25px solid var(--color-etapa1);
    }
    #rad3 ~ label.expanded::after {
        border-left: 25px solid var(--color-etapa2);
    }
    #rad4 ~ label.expanded::after {
        border-left: 25px solid var(--color-etapa3);
    }
    #rad5 ~ label.expanded::after {
        border-left: 25px solid var(--color-etapa4);
    }
    #rad6 ~ label.expanded::after {
        border-left: 25px solid var(--color-etapa5);
    }
    #rad7 ~ label.expanded::after {
        border-left: 25px solid var(--color-etapa6);
    }

    label.expanded .foto {
        top: 0px;
        width: calc(100vh / var(--num-etapes)) !important;
        height: calc(100vh / var(--num-etapes)) !important;
        position: absolute !important;
        left: 0px !important;
        background-size: calc(100vh / var(--num-etapes));
    }



    /* Marcadors */
    .marcador-etapa {
        -webkit-transform: scale(0.6);
        transform: scale(0.6);
        transform-origin: right top;
    }
    .marcador-premis {
        -webkit-transform: scale(0.6);
        transform: scale(0.6);
        top: 67px;
        left: calc(50% - 60px);
    }
    /* menú hamburguesa */
    .sidebar-toggler {
        top: 80px;
        padding: 15px 11px 12px 25px;
        border-radius: 0 0 12px 0;
    }

    /* modal - imatges */
    .modal-slides img {
        height: 250px !important;
    }

    .carousel-inner {
    	width: 450px;
	}

    /* Timeline */
    .timeline-nav div[id^="ttl"] ul {
        padding: 0 50px 0 50px;
    }
    .timeline-nav .ttldate {
        margin-right: 0px;
        margin-top: 5px;
        width: 45px;
    }

    .ttldate a {
        font-size: 15px;
        padding: 2px 0px;
    }


}

@media screen and (max-width:420px) {

    #navbar {
    /*    top: 38px; */
    }

    .sidebar-toggler {
       top: 82px;
    }
    .marcador-etapa {
        top: 83px;
    }
    .marcador-premis {
        top: 62px;
    }

	.ttlmodal-close, .destacat-modal-close, .pseguent-close {
		right: 0px;
	}

    /* pag final etapa */
    .columna1 img, .columna2 img {
    height: 150px;
    }
    .cercles-animals img {
        width: 75px;
        height: 75px;
    }

    /* timeline */
    .timeline-nav .ttldate {
        margin-right: 0px;
    }

    /* modal - imatges */
    .modal-slides img {
        height: 200px !important;
    }

    .carousel-inner {
    	width: 270px;
	}

    /* modal-txt youtube */
    .modal-txt iframe {
        width: 100%;
        height: 250px;
    }

    /* Timeline */
    .ttldate a {
        font-size: 13px;
        padding: 2px 0px;
        transform: rotate(-90deg);
    }
    .timeline-nav div[id^="ttl"] ul {
        padding: 0 20px 0 20px;
    }

    .ttl-button-prev, .ttl-button-next {
        display: none;
    }

    /* Posició Animals */
    #animal-etapa_1 {
    margin-left: 0vw;
    }

    #animal-etapa_2 {
        margin-left: 20vw;
    }

    #animal-etapa_3 {
        margin-left: 0vw;
    }

    #animal-etapa_4 {
        margin-left: 25vw;
    }

    #animal-etapa_5 {
        margin-left: -50vw;
    }
    #animal-etapa_5-slides.esq {
        left: -700px;
    }

    #animal-etapa_6 {
        margin-left: 0vw;
    }
    #animal-etapa_6-slides.esq {
        left: 100px;
    }

    #animal-etapa_7 {
        margin-left: 0vw;
    }


    /* resums events */
    .ttlresum-txt .titol {
        font-size: 0.9rem;
        line-height: 1.1rem;
        width: 100%;
    }

    /* títols estapes */
    .layer-title {
        top: 35%;
    }
    .layer-title h2 {
        font-size: 1.2rem;
    }


    /* Pàgina final etapa */

    .premi-content {
    	left: calc(50% - 200px);
    }
    .premi-wrap {
	    transform: scale(0.7);
    }
    .premi-txt {
       z-index: 1;
    }
    .premi-close {
       right: 50px;
    }

    #premi_animal_etapa_1 {
       left: 0px;
       border-radius: 40%;
    }

    #premi_animal_etapa_2, 
    #premi_animal_etapa_4, 
    #premi_animal_etapa_5, 
    #premi_animal_etapa_6, 
    #premi_animal_etapa_7 {
       border-radius: 40%;
    }

    #premi_animal_etapa_3 {
       left: -10px;
       border-radius: 40%;
    }

    /* Límit orca etapa 5 */
    #ttl_etapa_5 .animals-etapes.stop {
        left: 1960px;
    }

    #parallaxContainer_5 {
        width: calc( var(--ample-etapa) * 0.72 );
    }
}


@media screen and (max-width:360px) {

    .sidebar-wrap li {
        padding: 15px 30px;
    }




}


@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
  #turn{ display:block; }
}




/* LightSlider */

.modal-slides img {
    width: auto;
    height: 400px;
}

#lightSlider {
    list-style: none outside none;
    padding-left: 0;
    margin-bottom:0;
}

.lSPager.lSGallery {
    transform: scale(0.5) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
 
.lSSlideOuter .lSPager.lSGallery li {
    opacity: 0.5;
}
 
.lSSlideOuter .lSPager.lSGallery li.active {
    opacity: 1;
}
 
.lSSlideOuter .lSPager.lSGallery li.active, .lSSlideOuter .lSPager.lSGallery li{
  border-radius: 0;
}
 
.lSSlideOuter .lSPager.lSGallery li.active:hover, .lSSlideOuter .lSPager.lSGallery li:hover {
  border-radius: 0;
}
 
.lSSlideOuter .lSPager.lSGallery img {
    display: block;
    height: 64px;
    max-width: 100%;
}



/* IFRAME */


.iframely-loader,
.iframely-loader:before,
.iframely-loader:after {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.iframely-loader {
  color: #ffffff;
  font-size: 10px;
  top: calc(50% - 4em);
  left: 50%;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.iframely-loader:before,
.iframely-loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.iframely-loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.iframely-loader:after {
  left: 3.5em;
}
@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}

/* LOADER */


.loader {
  font-size: 10px;
  margin: 50px auto;
  text-indent: -9999em;
  width: 11em;
  height: 11em;
  border-radius: 50%;
  background: #ffffff;
  background: -moz-linear-gradient(left, #ffffff 10%, rgba(255,255,255, 0) 42%);
  background: -webkit-linear-gradient(left, #ffffff 10%, rgba(255,255,255, 0) 42%);
  background: -o-linear-gradient(left, #ffffff 10%, rgba(255,255,255, 0) 42%);
  background: -ms-linear-gradient(left, #ffffff 10%, rgba(255,255,255, 0) 42%);
  background: linear-gradient(to right, #ffffff 10%, rgba(255,255,255, 0) 42%);
  position: relative;
  -webkit-animation: load3 1.4s infinite linear;
  animation: load3 1.4s infinite linear;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
.loader:before {
  width: 50%;
  height: 50%;
  background: #ffffff;
  border-radius: 100% 0 0 0;
  position: absolute;
  top: 0;
  left: 0;
  content: '';
}
.loader:after {
  background: #0dc5c1;
  width: 75%;
  height: 75%;
  border-radius: 50%;
  content: '';
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
@-webkit-keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}



/*************************************************/
/****************     SHARE         **************/

.shared-link {
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 2px;
    display: inline-block;
    text-decoration: none;
    width: 30px;
    text-align: center;
    line-height: 43px;
}
 

.shared-link:hover,.shared-link:active {
    color: white;
}
/* 
.shared-twitter {
    background: #00aced;
}
 
.shared-twitter:hover,.shared-twitter:active {
    background: #0084b4;
}
 
.shared-facebook {
    background: #3B5997;
}
 
.shared-facebook:hover,.shared-facebook:active {
    background: #2d4372;
}
 
 
.shared-pinterest {
    background: #bd081c;
}
 
.shared-pinterest:hover,.shared-pinterest:active {
    background: #bd081c;
}
 
.shared-linkedin {
    background: #0074A1;
}
 
.shared-linkedin:hover,.shared-linkedin:active {
    background: #006288;
}
 */
.shared-social {
    -webkit-font-smoothing: antialiased;
    font-size: 12px;
    display:flex;
    margin-left: 5px;
}

.share-text {
    font-size: 14px;
    width: 13em;
    line-height: 45px;
    font-weight: 400;
    display: flex;
    position: absolute;
    right: 9em;
}
.shared-link span {
    font-size: 0px;
}

