#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bs-body-bg);
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.preloader {
    position: absolute!important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4; /* Убедитесь, что z-index достаточно высок, чтобы перекрыть график */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Основной контейнер, который будет держать иконку и дорогу */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; /* Необходимо для позиционирования road-wrapper */
}

/* Круглый лоадер с автобусом */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffc107;
    height: 80px;
    width: 80px;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: 2px solid #ffc107;
}
/* Стиль для иконки автобуса */
.loader img {
    left: -2px;
    position: absolute;
    animation: bob 1s ease-in-out infinite alternate;
}

/* Анимация покачивания автобуса */
@keyframes bob {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(2px);
    }
}

/* Обертка для линии дороги */
.road-wrapper {
    position: absolute;
    width: 100%;
    height: 10px;
    bottom: 10px; /* Позиционируем под автобусом */
}
.bus-wheel{
  background-color: #222125;
  height: 11px;
  width: 11px;
  border-radius: 50px;
  position: absolute;
  left: 8.5px;
  bottom: 18.5px;
}
/* Сама линия дороги с анимацией */
.road-line {
    width: 100%;
    height: 2px;
    background-image: repeating-linear-gradient(90deg,
        #222125ff 10px, #222125ff 14px, transparent 4px, transparent 10px,
        #222125ff 10px, #222125ff 20px, transparent 2px, transparent 8px,
        #222125ff 28px, #222125ff 33px, transparent 3px, transparent 4px);
    background-size: 50px 100%;
    animation: road-move 0.15s linear infinite;
    position: absolute;
    bottom: 17px;
    filter: blur(0.5px); /* Adds a slight blur effect */
}

@keyframes road-move {
    from {
        background-position-x: 50px;
    }
    to {
        background-position-x: 0;
    }
}
