﻿body.anime main {
    -webkit-transition: all 2s;
    transition: all 0.5s;
}

#map {
    height: calc(100vh - 56px - 32px);
    width: 100%;
}

body.rbp-xSmall #map,
body.rbp-small #map {
    height: calc(100vh - 56px);
}

/* 
* Bootstrap 4 FAB Menu
* https://codepen.io/WebFikirleri/pen/MLXYKm
*/
.btn-group-fab {
    position: fixed;
    width: 50px;
    height: auto;
    right: 0.5em;
    bottom: 0.5em;
}

    .btn-group-fab div {
        position: relative;
        width: 100%;
        height: auto;
    }

    .btn-group-fab .btn {
        position: absolute;
        bottom: 0;
        border-radius: 50%;
        display: block;
        margin-bottom: 4px;
        width: 40px;
        height: 40px;
        margin: 4px auto;
    }

    .btn-group-fab .btn-main {
        width: 50px;
        height: 50px;
        right: 50%;
        margin-right: -25px;
        z-index: 9;
    }

    .btn-group-fab .btn-sub {
        z-index: 8;
        right: 50%;
        margin-right: -20px;
        -webkit-transition: all 2s;
        transition: all 0.5s;
        color: #ffffff;
    }

    /* Set initial bottom position */
    .btn-group-fab.inactive .btn-sub {
        bottom: 0 !important;
    }

    /* Minor adjustment to FA icon position */
    .btn-group-fab .btn-sub i {
        margin-left: -2px;
        margin-top: -2px;
    }

/* 
* Map controls / buttons
*/
.ol-layerswitcher-popup {
    top: .5em !important;
    right: 2.5em !important;
}

.ol-control.toggle {
    top: 0.5em;
    left: 0.5em;
}

.ol-control.menu i {
    color: #fff;
}

.ol-zoom {
    left: auto;
    right: 0.5em;
}

.ol-rotate {
    right: 0.5em;
    top: 4em;
}

.ol-search input.search {
    padding: 4px;
}

.ol-attribution {
    left: 0.5em;
    right: unset;
}

.ol-scale-line {
    left: 50%;
    transform: translate(-50%, 0);
    -ms-transform: translate(-50%, 0);
}

.ol-popup .ol-popup-content {
    padding: .5em;
}

#map-switch {
    position: absolute;
    right: 2.8em;
    z-index: 999;
    top: .7em;
}

#map-video-help {
    position: absolute;
    right: 0.5em;
    z-index: 999;
    bottom: .7em;
}

/* Styles for overlay, shared to different kind of overlay */
#map .default .base-data-overlay {
    height: auto;
    width: 300px;
    max-height: 500px;
    overflow-y: auto;
}

#map .default .geo-tagging-overlay {
    height: auto;
    width: 300px;
    max-height: 500px;
    user-select: text !important;
}

#map .default .overlay-header {
    height: 2.2em;
    line-height: 2.2em;
    background-color: rgb(131, 69, 140);
    color: white;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

#map .default .geo-tagging-overlay .overlay-header {
    background-color: rgb(60, 76, 154);
}

#map .default .overlay-body {
    font-size: 12px;
    line-break: normal;
}

/* Select buffer size overlay */
#map .default .buffer-overlay {
    height: 16em;
    min-width: 14em;
}

#map .default .bird-image-list li,
#map .default .ecology-image-list li {
    height: auto;
    font-size: 12px;
    padding: 5px;
    /*line-height: 1px;*/
}

/* Select style overlay */
#map .default .style-overlay {
    height: 16em;
    min-width: 14em;
}

/* Title style of ecology list */
#map .default .ecology-list-title {
    padding: .2em 0;
    margin-top: .8em;
    font-weight: bold;
    font-size: 14px;
}

    /* For first title, no need to add top margin */
    #map .default .ecology-list-title:first-child {
        margin-top: 0 !important;
    }

/* Mouse cursor tooltip */
#map-cursor-tooltip {
    position: fixed;
    padding: 2px 4px;
    border: 1px solid #000000;
    border-radius: 4px 4px;
    background: #ffffff;
    display: none;
    font-size: smaller;
    text-wrap: none;
}

body.show-cursor-tooltip #map-cursor-tooltip {
    display: block !important;
}

/* ODEN Side Menu */
#oden-side-menu {
    position: fixed;
    bottom: 0;
    left: -100%;
    width: 30%;
    max-width: 24em;
    background: rgba(255, 255, 255, .7);
    overflow: hidden;
    z-index: 1024;
}

body.anime #oden-side-menu {
    -webkit-transition: all 2s;
    transition: all 0.5s;
}

body.rbp-xSmall #oden-side-menu,
body.rbp-small #oden-side-menu {
    top: 56px;
}

    body.rbp-xSmall #oden-side-menu.active,
    body.rbp-small #oden-side-menu.active {
        left: 0;
        width: 100%;
    }

body.rbp-medium #oden-side-menu,
body.rbp-large #oden-side-menu,
body.rbp-xLarge #oden-side-menu {
    top: 88px;
}

    body.rbp-medium #oden-side-menu.active,
    body.rbp-large #oden-side-menu.active,
    body.rbp-xLarge #oden-side-menu.active {
        left: 0;
        width: 30%;
    }

body.rbp-medium.pinned main,
body.rbp-large.pinned main,
body.rbp-xLarge.pinned main {
    left: min(30%, 24em);
    -webkit-transition: all 2s;
    transition: all 0.5s;
}

#oden-side-menu .oden-side-menu-header,
#oden-side-menu .oden-side-menu-filter,
#oden-side-menu .oden-side-menu-content {
    background: #ffffff;
    border-radius: .5em;
    padding: .5em;
    margin: .5em .5em 0 .5em;
}

#oden-side-menu .oden-side-menu-header {
    display: flex;
    align-items: center;
}

    #oden-side-menu .oden-side-menu-header button {
        border: none;
    }

body.rbp-xSmall .oden-side-menu-header button[value="pin"],
body.rbp-small .oden-side-menu-header button[value="pin"] {
    display: none;
}

#oden-side-menu .oden-side-menu-content h6 {
    font-weight: bold;
}

#oden-side-menu .oden-side-menu-content table th,
#oden-side-menu .oden-side-menu-content table td {
    font-size: smaller;
}

#oden-side-menu-scroll {
    overflow-y: auto;
}

body.rbp-xSmall #oden-side-menu-scroll,
body.rbp-small #oden-side-menu-scroll {
    /* Full height - Side menu header (such as title and filter) - navbar height */
    height: calc(100vh - 116px - 56px);
}

body.rbp-medium #oden-side-menu-scroll,
body.rbp-large #oden-side-menu-scroll,
body.rbp-xLarge #oden-side-menu-scroll {
    /* Full height - Side menu header (such as title and filter) - navbar height - top green bar */
    height: calc(100vh - 116px - 56px - 32px);
}

#oden-side-menu-tree-form .filtered {
    display: none;
}

/*
* FAB iframe
*/
#main-fab iframe {
    width: 100%;
    height: 100%;
}

#main-fab-close {
    position: absolute;
    top: .5em;
    right: 1.5em;
}

/*
* Tree view in sidebar
*/
#oden-side-menu-tree-form .tree-node-toggle:hover {
    text-decoration: none !important;
}

#oden-side-menu-tree-form label {
    font-size: smaller;
}

#oden-side-menu-tree-form .float-left {
    /* Default full width to layer checkbox container */
    width: 100%;
}

    #oden-side-menu-tree-form .float-left.with-goto {
        /* Minus goto button */
        width: calc(100% - 36px);
    }

    #oden-side-menu-tree-form .float-left.with-download {
        /* Minus download button */
        width: calc(100% - 36px);
    }

    #oden-side-menu-tree-form .float-left.with-goto.with-download {
        /* Minus both buttons */
        width: calc(100% - 36px - 36px);
    }

    #oden-side-menu-tree-form .float-left .form-check {
        /* Layer checkbox */
        width: calc(100%);
    }

        #oden-side-menu-tree-form .float-left .form-check > img {
            /* Add margin to inline IMG legend */
            margin-top: 2px;
            vertical-align: top;
        }

        #oden-side-menu-tree-form .float-left .form-check > svg {
            /* Add margin to inline SVG legend  */
            vertical-align: top;
        }

        #oden-side-menu-tree-form .float-left .form-check > a.text-info {
            /* Add margin to info text */
            vertical-align: bottom;
        }

        #oden-side-menu-tree-form .float-left .form-check input[type=checkbox] {
            margin-top: .5rem;
        }

        #oden-side-menu-tree-form .float-left .form-check .form-check-label {
            vertical-align: middle;
            line-height: 24px;
        }

            #oden-side-menu-tree-form .float-left .form-check .form-check-label.text-truncate {
                /* Standard checkbox label */
                max-width: calc(100% - 2px);
            }

                #oden-side-menu-tree-form .float-left .form-check .form-check-label.text-truncate.with-legend {
                    /* Standard checkbox label minus the width of inline legend */
                    max-width: calc(100% - 2px - 32px);
                }

                    #oden-side-menu-tree-form .float-left .form-check .form-check-label.text-truncate.with-legend.with-hint {
                        /* Standard checkbox label minus the width inline legend + hint */
                        max-width: calc(100% - 2px - 22px - 32px);
                    }

                #oden-side-menu-tree-form .float-left .form-check .form-check-label.text-truncate.with-hint {
                    /* Standard checkbox label minus the width hint */
                    max-width: calc(100% - 2px - 22px);
                }

#oden-side-menu-ea-data > .select2 {
    margin-bottom: 0.25rem;
}

#oden-side-menu-ea-year button {
    width: 20%;
}

#oden-side-menu-path-data table thead th {
    white-space: nowrap;
}

#oden-side-menu-path-data table tbody td:first-child {
    vertical-align: middle;
}

#oden-side-menu-path-data table tbody td .btn-group-vertical {
    width: 8em;
}

#cart-download-modal .modal-footer {
    justify-content: flex-start !important;
}

#cart-download-modal form tbody tr.empty td {
    text-align: center;
    color: #cccccc;
}

#map-video-view .modal-dialog {
    max-width: 800px;
    margin: 30px auto;
}
    #map-video-view .modal-dialog .modal-content .modal-body {
        position: relative;
        padding: 0px;
    }
        #map-video-view .modal-dialog .modal-content .modal-body .close {
            position: absolute;
            right: -30px;
            top: 0;
            z-index: 999;
            font-size: 2rem;
            font-weight: normal;
            color: #fff;
            opacity: 1;
        }
