@font-face {
    font-family: 'Oi-You';
    src: url('fonts/Oi-You.woff2') format('woff2');
    font-display: block;
}

@font-face {
    font-family: 'Oi-Mate';
    src: url('fonts/Oi-Mate.woff2') format('woff2');
    font-display: block;
}

* {
    box-sizing: border-box;
}

:root {
    /* Colors */
    --text: #202122;
    --main-col: #fe3737;
    --alt-col: #71CECE;
    --secd-col: #FFC05C;
    --secdalt-col: #fdce7e;
    --bg-col: #fafafa;


    /* margins */
    --start-margin: 9rem;
    --margin-map: 1rem;
    --margin-stain: 12.5%;

    --map-width: 95vw;
    --map-height: 82vh;
    --border-width: 1.4rem;
    --text-width: 46rem;

    /* fonts-sizes */
    --stain-mobile: 1.0625rem;
    --stain: 1.125rem;
    --medium: 1.4375remv;

}

body {
    /* font: 1 rem/1.4; */
    max-width: 100%;
    overflow-x:hidden;
    margin: 0;
    font-family: "atahualpa", sans-serif;
    background: var(--bg-col);
    font-weight: 400;
    font-style: normal;
    font-size: var(--stain-mobile);
    line-height: 1.4;
    /* scroll-behavior: smooth; */

}

@media screen and (min-width: 40em) {
    body {
        font-size: 1.125rem;
    }

    /* 61 size for tablet, laptop */
}

@media screen and (min-width: 80em) {
    body {
        font-size: 1.125rem;
    }

    /* 62 size for desktop */
}

::selection {
    color: var(--bg-col);
    background: var(--main-col);
  }
  

/* ---------------------------------------------------
    TYPE
----------------------------------------------------- */

p {
    color: var(--text);
    max-width: var(--text-width);
    /* 24 suggested 23-38 em */
    margin: 0;
    /* 25 if you want to center text */
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    /* 50 caniuse.com/#feat=css-hyphens No desktop Chrome support */
    margin-bottom: 1.4em;
    /*172 when using space between paragraphs, maintain vertical rhythm by setting bottom margin to size of line height
        /* 183 use ems to set margins in running text, percentages or vw for surrounding white space */


}

b {
    font-weight: 600;
    font-style: italic;
}

h1,
h2,
h3,
h4
{
    line-height: 1;
    /* 98 less leading for headings */
    /* 173 set heading line heights to maintain vertical rhythm */
    font-variant-numeric: lining-nums;
    /* 122 lining "uppercase" numerals for headings */
}

h1 {
    font-family: Oi-You;
    font-weight: normal;
    font-size: 10vw;

    /* 33px */
    /* 155 consider using vmin to scale large display headings with viewport */
    /* color: var(--main-col); */
    margin-block: 0;

    /* position: relative; */
}


/* 94, 95 set a hierarchy scale and adjust to different device sizes */
.title {
    position: relative;

}

.oi {
    color: var(--main-col);
    -webkit-mask-image: url("./img/noise.png");
    mask-image: url("./img/noise.png");
    display: inline-block;
}

.t_shawdow {
    z-index: 999;
    filter: drop-shadow(1px 1px 0 white);
}

.mate {
    display: inline-block;
    font-family: Oi-Mate;
    position: absolute;
    font-weight: normal;

    top: 0;
    left: 0;
    z-index: -1;
    color: var(--secdalt-col);
}

h2 {
    margin-top: calc(2*var(--margin-map));
    font-size: 1.5625rem;
    color: var(--alt-col);
    /* 25px */
    font-weight: 600;
    /* 158 consider using rem and vmin to scale subheadings modestly */
}

h3 {
    font-weight: 500;
    font-style: italic;
    font-size: var(--stain-mobile);
    /* 21px */
    margin-bottom: 0;
    line-height: 1.4;
}

h4 {
    font-weight: 400;
    font-style: normal;
    font-size: var(--medium);
    /* 21px */
    color: var(--main-col);
    margin-top: calc(2 * var(--margin-map));
    
}

@media screen and (min-width: 40em) {
    h1 {
        font-size: clamp(1rem, 8vw, 10rem);
        /* 51px */
    }

    h2 {
        font-size: 2.25rem;
        /* 33px */
    }

    h3{
        font-size: var(--stain);
    }
    h4 {
        font-size: var(--medium);
        /* 25px */
    }
}

@media screen and (min-width: 75em) and (min-height: 20em) {
    h1 {
        font-size: clamp(1rem, 4.7vw, 10rem);
        /* 51px */
    }

    h2 {
        font-size: 2.25rem;
        /* 44px */
    }

    h3{
        font-size: var(--stain);
    }
    h4 {
        font-size: var(--medium);
        /* 28px */
    }

    .title {
        margin-bottom: 10rem;
    }
}

/* ---------------------------------------------------
    Right HEADER
----------------------------------------------------- */

.right-header a:hover, #left-header a:hover {
    text-decoration: none;
}

.right-header, #left-header {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
    padding: 0;
    list-style: none;
    margin: 0;

        
        flex-flow: row;
        z-index: 10;
        font-variant: small-caps;
        font-size: var(--stain);
}
.right-header{
    justify-content:flex-start;
}

.right-header a, #left-header a {
    display: block;
    text-align: left;
    text-decoration: underline;
    color: var(--text);
    /* padding: 0.7rem 0; */
    padding-right: 1.4rem;
    /* border-top: 1px solid rgba(255, 255, 255,0.3);  */
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1);  */
}

/* .right-header li:last-of-type a {
    border-bottom: none;
} */


/* .right-header.a.loaded {
    background-color: dodgerblue;
    color: white;
} */
#left-header{
    display: none;
}


/* ---------------------------------------------------
    BAR CONTENT
----------------------------------------------------- */

.aside {
    margin-top: var(--margin-map);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


#mid_t {
    font-size: .9rem;
    /* text-align: left; */
    margin: var(--margin-map) 0;
}

.logo-header img {
    height: 1.8rem;
    content: url(img/logi_rebuliço.png);
    z-index: 10;
}



button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

svg {
    margin-top: .3rem;
    margin-right: .4rem;
    height: 1.4rem;
}

svg path {
    fill: var(--bg-col);

}

.tooltip {
    display: none;
}

.tooltipM {
    /* position: relative; */
    font-weight: 400;
    /* font-size: 1rem; */
    border-radius: 1.5rem;
    background-color: var(--main-col);
    color: var(--bg-col);
    padding: .5rem;
    width: 9rem;
    /* box-shadow: 0px 0px 20px var(--bg-col); */
}

.flex {
    display: flex;
    padding: 0;
    margin: 0;

    list-style: none;

    -webkit-align-items: center;
    align-items: center;
}

.flexI {
    width: auto;
    text-align: center;
    height: 1.4rem;
}



/* ---------------------------------------------------
    MAP
----------------------------------------------------- */

#mapDiv {
    background-image: url(img/noise_r.png);
    position: relative;
    width: 100%;
    border-image: url(img/noise_y.png);
    border-image-slice: 30 30;
    border-image-repeat: round;
    border-bottom: var(--border-width) solid var(--secd-col);
    height: var(--map-height);
    z-index: 10;

    transition: height .5s;
}

#instructions_c{
    display: none;
}
#instructions{
    top: 0;
    left: 0;
    right: 0;
    position: absolute;
    text-align: center;
    /* background-color: var(--text); */
    box-shadow: 0 -1rem 3rem 2rem var(--text);
    z-index: 10;
    
}

#instructions+p{
    color: var(--bg-col);
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    top: .7rem;
    font-size: .9rem;
    z-index: 10;
}


.maplibregl-popup-content{
    font: italic 500 1.3rem/1.2 "atahualpa", sans-serif;
    text-align: center;
    min-width: 10rem;
    max-width: 10rem;
    /* padding: 10rem; */

}
.maplibregl-popup-content #text{
    max-width: 6rem;

}
/* ---------------------------------------------------
    Transition
----------------------------------------------------- */
.aside {
    /* transition: height .5s; */
}


/* .content.active .sidebar{
    position
} */

/* ---------------------------------------------------
    Wrapper
----------------------------------------------------- */

#main {
    position: static;
    margin-left: 0;
}

.right-header,
.legal-info,
.credits,
.aside
 {
    padding-left: calc(var(--margin-map)*1);
    padding-right: calc(var(--margin-map)*2);
}

.legal-info{
    padding-left: calc(1.4*var(--margin-map));
}

.content {
    z-index: 0;
    padding: var(--margin-stain) calc(1.4*var(--margin-map));
}

p:has(.p_img) {
    margin-right: var(--margin-map);
    margin-left: 0;
    margin-bottom: 2.8em;

}

.p_img {
    /* display: inline-block; */

    width: calc(100%);
    height: auto;
    
}
#zoom-container{
    z-index: -1;
    top: 0;
    bottom: 0; 
    position: fixed; 
    left:0;
    width:100vw;
     
}

/* ---------------------------------------------------
    FOOTER
----------------------------------------------------- */
.footer {
    background-color: var(--bg-col);
    z-index: 4;
    position: relative;
}

.know-more {

    /* padding-left: var(--margin-stain); */
    border-image: url(img/noise_b.png);
    border-image-slice: 30 30;
    border-image-repeat: round;
    box-shadow: 0 -70px 60px var(--bg-col);
    /* -moz-box-sizing: border-box; */
    /* -webkit-box-sizing: border-box; */
    border-top: calc(1.4* var(--border-width)) solid var(--alt-col);
    padding-top: var(--border-width);
    display: flex;

    
    justify-content: center;
    flex-wrap: wrap;
    /* flex-direction: row; */
    padding: 0 calc(3 * var(--margin-map));
}

.know_rebulicers {
    margin: 0 auto;
    width: 10rem;
    margin-top: calc(var(--margin-stain));
    margin-bottom: calc(var(--margin-stain));
}

.deco {
   display: none;
}


.profile {
    display: flex;
    flex-direction: row;
    color: var(--alt-col);
    align-items: center;
    position: relative;
    margin-bottom: calc(var(--margin-stain));
    z-index: 10;
}

.profile_arrow {
    height: 2rem;
    font-size: 5rem;
    position: absolute;
    z-index: 5;
}

.profile_pic {
    height: 5em;
    width: 5em;
    object-fit: cover;
    /* margin: 0 calc(var(--margin-map) * 2); */

}
.profile_pic_map {
    height: 5em;
    width: 5em;
    object-fit: cover;
    display: block;
    margin: calc(var(--margin-map)/2) auto calc(var(--margin-map)) auto;

}

.profile_text {
    /* flex-direction: column; */
    /* justify-content: center; */
    /* color: var(--alt-col); */
    max-width: 15rem;
    padding-left: 0.7rem;
}

.left {
    text-align: right;
}

.left .profile_text {
    padding-left: 0;
    padding-right: 0.7rem;
}

.left .profile_arrow {
    right: -2.4rem;
}
.right .profile_arrow {
    left: -2.4rem;
}

.profile_name {
    margin: 0rem;
    font-size: 2rem;
    font-style: italic;
    /* font-weight: normal; */
}

.profile_text span {
    font-size: 1rem;
    font-variant: small-caps;
}

.know-more a {
    text-decoration: none;
}

.legal-info {
    border-image: url(img/noise_r.png);
    border-image-slice: 30 30;
    border-image-repeat: round;
    border-top: calc(1.4* var(--border-width)) solid var(--main-col);
        height: 350px;
    display: flex;
    align-items: center;
    justify-content: space-between;


}

.legal-info img{
    height: 7rem;
    width: auto;
}

.credits {
    font-size: 1rem;
    padding-left: var(--margin-map);
    height: 4.2rem;
    color: var(--bg-col);
    background-image: url(img/noise_y.png);
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-style: italic;
}

.credits a{
    color: var(--bg-col);
}



/* ---------------------------------------------------
    Sidenotes 
----------------------------------------------------- */

.sidenote,
.info,
.logo {
    /* font-size: 0.8rem; */
    /* position: relative; */
    text-align: left;
    display: block;
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 1.4rem;
}
.logo_a img{
    max-width: 16rem;
    margin: calc(2 * var(--margin-map)) auto;
    display: block;
}
.sidenote {
    font-size: var(--stain-mobile);
    top: -2.8rem;
    text-align: left;
    z-index: -1;
    color: var(--main-col);
}

.info img {
    margin-bottom: calc(2 * var(--margin-map));
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    /* border-radius: .7rem; */
    margin-top: calc(1.4* var(--margin-stain));
}

.info p {
    margin-left: 0;
}

.spot {
    border-radius: 0;
    width: 100%
}

.conector {
    display: none;
    font-weight: 300;
}

/* Wide viewport */
@media screen and (min-width: 75em) {


    .info:has(img) {
        width: 23rem;
        top: 0;
    }

    .info img {
        width: 100%;
        margin-top: 0;

    }

    .info {
        float: right;
        clear: right;
        text-align: right;
        /* font-size:  1.1875rem; */
        /* top: 1rem; */
        width: 23rem;
        margin-left: calc(3 * var(--margin-map));
    }

    .info p {
        margin-right: 0;
    }

}

@media screen and (min-width: 100em) {
    .conector {
        /* display: inline; */
    }
    .logo_a{
        float: right;
        clear: right;
        text-align: center;
        /* font-size:  1.1875rem; */
        /* top: 1rem; */
        width: 16rem;
    }
    .sidenote {
        float: right;
        clear: right;
        text-align: left;
        /* font-size:  1.1875rem; */
        left: 0;
        top: .7rem;
        width: 23rem;
    }

    .info:has(img) {
        width: 23rem;
        margin-right: 0;
    }


}




/* ---------------------------------------------------
    Responsive 
----------------------------------------------------- */
@media screen and (min-width:40em) {
    p {
        margin: 0em 1.4em 1.4em 1.4em;
    }
    /* p:has(.p_img) {
        margin-right: 0;
        margin-left: 0;
        margin-bottom: 2.8em;
    
    } */

    /* h1 {font-size: 11vw;} */

    #mapDiv {
        position: fixed;
        border-right: var(--border-width) solid var(--secd-col);
        border-bottom: 0;
        width: var(--map-width);
        height: 100vh;
        top: 0;
        bottom: 0;
        z-index: 6;

        transition: width .5s;
    }
    aside{

    /* transition: width .5s; */
    }
    #main {
        position: relative;
        margin-left: calc(var(--map-width));
    }

    .content {
        /* z-index: 0; */
        padding: 15rem calc(var(--margin-stain) / 2) var(--margin-stain) var(--margin-stain);
    }

    .right-header {
        position: absolute;
        right: 0;
        margin-top: 2em;
        
        /* background: deepskyblue; */
    }

    #left-header {
        display: flex;
        position: fixed;
        margin-top: 2em;
        left: var(--margin-map);
        flex-flow: row;
        text-align: center;
        z-index: 10;
        transition: opacity .5s;
        font-variant: small-caps;
        text-shadow: 0 0 2px #ffffff, 0 0 4px #e7e7ffd3;
    }

    .aside {
        width: 1.5rem;
        height: 100vh;
        position: fixed;
        margin-right: 10px;
    }

   #mid_t {
        font-size: 1rem;
        writing-mode: vertical-rl;
        max-lines: 2;
        transform: scale(-1);
        margin-left: 0.25rem;
        text-align: center;
        height: 100vh;
        padding-top: calc(var(--margin-map) + 5.4rem);
        padding-bottom: calc(var(--margin-map) + 2.4rem);
    }

    .logo-header img {
        height: calc(1.8rem + 1vw);
        position: absolute;
        top: var(--margin-map);
        content: url(img/logi_r.png);
    }
    
    .logo-header.loaded img {
        content: url(img/logi_rebuliço.png);
    }


    .aside button {
        padding-left: .45rem;
    }

    h4{
        position: absolute;
    }

    .tooltipM {
        display: none;
    }

    .tooltip {
        position: absolute;
        display: block;
        bottom: calc(2 * var(--margin-map));
        /* z-index: 2; */
    }

    .tooltip .tooltiptext {
        writing-mode: vertical-rl;
        transform: scale(-1);
        z-index: -1;
        visibility: hidden;
        position: absolute;
        width: 2.1rem;
        text-align: center;
        height: 9.2em;
        bottom: -.3rem;
        left: 0;
        /* padding: 0 auto; */
        padding-left: 0;
        padding-top: 2rem;
        padding-right: .16rem;
        /* font-size: 1rem; */
        border-radius: 1.05rem;
        background-color: var(--main-col);
        color: var(--bg-col);
        content: 'Copiar Link';
        /* box-shadow: 0px 0px 20px var(--bg-col); */
    }


    svg path {
        fill: var(--main-col);
    }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }

    .tooltip:hover svg path {
        fill: var(--bg-col);
    }

    #zoom-container{
        top: 0; 
        bottom: 0; 
        right: 0; 
        left: unset;
        width: calc(100vw - var(--map-width)); 
    }
    /* Fotter */
    .legal-info{
        padding-left: var(--margin-stain);
    }
.know-more{
    padding: calc(2*var(--margin-map)) var(--margin-stain);
    padding-right: calc(2*var(--margin-stain));
   justify-content: flex-start;
}
  .know_rebulicers {
        order: 2;
        margin-top: 0;
        margin-bottom: calc(var(--margin-stain) - var(--margin-map) * 2);
    }

    .profile {
        order: 1;
        margin-bottom: 0;
        padding: calc(var(--margin-stain)/2), 0;
    }

    .profile + .left {
        order: 3;
    }
}
@media screen and (min-width: 100em) {
.deco {
    display: inline-flex;
    width: 200px;
    position: relative;
}

.deco img {
    position: absolute;
    bottom: -6.8rem;
    right: -2rem;
    height: 65rem;
}
}