/*
 Theme Name:   PicoStrap Child Base
 Theme URI:    https://picostrap.com
 Description:  Child theme for Picostrap
 Author:       The LiveCanvas Team
 Author URI:   https://livecanvas.com
 Version:      1.3.0
 Template: picostrap 
 Text Domain:  picostrap-child-base
 License: GPL-2.0
 License URI: http://www.opensource.org/licenses/gpl-license.php
*/

/*
Do not edit this file.
To add your own CSS, edit  the file: 
sass/_custom.scss 
...and add your own CSS (or SCSS!) statements.
All should be recompiled automatically when visiting frontend as admin
To edit the  SCSS pipeline, view and edit the file: sass/main.scss
*/

.timeline {
    padding: 50px 0;
    position: relative;
}
.timeline-nodes {
        margin: 25px 0px;
        position: relative;
}
.timeline-nodes:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-content h3, .timeline-content p {
    padding: 5px 15px;
} 
.timeline-content h3{
    color:var(--white)!important;
    background: var(--primary);
    border-radius: 8px 8px 0px 0px;
    -webkit-border-radius: 8px 8px 0px 0px;
    -moz-border-radius: 8px 8px 0px 0px;
    -ms-border-radius: 8px 8px 0px 0px;
    -o-border-radius: 8px 8px 0px 0px;
}

.timeline::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    border-left: 2px dashed var(--primary);
    height: 100%;
    z-index: 1;
}
.timeline-nodes:nth-child(even) .timeline-image {
    left: unset;
    right:5.8%;
}
.timeline-nodes:nth-child(odd) .timeline-image {
    right: -5.8%;
    left:unset;
}
.timeline-content {
    position: relative;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.timeline-image {
    position: relative;
    z-index: 100;
    width:60px;
    height:60px;
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
    border: 2px dashed var(--primary);
    background-color:white;
    border-radius:50%;
    -webkit-border-radius:50%;
    -moz-border-radius:50%;
    -ms-border-radius:50%;
    -o-border-radius:50%;
    flex :unset;
    max-width:unset;
}

.timeline-image svg{
    width:2.0em;
    height:2.0em;
    color: var(--primary);
    fill: var(--primary);
    position: relative;
    z-index: 100;
}
/*small device style*/
@media (min-width:1000px) and (max-width:1150px){
    .timeline-nodes:nth-child(even) .timeline-image {
        left: unset;
        right:5.1%;
    }
    .timeline-nodes:nth-child(odd) .timeline-image {
        right: -5.1%;
        left:unset;
    }
}
@media (max-width: 1000px) {
    .timeline-nodes:nth-child(odd) h3,
    .timeline-nodes:nth-child(odd) p {
        text-align: left
    }
    .timeline-content h3{
        font-size: 20px;
    }
    .timeline-nodes:nth-child(even) {
        flex-direction: row;
    }
    .timeline::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        width: 0;
        border-left: 2px dashed var(--primary);
        height: 100%;
        z-index: 1;
        left: 30px;
    }
    .timeline p {
        font-size: 14px;
    }
    .timeline-image {
        position: absolute;
        z-index: 1;
    }

    .timeline-nodes:nth-child(even) .timeline-date {
        text-align: left;
    }

    .timeline-content{
        width: 80% !important;
        max-width: unset;
        flex: unset;
        transform: translate(20%,0%);
        -webkit-transform: translate(20%,0%);
        -moz-transform: translate(20%,0%);
        -ms-transform: translate(20%,0%);
        -o-transform: translate(20%,0%);
    }
}
@media (max-width: 992px){
    .timeline-nodes:nth-child(even) .timeline-image {
        left: unset;
        right:unset;
    }
    .timeline-nodes:nth-child(odd) .timeline-image {
        right: unset;
        left:unset;
    }
}
@media (max-width: 575px) {
    .timeline::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 22px;
    }
    .timeline-image {
        position: absolute;
        width: 45px;
        height: 45px;
    }
    .timeline-image svg {
        width: 1.5em;
        height: 1.5em;
    }
}
