:root {
  --calcite-ui-icon-color: #30415D;
  --calcite-sans-family: 'Raleway', sans-serif;
  /* --calcite-color-brand: rgba(0, 0, 0, 0); */
  /* --calcite-color-transparent-hover: rgba(0, 0, 0, 0); */
}

.calcite-mode-light {
  --calcite-color-brand: #30415D;
}

*:focus {
    outline: none;
}

* {
  --calcite-color-foreground-2: none;
}

html {
  overflow: hidden;
}

b {
  font-weight: bold;
}

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

.ümbris {
  padding: 0;
  position: absolute;
  margin: 0;
  height: 100vh;
  left: 460px;
  right: 0;
}

.esri-view-surface::after {
  outline: none!important
}

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

.navbar-brand {
  margin: 0;
  padding-right: 0.7rem;
}

#ls {
  font-size: 1rem; 
  border: 1px solid white; 
  padding: 6px;
}

#ls:hover {
  color: #30415D;
  background-color: white;
}

.navbar-dark .navbar-brand {
  color: white;
}

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

.nav-link {
  color: white;
}

.nav-link:hover {
  color: white;
}

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

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

.navi .btn {
  padding: 0;
  font-size: 0.7rem;
  margin-right: 0.5rem;
}

#instructions {
  width: 300px;
  background: #fff;
  padding: 20px;
  font-family: inherit;
}

.esri-attribution {
  display: none
}

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

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

.esri-ui-corner {
  padding-top: 55px
}

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

.esri-widget {
  color: black;
  font-family: 'Raleway', sans-serif;;
}

.esri-widget--button {
  color: white;
  background-color: #30415D;
  width: 40px;
  height: 40px;
  font-size: 20px;
}

calcite-button {
  --calcite-color-text-1: #30415D;
  --calcite-color-text-2: #30415D;
  --calcite-color-text-3: white;
}

.esri-widget-button:hover {
  background-color: rgb(230, 230, 230);
  color: #30415D
}

.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;
}


calcite-flow {
  --calcite-color-border-3: none;
  --calcite-color-background: white;
  --calcite-color-foreground-1: white
}

#mahuti-kihid calcite-list:first-child {
  overflow-y: scroll;
}

calcite-flow-item calcite-list {
  overflow-y: hidden;
}

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

.esri-layer-list__item-content-bottom {
  margin: 0
}

.esri-layer-list__item-title, .esri-layer-list__item-content {
  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-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 {
  position: absolute;
}

.esri-expand__content--expanded, .esri-expand__content {
  margin: 0
}

.esri-ui .esri-editor__scroller {
  max-height: 400px;
}

.esri-item-list__filter-container--sticky {
  display: none;
}

.esri-editor__feature-templates-container {
  margin-top: 15px;
}

.esri-scale-bar__bar-container {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px
}

.esri-list-item-panel .esri-legend__layer-caption {
  display: none;
}

#maaomandExpand {
  position: absolute;
  top: 107px;
  left: 20px
}

#maaomand-filter {
  width: 100%;
  visibility: hidden;
}

#tühistaValik {
  position: absolute;
  top: 155px;
  left: 20px;
  visibility: hidden;
}

.nähtav {
  visibility: visible!important;
}

.disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
}

.omanik-item {
  width: 100%;
  padding: 5px 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.omanik-item:focus {
  background-color: #30415D;
}

.omanik-item:hover {
  background-color: #30415D;
  color: white
}

.valitud {
  font-weight: bold;
  background-color: #30415D;
  color: white
}

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

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

.nähtamatu {
  opacity: 0;
  height: 0 !important;
  width: 0;
}

.btn-secondary {
  background-color: #30415D;
  color: white !important;
}

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

.fa {
  padding-right: 10px
}

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

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

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

.mahuti-lisainfo {
  flex: 1;
  padding: 0 5px;
  overflow: auto;
  overflow-x: hidden;
}

.mahuti-legend, .mahuti-kihid {
  height: 100%;
}

.vasak-paneel {
  background-color: white
}

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

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

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

.modal-dialog {
  max-width: 60%
}

.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: 2;
}

.navbar {
  background-color: #30415D!important;
  color: white;
}

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

.svg-inline--fa {
  margin-right: 5px;
}

.offcanvas-header {
  color: black;
}

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

#mõõtkava {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-shadow: -0.5px 0.5px 0 white,
                          0.5px 0.5px 0 white,
                         0.5px -0.5px 0 white,
                        -0.5px -0.5px 0 white;
  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-color: rgb(230, 230, 230);
  color: #30415D
}

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

.parkdiv {
  padding: 7px;
  border-bottom: 1px solid gray;
  cursor: pointer;
}

.parkdiv:hover {
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
}

.parktitle, .parkcontent {
  margin-bottom: 0;
}

.parktitle {
  font-weight: bold;
}

.parkcontent {
  font-size: 0.9rem;
}

/**  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);
}

/* OTSING */

.input-box{
  position: absolute;
  left: -25px;
  top: 65px;
  height: 40px;
  max-width: 40px;
  width: 100%;
  margin: 0 40px;
  border-radius: 0px;
  background-color: #fff;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.input-box.open{
  max-width: 380px;
}
input{
  position: relative;
  outline: none;
  border: none;
  height: 100%;
  width: 100%;
  padding-left: 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 400;
  color: #333;
  background-color: #fff;
}
.input-box.open{
  padding: 0 0 0 40px;
}
.icon{
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  width: 40px;
  border-radius: 0px;
  display: flex;
  justify-content: center;
  background-color: #30415D;
}
.search-icon,
.close-icon{
  position: absolute;
  top: 50%;
  font-size: 30px;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.search-icon{
  color: white;
  cursor: pointer;
  
  transform: translateY(-50%) rotate(90deg);
}
.input-box.open .search-icon{
  transform: translateY(-50%) rotate(0);
}
.close-icon{
  right: -45px;
  color: #30415D;
  padding: 5px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(-50%);
}
.input-box.open .close-icon{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) rotate(180deg);
}
.dropdown {
  max-height: 600px;
  overflow-y: hidden;
  width: 340px;
  background-color: white;
}
.otsingu_tulemus {
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: black;
  padding: 3px
}
.otsingu_tulemus:hover {
  background-color: #30415D;
  color: white!important;
}

/* LOGIN */

#loginCover {
  position: absolute;
  background-size: cover;
  background-image: url("../img/Kadrina_vald_droon_UM.png");
  z-index: 1000;
  display: block;
  height: 100vh;
  width: 100%;
}

.show-btn{
  background: #fff;
  padding: 10px 20px;
  font-size: 20px;
  font-weight: 500;
  color: #3498db;
  cursor: pointer;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}
.show-btn, .loginForm{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

input[type="checkbox"]{
  display: none;
}
.loginForm{
  display: flex;
  flex-direction: column;
  justify-content: center;
  display: block;
  background: #fff;
  padding: 30px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
#show:checked ~ .loginForm{
  display: block;
}
.loginForm .close-btn{
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 18px;
  cursor: pointer;
}
.loginForm .close-btn:hover{
  color: #3498db;
}
.loginForm .text{
  font-size: 1.6rem;
  text-align: center;
}
.loginForm form{
  margin-top: -20px;
}
.loginForm form .data{
  height: 45px;
  width: 100%;
  margin: 40px 0;
}
form .data input{
  height: 100%;
  width: 100%;
  padding-left: 10px;
  border-radius: 0px;
  border: 1px solid silver;
}
form .data input:focus{
  border-color: #3498db;
  border-bottom-width: 2px;
}
form .forgot-pass{
  margin-top: -8px;
}
form .forgot-pass a{
  color: #3498db;
  text-decoration: none;
}
form .forgot-pass a:hover{
  text-decoration: underline;
}
form .submit-section{
  margin: 30px 0;
  height: 45px;
  width: 100%;
  position: relative;
  overflow: hidden;
}
form .submit-section .inner{
  height: 100%;
  width: 300%;
  position: absolute;
  left: -100%;
  z-index: -1;
  background-color: #30415D;
  transition: all 0.4s;
}
form .submit-section:hover .inner{
  left: 0;
}
form .submit-section button{
  height: 100%;
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}
form .signup-link{
  text-align: center;
}
form .signup-link a{
  color: #3498db;
  text-decoration: none;
}
form .signup-link a:hover{
  text-decoration: underline;
}

/* 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;
}
