/*
Theme Name: Leksa Child
Description: Child theme for the Leksa. Child themes are the recommended way of making modifications to a theme. <a href="http://codex.wordpress.org/Child_Themes">Read More</a>
Author: PeThemes
Author URI: http://pethemes.com
Template: leksa
*/


/* =Theme customization starts here
-------------------------------------------------------------- */
@font-face {
    font-family: 'PP-ME';
    src: url('fonts/PPMonumentExtended-Black.woff2') format('woff2'),
        url('fonts/PPMonumentExtended-Black.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


.elementor-editor-active.home #masthead{
    display: none !important;
}
h1,h2,h3{
    font-family: 'PP-ME';
    text-transform: uppercase;
}
h1,.text-h1,.page-title{
    font-size: clamp(1.2rem, 0.2141rem + 3.1549vw, 4rem) !important;
    line-height: 0.8 !important;
    text-transform: uppercase;
}
h2,.text-h2{
    font-size: clamp(0.5rem, 0.3239rem + 0.5634vw, 1rem) !important;
}
h3,.text-h3{
    font-size: clamp(0.5rem, 0.2535rem + 0.7887vw, 1.2rem) !important;
}
h4,.text-h4{
    font-size: clamp(0.5rem, 0.2535rem + 0.7887vw, 1.2rem) !important;
}
h5,.text-h5{
    font-size: clamp(0.8rem, 0.7648rem + 0.1127vw, 0.9rem) !important;
    font-family: 'PP-ME';
}
.text-p,p{
    font-size: clamp(0.8rem, 0.7648rem + 0.1127vw, 0.9rem) !important;
    margin: 0;
}
.elementor-counter-number-wrapper{
    font-size: clamp(0.8rem, -0.3268rem + 3.6056vw, 4rem) !important;
}
.plyr__video-wrapper{
    background: var(--e-global-color-secondary);
}
.home #colophon{
    background: var(--e-global-color-primary);
}
.single .twer-iframe-embed{
    height: 50dvh !important;

    iframe{
        height: 50dvh;
    }
}
.page-content {
    margin: 0 !important;
}
.page-id-11962{
    main#primary{
        height: 100dvh;
    }
    #colophon{
        display: none !important;
    }
    .twer-tour-control{
        display: block !important;
    }
}
.section-index{

    > div.elementor-element{
        position: relative;
        padding: 20px 20px 0 20px;
        border-top: 1px solid #333;

        p{
            position: relative;
            font-size: clamp(0.6rem, 0.4944rem + 0.338vw, 0.9rem) !important;
        }

        p::before{
            content:"•";
            position: absolute;
            left: -20px;
            top: 0;
            color: var(--secondaryBackground);
        }
    }

    > div.elementor-element:last-child{

        padding-left: 0;

        p::before{
            right: -20px;
        }
    }

    > div.elementor-element::before {
        content:'';
        position: absolute;
        width: 1px;
        height: 12px;
        background: #333;
        left: 0;
        top: 0;
    }

    > div.elementor-element:last-child:before {
        left: inherit;
        right: 0;
        top: 0;
    }
}
#intro-gif{
    position: absolute;
    top: 30%;
    left: 36%;
    max-width: 310px;
    height: auto;
    transform: translateY(-50%) rotate(-30deg);
    z-index: 10;
}
.pe--portfolio.portfolio--list .project--title{
    font-family: 'PP-ME';
    text-transform: uppercase;
    font-size: clamp(1rem, -0.7606rem + 5.6338vw, 6rem) !important;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.pe--portfolio.portfolio--list > div.portfolio--projects--wrapper .portfolio--project::before{
    background: #333 !important;
    opacity: 1 !important;
}
.pe--button.pb--bordered .pe--button--wrapper a, .pe--button.pb--background .pe--button--wrapper a {
    padding: 0.2rem 1rem !important;
}
/* CSS SINGLE RIDE */
div[id^=map_]{
    display: none;
}
#route-data{

}
.wpgpxmaps_summary{
    display: grid;
    text-align: center;
    gap: 1rem;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: repeat(6, auto);
    grid-template-areas: "dist dist dist time time time"
                         "max_e max_e min_e min_e avg_s avg_s";

    br{
        display: none;
    }

    > span{
        display: flex;
        flex-direction: column;
        background: #25262f;
        border-radius: 7px;
        padding: 15px;

        .summarylabel{
            font-size: clamp(0.6rem, 0.5296rem + 0.2254vw, 0.8rem);
            color: #9d9d9d;
        }
        .summaryvalue{
            font-size: clamp(0.8rem, 0.5535rem + 0.7887vw, 1.5rem);
        }
    }

    .totlen{
        grid-area: dist;
    }
    .totaltime{
        grid-area: time;
    }
    .maxele{
        grid-area: max_e;
    }
    .minele{
        grid-area: min_e;
    }
    .avgspeed{
        grid-area: avg_s;
    }
}
.gpx-download{
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 15px 0;
    margin: 10px 0;

    span,a{
        font-size: clamp(0.6rem, 0.5296rem + 0.2254vw, 0.8rem);
    }
    a{
        background: var(--e-global-color-accent);
        padding: 0.5rem 1rem;
        border-radius: 30px;
        font-weight: 600;
        margin-left: 10px;
    }
}
#ride-data{
    border-bottom: 1px solid #353642;
}
/* FIN CSS SINGLE RIDE */
@media(max-width:768px){
    .elementor-5647 .elementor-element.elementor-element-6d0651d{
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .wpgpxmaps_summary,.gpx-download{
        padding: 10px;
    }
    .gpx-download a{
        display: flex;
        flex-grow: 1;
        justify-content: center;
    }


}

@media(min-width:767px){
    #intro-gif{
        top: 36%;
        left: 36%;
        max-width: 336px;
    }
}
@media(min-width:1024px){
    #intro-gif{
        top: 78%;
        left: 53%;
        max-width: 400px;
        width: 28vw;
    }
}
@media(min-width:1366px){
    #intro-gif{
        top: 82%;
        left: 58%;
        max-width: 480px;
    }
}
@media(min-width:1920px){
    #intro-gif{
        left: 62%;
        max-width: 580px;
    }
}