﻿html {
    font-family: Arial, sans-serif;
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    padding: 0;
}

a {
    -ms-interpolation-mode: nearest-neighbor;    
}

noscript>div, #error {
    background-color: white;
    height: 100%;
    padding: 60px 0;
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 9999;
}

noscript img, #error img {
    display: block;
    height: 71px;
    margin: auto;
    width: 160px;
}

#loading {
    background: url('sprocket.png') no-repeat center;
    background-size: 125px 125px;
    bottom: 0; /*ow in js*/
    left: 0;
    opacity: 0.6;
    pointer-events:none;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 9998;
    /**/
    -webkit-animation-name: loading; 
    -webkit-animation-duration: 10s; 
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
}
@-webkit-keyframes loading { from { -webkit-transform: rotate(-45deg); } to { -webkit-transform: rotate(315deg); }}

#map {
    height: 100%;
    /*min-height: js*/
    min-width: 320px;
    opacity: 0;
    width: 100%;
}

#top {
    /*height: js*/
    overflow: visible;
    pointer-events:none;
    width: 100%;
}

#message-thumbnail {
    background: url(profile.png) no-repeat center;
    background-size: 34px 34px;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
    cursor: pointer;
    font-size: 0;
    height: 34px;
    left: 11px;
    pointer-events: auto;
    position: absolute;
    top: 11px;
    width: 34px;
}

#message-bubble {
    left: 56px;
    position: absolute;
    right: 56px;
    top: 0;
}

#message-bubble-inner {
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
    font: normal 12px Arial, sans-serif;
    left: 11px;
    max-width: 291px;
    min-height: 46px;
    pointer-events:auto;
    position: absolute;
    top: 5px;
    z-index: 9998;
}

#message-bubble-inner-triangle {
    left: -20px;
    position: absolute;
    top: 6px;
}

#message-bubble-inner-x {
    background: url(x.png) no-repeat center;
    background-size: 13px 13px;
    cursor: pointer;
    height: 13px;
    padding: 3px;
    position: absolute;
    right: 0;
    top: 0;
    width: 13px;
}

#message-bubble-inner-inner {
    margin: 8px 24px 8px 10px;    
}

#message-bubble-inner-inner-header {
    color: #90949c;
    margin-bottom: 2px;
}

#message-bubble-inner-inner-header-time {
    cursor: pointer;
}

#message-bubble-inner-inner-header-time:hover {
   text-decoration: underline;
}

#menu {
    pointer-events:auto;
    position: absolute;
    right: 11px;    
    top: 11px;
}

#menu-button {
    background: #fff url(menu-button.png) no-repeat center;
    background-size: 18px 12px;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
    cursor: pointer;
    height: 34px;
    width: 34px;    
}

#menu-content {
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    right: 0;
    width: 253px;
    z-index: 9999;
}

.menu-content-item {
    color: black;
    cursor: pointer;
    display: block;
    padding: 11px;
    text-decoration: none;
}

.menu-content-item-disabled {
    color: #ccc;
    cursor: default;
}

#menu-content-cmt, #menu-content-sat, #menu-content-zou, #menu-content-lfr, #menu-content-fls {
    border-bottom: 1px solid #eee;
}

#bottom {
    background-color: #000000;
    background-color: rgba(0,0,0,0.37);
    /*height: js*/
    max-width: 414px;
    pointer-events:none;
    width: 100%;
}

#local-time {
    background-color: #000000;
    background-color: rgba(0,0,0,0.37);
    bottom: 214px;
    color: white;
    font: bold 12px Arial, sans-serif;
    height: 16px;
    left: 0;
    line-height: 17px; /*bump down 1 px*/
    overflow: hidden;
    position: absolute;
    right: 0;
    text-align: center;
    text-shadow: 0 1px 2px #000000;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    text-overflow: ellipsis;
    white-space: nowrap;
}

#photo {
    border: 2px solid white;
    border-radius: 2px;
    bottom: 69px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
    left: 6px;
    height: 135px;
    pointer-events:auto;
    position: absolute;
    width: 180px;
}

#photo>img {
    height: 100%;
    width: 100%;
}

.stat {
    background-color: #000000;
    background-color: rgba(0,0,0,0.37);
    border-radius: 2px;
    color: white;
    height: 27px;
    left: 196px;
    position: absolute;
    right: 6px;
}

.stat > img {
    height: 24px;
    left: 3px;
    position: absolute;
    top: 1px;
    width: 24px;
}

.meter {
    border: 1px solid #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    height: 10px;
    left: 29px;
    position: absolute;
    top: 12px;
    right: 3px;
}

.meter-grey {
    background-color: #fff;
    background-color: rgba(255,255,255,0.2);
    bottom: 1px;
    left: 1px;
    position: absolute;
    right: 1px;
    top: 1px;
}

.meter-color {
    background-color: #8bc8ff;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 0;
}

.meter-color-gradient {
    background: repeating-linear-gradient(-45deg, #8bc8ff, #8bc8ff 4px, #77abd9 4px, #77abd9 8px);
}

.stat-label {
    color: white;
    font: bold 9px Arial, sans-serif;
    left: 31px;
    line-height: 15px;
    overflow: hidden;
    position: absolute;
    text-shadow: 0 1px 2px #000000;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    text-overflow: ellipsis;
    text-transform: uppercase;
    top: 0;
    white-space: nowrap;
}

.stat-value {
    color: white;
    font: normal 9px Arial, sans-serif;
    right: 4px;
    line-height: 15px;
    overflow: hidden;
    padding-right: 1px; /*fix for W character chopped?*/
    position: absolute;
    text-shadow: 0 1px 2px #000000;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    text-overflow: ellipsis;
    top: 0;
    white-space: nowrap;
}

#speed {
    bottom: 181px;
}

#elevation {
    bottom: 153px;
}

#wind {
    bottom: 125px;
}

#fatigue {
    bottom: 97px;
}

#trip {
    bottom: 69px;
}

#range {
    bottom: 29px;
    height: 34px;
    left: 6px;
    pointer-events:auto;
    position: absolute;
    right: 6px;
}

input[type=range] {
    -webkit-appearance: none; /*removes default webkit styles*/
    background: transparent;
    /*border: 1px solid white; fix for FF unable to apply focus style bug ? */
    height: 100%;
    margin: 0;
    padding: 0;
    /*width: 300px; required for proper track sizing in FF ?*/
    width: 100%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    background: white;
    border: none;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
    cursor: pointer;
    height: 4px;
    width: 100%;
    /*width: 300px;*/
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: white;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: white url(slider.png) no-repeat center;
    background-size: 12px 18px;
    border: none;
    border-radius: 2px;
    box-shadow: 0 2px 4px 0 #000000;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.5);
    cursor: pointer;
    height: 34px;
    margin-top: -15px;
    width: 34px;
}

input[type=range]::-moz-range-track {
    background: white;
    border: none;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
    height: 4px;
    cursor: pointer;
    width: 100%;
}

input[type=range]::-moz-range-thumb {
    background: white url(slider.png) no-repeat center;
    background-size: 12px 18px;
    border: none;
    border-radius: 2px;
    box-shadow: 0 2px 4px 0 #000000;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.5);
    cursor: pointer;
    height: 34px;
    margin-top: -15px;
    width: 34px;
}

input[type=range]:-moz-focusring{
    outline: 1px solid white;
    outline-offset: -1px; /*hide the outline behind the border*/
}

input[type=range]::-ms-track {
    background: transparent; /*use ms-fill-lower and ms-fill-upper instead */
    border-color: transparent; /*leave room for the larger thumb to overflow with a transparent border */
    border-width: 15px 0;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
    color: transparent; /*remove default tick marks*/
    height: 4px;
    cursor: pointer;
    width: 100%;
}

input[type=range]::-ms-fill-lower {
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);
}

input[type=range]:focus::-ms-fill-lower {
    background: white;
}

input[type=range]::-ms-fill-upper {
    background: white;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 #000000;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.5);}

input[type=range]:focus::-ms-fill-upper {
    background: white;
}

input[type=range]::-ms-thumb {
    background: white url(slider.png) no-repeat center;
    background-size: 12px 18px;
    border: none;
    border-radius: 2px;
    box-shadow: 0 2px 4px 0 #000000;
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.5);
    cursor: pointer;
    height: 34px;
    margin-top: 0; /* required for Edge */
    width: 34px;
}

input::-ms-tooltip {
    display: none;
}