:root {
  touch-action: pan-x pan-y;
  height: 100% 
}

html, body, .map {
  width: 100%;
  height: 100%;
  margin: 0;
  top: 0px;
  position: fixed;
}

body{
  pointer-events: none;
}

.ol-scale-line {
  opacity: 0.85;
  background: rgba(0, 60, 136, 0) none repeat scroll 0 0;
  top: 'auto', bottom: '8px'
}
.ol-scale-line-inner {
  color: #222222;
  border-color: #222222;
}

#posBtn {
  background: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  bottom: -100px;
  right: 25px;
  position: fixed;
  z-index: 10 !important;
  box-shadow: 1px 1px 0px 0px rgba(209,209,209,1);
  user-select: none;
}
#posBtn img {
  width: 24px;
  height: 24px;
  margin-top: 18px;
  margin-left: 18px;
}

#pulsePosBtn {
  background: #4d4d4d;
  border-radius: 50%;

  width: 8px;
  height: 8px;
  margin-top: -20px;
  margin-left: 26px;
  z-index: 11 !important;

  box-shadow: 0 0 0 0 rgba(0, 0, 0, 1);
  transform: scale(1);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

#mapCredits {
  border-radius: 50%;
  width: 350px;
  height: 8px;
  bottom:1px;
  right:2px;
  position: fixed;
  z-index: 10 !important;
  font-size: 8px;
  text-align: right;
  user-select: none;
}

.topPanels {
  display: none;
  position: absolute;
  margin-top: 50px;
  width: 100%;
  user-select: none;
}
#topPanelMsg {
  top: 0px;
  background: #F7F7F7;
  height: 95px;
  z-index: 20 !important;
  box-shadow: 0px 2px 2px 0px rgba(184,184,184,1);
}
#topPanelMsgContent {
  width: 100%;
  height: 60px;
  position: absolute;
  bottom: 0;
  margin-bottom: 4px;
}
#topPanelMsgContent p {
  font-size: 16px;
  text-align: center;
  font-family: Ubuntu;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#topPanelIcons {
  top: 0px;
  background: white;
  height: 52px;
  z-index: 21 !important;
}
#topPanelIconsContent {
  width: 100%;
  position: absolute;
  margin: auto;
  margin-bottom: 6px;
  bottom: 0;
}
#topPanelIconsContent img {
  margin-left: 10px;
  margin-right: 10px;
  height: 32px;
}

#panelsNav, #panelConfirmRoute {
  display: none;
  position: fixed;
  width: 100%;
  height: 120px;
  bottom: 0px;
  z-index: 30 !important;
  font-size: 16px;
  text-align: center;
  font-family: Ubuntu;
  user-select: none;
}
#topPanelNav, #topPanelConfirm {
  position: absolute;
  top: 0px;
  background: white;
  width: 100%;
  height: 92px;
  box-shadow: 0px -2px 2px 0px rgba(184,184,184,1);
}
#bottomPanelNav, #bottomPanelConfirm {
  position: absolute;
  bottom: 0px;
  background: #F7F7F7;
  width: 100%;
  height: 28px;
}

#confirmEndTime {
  position: absolute;
  bottom: 5px;
  width: 100%;
  left: 10px;
  text-align: center;
}
#endDistance, #confirmEndDistance {
  position: absolute;
  bottom: 5px;
  width: 100%;
  left: 20px;
  text-align: left;
}
#speed {
  position: absolute;
  bottom: 5px;
  left: 29%;
  text-align: left;
}
#endTime {
  position: absolute;
  bottom: 5px;
  left: 59%;
  text-align: left;
}
#endHour, #confirmEndHour {
  position: absolute;
  bottom: 5px;
  width: 100%;
  right: 20px;
  text-align: right;
}
#bottomConfirmMessage {
  position: absolute;
  bottom: 5px;
  width: 100%;
  margin-right: 5px;
  margin-left: 5px;
  text-align: center;
}
#stepTxt {
  position: absolute;
  top: 14px;
  right: 45px;
  height: 70px;
  left: 74px;
  font-size: 18px;
  line-height: 18px;
  display: flex;
  justify-content: left;
  align-items: center;
  overflow: hidden;
  text-align: left;
}
#btnCancelRoute {
  position: absolute;
  top: 30px;
  width: 33px;
  height: 33px;
  right: 10px;
}
#stepImg {
  position: absolute;
  top: 25px;
  width: 30px;
  height: 30px;
  left: 22px;
}
#stepImg img {
  width: 100%;
  height: 100%;
}
#distance {
  position: absolute;
  bottom: 12px;
  width: 70px;
  height: 20px;
  left: 0px;
}
#totalProgress {
  height: 2px;
  width: 20%;
  background-color: #3575db;
  left: 0;
  bottom: 0;
  position: absolute;
}

#panelConfirmRoute {
  height: 120px;
}
#topPanelConfirm {
  height: 100px;
}

#modeConfirm {
  height: 40%;
  width: 100%;
}
#btnsConfirm {
  height: 50%;
  width: 100%;
}
#modeConfirm img {
  width: 100px;
  height: 32px;
  margin-top: 9px;
}
#btnModeCarConfirm {
  border-radius: 45px 0px 0px 45px;
}
#btnModeWalkConfirm {
  border-radius: 0px 45px 45px 0px;
}

.btns2_mode_route {
  width: 145px;
  height: 35px;
  margin-top: 8px;
  margin-left: 5px;
  margin-right: 5px;
}

.ol-compassctrl.compass {
  width: 60px;
  height: 60px;
  left: 25px;
  position: fixed;
  user-select: none;
  display: none;
}

@media screen and (orientation:portrait) {
  #panelsNav {
    height: 120px;
  }
  #topPanelNav {
    height: 92px;
  }
  #btnCancelRoute {
    top: 31px;
  }
  #totalProgress {
    bottom: 0px;
  }
  #stepImg {
    top: 25px;
  }
  #distance {
    bottom: 12px;
    left: 0px;
  }
  #stepTxt {
    top: 14px;
    left: 74px;
    font-size: 18px;
    line-height: 18px;
    height: 70px;
  }
}
@media screen and (orientation:landscape) {
  #panelsNav {
    height: 70px;
  }
  #topPanelNav {
    height: 52px;
  }
  #btnCancelRoute {
    top: 3px;
  }
  #totalProgress {
    bottom: 10px;
  }
  #stepImg {
    top: 4px;
  }
  #distance {
    bottom: 21px;
    left: 45px;
  }
  #stepTxt {
    top: -3px;
    left: 110px;
    font-size: 17px;
    line-height: 17px;
    height: 45px;
  }
}
