* {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}
body {
    background-color: #0e1014;
    color: #f9f9f9;
}
.logo {
    padding: 15px;
    font-size: 1.2rem;
}
.logo span:first-child {
    background-color: #f9f9f9;
    padding: 5px 10px;
    border-radius: 5px;
    color: #0e1014;
}
.logo span:last-child {
    color: #f9f9f9;
}
.main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
span.location {
    font-size: 1.3rem;
    display: block;
}
.buttons {
    flex-direction: row;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    overflow: hidden;
    display: none;
}
.buttons[data-active="1"] {
    display: flex;
}
button {
    border: none;
    color: #f9f9f9;
    outline: none;
    width: 50%;
    padding: 10px 15px;
}
button:hover {
    cursor: pointer;
}
button.start {
    background-color: #7373ab;
}
button.start:hover {
    background-color: #5c5c8a;
}
button.destination {
    background-color: #ab7373;
}
button.destination:hover {
    background-color: #8a5c5c;
}
input {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: normal;
    color: #f9f9f9;
    outline: none;
    background-color: #1f232b;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    width: 20rem;
}
input[data-location-active="1"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.locations {
    box-sizing: border-box;
    text-align: left;
    font-weight: normal;
    display: none;
    width: 100%;
    border-radius: 0 0 5px 5px;
    background-color: #31353d;
}
.locations div {
    padding: 10px 15px;
    cursor: pointer;
}
.locations div span {
    font-weight: normal;
}
.locations div:hover, .locations div.active {
    background-color: #1f232b;
}
.locations[data-active="1"] {
    display: block;
}

.loc {
    text-align: left;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
    background-color: #1f232b;
    margin: 10px;
}
.loc .type {
    align-self: stretch;
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    padding: 10px 15px;
    background-color: #7373ab;
    border-radius: 5px 0 0 5px;
}
.logo {
    cursor: pointer;
}
.switch:hover {
    cursor: pointer;
}
.switch {
    flex-direction: column;
    justify-content: center;
    padding: 10px 15px;
    display: inline-flex;
    margin: 10px;
    font-size: 1.3rem;
    background-color: #7373ab;
    border-radius: 5px;
}
.loc .name {
    padding: 0 10px;
}
.bus {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
    background-color: #1f232b;
    margin: 10px;
}
.bus .num {
    align-self: stretch;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    padding: 10px 15px;
    background-color: #7373ab;
    border-radius: 5px 0 0 5px;
}
.bus .timing sup {
    color: #f08181;
}
.bus .timing {
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
    background-color: #1f232b;
}
.bus .timing span:first-child {
    font-size: 1.2rem;
}
.bus .timing span:last-child {
    font-size: .75rem;
}
.history {
    margin-top: 20px;
}
.history-item:hover {
    cursor: pointer;
}
.history-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 15px;
    background-color: #1f232b;
    border-radius: 5px;
    margin: 10px;
    width: auto;
}
.history span {
    padding: 0 5px;
}
.history-from:before {
    content: "From ";
    color: #7373ab;
    font-size: 1.2rem;
    font-weight: 600;
}
.history-to:before {
    content: "To ";
    color: #f08181;
    font-size: 1.2rem;
    font-weight: 600;
}
@media only screen and (max-width: 1000px) {
    .switch {
        display: flex;
    }
    .bus {
        flex-direction: column;
        align-items: flex-start;
    }
    .bus .num {
        border-radius: unset;
    }
    .bus .num:first-child {
        border-radius: 5px 5px 0 0;
    }
}