/* ============================================================
   Transit LIVE Display
   ============================================================ */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;

  font-family: Arial, Helvetica, sans-serif;

  background: #111;
  color: white;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  width: 100%;

  padding: 18px 28px;

  display: flex;

  justify-content: space-between;
  align-items: center;

  background: #181818;

  border-bottom: 2px solid #333;
}

.header-title {
  font-size: 32px;
  font-weight: bold;
}

.header-status {
  display: flex;

  align-items: center;

  gap: 20px;

  font-size: 16px;
}

.last-updated {
  color: #aaa;
}

/* ============================================================
   MAIN
   ============================================================ */

main {
  width: 100%;

  padding: 20px;
}

/* ============================================================
   LOADING
   ============================================================ */

.loading {
  text-align: center;

  padding: 60px;

  font-size: 24px;

  color: #aaa;
}

/* ============================================================
   ERROR
   ============================================================ */

.error-message {
  margin-bottom: 20px;

  padding: 15px;

  background: #3a1717;

  border: 1px solid #7a3333;

  border-radius: 6px;

  color: #ffb0b0;
}

.hidden {
  display: none;
}

/* ============================================================
   BAY
   ============================================================ */

.display {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.bay {
  background: #1c1c1c;

  border: 1px solid #333;

  border-radius: 8px;

  overflow: hidden;
}

/* ============================================================
   BAY HEADER
   ============================================================ */

.bay-header {
  padding: 14px 18px;

  background: #252525;

  border-bottom: 1px solid #3a3a3a;

  font-size: 24px;

  font-weight: bold;
}

/* ============================================================
   DEPARTURE
   ============================================================ */

.departure {
  position: relative;

  padding: 15px 18px;

  border-bottom: 1px solid #333;
}

.departure:last-child {
  border-bottom: none;
}

/* ============================================================
   ROUTE
   ============================================================ */

.route-row {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 8px;
}

.route-badge {
  min-width: 55px;

  padding: 7px 10px;

  text-align: center;

  border-radius: 6px;

  background: #666;

  color: white;

  font-size: 20px;

  font-weight: bold;
}

.route-name {
  font-size: 17px;

  color: #ccc;
}

/* ============================================================
   STOP
   ============================================================ */

.stop-name {
  font-size: 17px;

  margin-bottom: 10px;

  color: #ddd;
}

/* ============================================================
   TIMES
   ============================================================ */

.time-row {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.scheduled {
  color: #999;

  font-size: 16px;
}

.estimated {
  font-size: 22px;

  font-weight: bold;
}

.estimated.no-realtime {
  color: #999;

  font-size: 16px;

  font-weight: normal;
}

/* ============================================================
   VEHICLE
   ============================================================ */

.vehicle {
  margin-top: 8px;

  font-size: 14px;

  color: #999;
}

/* ============================================================
   MINUTES
   ============================================================ */

.minutes {
  min-width: 90px;

  text-align: right;

  font-size: 22px;

  font-weight: bold;
}

.minutes-small {
  font-size: 15px;

  color: #999;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {
  .header {
    padding: 14px;

    flex-direction: column;

    align-items: flex-start;

    gap: 8px;
  }

  .header-title {
    font-size: 26px;
  }

  .header-status {
    font-size: 13px;
  }

  main {
    padding: 10px;
  }

  .display {
    grid-template-columns: 1fr;
  }
}
