body,
html, #imgWrapper {
    height:100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}

#imgWrapper td {
   vertical-align: middle;
   text-align: center;
}

.box,
.topnav {
    background-color: #FFF
}

.box,
.notFound,
.progress-info {
    align-content: center;
    vertical-align: middle
}

.box,
.notFound,
.profile-pic img,
.progress-info {
    vertical-align: middle
}

html {
    font-family: Helvetica Neue;
}

.topnav {
    z-index: 1000!important;
    overflow: hidden;
    position: absolute;
    top: 0;
    width: 100%;
    -webkit-box-shadow: 0 -3px 13px -1px rgba(0, 0, 0, .72);
    -moz-box-shadow: 0 -3px 13px -1px rgba(0, 0, 0, .72);
    box-shadow: 0 -3px 13px -1px rgba(0, 0, 0, .72);
    letter-spacing: .1em;
    font-weight: 300
}

.topnav a {
    color: #2A2A2A;
    float: right;
    display: block;
    text-align: center;
    padding: 5px 1.1em;
    text-decoration: none;
    font-size: 1em;
    height: 2.9em;
    line-height: 2.9em
}

.topnav a:first-child {
    padding: 5px .8em;
    float: left;
    height: 2.9em;
    width: 2.9em;
    background-color: #222
}

#pictureModal, #appModal,
.topnav a:first-child img {
    height: 100%
}

.topnav a:nth-child(2) {
    padding: 5px 1em;
    color: #FFF;
    background-color: #D44D27
}

.topnav a:nth-child(2) i {
    vertical-align: middle;
    font-size: 2em
}

.topnav a:nth-child(4) i {
    position: relative;
    bottom: .1em
}

.topnav a:nth-child(3) {
    float: left;
    font-weight: 600;
    letter-spacing: .005em;
    font-size: 1em;
    text-align: left
}

.topnav a:nth-child(3) div:first-child {
    line-height: 2.1em;
    text-transform: uppercase;
    margin-bottom: -.15em
}

.topnav a:nth-child(3) div:last-child {
    line-height: 0;
    text-transform: uppercase;
    font-size: .8em
}

.topnav a:hover:not(:nth-child(3)) {
    background-color: #2A2A2A;
    color: #FFF
}

#finishedModal,#settingsModal {
    width: 20%;
    background-color: #fff;
    display: none
}

.topnav .icon {
    display: none;
    font-size: 16px!important
}

#appModal, #pictureModal {
    top: 0;
    left: 0;
    width: 100%;
    position: absolute;
    z-index: 1002!important;
    background-color: #0f0f0f;
    opacity: .96;
    display: none
}

.close {
    color: #FFF;
    position: absolute;
    right: 5%;
    top: 5%;
    font-size: 2.5em;
    cursor: pointer
}

#settingsModal {
    top: 12%;
    left: 40%;
    min-width: 370px;
    min-height: 660px;
    height: 75.5%;
    position: absolute;
    z-index: 1001!important;
    border-radius: 20px;
    border: 1px solid #cbcbcb
}

#settingsModal .close {
    color: #606060;
    position: relative;
    left: 88%;
    top: 3%;
    font-size: 2em;
    cursor: pointer;
    margin-bottom: -10%
}

#settingsModal hr {
    width: 90%;
    color: #a7a7a7
}

#settingsModal h2 {
    color: #000;
    font-size: 2em
}

#finishedModal {
    top: 20%;
    left: 40%;
    height: 50.5%;
    position: absolute;
    z-index: 999!important;
    border-radius: 20px
}

#finishedModal .app-promo-text {
    margin-top: 4%;
    color: #141414;
    font-weight: 500;
    font-size: .9em
}

#settingsModal .text-container {
    top: 10%;
    margin-left: 6%;
    margin-right: 6%;
    color: #737373;
    margin-bottom: 0;
    position: unset !important;
    text-align: left !important;
}

.text-container {
    text-align: center;
    position: relative;
    top: 30%;
    margin-left: 20%;
    margin-right: 20%
}


#settingsModal .text-container.category {
    font-size: 1.1em;
    color: #000;
    font-weight: 500
}

#finishedModal .text-container {
    top: 10%;
    margin-left: 12%;
    margin-right: 12%;
    color: #737373
}

.text-container span {
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #FFF;
    font-size: 2em;
    font-weight: 400
}

.bold {
    font-weight: 700
}

#appModal .badge-container {
    position: relative;
    top: 50%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row
}

#finishedModal .badge-container {
    position: relative;
    top: 12%;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: row
}

#appModal .play-store-icon {
    margin-top: -52px;
    margin-left: -49px
}

#appModal .itunes-icon {
    margin-bottom: 50px;
    margin-right: 40px
}

#finishedModal .play-store-icon {
    margin-top: -65px;
    margin-left: -18px
}

#finishedModal .itunes-icon {
    margin-bottom: 46px;
    margin-right: 28px
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 997!important
}

@media screen and (max-width:800px) {
    .topnav a:last-child i {
        font-size: 2em;
        line-height: 1.6em
    }
    .topnav:not(.responsive) a:not(:first-child):not(:nth-child(3)):not(#expandMenu) {
        display: none
    }
    .topnav a:nth-child(3) {
        text-align: center;
        font-size: 25px;
        height: inherit !important;
        width: 120px;
        margin-left: calc(50% - 160px);
        padding: 0px 1.1em !important;
    }
    .topnav a:nth-child(3) div:last-child {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block
    }
    .topnav.responsive {
        position: absolute;
    }
    .topnav.responsive a:nth-child(3) {
        display: none;
    }
    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left
    }
    .topnav.responsive a img {
        margin-left: .5em!important
    }
    .badge-container {
        flex-direction: column
    }
    .play-store-icon {
        margin-top: 0;
        margin-left: 0px !important;
        margin-right: 20px !important;
        width: 180px !important;
    }
    .itunes-icon {
        margin-right: 0 !important;
        margin-left: 30px !important;
        width: 158px;
    }
}

.box,
.notFound,
.sessionToggle {
    position: absolute
}

.box {
    bottom: 5%;
    margin-left: 6%;
    margin-right: 6%;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    height: 4em;
    width: 88%;
    z-index: 999;
    border-radius: 10px;
    -webkit-box-shadow: 0 2px 9px -2px rgba(0, 0, 0, .75);
    -moz-box-shadow: 0 2px 9px -2px rgba(0, 0, 0, .75);
    box-shadow: 0 2px 9px -2px rgba(0, 0, 0, .75)
}

.box div {
    text-align: center;
    line-height: .4em;
    padding-top: .45em;
    padding-bottom: .45em

}

.value {
    font-size: 1.6em;
    font-weight: 600
}

.dest-value {
    font-size: 1.1em;
    margin-top: .4em;
    margin-bottom: .3em;
    word-break: break-all
}

.dest-value.small {
    font-size: .9em
}

.profile-name .value {
    letter-spacing: .02em;
    text-align: left
}

.motorcycle-model {
    font-size: 1.2em;
    float: left;
    color: #a8a8a8
}

.value-desc {
    color: #828282;
    font-size: .9em;
    font-weight: 400;
    letter-spacing: .02em
}

.box div.profile-pic {
    order: 1;
    flex: 0 1 auto;
    align-self: auto;
    min-width: 6%;
    z-index: 1001 !important;
}

.profile-pic img {
    border-radius: 90px;
    border: 2px solid #000;
    width: 2.8em;
    height: 2.8em
}

#finishedModal h2 {
    font-size: 2.3em;
    color: #000!important
}

#finishedModal .profile-pic img {
    border: 3px solid #000;
    width: 5em;
    margin-bottom: -5%;
    margin-top: -3%
}

.box div.profile-name {
    order: 2;
    flex: 0 1 auto;
    align-self: auto;
    min-width: 14.5%;
    text-align: left;
    padding-left: 1em;
    font-size: .6em;
    font-weight: 500;
    padding-right: 4em;
    color: #393939
}

.box div.current-speed,
.box div.time-on-bike {
    flex: 0 1 auto;
    align-self: auto;
    border-left: 1px solid #a7a7a7;
}

.box div.current-speed {
    order: 3;
    min-width: 12%;
    border-left: 1px solid #a7a7a7;
}

.box div.time-on-bike {
    order: 4;
    min-width: 13%
}

.box div.current-climb,
.box div.current-sea-level {
    flex: 0 1 auto;
    min-width: 12%;
    border-left: 1px solid #a7a7a7;
}

.box div.current-climb {
    order: 7;
    align-self: auto
}

.box div.current-sea-level {
    order: 6;
    align-self: auto
}

.box div.battery-level,
.box div.distance-driven {
    flex: 0 1 auto;
    align-self: auto
}

.box div.battery-level {
    border-left: 1px solid #a7a7a7;
    order: 8;
    min-width: 14%
}

.box div.distance-driven {
    order: 5;
    min-width: 11.5%;
    border-left: 1px solid #a7a7a7 !important;
}

.box div.box-footer {
    order: 8;
    flex: 0 1 auto;
    align-self: auto;
    width: 0
}

.sessionToggle {
    z-index: 1000!important;
    color: #828282;
    font-size: 2em;
    height: 30px;
    width: 100%;
    padding: 0;
    cursor: pointer;
    display: none
}

.sessionToggle i {
    float: right;
    margin-right: .5em;
    font-weight: 500
}

#minimizeSessionToggle {
    bottom: 43%
}

#maximizeSessionToggle {
    bottom: 13%;
}

@media screen and (min-width:1100px) and (max-width:1300px) {
    .box {
        font-size: 0.8em;
    }
}

@media screen and (max-width:1180px) {
    cesiumMap {
        height: 80% !important;
        margin-top: 20% !important;
    }
    .progress-info {
        font-size: 0.9em !important;
    }
    #minimizeSessionToggle,
    .sessionToggle {
        display: block
    }
    .cesium-viewer-bottom {
        display: none
    }
    #loadingSpinner .title {
        margin-top: 50%!important;
        font-size: 2.4em!important
    }
    .spinner {
        margin: 10px auto!important;
        width: 80%!important;
        height: 30px!important
    }
    .spinner>div {
        width: 10px!important
    }
    .profile-pic img {
        width: 3.8em;
        height: 3.8em
    }
    .box {
        bottom: 0;
        margin: 0;
        width: 100%;
        height: 47%;
        border-radius: 0;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none
    }
    .box div {
        line-height: .8em
    }
    .box div.profile-name {
        padding: 0;
        width: 100%;
        margin-top: 8%;
        margin-bottom: 8px
    }
    .box div.profile-name .value {
        text-align: center;
        font-size: 1.8em
    }
    .box div.profile-name .motorcycle-model {
        margin-top: -.4em;
        float: none
    }
    .box div.current-speed {
        width: 33.1%;
        border: none;
        margin-bottom: 8px
    }

    .box div.time-on-bike {
        width: 33.1%;
        margin-bottom: 8px
    }
    .box div.current-climb {
        width: 33.1%;
        margin-bottom: 12px
    }
    .box div.battery-level,
    .box div.current-sea-level {
        width: 33.1%;
        border: none;
        margin-bottom: 12px
    }
    .box div.battery-level {
        border-left: 1px solid #a7a7a7 !important;
    }
    .box div.distance-driven {
        width: 33.1%;
        margin-bottom: 8px
    }
    .box div.profile-pic {
        position: absolute;
        left: calc(50% - (1.9em + 4px));
        bottom: calc(100% - (1.9em + 4px))
    }
    #settingsModal {
        left: calc(50% - 150px);
        min-width: 300px!important;
        height: 86% !important;
    }
}

.cesium-widget-credits {
    display:none !important;
}

@media screen and (min-width:600px) and (max-width:1025px) and (min-height:900px) and (max-height:1367px) {
    .box div.profile-pic {
        left: calc(50% - (2.4em + 6px));
        bottom: calc(100% - (2.4em + 6px))
    }
    #maximizeSessionToggle {
        bottom: 15%
    }
    .profile-pic img {
        width: 4.8em;
        height: 4.8em
    }
    .box {
        height: 46%
    }
    .box div {
        line-height: .5em
    }
    .value {
        font-size: 2.6em;
        font-weight: 600
    }
    .value-desc {
        font-size: 1.2em
    }
    .box div.motorcycle-model {
        font-size: 2em
    }
    .box div.profile-name .value {
        margin-top: 3%;
        font-size: 3.6em
    }
    .dest-value.small {
        font-size: 1.6em
    }
    #settingsModal {
        height: 53%;
        left: calc(50% - 250px);
        min-width: 500px!important
    }
}

@media screen and (max-width:384px) and (max-height:641px) {
    .value {
        font-size: 1.4em;
        font-weight: 600
    }
    .value-desc {
        font-size: .7em
    }
}

@media screen and (max-width:420px) and (max-height:750px) {
    #settingsModal {
        height: 100%;
        margin-bottom: 30px
    }
    body {
        overflow: hidden;
    }
}

@media screen and (min-width:700px) and (max-width:1024px) and (min-height:1100px) and (max-height:1366px) {
    .box div.profile-name .value {
        margin-top: 3%;
        font-size: 5em
    }
    .box div.motorcycle-model {
        font-size: 2.5em
    }
    .box div {
        line-height: .9em
    }
}

.mapboxgl-ctrl-top-right {
    margin-top: 22%
}

@media screen and (width:640px) and (height:360px) {
    .box div {
        line-height: .4em
    }
    #minimizeSessionToggle {
        bottom: 40%!important
    }
    #maximizeSessionToggle {
        bottom: 7%
    }
    .topnav a.icon {
        padding: 0 10px 0 0
    }
    .topnav a:first-child img {
        height: 60%
    }
    .topnav a:first-child {
        width: 3%
    }
    .topnav a.icon i {
        font-size: .9em;
        margin-bottom: .9em
    }
    .box div.profile-pic {
        left: calc(50% - (1em + 6px));
        bottom: calc(100% - (1em + 6px))
    }
    .profile-pic img {
        width: 2em;
        height: 2em;
    }
    .box {
        height: 10em
    }
    .box-item {
        margin-top: 2%
    }
    .value {
        font-size: .9em
    }
    .value-desc {
        font-size: .7em
    }
    .box div.profile-name {
        margin-top: 8%;
        margin-bottom: -1%
    }
    .box div.motorcycle-model {
        font-size: 1.2em
    }
    .box div.profile-name .value {
        font-size: 1.6em
    }
}

.mapboxgl-ctrl-attrib {
    display: none
}

.notFound {
    top: 30%;
    background-color: #000;
    width: 100%;
    height: 100%;
    color: #FFF;
    letter-spacing: .02em;
    text-align: center
}

#settingsModal input[type=checkbox] {
    display: none!important;
    float: right
}

input[type=checkbox]+label {
    cursor: pointer
}

#settingsModal input[type=checkbox]+label {
    cursor: pointer;
    float: right;
    background: url(/static/img/unchecked.png) no-repeat;
    background-size: 50%;
    margin-bottom: -20px;
    margin-right: -20px;
    width: 40px;
    height: 40px;
    display: inline-block;
    padding: 0
}

#settingsModal input[type=checkbox]:checked+label {
    float: right;
    background: url(/static/img/checked.png) no-repeat;
    background-size: 50%;
    margin-bottom: -20px;
    margin-right: -20px;
    width: 40px;
    height: 40px;
    display: inline-block;
    padding: 0
}

#notificationSettings input[type=checkbox]+label {
    float: right;
    background: url(/static/img/slider_unchecked.png) no-repeat!important;
    background-size: 55%!important;
    margin-bottom: -20px;
    margin-right: -38px;
    width: 65px;
    height: 25px
}

#notificationSettings input[type=checkbox]:checked+label {
    background: url(/static/img/slider_checked.png) no-repeat!important;
    background-size: 55%!important;
    margin-bottom: -20px;
    margin-right: -38px;
    width: 65px;
    height: 25px
}

.mapboxgl-control-container {
    position: relative;
    top: 30px
}

#toggleSettings {
    position: absolute;
    top: 70px;
    right: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #fff;
    color: #000;
    z-index: 998 !important;
    border-radius: 5px;
    border: solid 2px #cfcfcf;
}

#loadingSpinner {
    width: 100%;
    height: 100%;
    background-color: #2A2A2A;
    opacity: .95;
    margin: 0 auto;
    z-index: 1000!important;
    position: absolute;
    top: 0;
    left: 0
}

#cesiumMap {
    height: 100%;
    position: absolute;
    width: 100%
}

#loadingSpinner .title {
    margin-top: 13%;
    margin-bottom: 8%;
    text-align: center;
    color: #FFF;
    font-size: 5.3em;
    font-weight: 500
}

.spinner {
    margin: 60px auto;
    width: 380px;
    height: 150px;
    text-align: center;
    font-size: 10px
}

.spinner>div {
    background-color: #fff;
    height: 100%;
    width: 15px;
    display: inline-block;
    margin-left: 20px;
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out
}

.spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s
}

.spinner .rect3 {
    -webkit-animation-delay: -1s;
    animation-delay: -1s
}

.spinner .rect4 {
    -webkit-animation-delay: -.9s;
    animation-delay: -.9s
}

.spinner .rect5 {
    -webkit-animation-delay: -.8s;
    animation-delay: -.8s
}

.spinner .rect6 {
    -webkit-animation-delay: -.7s;
    animation-delay: -.7s
}

.spinner .rect7 {
    -webkit-animation-delay: -.6s;
    animation-delay: -.6s
}

.spinner .rect8 {
    -webkit-animation-delay: -.5s;
    animation-delay: -.5s
}

.spinner .rect9 {
    -webkit-animation-delay: -.4s;
    animation-delay: -.4s
}

@-webkit-keyframes sk-stretchdelay {
    0%,
    100%,
    40% {
        -webkit-transform: scaleY(.4)
    }
    20% {
        -webkit-transform: scaleY(1)
    }
}

@keyframes sk-stretchdelay {
    0%,
    100%,
    40% {
        transform: scaleY(.4);
        -webkit-transform: scaleY(.4)
    }
    20% {
        transform: scaleY(1);
        -webkit-transform: scaleY(1)
    }
}

.talk-bubble {
    display: inline-block;
    position: absolute;
    width: 150px;
    height: 60px;
    background-color: #000;
    z-index: 1000!important;
    top: 47px;
    right: 0;
    margin: 40px 4em 40px 40px;
    color: #FFF;
}

.tri-right.border.right-top:before,
.tri-right.right-top:after {
    content: ' ';
    width: 0;
    height: 0;
    left: auto;
    bottom: auto;
    position: absolute
}

.border {
    border: 1px solid #000
}

.round {
    border-radius: 30px;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px
}

.tri-right.border.right-top:before {
    right: -40px;
    top: -8px
}

.tri-right.right-top:after {
    right: -20px;
    top: 0;
    border: 20px solid;
    border-color: #000 transparent transparent
}

.talktext {
    padding: .7em;
    text-align: left;
    line-height: 1.2em
}

.talktext p {
    -webkit-margin-before: 0;
    -webkit-margin-after: 0
}

#progressBarContainer {
    background-color: #fff;
    min-width: 100%;
    width: 100%;
    position: absolute;
    top: 3.5em;
    z-index: 999;
    height: 3.5em
}

.progress-bar {
    display: flex;
    height: 10%
}

.progress-bar .completed {
    border-right: 2px solid #232323;
    background-color: #000;
    flex: 0 0 60%
}

.progress-bar .remaining {
    background-color: #a2a2a2;
    flex: 1
}

.progress-info {
    background-color: #FFF;
    width: 100%;
    height: 90%;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    font-size: 1.2em
}

.progress-info div {
    text-align: center
}

.progress-info div.destination {
    order: 1;
    flex: 0 1 auto;
    align-self: auto;
    min-width: 48%;
    font-size: .6em;
    font-weight: 500;
    color: #393939
}

.progress-info div.distance,
.progress-info div.eta {
    align-self: auto;
    min-width: 48%;
    text-align: left;
    padding-left: 1em;
    font-size: .6em;
    font-weight: 500;
    color: #393939
}

.progress-info div.distance {
    order: 2;
    flex: 0 1 auto
}

.progress-info div.eta {
    order: 3;
    flex: 0 1 auto;
}

.separator-border {
    border-left: 1px solid #a7a7a7 !important;
}

#saveSettingsButton {
    background-color: #000;
    width: 60%;
    text-align: center;
    color: #FFF;
    margin: 0 auto;
    font-size: 1.6em;
    font-weight: 500;
    border-radius: 11px;
}

.marker {
    display: block;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    background-size: 40px 40px;
}

.marker:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom: 0;
    margin-left: -10px;
    margin-bottom: -10px;
}

.white-marker {
    border: 2px solid #FFF;
}

.white-marker:after {
    border-top-color: #FFF;
}

.black-marker {
    border: 2px solid #000;
}

.black-marker:after {
    border-top-color: #000;
}

#modalPicture {
    width: 60%;
    height: 60%;
    border: solid 4px #FFF;
}

