/* Copyright (c) 2021, United States Government, as represented by the
 * Administrator of the National Aeronautics and Space Administration.
 *
 * All rights reserved.
 *
 * The "ISAAC - Integrated System for Autonomous and Adaptive Caretaking
 * platform" software is licensed under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */

/* Default to sans-serif where no font is specified. */

body {
    font-family: sans-serif;
}

.isaac-flex {
    display: flex;
    flex-flow: column;
    height: 100%;
}

.pnlm-container {
    flex: 1 1 auto;
}

.isaac-title {
    font-size: 1.2em;
    font-weight: bold;
    vertical-align: middle;
    margin-right: 0.5em;
}

/**********************************************************************
 * Overview map
 **********************************************************************/

.pnlm-overview-map {
    position: absolute;
    width: 184px;
    height: 200px;
    right: 4px;
    top: 4px;
    border-radius: 4px;
    background: url('../media/map.png') no-repeat #fff;
    background-origin: content-box;
    padding: 8px;
    cursor: default;
    display: inline;
}

.pnlm-map-marker {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 2px;
    background-color: #ccc;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.pnlm-map-highlight {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: #000;
    transform: translate(-50%, -50%);
    z-index: 15;
    display: none;
}

.pnlm-map-current {
    position: absolute;
    width: 18px;
    height: 18px;
    background: url('../media/arrow.png');
    transform: translate(-50%, -50%);
    z-index: 5;
}

/**********************************************************************
 * Source image custom hot spot and tune Pannellum hot spot style
 **********************************************************************/

.isaac-source-image {
    background-image: url('../media/camera.png') !important;
    background-position: 0 0px !important;
}

.isaac-source-image.isaac-annotated {
    background-image: url('../media/camera_highlight.png') !important;
}

.isaac-source-image.isaac-inspection {
    background-image: url('../media/inspection.png') !important;
}

/* make this wider so scene link tooltips don't have to wrap */
div.pnlm-tooltip span {
    max-width: 400px;
}

/**********************************************************************
 * Nav bar and view options dropdown menu
 **********************************************************************/

.isaac-navbar {
    flex: 0 1;
    padding: 5px;
}

.isaac-drop-button {
    background-color: #ddd;
    color: #666;
    padding: 6px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid #666;
}

.isaac-drop-button:hover, .isaac-drop-button:focus {
    background-color: #ddd;
    color: black;
}

.isaac-dropdown {
    position: relative;
    display: inline-block;
}

.isaac-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    overflow: auto;
    border: 1px solid black;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.isaac-dropdown-content .isaac-toggle-entry {
    font-size: 16px;
    color: black;
    padding: 3px 4px;
    text-decoration: none;
    display: block;
}

.isaac-dropdown .isaac-toggle-entry:hover {
    background-color: #ddd;
}

.isaac-dropdown .isaac-toggle-entry .checkbox:before {
    content: "\2610";
}

.isaac-dropdown .isaac-toggle-entry.checked .checkbox:before {
    content: "\2611";
}

.isaac-dropdown .show {
    display: block;
}

#isaac-load-input {
    display: none;
}
