﻿/* Always set the map height explicitly to define the size of the div
        * element that contains the map. */
#map {
    height: 100%;
    position: relative;
}
/* Optional: Makes the sample page fill the window. */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.ol-popup {
    position: absolute;
    background-color: white;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 280px;
}

#x {
    position: absolute;
    background: white;
    color: black;
    top: 0px;
    right: 0px;
    border-width: 1px;
}

:root {
    --result-form-height: calc(100% - 200px);
}

#routeResult {
    position: absolute;
    left: 5px;
    /*bottom: 10px;*/
    top: 10px;
    background-color: white;
    width: 350px;
    display: none;
    border-style: outset;
    border-width: 2px;
    border-color: whitesmoke;
    transition-property: top;
    transition-duration: 5s;
    max-height: calc(100% - 75px);
}

#routeResultDetail {
    overflow-y: auto;
    overflow-x: hidden;
    /*max-height: var(--result-form-height);*/
}

.routeDetail {
    padding: 10px;
    border-top: outset;
    border-width: 4px;
    border-color: lightgray;
}

#routeForm {
    padding: 10px;
    padding-top: 30px;
    /*margin:10px;*/
    width: 100%;
    text-align: center;
    border-radius: 5px;
    border-width: thin;
}

.routeFormInputElement {
    /*padding:10px;*/
    /*//margin:10px;*/
    width: 100%;
    font-weight: bold;
    border: none;
}

.routeFormElement {
    /*padding-bottom: 10px;*/
    border-radius: 5px;
    border-width: 0.1px;
    border: solid;
    margin-bottom: 5px;
    border-color: whitesmoke;
    /*box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);*/ /*//margin:10px;*/
    /*width:100%;*/
}

.routeElement {
    border-bottom: solid;
    border-top: solid;
    border-width: 2px;
    border-color: whitesmoke;
    /*padding: 10px;*/
    display: block;
}

.selectedRouteElement {
    display: block;
}

.unselectedRouteElement {
    display: none;
}

.stepBlock {
    display: flex;
    padding-top: 5px;
}

.stepDescription {
    flex: 1;
}

.walking {
    border-left: dotted;
    border-color: green;
    border-width: medium;
    width: 10px;
    padding-right: 5px;
}

.transit {
    border-left: solid;
    border-color: green;
    border-width: medium;
    width: 10px;
    padding-right: 5px;
}

#hideResult {
    position: absolute;
    background: white;
    color: black;
    top: -15px;
    left: 130px;
    width: 90px;
    height: 30px;
    display: none;
}

#showResult {
    position: absolute;
    background: white;
    color: black;
    bottom: 0px;
    left: 130px;
    width: 90px;
    height: 30px;
    display: none;
}


.routeResultShowResult {
    top: 75px;
}

button {
    background-color: #fff;
    border: solid;
    border-radius: 5px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
    border-width: 1px;
}

.filter-green {
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
    fill: red;
}
