*, *:before, *:after {
  box-sizing: border-box;
  user-select: none;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #1f2937;
}

.station-info {
    text-align: center;
    margin: 2rem 0;
}

h2 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.departure-times-list .next-departure {
    font-weight: bold;
    transform: scale(3);
    margin: 0 2rem;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
}

#departureTimesListSouthernCross .next-departure {
    color: #3b82f6;
}
#departureTimesListBallarat .next-departure {
   color: #10b981;
}
#nextDepartureSouthernCross,
#nextDepartureBallarat {
  display: none;
}

.departure-times-list {
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    padding: 10px 0;
}

.departure-times-list span {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #374151;
}

.departure-times-list span.red {
    color: #ef4444;
}

.departure-times-list span.next-departure {
    text-decoration: underline;
    font-weight: bold;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #f3f4f6;
    }

    .departure-times-list span {
        color: #d1d5db;
    }

    .departure-times-list span.red {
        color: #f87171;
    }
}

