/*
 * stylesheets
*/

/*
*  simlet
*/

body {
    font-family: 'WorkSans', 'Montserrat', Tahoma, Geneva, sans-serif;
    overflow: hidden;
}

@font-face {
    font-family: "Montserrat";
    src: url("./fonts/Montserrat-Regular.ttf");
}
@font-face {
    font-family: "WorkSans";
    src: url("./fonts/WorkSans-Regular.ttf");
}

ul {
    padding: 0px 4px;
}

li {
    list-style: none;
}


/* Map */
#map {
    height:100vh;
    width:100vw;
}

/* Crosshair */
#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    display: none;
}

/* alert */
#simlet-alert {
    position: absolute;
    right: 8px;
    bottom: 2px;
}

#simlet-alert .alert {
    line-height: 0.3em;
    font-size: 0.9em;
    margin-bottom: 5px;
}

#simlet-alert button.close {
    top: -0.45em;
    font-size: 1.5em;
}

/* Topbar */
#simlet-topbar {
    background-color: rgba(245,245,245,0.7);
    min-height: 40px;
    height: auto;
}
/*#simlet-topbar .navbar-header {
    padding-right: 20px;
}*/

.simlet-box {
    position: absolute;
    height: auto;
    max-height: calc(100vh - 65px);
    overflow: auto;
    font-size: 0.85em;
    display: none;
}

.simlet-box-topleft {
    top: 58px;
    left: 6px;
    min-width: 220px;
}

.simlet-box-topright {
    top: 58px;
    right: 6px;
    min-width: 220px;
}

.simlet-box .panel-heading, .simlet-box .panel {
    /*margin-bottom: 5px;*/
}

.simlet-box .panel-heading {
    padding: 5px 8px;
}

.simlet-box .panel-body {
    padding: 5px 8px;
}

.simlet-box .table tr {

}

.simlet-box .table caption {
    padding-left:6px;
    font-weight: bold;
}

.simlet-box .table > thead > tr > th,
.simlet-box .table > tbody > tr > th,
.simlet-box .table > tfoot > tr > th,
.simlet-box .table > thead > tr > td,
.simlet-box .table > tbody > tr > td,
.simlet-box .table > tfoot > tr > td {
    padding: 5px;
    line-height: 0.9em;
    font-size: 0.9em;
}

.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
    padding: 5px;
}

/*simlet side panel */
.simlet-sidepanel {
    position: absolute;
    top: 58px;
    width: 45%;
    bottom: 6px;
    height: auto;
    margin-bottom: 0px;
    overflow: auto;
    font-size:0.9em;
    display: none;
}

#simlet-sidepanel-right {
    right: 6px;
}

#simlet-sidepanel-left {
    left: 6px;
}

.simlet-sidepanel .body {
    /*    height:100%;*/
}

.simlet-fullpanel {
    position: absolute;
    top: 58px;
    width: 96%;
    bottom: 6px;
    height: auto;
    margin-bottom: 0px;
    overflow: auto;
    font-size:0.9em;
    display: none;
    left:2%;
}

/*.simlet-sidepanel-container {
    overflow-y: auto;
}*/

#report-form .container {
    width: auto;
}

/*
*  OpenLayers Overrides

*/
.ol-zoom {
    top: auto;
    bottom: 4px;
    left: 4px;
    right: auto;
}

.ol-rotate {
    top: auto;
    left: 7px;
    bottom: 4em;
}

.ol-mouse-position {
    position: absolute;
    top: auto;
    bottom: 6px !important;
    right: 8px !important;
    font-size: 0.8em;
}

/*
 * ol-popup
 */

.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: 10px;
    border-radius: 10px;
    border: 1px solid #cccccc;
    bottom: 12px;
    left: -50px;
    min-width: 251px;
    font-size: 0.8em;
    z-index: 10;
}
.ol-popup:after, .ol-popup:before {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}
.ol-popup:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}
.ol-popup:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}
.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
    padding: 4px;
}

/*
 * ol-overviewmap
 */
.ol-overviewmap,
.ol-overviewmap.ol-uncollapsible {
    bottom: 0px;
    left: auto;
    right: 0px;
    top: auto;
}

.ol-overviewmap:not(.ol-collapsed)  {
    border: 1px solid grey;
    padding:0px;
    margin-right: 5px;
}

.ol-overviewmap .ol-overviewmap-map {
    border: none;
    /*width: 300px;*/
}

.ol-overviewmap .ol-overviewmap-box {
    border: 2px dotted black;
}

.ol-overviewmap button {
    position: absolute;
    bottom: 6px !important;
    left: auto !important;
    right: 6px !important;
    top: auto !important;    
}

/*.ol-overviewmap:not(.ol-collapsed) button{
    position: absolute;
    bottom: 6px;
    left: auto;
    right: 6px;
    top: auto;
}*/

/*
 *  Bootstrap Overrides
 */

.dropdown-menu {
    min-width:0px;
}

/*.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
    box-shadow: none;
}*/

.btn {
    box-shadow: none;
}

.btn-group .btn {
    padding: 4px 8px !important;
    font-size: 20px;
    line-height: 24px;
}

.btn.active, .btn:active {
}

.btn.pressed {
    background-color: #567 !important;
    color: #fff !important;
}

.btn.pressed2 {
    background-color: #aab0b0 !important;
    color: #fff !important;
}

.popover {
    background-color: rgba(255,255,255,0.7) !important;
    font-size: 11px !important;
}

.navbar-brand {
    color: #456;
}

/*.navbar-brand img.logo {
    top:0;
    left:0;
    position: absolute;
}*/

.navbar-toggle, .navbar {
    margin-bottom: 0px !important;
}

/* Trenner zwischen Tool-Gruppen */
.navbar .btn-group, .navbar > span {
    padding-right: 4px;
}

.navbar span .btn-group {
    padding-right: 0px;
}

.modal .container {
    width: auto;
}

.checkbox, .radio {
    margin-top:0px;
    margin-bottom:0px;
}

/* Bootstrap Typeahead */
.navbar-right .typeahead {
    left: auto !important;
    right: 0px;
}

.form-group-sm select.form-control{
    height: 24px;
    padding: 4px 8px;
    font-size: 0.9em;
}

/* panel */
.panel-title {
    font-size: 1em;
    cursor: default;
}
