make it responsive
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Schedule with Timeline</title>
<link rel="stylesheet" href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css">
<style>
  @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

  .timeline {
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 18%;
    border-left: 4px solid #4C51BF;
    z-index: 1;
  }
  .station {
    position: relative;
    margin: 10px 0px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .station::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 4px solid #4C51BF;
    border-radius: 50%;
    left: 18.35%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .station-time {
    padding: 5px 10px;
    background-color: #4C51BF;
    color: #fff;
    border-radius: 12px;
    white-space: nowrap;
    z-index: 3;
    margin-right: 20px;
  }
  .station-name {
    flex-grow: 1;
    margin-left: 20px;
    margin-right: 20px;
    z-index: 3;
  }

  .header-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-weight: bold;
  }
</style>
</head>
<body>
<div class="bg-gray-100 font-roboto">
  <div class="max-w-xl mx-auto py-12 px-4 sm:px-6 lg:px-2">
    <div class="mt-8">
      <div class="timeline">
        <div class="header-row">
          <div>Arrival</div>
          <!-- <div></div> -->
          <div>Station Name</div>
          <div>Departure</div>
        </div>
        <!-- Repeat the station div for each station with updated structure -->
        <div class="station">
          <div class="station-time">7:22 AM</div>
          <div></div> <!-- Graph placeholder (the vertical line) -->
          <div class="station-name">Thampanoor - Main Bus Stand</div>
          <div class="station-time">7:23 AM</div>
        </div>
        <div class="station">
          <div class="station-time">7:22 AM</div>
          <div></div> <!-- Graph placeholder (the vertical line) -->
          <div class="station-name">Thampanoor - Main Bus Stand</div>
          <div class="station-time">7:23 AM</div>
        </div>
        <div class="station">
          <div class="station-time">7:22 AM</div>
          <div></div> <!-- Graph placeholder (the vertical line) -->
          <div class="station-name">Thampanoor - Main Bus Stand</div>
          <div class="station-time">7:23 AM</div>
        </div>
        <div class="station">
          <div class="station-time">7:22 AM</div>
          <div></div> <!-- Graph placeholder (the vertical line) -->
          <div class="station-name">Thampanoor - Main Bus Stand</div>
          <div class="station-time">7:23 AM</div>
        </div>
        <div class="station">
          <div class="station-time">7:22 AM</div>
          <div></div> <!-- Graph placeholder (the vertical line) -->
          <div class="station-name">Thampanoor - Main Bus Stand</div>
          <div class="station-time">7:23 AM</div>
        </div>
        <!-- Additional stations can be added here with the same structure -->
        <!-- … -->
      </div>
    </div>
  </div>
</div>
</body>
</html>