.car-section {
    position: absolute;
    top: 55%;
    z-index: 5;
    background-color: transparent;
    width: 100%;
    height: 500px;
}

.mobile-path {
    display: none;
}



svg {
    position: absolute;
}


#car-icon,
#car-icon-1400,
#car-icon-1265,
#car-icon-mobile {
    width: 70px;
    height: auto;
    border-radius: 4px;
    position: absolute;
    animation: moveCar 5s ease-in-out infinite;
    top: -15px;
}


.car-section .path-line {
    stroke: white;
    /* Postavite boju linije (možete koristiti bilo koju boju) */

}






/* Animacija za pomicanje auta po putanji */
@keyframes moveCar {
    0% {
        offset-distance: 5%;
        -webkit-offset-distance: 5%;
    }

    100% {
        offset-distance: 95%;
        -webkit-offset-distance: 95%;
    }
}


@media (max-width: 1400px) {
    .desktop-path {
        width: 500px;
    }

    #car-icon-1400 {
        animation: moveCar 5s ease-out infinite;
    }


    .car-section {
        top: 65%;
    }



    @keyframes moveCar {
        0% {
            offset-distance: 5%;
            -webkit-offset-distance: 5%;
        }

        100% {
            offset-distance: 95%;
            -webkit-offset-distance: 95%;
        }
    }


}

@media (min-width: 767px) and (max-width: 1265px) {
    .desktop-path {
        width: 350px;
        /* Smanjujemo širinu na 300px */
        height: 150px;
        /* Možete prilagoditi visinu ako je potrebno */
    }

    #car-icon-1265 {
        animation: moveCar 3s ease-in-out infinite;
    }


    .car-section {
        top: 65%;
    }

    @keyframes moveCar {
        0% {
            offset-distance: 0%;
            -webkit-offset-distance: 0%;
        }

        100% {
            offset-distance: 90%;
            -webkit-offset-distance: 90%;
        }
    }
}





/* mobiteli ------------------------------------ --------------- ------------------------------------------ ---------------*/

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


    /* Display se upravlja preko JavaScript-a */

    .car-section {
        position: relative;
        display: block;

        z-index: 10;

        height: 60px;

    }


    .mobile-path {
        display: block;

        position: absolute;
        height: 50px;
    }



    .car-section .path-line {
        stroke: white;
        /* Postavite boju linije (možete koristiti bilo koju boju) */
        fill: transparent;
    }


    #car-icon-mobile {
        animation: moveCar 5s ease-in-out infinite;
    }




    @keyframes moveCar {
        0% {
            offset-distance: 5%;
            -webkit-offset-distance: 5%;
        }

        80% {
            offset-distance: 90%;
            -webkit-offset-distance: 90%;
        }


        100% {
            offset-distance: 90%;
            -webkit-offset-distance: 90%;
        }
    }

    #taxi-info {


        background: none;

        padding: 0px 30px;
    }

    #taxi-info h2 {
        font-size: 25px;
    }

    #gradient-wrapper {

        background: linear-gradient(to bottom, rgb(17, 45, 78), rgb(135, 206, 250));
    }

    #right-arrow {
        display: none;
    }

}