body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(to bottom, #1e3a8a, #1e40af);
    color: white;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.delay-indicator {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.delay-indicator.delayed {
    background: rgba(239, 68, 68, 0.2);
}

.route-container {
    position: relative;
    padding-left: 12rem; /* Increased padding for more space */
    margin-top: 3rem;
}

.timeline-line {
    position: absolute;
    left: 8.5rem; /* Adjusted position */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.timeline-progress {
    position: absolute;
    left: 8.5rem; /* Same as timeline-line */
    top: 0;
    width: 2px;
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transition: height 1s linear;
}

.stop {
    position: relative;
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.stop.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(0.5rem);
}

.stop.completed {
    opacity: 0.7;
}

.stop::before {
    content: '';
    position: absolute;
    left: -4rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.stop.completed::before {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.stop.active::before {
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.stop-time {
    position: absolute;
    left: -12rem; /* Increased spacing */
    top: 50%;
    transform: translateY(-50%);
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    min-width: 4rem;
    text-align: center;
}

.stop.active .stop-time {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.stop-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-style: italic;
}

#crown-marker {
    position: absolute;
    left: 8.5rem; /* Adjusted to match timeline */
    transform: translate(-50%, -50%);
    transition: top 1s linear;
    z-index: 10;
}

.crown-bg {
    background: white;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.crown-bg:hover {
    transform: scale(1.1);
}