@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

.departures {
    margin-top: 5px;
}

.departures>div {
    display: flex;
    font-size: 19px;

    border-top: 1px solid lightgray;
    margin: 10px;
    margin-bottom: 0;
    margin-top: 0;
    padding: 10px;
}

.departures>div>.status {
    margin-left: auto;
}

.departures>div>.time {
    font-weight: 600;
    margin-right: 15px;
    font-size: 19px;
    display: flex;
    align-items: center;
}

.departures>div>.trainDetails {
    font-weight: 300;
}

.departures>div>.status {
    font-style: italic;
}

.departures>div.ok>.status {
    color: green;
    font-style: normal;
}

.departures>div.warning {
    background-color: #ffdd0058;
}

.departures>div.error {
    background-color: #ff000058;
}

.departuresInfo {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.station {
    font-size: 20px;
    text-align: center;
    font-style: italic;
    cursor: pointer;
}

.station>i {
    font-style: normal;
    color: black;
}

.station>div {
    display: inline-block;
}

.legend {
    font-size: 17px;
    margin: 5px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.legend>div {
    display: inline-block;
    padding: 3px;
    border-radius: 5px;
}
.legend>div>div {
    display: inline-block;
}
.legend>div>div:first-child {
    font-style: italic;
}

.legend>div {
    background-color: #ffdd0058;
    margin-bottom: 2px;
}

.legend>div:last-child {
    background-color: #ff000058;
}

.header {
    position: relative;
    width: 100%;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    padding: 20px;
    padding-bottom: 10px;
}

.header>.trainicon {
    background-color: red;
    width: 70px;
    height: 70px;
    font-size: 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 50%;
    cursor: pointer;
}
.rotateIcon {
    animation: headerIconAnimationRefresh 1s;
    animation-fill-mode: forwards;
}

.header>.title {
    font-size: 24px;
    font-weight: bold;
    margin-left: 15px;
}

@keyframes headerIconAnimationRefresh {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(370deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

.splash {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;

    animation-name: splashAnimationOpacity;
    animation-duration: 0.5s;
    animation-delay: 1.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
}

.splash>.title {
    position: absolute;
    top: calc(45% + 170px / 2);
    left: 50%;
    transform: translate(-50%, 0);
    text-align: center;
    font-weight: bold;
    font-size: 30px;
    width: 100%;
}

.splash>.title>div {
    font-size: 20px;
    line-height: 5px;
    font-weight: normal;
}

.splash>.trainicon {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 170px;
    height: 170px;
    background-color: red;
    border-radius: 50%;
    color: white;
    font-size: 70px;

    display: flex;
    align-items: center;
    justify-content: space-around;

    animation-name: splashAnimationRotate;
    animation-duration: 1s;
    animation-timing-function: ease-in-out;
    animation-delay: 0.3s;
    animation-fill-mode: forwards;
}

.splash>.trainicon>i {
    animation-name: splashAnimationIcon;
    animation-duration: 1.5s;
    animation-delay: 1.2s;
    animation-fill-mode: forwards;
}

@keyframes splashAnimationRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    70% {
        transform: translate(-50%, -50%) rotate(370deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes splashAnimationOpacity {
    0% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes splashAnimationIcon {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(2);
    }
}