body {
    font-family: Roboto;
    background-color: #000;
    color: #fff;
    margin: 0;
}

.table_cell.right_aligned {
    text-align: right;
}

.table_cell.less_padding {
    padding-left: 2px;
    padding-right: 2px;
}

/* Line list box */

.markerText {
    /* border: 1px solid black !important; */
    border: none !important;
    /* aspect-ratio: 1 / 1 !important; */
    /* width: 10px; */
    border-radius: 50% !important;
    text-align: center;
    background-color: #ffc039 !important;
}

.activeJourneyPattern {
    background-color: #004700;
}

.activeJourneyPattern_period {
    background-color: #474700;
}

.lineListBox {
    background-color: #000;
    color: #fff;
    padding-right: 7px;
    padding-left: 7px;
    padding-bottom: 10px;
    width: 220px;
    position: absolute;
    bottom: 300px;
    top: 58px;
    bottom: 27px;
    left: 10px;
    overflow-y: scroll;
    border: 2px solid #aaa;
    text-align: center;
    border-radius: 5px;
    border-collapse: collapse;
}

.boxActive {
    background-color: #ffffff !important;
    color: #000 !important;
}

.lineBox {
    border: 3px solid transparent;
    position: relative;
    justify-content: center;
    margin: 1px;
    float: left;
    padding: 2px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    flex: 1 1 0px;
    min-width: fit-content;
    flex-basis: 11%;
}

.lineBox.autoWidth {
    min-width: 40px;
    width: unset;
    white-space: nowrap;
}

.lineBox.selected {
    min-width: 150px;
}

.lineBox.disabled {
    border-color: #fff !important;
    cursor: default !important;
}

.lineHeader {
    cursor: pointer;
}

.lineBox.preview {
    display: block !important;
    float: none !important;
}

.lineBox.marker {
    margin-left: -30px !important;
    margin-top: -20px !important;
}

.lineBoxSingle {
    display: block;
    margin: 1px;
    padding: 4px;
    border-radius: 10px;
    width: 40px !important;
    text-align: center;
    font-size: 15px;
}

.lineGroup {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

/* Map overlay elements */

.lineTableContainer {
    position: fixed;
    bottom: 27px;
    left: 256px;
    padding: 7px;
    font-size: 20px;
    border: 2px solid #aaa;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
}

.departureBox {
    position: fixed;
    top: 58px;
    left: 256px;
    padding: 7px;
    border: 2px solid #aaa;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
}

.departureBox table {
    border-collapse: collapse;
}

.departureBox td,
th {
    padding-left: 5px;
    padding-right: 5px;
}

/* Misc */
h2 {
    margin-bottom: 0;
}

.popupHeader {
    font-size: 20px;
    width: 196px;
    text-align: center;
}

h3,
h2 {
    padding-top: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border: 2px solid #aaa;
    border-radius: 15px;
}

button,
input,
select {
    background-color: #000;
    color: #fff;
    border-color: #888;
}

.right {
    text-align: right;
}

/* Line list */

.lineListButtons {
    width: 100%;
    margin-bottom: 5px;
    margin-top: -9px;
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
}

.lineListToggle {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 10px;
    padding-right: 7px;
    padding-left: 7px;
    font-size: 20px;
    width: 220px;
    background-color: #000;
    text-align: center;
    color: white;
    border: 2px solid #aaa;
    border-radius: 15px;
}

.lineListToggle.show {
    display: none;
}

.lineListToggle.hide {
    display: block;
}

@media only screen and (max-width: 600px) {
    .lineListBox {
        display: none;
    }

    .lineListToggle.show {
        display: block;
    }

    .lineListToggle.hide {
        display: none;
    }
}

@media only screen and (max-width: 350px) {
    .lineListBox {
        width: unset;
        right: 10px;
    }

    .lineListToggle {
        width: unset;
        right: 10px;
    }
}

h3 a {
    color: #fff;
    font-size: small;
}

/* Leaflet stuff */

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    border: 2px solid #aaa !important;
    background-color: #000 !important;
    color: #fff !important;
}

.map {
    position: absolute;
    width: 100vw;
    height: calc(100vh - 48px);
    bottom: 0vh;
    overflow-x: hidden;
    background-color: #000 !important;
    z-index: -1;
}

.leaflet-control-zoom-in {
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.leaflet-control-zoom-out {
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 5px;
}

.leaflet-control-layers-expanded,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    border: 2px solid #aaa !important;
    background-color: #000 !important;
    color: #fff !important;
}

.leaflet-control-zoom-in {
    border-bottom: 1px solid #aaa !important;
}

.leaflet-control-layers-selector {
    background-color: #333 !important;
}