*:focus {
    outline: none;
}

html {
  overflow: hidden;
  scroll-behavior: smooth;
}

body, .popover {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
}

.ümbris {
  padding: 0;
  margin: 0;
  height: 100vh;
  width: 100%;
}

#viewDiv {
  width: 100%;
  height: 100vh;
  bottom: 0px;
}

.navielemendid {
  display: flex;
  justify-content: space-between;
}

.navi {
  display: flex;
  flex-direction: row;
  align-items: center
}

.esri-attribution {
  display: none
}

.esri-ui-bottom-left {
  bottom: 25px;
}

.esri-ui-top-right,  .esri-ui-top-left{
  padding-top: 55px
}

.esri-ui-corner .esri-widget--panel {
  width: 400px;
}

.esri-widget {
  color: black;
  font-family: inherit;
}

.esri-widget--button {
  color: white;
  background-color: #30415D;
  width: 40px;
  height: 40px;
  font-size: 20px;
  -webkit-box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.5);
  box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.5);
}

.esri-widget-button:hover {
  background-color: #8EAEBD
}

.esri-view-height-medium .esri-ui-corner .esri-legend {
  max-height: none;
}

.esri-legend {
  background-color: transparent;
}

.esri-legend__service {
  border-bottom: none;
}

.esri-view-height-medium .esri-ui-corner .esri-legend {
  max-height: 550px;
}

.esri-layer-list__item-container {
  border-bottom: none;
}

.esri-layer-list {
  padding: 0;
  background-color: transparent
}
.esri-layer-list__item {
  font-weight: 600;
  background-color: transparent;
  border-bottom: none;
  color: black
}

.esri-legend__layer-cell {
  padding: 0px 3px;
}

.esri-layer-list__item-title {
  word-break: normal
}

.esri-layer-list__item-toggle-icon {
  font-size: 18px;
}

.esri-layer-list__item-toggle {
  padding: 5px 3px 0px 0px;
  margin-top: -7px;
  width: 20px;
  height: 20px
}

.esri-icon-visible:before {
  display: block;
  content: ' ';
  background-image: url('../img/check-square-solid.svg');
  background-repeat: no-repeat;
  height: 20px;
  width: 20px;
}

.esri-icon-non-visible:before {
  display: block;
  content: ' ';
  background-image: url('../img/square-regular.svg');
  background-repeat: no-repeat;
  height: 20px;
  width: 20px;
}

.esri-icon-right-triangle-arrow:before,
.esri-icon-down-arrow:before,
.esri-icon-close:before,
.esri-icon-check-mark:before {
  color: #30415D
}

.esri-search__sources-button--down:before {
  color: inherit
}

.esri-search {
  width: 300px;
  height: 40px
}

.esri-search__submit-button, .esri-search__clear-button, .esri-search__sources-button {
margin: 10px 0
}

.esri-search__clear-button .esri-icon-close:before {
  color: white;
}

.esri-search__clear-button:hover .esri-icon-close:before {
  color: black;
}

.esri-search__sources-menu {
  margin: -10px 0
}

.esri-input {
  margin: 13px 0;
  font-family: inherit
}

.esri-input::placeholder {
  color: black
}

.esri-button,
.esri-swipe__handle::after,
.esri-swipe__handle::before,
.esri-swipe__divider,
.esri-swipe__handle-icon {
  background-color: #30415D;
  border: none;
  color: white
}

.esri-legend__group-layer .esri-legend__service-label, .esri-legend__service-label {
  text-decoration: underline;
}

.esri-legend__group-layer-child .esri-legend__service-label {
  text-decoration: none;
}

.esri-expand__content, .esri-expand__content--expanded {
  margin: 0;
  width: 100%
}

.esri-expand__panel .esri-widget--button {
  width: 170px
}

.esri-view-height-xsmall .esri-ui-corner .esri-expand .esri-legend.esri-widget,
.esri-view-height-small .esri-ui-corner .esri-expand .esri-legend.esri-widget {
  max-height: 100%;
}

.esri-editor__title {
  font-size: 1rem
}

.esitaEttepanek {
  font-family: 'Raleway', sans-serif!important;
  font-weight: 300;
  margin-left: 10px
}

h1 {
  color: black;
  font-size: 35px;
  top: 0;
  margin: 0;
}

h2 {
  color: black;
  letter-spacing: 0;
}

b {
  font-weight: bold!important
}

.nähtamatu {
  display: none!important
}

#otsing {
  position: absolute;
  top: 70px;
  left: 400px;
  z-index: 1
}

#asukoht {
  position: fixed;
  bottom: 20px;
  left: 400px;
  width: 150px;
  z-index: 1
}

#editorExpand {
  position: absolute;
  top: 120px;
  left: 400px;
  box-shadow: none;
  font-size: 1.2rem;
  font-weight: bold;
}

#editorExpandPiirid {
  position: absolute;
  top: 70px;
  left: 400px;
  box-shadow: none;
  font-size: 1.2rem;
  font-weight: bold;
}

#loe-mind {
  position: fixed;
  bottom: 20px;
  left: 610px;
  width: 150px;
  z-index: 1
}

#top {
  position: fixed;
  bottom: 20px;
  left: 310px;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  z-index: 1;
}

#fullscreen {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000
}

#avaPaneel {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
}

#slider {
  height: 40px;
  margin: 20px 0
}

#infoDiv {
  background-color: white;
  padding: 10px;
  width: 260px;
  font-size: 14px;
}

.btn-secondary {
  background-color: #30415D;
  color: white !important;
  -webkit-box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.5);
  box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.5);
}

.btn-secondary:hover {
  background-color: #8EAEBD
}

.fa {
  padding-right: 10px
}

.sees {
  font-weight: 1000;
  background-color: #30415D;
  color: white !important;
}

.paneel {
  position:absolute;
  width: 390px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  left: 0px;
  top: 0px;
  margin-top: 56px;
  padding: 10px 10px 0px 10px;
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
  transition: height 0.5s;
}

.küljepaneel {
  margin: 0 10px;
  padding-top: 15px;
  border-top: 1px solid #30415D;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0px;
}

.mahuti-lisainfo {
  flex: 1;
  overflow: auto;
  overflow-x: hidden;
  overflow-y: scroll;
  padding-bottom: 75px;
}

.mahuti-legend, .mahuti-kihid {
  height: 100vh;
  padding-bottom: 65px;
}

.vasak-paneel {
  background-color: white
}

.navinupud {
  display: flex;
  justify-content: space-between;
  padding-bottom: 15px
}

.menüü {
  margin: 0 auto;
  padding: 5px 30px
}

.paneeli-pilt {
  width: 90%;
  cursor: pointer;
  margin: 10px 0
}

.modal-dialog {
  max-width: 1000px;
  top: 10%;
}

.modal-content {
  border-radius: 0px
}

.sulge-modal {
  font-size: 1.5rem;
  cursor: pointer;
  position: relative;
  text-align: center;
}

.sulge-modal:hover {
  color: white;
  background-color: #30415D
}

#naviRiba {
  position: absolute;
  top: 0px;
  color: white;
  width: 100%;
  z-index: 1;
}

#Planeeringulahendus {
  margin-bottom: 20px;
  padding: 5px 20px
}

.kp:hover {
  background-color: white;
  color: black!important;
  border: 1px #30415D solid
}

.sisukord {
  color: black
}

.link {
  color: black;
  text-decoration: underline
}

@media (max-width: 1320px) {
  .logo {
    display: none
  }
}

.nav-item {
  text-align: center;
  display: flex;
  align-items: center
}

#topbar {
  background: transparent;
  padding: 0;
  box-shadow: none
}

#mõõtkava {
  position: absolute;
  bottom: 20px;
  right: 70px;
  box-shadow: none;
  font-size: 1.2rem;
  font-weight: bold;
}

.action-button {
  border: none;
  text-align: center;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  color: white;
  background-color: #30415D;
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.action-button:hover,
.action-button:focus,
.esri-button--secondary:hover {
  background: #6C7581;
  color: #e4e4e4;
}

.active-mõõtmine {
  background-color: #a32135;
  color: #e4e4e4;
}

.dropdown{
  position: relative;
  padding: 0;
}
.dropdown__hover{
  display: inline-block;
  cursor: pointer;
}
.dropdown__menu{
  position: absolute;
  display: none;
  min-width: 200px;
  background-color: rgba(255, 255, 255);
  color: black;
  transition: all 0.3s;
  z-index: 1000
}
.dd-right{
  top: 0;
  left: 100%;
}
.dd-up {
  bottom: 100%;
  left: 0
}
.dropdown:hover .dropdown__menu {
  display: block;
}
.dropdown__menu a{
  display: block;
  text-decoration: none;
  border-width: 0;
  padding: 2px 7px
}
.dd-item {
  text-align: left;
  font-size: 1rem;
  padding: 0 auto
}
.dd-item:hover {
  color: #30415D;
  font-weight: bold;
}
span.ikoon {
  position: relative;
  margin-left: 5px
}

.tagasi {
  color: #30415D
}

#info {
  bottom: 20px;
  left: 410px;
  visibility: hidden;
  font-size: 1.7rem;
  font-weight: bold;
  color: rgb(245, 122, 122);
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.5)
}

/**  SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
  background: rgba(0,0,0,0.1);
  border: 1px solid #ccc;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #30415D;
  border: 1px solid #aaa;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff;
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(left, #22ADD4, #1E98BA);
}

/**  LOADER */
.loader {
  display: none;
  width: 80px;
  height: 80px;
  position: absolute;
  z-index: 900;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.loader div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.loader div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30415D;
  margin: -4px 0 0 -4px;
}
.loader div:nth-child(1) {
  animation-delay: -0.036s;
}
.loader div:nth-child(1):after {
  top: 63px;
  left: 63px;
}
.loader div:nth-child(2) {
  animation-delay: -0.072s;
}
.loader div:nth-child(2):after {
  top: 68px;
  left: 56px;
}
.loader div:nth-child(3) {
  animation-delay: -0.108s;
}
.loader div:nth-child(3):after {
  top: 71px;
  left: 48px;
}
.loader div:nth-child(4) {
  animation-delay: -0.144s;
}
.loader div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.loader div:nth-child(5) {
  animation-delay: -0.18s;
}
.loader div:nth-child(5):after {
  top: 71px;
  left: 32px;
}
.loader div:nth-child(6) {
  animation-delay: -0.216s;
}
.loader div:nth-child(6):after {
  top: 68px;
  left: 24px;
}
.loader div:nth-child(7) {
  animation-delay: -0.252s;
}
.loader div:nth-child(7):after {
  top: 63px;
  left: 17px;
}
.loader div:nth-child(8) {
  animation-delay: -0.288s;
}
.loader div:nth-child(8):after {
  top: 56px;
  left: 12px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.loader-show {
  display: inline-block;
}
