@import "normalize.css";
@import url('https://fonts.googleapis.com/css?family=Lora:400,400i,700,700i');

html, body  {
    position: relative;
    font-family: 'Lora', serif;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden; 
}
.main-header{
    display:none;
    width: 100%;
    height: 65px;
    background-color: #9bce8a;
    position: fixed;
    box-shadow: 1px -2px 14px black;
    z-index: 3;
}
.main-header .options{
    width: 215px;
    height: 57px;
    position: absolute;
    background-image: url(../assets/fons_controls.png);
    background-position: 0 50%;
    background-size: cover;
    bottom: -57px;
    right: 0; 
    opacity: 0.9;
} 
.main-header .title{
    position: relative;
    top: 8px;
    left: 10px;   
    display: inline-block; 
    cursor:pointer;
}
.main-header .title p {
    font-family: 'Open Sans', sans-serif;
    color: #fff;
    text-align: left;
    transition: color 0.3s linear;
}
.main-header .title p.top{ 
    font-size: .7rem;
    margin: 0;
}
.main-header .title p.bottom small{ 
    display: block;
    font-size: 12px;
    letter-spacing: 0.2rem;
}
.main-header .title p.bottom{
    font-weight: 300;
    font-size: 1.4rem;
    margin: 0;
    letter-spacing: 0.4rem;
    text-align: left;
    padding: 0 -3px 0 0px;
    margin: 0 -7px 0 0;
}
.main-header .title:hover p{
    color: #5c884d;
}

.main-header .sub-title{ 
    display: inline-block;
    float: right;
    position: absolute;
    top: 14px;
    right:  10px; 
    text-align: right;
    cursor:pointer;
}


.main-header .sub-title p{
    font-weight: bold;
    transition: color 0.3s linear;
}
.main-header .sub-title p.top{
    color: #fff;
    margin: 0;
    font-size: 0.9rem;
}
.main-header .sub-title p.bottom{
    color: #5d7754;
    margin: 0;
    font-size: 0.9rem;
} 
.main-header .sub-title:hover p.top{
    color: #5c884d;
}
.main-header .sub-title:hover p.bottom{
    color: #2d302c;
}

@media (min-width: 386px) {
    .main-header .sub-title{ 
        position: relative; 
    }
    .main-header .sub-title p.top{
        font-size: 1rem;
    }
    .main-header .sub-title p.bottom{
       font-size: 1rem;
    } 
}

/* OPTIONS */

/* OPTIONS - Controls */
 
.main-header .options .controls {
    position: absolute; 
    top: 15px;
    left: 45px;
} 
.main-header .options .controls .control{
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: top;
    margin: 0 12px 0 0;
    background-position: center;
    background-size: cover;
    opacity: .5;
    cursor: pointer;
    transition: opacity .333s ease-in;
    line-height: 25px;
    padding:0;
    font-size:13px;
    font-weight:100;
    font-family: Arial,Helvetica Neue,Helvetica,sans-serif; 
    color:#fff;
    text-transform: uppercase;
    text-align: center;
}
.main-header .options .controls .control a{
    display:block;
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    text-decoration:none;
    color:#fff;
}
.main-header .options .controls .control:hover{
    opacity: 1;
}
.main-header .options .controls .control-plus{
    background-image: url('../assets/plus.svg');
}
.main-header .options .controls .control-less{
    margin-right:2px;
    background-image: url('../assets/less.svg');
}
.main-header .options .controls .control-overlay{
    background-image: url('../assets/layers.svg');
}
.main-header .options .controls .control-language{
    background-image: url('../assets/ico-lang.svg');
}

/* OPTIONS - Submenu */
.main-header .options .map-view-attr {
    position: absolute;
    top: 48px;
    right: -300px;
    background: #5c7658;
    width: 38px;
    transition: all .333s ease;
} .main-header .options .map-view-attr.active{
    right: 58px;
}


.map-view-attr ul{
    padding: 0;
    margin: 15px 0 0 0;
    margin-top: 15px;
    list-style: none;
}
.map-view-attr ul li{
    position: relative;
    height: 34px;
    margin: 5px;
}



.map-view-attr ul li span{}

.map-view-attr ul li span#toggle-actual-layer{}
.map-view-attr ul li span#toggle-actual-layer-text.text{
    position: absolute;
    left: -255px;
    top: 5px;
    opacity: 0;
    pointer-events: none;
    padding: 3px;
    width: 230px;
    text-align: right; 
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0px 0 2px white; 
    transition: all .333s ease;
}
.map-view-attr ul li span#toggle-actual-layer.icon{
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('../assets/future-amp.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
    position: absolute;
    opacity: .2;
    transition: all .333s ease;
    cursor: pointer;
} 
 
.map-view-attr ul li span#toggle-place-names{}
.map-view-attr ul li span#toggle-place-names-text.text{
    position: absolute;
    left: -255px;
    top: 5px;
    opacity: 0;
    pointer-events: none;
    padding: 3px;
    width: 230px;
    text-align: right; 
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0px 0 2px white;
    transition: all .333s ease;
}
.map-view-attr ul li span#toggle-place-names.icon{
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('../assets/topo-map.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 90%;
    position: absolute;
    opacity: .2;
    transition: all .333s ease;
    cursor: pointer;
} 

.map-view-attr ul li span#toggle-actual-layer.icon:hover{
    opacity: 1;
}
.map-view-attr ul li:hover #toggle-actual-layer-text.text{
    opacity: 1;
}
.map-view-attr ul li span#toggle-place-names.icon:hover{
    opacity: 1;
}
.map-view-attr ul li:hover #toggle-place-names-text.text{
    opacity: 1;
}

.op1, .active{
    opacity: 1 !important;
}
#pxxi-app-map {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0; 
    position: fixed;
    top: 65px;
}
.range{
    position: absolute; 
    display: inline-block;
    background-color: #fff;
    z-index: 9999;
    bottom: 10px;
    right: 10px;
    padding: 10px;
}
.leaflet-control-attribution{
    display: none;
} 
.zoom{
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 30px;
    z-index: 999;
    cursor: pointer;
}
.zoom .control-plus,
.zoom .control-less{  
    padding: 5px;
    font-weight: bold ; 
    text-align: center;
    width: 20px;
    height: 20px;
    background: #fff;
    display: inline-block;
} 
.zoom .control-plus:hover,
.zoom .control-less:hover{  
    background: #efefef;
} 
.overlay{
    opacity: 0;
    transition: all .333s ease; 
    z-index: 9999;
}  
.content-timeline{
    display:none;
    height: 80px !important;
    background: transparent !important;
    position: fixed; 
    bottom: 10px;
    right: 10px;
    width: calc(100% - 21px);
    z-index: 99999;
}
.epoch-container{
    width:100% !important;
}
.epoch{ 
    width: 1090px;
    height: 50px;
    z-index: 9999;
    left: 10px; 
}
.epoch span{ 
    position: relative;
    display: inline-block;
    top: 22px;
    margin: 0 20px 0 0;
    padding: 7px;
    background-color: #fff;
    cursor: pointer;
    z-index: 9999;
    transition:all .333s ease;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
}
.epoch span::after{
    content: '';
    width: 10px;
    height: 10px;
    background: #fff;
    display: block;
    position: absolute;
    top: 27px;
    left: 50%;
    z-index:0;
    transform: translateX(-50%) rotateZ(45deg);
}
.epoch span:hover{
    box-shadow: 0px -2px 5px rgba(0,0,0,0.4);
}
.meta-info {
    display: none;
    position: fixed;
    width: 100%;
    height: 80vh;
    max-height: calc( 100vh - 115px );
    bottom: 0;
    font-size: 0;
    pointer-events: none;
    filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='your_transparent.png', sizingMethod='scale');
    background: none !important;
    z-index: 99999;
} 
.meta-info .content-card{
    position: absolute;
    bottom:0;
    font-size: 1rem;
    height: 100%;
    width:100%;
    display: inline-block;
    z-index: 9999;
}
.meta-info .content-card .card{ 
    display: none;
    bottom: -348px !important;
    position: fixed;
    transform: translateX(-50%);
    left: 50%;
    width: 96%;
    height: 73vh; 
    vertical-align: bottom; 
    overflow: hidden;
    z-index: 9999;
    top: 80px;
    height: calc(100% - 265px);
}
.meta-info .content-card .card .header{ 
    background-color: #9bce8a;
    padding: 10px 5px 10px 0;
    height:55px;
}
.meta-info .content-card::after{
    width: 25px;
    height: 25px; 
    z-index: 99999;
    content: '';
    position: absolute;
    bottom: 120px;
    right: 30px;
    background-image: url(../assets/tap.svg);
    background-position: center;
    background-size: cover;
    animation: example 1s ease-in-out infinite alternate;
} 
@keyframes example {  
    0%   {
        
        opacity: 0;
    } 
    50%  {

    } 
    100% { 
        transform: scale(1.01,1.01);
        opacity: 1;
    }
}

.meta-info .content-card .card .header span.year{
    color: #fff;
    padding: 9px 8px;
    background: #5d7754;
}

.meta-info .content-card .card .header span.title{
    display:block;
    color: #fff; 
    padding: 0 0 0 50px;
    line-height:17px;
}
.meta-info .content-card .card .header span.title span{
    display:block;
    font-size:12px;
    margin-top:4px;
    color: #5d7754;
}
.meta-info .content-card .card .content{
    padding: 10px;
    height: auto;
    overflow: hidden;
    background: #fff;
}
.meta-info .content-card .card .content.show-content{
    opacity: 1 !important;
    /* Todo el alto menos cabecera de card */
    height: calc( 75vh - 55px);
}
.meta-info .content-card .card .content .cc{
    height: 97%;
    overflow-y: scroll;
    width: 101%;
    padding: 5px 22px 0 0px;
    pointer-events: auto;
    font-size: 0.8rem;
    line-height: 1.4;
}
@media (max-width: 768px) {
    .meta-info .content-card .card .content .cc img{
        width: 80%;
    }
}

.meta-info .content-card .card .content .moreInfo{
    font-weight:bold;
    text-decoration:none;
}
.meta-info .content-card .card .content .cc a:link,.meta-info .content-card .card .content .cc a:visited{
    color: #5D7655;
}
.meta-info .content-card .card .content .cc a:hover,.meta-info .content-card .card .content .cc a:active{
    color: #9CCD8C;
}
.meta-info .content-btn .info-btn{
    text-align: left;
    left: 17px;
    width: calc(100% - 24px);
    height: 60px;
    line-height: 20px;
    box-sizing: border-box;
    color: #fff;
    position: fixed;
    display: block;
    bottom: 90px;
    background-color: #9bce8a;
    pointer-events: auto;
    cursor: pointer;
    transition:all .333s ease;
    padding:7px;
    z-index: 999;
}
.meta-info .content-btn .info-btn:hover{
    background: #5d7754;
}
.meta-info-btn-actives{
    background: #5d7754 !important;
}
.meta-info .content-btn .info-btn span{ 
    display: inline-block;
    font-size: 1rem;
}

.meta-info .content-btn .info-btn .title{
    font-size:15px !important;
}
.meta-info .content-btn .info-btn span{
    font-size:12px !important;
    color: #5d7754;
}
.meta-info .content-btn .info-btn:hover span{
    color: #fff;
}
 
.meta-info .content-btn .info-btn span.years{ 
    background-color: #5d7754;
    width: 40px;
    height: 40px; 
    position: fixed;
    transform: translate(-20px,-20px);
    border-radius: 100%;
    cursor: pointer;
}
.meta-info .content-btn .info-btn span.years::after{
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    background-image: url('../assets/info.svg');
    background-position: center; 
    background-size: cover;
}
.meta-info .content-btn .info-btn span.title{
    color: #fff;
    padding: 0 10px;
    vertical-align: top;
    padding: 0 0 0 27px;
}

.meta-info-btn-active{
    background: #5d7754 !important;
    background-image: url('../assets/info.svg') !important;
}
.meta-info-active{
    color: #fff;
    background: #5d7754 !important;
}
.meta-info-active::after{
    background: #5d7754 !important;
}
.leaflet-container img.leaflet-image-layer{
    max-width: none !important;
}
.leaflet-map-pane{
 transition: all 1.333s ease;
}
.file{
    opacity: 0;
   
}
.leaflet-map-pane{
    -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

/* EXTRA BUTTONS */
.modal-extra-epoch {
    position: fixed;
    background: white; 
    height: auto;
    bottom: 0;
    cursor: pointer; 
    z-index: 9999; 
    box-shadow: 0 0 4px 1px #00000024;
}

.modal-extra-epoch p{
    padding: 5px 15px;
    margin: 0;
    transition: all .333s ease;
}

.modal-extra-epoch p:hover{
    background-color: #e2e2e2;
}

.modal-extra-epoch p.selected{
    color: #ffffff;
    background-color: #9bce8a;
}

 
/* MODALES */
.modal{
    position: absolute;
    box-sizing: border-box;
    display: none;
    width:90%;
    height: 95%;
    background-image: url('../assets/back_modal_light.jpg?v=2');
    background-size: cover;
    background-position:50% 50%;
    padding:40px 12px 12px 12px;
    -webkit-box-shadow: 0px 0px 14px 0px rgb(85, 88, 56);
    -moz-box-shadow: 0px 0px 14px 0px rgb(85, 88, 56);
    box-shadow: 0px 0px 14px 0px rgb(85, 88, 56);
    z-index:100000;
}
.modal .close{
    position: absolute;
    top:10px;
    right:10px;
    width:20px;
    height: 20px;
    background-image: url('../assets/cancel_brown.png');
    background-position: center; 
    background-size: 100%;
    cursor: pointer;
}
.modal .content{
    position: relative;
    width:100%;
    height: 100%;
    overflow-y: auto;
}
.modal .content h2{
    color:#527049;
    margin:16px 0 24px 0;
}
.modal .content p{
    color:#2e2922;
    line-height:21px;
}
.modal .content p a:link,.modal .content p a:visited{
    color:#2e2922;
}
.modal .content p a:hover,.modal .content p a:active{
    color:#527049;
} 
.modal .credits-group{
    display:inline-block;
    position: relative;
    vertical-align: top;
    margin-right:10px;
}
.modal .credits-group h4{
    color:#9CCD8E;
    font-size:18px;
    margin:5px;
    border-bottom:1px solid #9CCD8E;
}
.modal .credits-group .credits-single{
    display:inline-block;
    position: relative;
    vertical-align: top;
    width:260px;
    margin:0 10px;
    text-align:center;
}
.modal .credits-group .credits-single h5{
    font-weight:bold;
    color:#7b592a;
    font-size:15px;
    margin:5px 0;
}
.modal .credits-group .credits-single p{
    color:#2e2922;
    line-height:21px;
    font-size:15px;
}
.modal .credits-group .credits-single img{
    width:180px;
    height:auto;
} 
.fade-overlay{
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 1);
    z-index: 2;
    transition: background-color 0.8s ease;  
} 
@media (min-width: 768px) {
    .meta-info .content-card .card .content{
  
        height: 0; 
    }
    .content-timeline{
        pointer-events: auto;
        width: calc(100% - 450px);
    }
    .meta-info {
        max-width: 420px;
    } 
    .meta-info .content-card{
        font-size: 1rem;
        display: inline-block;
    }
    .meta-info .content-card::after{
        width: 32px;
        height: 32px;
        bottom: 50px;
        right: 30px;
    } 
    .meta-info .content-card .content-position {
        display: block;
        position: absolute;
        bottom: 0;
        left:10px;
        transition: all .666s ease;
    }
    .meta-info .content-card .content-position span.years{ 
        background-color: #5d7754;
        width: 40px;
        height: 40px;
        position: absolute;
        transform: translate(-7px,-4px);
        border-radius: 100%;
        cursor: pointer;
        bottom: auto;
        left: 18px;
        z-index: 9999999;
    }
    .meta-info .content-card .content-position span.years::after{
        content: '';
        position: absolute;
        width: 28px;
        height: 28px;
        transform: translate(-50%, -50%);
        left: 50%;
        top: 50%;
        background-image: url('../assets/info.svg');
        background-position: center; 
        background-size: cover;
    }
    .meta-info .content-card .content-position .card{
        top: initial;
        display: block !important;
        bottom: 0px !important;
        position: relative;
        width: 87%;
        vertical-align: bottom; 
        overflow: hidden;
        pointer-events: auto; 
        cursor: pointer; 
    }
    .show-card-modal{
        bottom: 0 !important;
    }
    .show-card{
        height: 100% !important;
        opacity: 1;
    }
    
    .meta-info .content-card .card .header{
    }
    .meta-info .content-card .card .header span.year{
        color: #fff;
        padding: 9px 8px;
        background: #5d7754;
    }
    .meta-info .content-card .card .header span.title{
        padding: 0 0 0 35px;
        color: #fff; 
    }
    .meta-info .content-card .card .content{
        padding: 10px; 
        overflow: hidden;
        cursor: text; 
        opacity: 0;
        background: #fff;
        transition: opacity .6333s ease;
    }
    .meta-info .content-btn{
        display: none;
    }

    /* MODALES */
    .modal.desktop.intro{
        padding:40px 25px 25px 25px;
        top:130px !important;
        right:20px !important;
        left:auto !important;
        min-width: 600px !important;
        max-width: 70% !important;
        max-height: calc(100% - 240px) !important;
    }
    .modal.desktop.credits{
        padding:40px 25px 25px 25px;
        top:130px !important;
        left:20px !important;
        right:auto !important;
        min-width: 600px !important;
        max-width: 70% !important;
        max-height: calc(100% - 240px) !important;
    }
}
 
.marker-span{
    font-weight: 400;
    text-align:center;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1; 
    display: none;
    position: relative;
}
/*
.marker-span::after{
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: black;
    border-radius: 100%;
    display: block;
    left: 50%;
    transform: translateX(-50%);
    bottom: 3px;
}*/
.marker-span.visible{
    display: block;
}
.zoom-0{
    font-size: 9px;
}
.zoom-1{
    font-size: 12px;
    font-weight: 600;
    
    text-shadow: 0px 0 2px white;
}
.zoom-2{
    font-size: 14px;
    font-weight: 600;
    
    text-shadow: 0px 0 2px white;
}
.bold{
    font-weight: 900;
}
.poi_1,
.poi_2{
    opacity: 1;
}
.poi_2{ 
    color:#0043ff;
} 
.main-header .options-help-debug { 
    display: none;  
    position: absolute;
    top: 68px;
    left: 0;
    background: #627858;
    color: #e4dcc7;
    font-weight: 100;
    padding: 5px 15px;
    font-family: monospace;
} 

.cc img{
    width: 100%;
    margin: 0 auto;
    display: block;
}

.have-extra-ages{ 
    
}

.have-extra-ages::before{
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-position: center;
    background-size: cover;
    background-image: url(../assets/cross-in-a-circle_b.svg);
    z-index: 99999999999999999;
    top: -6px;
    right: -6px; 
}