/*  General */
button,
input {
    background-color: #000;
    color: #fff;
    border-color: #444;
}

button:disabled {
    color: #888;

}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #222;
}

.content_container {
    display: flex;
    flex-grow: 1 1;
    z-index: 200;
}

.map {
    height: 100vh;
    width: calc(100vw - 500px);
    /* width: max-content; */
}

.tab_search {
    height: 100vh;
    width: 500px;
    /* height: 100%; */
    background-color: #222;
    color: #fff;
    overflow-y: scroll;
}

.tabHeader {
    text-align: center;
    position: relative;
}

.hidden {
    display: none !important;
}

.transportmode.air {
    background-color: #800664;
}

.air .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/air.svg");
}

.transportmode.bus {
    background-color: #c5044e;
}

.bus .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/bus.svg");
}

.transportmode.cableway {
    background-color: #78469a;
}

.cableway .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/cableway.svg");
}

.transportmode.coach {
    background-color: #427500;
}

.coach .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/bus.svg");
}

.transportmode.foot {
    background-color: #292929;
}

.foot .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/foot.svg");
}

.transportmode.funicular {
    background-color: #78469a;
}

.funicular .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/funicular.svg");
}

.transportmode.metro {
    background-color: #bf5826;
}

.metro .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/metro.svg");
}

.transportmode.rail {
    background-color: #00367f;
}

.rail .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/rail.svg");
}

.transportmode.tram {
    background-color: #78469a;
}

.tram .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/tram.svg");
}

.transportmode.water {
    background-color: #0c6693;
}

.water .icon {
    background-image: url("https://reise.candycrystal.me/assets/img/water.svg");
}

.stopInputBorder {
    background-color: #444;
    /* width: 100%; */
    margin: 5px 15px;
    padding: 5px;
    border-radius: 10px;
    border: 2px solid #aaa;
    font-size: 20px;
    display: flex;
    justify-content: left;
    /* flex-grow: 1 9; */
}

.stopInputBorder label {
    width: 60px;
    display: inline-block;
    user-select: all;
    cursor: pointer;
}

.stopInputBorder input {
    background-color: #333;
    border: none;
    display: inline-block;
    width: 70%;
    font-size: 20px;
}

/* Autocomplete */

.autocomplete_dropdown {
    /* box-sizing: border-box; */
    /* display: block; */
    position: absolute;
    text-align: left;
    width: 450px;
    margin-left: 25px;
    z-index: 45;
}

.autocomplete_table {
    width: 450px;
    /* margin-left: 25px; */
    padding: 10px;
    background-color: rgb(88, 88, 88);
    border: 2px solid black;
    border-radius: 10px;
}

.resultName {
    font-size: larger;
}

.autocomplete_transportmode {
    background-color: blue;
    height: 40px;
    width: 40px;
    margin: 5px;
    border-radius: 20px;
}

.autocomplete_transportmode .icon {
    margin-top: 5px;
    margin-left: 5px;
    height: 30px;
    background-size: 30px;
    background-repeat: no-repeat;
}

/* Filters */

.filter_dropdown {
    position: absolute;
    text-align: left;
    width: 450px;
    margin-left: 25px;
    z-index: 45;
}

.filter_table {
    width: 450px;
    /* margin-left: 25px; */
    padding: 10px;
    background-color: rgb(88, 88, 88);
    border: 2px solid black;
    border-radius: 10px;

}


/* Tabs */

.switchTabs {
    /* width: 100%; */
    display: flex;
    justify-content: space-around;
    background-color: #444;
    margin: 5px;
    border-radius: 5px;
}

.tabButton {
    cursor: pointer;
    width: 100%;
    height: 40px;
    font-size: 20px;
    margin: 5px;
    border-radius: 5px;
    border-color: transparent;
    background-color: #444;
}

.tabButton:disabled,
.tabButton:disabled:hover {
    background-color: #000;
    cursor: not-allowed;
}

.tabButton:hover {
    background-color: #333;
}

/* Departures tab */

.callTable {
    margin: auto;
    text-align: left;
    border-collapse: collapse;
}

.transportmode_list {
    display: inline-flex;
    height: max-content;
    vertical-align: middle;
}

.departure_table {
    width: 100%;
}

.quay_circle {
    background-color: #ffc800;
    padding: 0px 5px;
    border: 1px solid black;
    border-radius: 10px;
    color: #000;
}

.line_circle {
    padding: 0px 5px;
    border: 1px solid transparent;
    min-width: 20px;
    border-radius: 10px;
}

/* Stop place popup */
.stopPlacePopup .leaflet-popup-content-wrapper {
    background-color: #222;
    color: #fff;
    /* width: 300px; */
}

.stopPlacePopup h1 {
    text-align: center;
}

.stopPlacePopupButtons {
    display: flex;
    justify-content: space-evenly
}

.stopPlaceMarkerIcons {
    display: flex;
    justify-content: center;
    margin-top: 1px;
}

.stopPlaceMarker {
    width: 170px;
}

.stopPlaceMarker p {
    text-align: center;
    margin-top: 0px;
    white-space: nowrap;
    text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
        1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}

.stopPlaceMarkerIcons .transportmode {
    margin: 2px;
}

.map_transportmode {
    background-color: blue;
    height: 30px;
    width: 30px;
    margin: 5px;
    border-radius: 20px;
}

.map_transportmode .icon {
    margin-top: 5px;
    margin-left: 5px;
    height: 20px;
    background-size: 20px;
    background-repeat: no-repeat;
}

/* Journey tab */

.journeySuggestionBorder {
    background-color: #5e5e5e;
    /* width: 100%; */
    margin: 5px 15px;
    padding: 5px;
    border-radius: 10px;
    border: 2px solid #aaa;
    font-size: 20px;
    /* display: flex;
    justify-content: left; */
    /* flex-grow: 1 9; */
}

.journey_time {
    width: 50%;
}

.journey_duration {
    width: 50%;
    text-align: right;
}

.journeySuggestionHeader {
    background-color: #222;
    /* width: 100%; */
    margin: 5px 15px;
    padding: 5px;
    border-radius: 10px;
    font-size: 20px;
    text-align: center;
}

.journey_legs {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
}

.journey_expand {
    width: 10%;
    align-items: center;
    display: flex;
}

.journey_expand_button {
    background-color: #1f8b04;
    height: 30px;
    width: 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 26px;
    vertical-align: middle;
}

.preview_journey {
    display: flex;
    flex-direction: column;
}

.preview_journey .leg {
    display: flex;
    margin: 5px 0px;
}

.leg_time {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 12%;
    text-align: right;
}

.leg_line {
    width: 5px;
    margin: 0px 10px;
}

.leg_content {
    display: flex;
    flex-direction: column;
}

.leg_content .legFrame {
    display: flex;
    align-items: center;
    margin: 10px 0px;
}

.leg_quay {
    color: #bbb;
}

.journey_row {
    display: flex;
}

.legBox {
    display: flex;
    background-color: blue;
    align-items: center;
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    font-size: 15px;
}

.legBox .icon {
    height: 20px;
    width: 20px;
    margin: 0px 4px;
    background-size: 20px;
    background-repeat: no-repeat;
    /* background-color: red; */
    /* border-radius: 15px; */
    /* margin-left: 5px; */
}

.journeySearchButton {
    cursor: pointer;
    width: 100%;
    height: 40px;
    font-size: 20px;
    margin: 5px;
    border-radius: 5px;
    border-color: transparent;
    background-color: #000000;
}

.journeySearchButton:disabled,
.journeySearchButton:disabled:hover {
    background-color: #000;
    cursor: not-allowed;
}

.journeySearchButton:hover {
    background-color: #333;
}

/* @media screen and (orientation:portrait) {
    .map {
        height: 100vh;
        width: 100vw;
    }

    .tab_search {
        top: 10vh;
        width: 100vw;
        height: 90vh;
        display: block;
        position: absolute;
        z-index: 45645600;
        resize: vertical;
        max-height: 90vh;
    }

    .tab_search.collapsed {
        top: 90vh;
        height: 10vh;
        overflow: hidden;
    }

} */