@charset "UTF-8";
@import "line-icon.css";
@import "autocomplete.css";

:root {
  --header-height: 2em;
}
body {
  margin: 0;
  font-family: sans-serif;
  font-size: clamp(
    1rem,
    min(
      calc(
        (100svh - var(--header-height)) / (7 * 1.8)
      ),
      5vw
    ),
    2cm
  );
  overflow: clip;
}

header {
  background-color: red;
  color: white;
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

footer {
  height: 2em;
  width: 100vw;
  background-color: red;
  color: white;
  padding: 5px 20px;
  position: absolute;
  bottom: 0;
  overflow: clip;
  display: flex;
  align-items: center;
}

header > #clock {
  display: inline;
}

#stop-autocomplete {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

input#stop-name {
  height: 80%;
  font-size: inherit;
  background-color: red;
  border: none;
  color: white;
}

table#departures {
  overflow: clip;
  display: block;
}

tr.departure-row {
  height: 35px;
}

tr.departure-row * {
  white-space: nowrap;
}

td.spacer {
  width: 100%;
  text-align: end;
}

td.departure-time {
  width: 50%;
  text-align: right;
}

.empty {
  color: darkgray;
}

.empty.behind-table {
  position: absolute;
  top: calc(50%);
  left: calc(50%);
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}

a {
  color: inherit;
}
