
#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: #0a1929;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

.car-loader {
  text-align: center;
}

.road {
  width: 300px;
  height: 120px;
  background-color: #1a3b5c;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.road-line {
  position: absolute;
  top: 58px;
  width: 100%;
  height: 4px;
  background: repeating-linear-gradient(
    to right,
    #ffcc00 0%,
    #ffcc00 20%,
    transparent 20%,
    transparent 40%
  );
  background-size: 40px 4px;
  animation: road-move 1.5s linear infinite;
}

@keyframes road-move {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

.car {
  position: absolute;
  top: 30px;
  left: 0;
  animation: car-move 3s ease-in-out infinite;
}

@keyframes car-move {
  0% { transform: translateX(-100px); }
  50% { transform: translateX(200px); }
  100% { transform: translateX(400px); }
}

.car-body {
  position: relative;
  width: 100px;
  height: 40px;
}

.car-top {
  position: absolute;
  top: 0;
  left: 20px;
  width: 60px;
  height: 25px;
  background-color: #1976d2;
  border-radius: 15px 15px 0 0;
}

.car-bottom {
  position: absolute;
  top: 20px;
  width: 100px;
  height: 20px;
  background-color: #1976d2;
  border-radius: 5px 15px 15px 5px;
}

.wheel {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #2c3e50;
  border-radius: 50%;
  bottom: -5px;
  animation: wheel-spin 1s linear infinite;
}

.front-wheel {
  left: 15px;
}

.back-wheel {
  right: 15px;
}

@keyframes wheel-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.window {
  position: absolute;
  background-color: #a5d6ff;
}

.front-window {
  top: 5px;
  left: 25px;
  width: 15px;
  height: 15px;
  border-radius: 0 10px 0 0;
}

.back-window {
  top: 5px;
  right: 25px;
  width: 15px;
  height: 15px;
  border-radius: 10px 0 0 0;
}

.headlight {
  position: absolute;
  top: 30px;
  right: -5px;
  width: 5px;
  height: 5px;
  background-color: yellow;
  border-radius: 50%;
}

.loading-text {
  color: #e3f2fd;
  font-family: Arial, sans-serif;
  margin-top: 20px;
  font-size: 16px;
  animation: text-pulse 1.5s ease-in-out infinite;
}

@keyframes text-pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

