@import url('https://fonts.cdnfonts.com/css/montserrat');

html {
    background-color: #000;
    width: 100vw;
    height: 100vh;
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    justify-content: center;
}

main {
    width: 90%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2vh 0;
    color: rgba(255,255,255,0.95);
}

h1 {
    margin: 0;
    font-size: 4.5vh;
    text-wrap-mode: nowrap;
}

#time-and-live {
    display: flex;
    gap: 0.5rem;
}

#current-time {
    align-self:flex-end;
    margin: 0;
    font-size: 1.8rem;
}

@keyframes blink {
    0%,50% {opacity:0.3;}
    50.1%,100%{opacity:1;}
}
/* these are cool, for an svg you can control indiviudal paths with animations */
#live path:nth-child(4) { animation: blink 3s infinite; animation-delay: 0s; }
#live path:nth-child(3) { animation: blink 3s infinite; animation-delay: 0.4s; }
#live path:nth-child(2) { animation: blink 3s infinite; animation-delay: 0.8s; }

#live {
    width: 2vh;
    height: 3vh;
    transform-origin: center;
    transform:translateY(-1.4rem) rotate(-45deg);
}

#departures-container {
    display: flex;
    flex-direction: column;
    background-color: #222;
    border-radius: 1rem;
    padding: 0vh 3vh;
    height: 85vh;
    overflow: hidden;
    color: rgba(255,255,255,0.9)
}

.departure-row {
    display: grid;
    grid-template-columns: 20% 40% 20% 20%;
    align-items: center;
    width: 100%;
    font-size: 100%;
    padding: 1.7vh 0;
    border-bottom: solid 1px rgba(255,255,255,0.2);
}

.route-name {
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5/4;
    border-radius: 4rem;
    font-weight: 600;
    font-size: 2.5vh;
}

.headsign {
    padding: 0 5vw 0 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.platform-name {
    font-weight: 500;
}

.time-container {
    text-align: right;
    font-weight: 600;
}

.time-left {
    font-size: 1.2rem;
}

.ontime {
    font-size: 70%;
}

#fade {
    width: 88vw;
    height: 10vh;
    position: absolute;
    bottom: 4vh;
    border-radius: 0 0 1rem 1rem;
    left: 6vw;
    background: linear-gradient(rgba(30,30,30,0) 0%, rgba(30,30,30,1) 90%);
}