﻿/**
 * This file contains site specific styles for the /RealTime/RoverStatus page.
 * Use this file if you want to adjust styles specific for this page.
 */

.toolbar .left {
    float: left;
    width: auto;
}

.toolbar .right {
    float: right;
    width: auto;
}

.toolbar label {
    display: inline;
}

#infobar {
    padding: 5px 0;
}

/*
 * Connection Status
 */
#connectionStatus {
    display: none;
    opacity: 0;
}
    #connectionStatus.loading, #connectionStatus.disconnected {
        opacity: 1;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        align-items: center;
        -webkit-transition: opacity 1s linear 1.5s;
        -moz-transition: opacity 1s linear 1.5s;
        -ms-transition: opacity 1s linear 1.5s;
        -o-transition: opacity 1s linear 1.5s;
        transition: opacity 1s linear 1.5s;
    }

    #connectionStatus.loading, #connectionStatus.disconnected.wasNotConnected {
        display: flex;
        bottom: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1000;
        align-items: center;
    }

    #connectionStatus.loading .content, #connectionStatus.disconnected .content {
        background-color: #ffffff;
        -webkit-box-shadow: 0 3px 14px rgba(0,0,0,0.4);
        box-shadow: 0 3px 14px rgba(0,0,0,0.4);
        padding: 10px;
        box-sizing: border-box;
    }

    #connectionStatus.loading .content {
        background: url('../Images/Icons32/ajax-loader.gif') no-repeat 15px center #ffffff;
        padding-left: 60px;
        margin: 0 auto;
        width: 90%;
        height: 70px;
        display: flex;
        align-items: center;
    }

    #connectionStatus.loading.wasConnected {
        display: none;
    }

    #connectionStatus.disconnected.wasConnected {
        opacity: 1;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        -webkit-transition: opacity 1s linear 1.5s;
        -moz-transition: opacity 1s linear 1.5s;
        -ms-transition: opacity 1s linear 1.5s;
        -o-transition: opacity 1s linear 1.5s;
        transition: opacity 1s linear 1.5s;
    }


    #connectionStatus.disconnected .content {
        color: #FF0033;
        text-align: center;
        width: 90%;
        margin: 0 auto;
        text-shadow: none;
    }

    #connectionStatus.disconnected.wasConnected .content {
        background: #FF0033;
        -webkit-box-shadow: 0 3px 14px rgba(0,0,0,0.4);
        box-shadow: 0 3px 14px rgba(0,0,0,0.4);
        padding: 10px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
        color: #FFFFFF;
        text-align: center;
    }


/* Pinned Markers */
.roverMarker.pinned:after {
    content: "\ea37";
    transform: rotate(45deg);
    position: absolute;
    left: 30%;
    top: -25%;
}

/* Solution Styles */
.roverMarker.network:before {
    color: #1c862d;
}

.roverMarker.singleBase:before {
    color: #4D77bb;
}

.roverMarker.noFix:before {
    color: #c32f2e;
}

.draggable-handle {
    display: none;
}

/*
 * Leaflet
 */
.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page {
    position: inherit;
}


html, body,
.ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page,
#content, #roverMap, .pageContent, #calloutCardWrapper {
    height: 100%;
    width: 100%;
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip,
.leaflet-bar a:first-child,
.leaflet-bar a:last-child {
    border-radius: 0;
}

.leaflet-popup-tip-container {
    width: 11px;
    position: absolute;
    overflow: hidden;
    top: 46.5%;
    left: -21px;
    margin-top: -9px;
    height: 32px;
    padding-left: 10px;
}

.leaflet-popup-tip {
    width: 17px;
    height: 17px;
    padding: 1px;
    margin: 5px 0 0 5px;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.leaflet-control-attribution, .leaflet-control-attribution a {
    font-size: 12px;
}

    #calloutContent .title,
    #calloutContent .statusCode {
        margin: 10px 0;
        font-size: 16px;
        text-align: center;
        font-weight: bold;
        padding-top: 5px;
    }

        #calloutContent .title .icon,
        #calloutContent .statusCode .icon
         {
            width: 24px;
            height: 24px;
            font-size: 24px !important;
            margin-top: -3px;
            vertical-align: middle;
        }

        #calloutCardWrapper.typeRover #calloutContent {
            padding: 0 19px 13px 19px !important;
        }

        #roverMap .roverMarker.invalidPosition {
            display: none;
        }

        .siteMarker {
            opacity: 0.6;
        }
