.car {
  width: 30px;
  height: 50px;
  position: absolute;
  bottom: 30px;
  transition: left 0.2s;
}
.left {
  left: calc(25% - (30px / 2));
}
.right {
  left: calc(75% - (30px / 2));
}
.game-container {
  width: 100%;
  max-width: 600px;
}
.game-screen {
  width: 45%;
  aspect-ratio: 3/5;
}
.car img {
  width: 100%;
  height: auto;
}
.obstacle {
  width: 20px;
  height: 20px;
  position: absolute;
  top: -60px;
  border: 3px solid white;
  border-radius: 8px;
  box-sizing: border-box;
  outline: 2px solid #007bff;
  outline-offset: 0px;
  transition: opacity 0.3s ease;
}
.obstacle-crash {
  animation: blink-obstacle 0.5s infinite;
}
@keyframes blink-obstacle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}
.point {
  width: 20px;
  height: 20px;
  position: absolute;
  top: -60px;
  border: 3px solid white;
  border-radius: 8px;
  box-sizing: border-box;
  outline: 2px solid #e70f00;
  outline-offset: 0px;
}
/* Responsive styles */
@media (min-width: 640px) and (max-width: 1023px) {
  .car {
    width: 40px;
    height: 70px;
    bottom: 55px;
  }
  .left {
    left: calc(25% - (40px / 2));
  }
  .right {
    left: calc(75% - (40px / 2));
  }
  .obstacle, .point {
    width: 29px;
    height: 29px;
    border-width: 4px;
    outline-width: 2.5px;
  }
}
@media (min-width: 1024px) {
  .car {
    width: 50px;
    height: 90px;
    bottom: 80px;
  }
  .left {
    left: calc(25% - (50px / 2));
  }
  .right {
    left: calc(75% - (50px / 2));
  }
  .obstacle, .point {
    width: 38px;
    height: 38px;
    border-width: 6px;
    outline-width: 3px;
  }
}