body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background-color: #000;
    color: white;
}

a {
    color: white;
}

select {
    max-width: 288px;
}

.liftContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.imageContainer {
    width: fit-content;
    display: flex;
}

.firstRow {
    z-index: 10;
    position: sticky;
    top: 0
}

.liftInfoBox {
    /* width: 100%; */
    display: flex;
    align-items: start;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}


.floorTable {
    border: 2px solid rgb(255, 255, 255);
    margin: 5px;
    border-collapse: separate;
    padding: 10px;
    align-self: center;
}

.imageTable {
    margin: 5px;
    border-collapse: separate;
    padding: 10px;
}

.floorTable tr {
    background-color: #000;
}

/* Line list box */

.liftList {
    width: fit-content;
    margin: auto;
}

.liftList td,
.liftList th {
    border-left: 1px solid rgb(131, 131, 131);
    border-right: 1px solid rgb(131, 131, 131);
    padding: 5px;
}

th.nowrap,
td.nowrap {
    white-space: nowrap;
}

td.liftData {
    padding-left: 10px;
}

/* Map overlay elements */

.tableContainer {
    position: fixed;
    bottom: 27px;
    max-width: 800px;
    left: 27px;
    padding: 7px;
    font-size: 17px;
    border: 2px solid #aaa;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
}

.tableContainer.admin {
    max-width: unset;
}

/* Misc */
h1 {
    display: block;
    margin: auto;
    width: fit-content;
    margin-top: 30px;
}

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;
}

button,
input,
select,
textarea {
    background-color: #000;
    color: #fff;
    border-color: #888;
}

.right {
    text-align: right;
}

table {
    border-collapse: collapse;
}

/* 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: 100vh;
    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;
}

@media only screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }

    th,
    td {
        font-size: 10px;
    }

    input {
        font-size: 10px;
    }

    .liftListImage {
        max-width: 250px;
        max-height: 150px;
    }
}

.guideImages img {
    max-width: 500px;
    max-height: 300px;
    margin: 10px;
}

.guideImages {
    flex-wrap: wrap;
    display: flex;
}

/* LiftList */

.headerRow {
    font-size: larger;
    padding: 10px !important;
    background-color: #000;
    border: 1px solid rgb(131, 131, 131);
}

.headerRow2 {
    background-color: #222222;
    font-size: large;
    padding: 5px !important;
    border: 1px solid rgb(131, 131, 131);
}

.liftList tr:nth-child(odd) {
    background-color: #222222;
}

.liftListTable {
    border-collapse: separate;
    width: 810px;
    padding: 5px;
    border: 2px solid white;
    margin: 5px;
}

.liftListTable.narrow {
    width: 400px;
}


.liftListImage {
    max-width: 500px;
    max-height: 300px;
}

.noData {
    background-color: #220000 !important;
}

tr:nth-child(odd) .noData {
    background-color: #440000 !important;
}

.someData {
    background-color: #222200 !important;
}

tr:nth-child(odd) .someData {
    background-color: #444400 !important;
}

.allData {
    background-color: #002200 !important;
}

tr:nth-child(odd) .allData {
    background-color: #004400 !important;
}

/* View Lift */

.liftImage {
    height: 500px;
}

.floorCell {
    min-width: 50px;
    display: flex;
    vertical-align: middle;
    margin: 5px;
}

.floor {
    height: 50px;
    min-width: 50px;
    font-size: 25px;
    vertical-align: middle;
    background-color: #000000;
    border: 2px solid gray;
    line-height: 46px;
    text-align: center;
}

.floor.active {
    background-color: #494949;
}

.floor.locked {
    background-color: #770000 !important;
    border-color: #bb0000;
}

.floor.main {
    background-color: #007700 !important;
    border-color: #00bb00 !important;
}

.unknown.locked {
    background-color: transparent !important;
    border-color: #bb0000;
}