:root {
  --eesti-2050-sinine: #E5EFFE;
  --sinine-60: #5396FB;
  --toila: #964542;
  --mustkivi: #323334;
  --paldiski: #0062F5;
  --calcite-ui-focus-color:#5396FB;
  --calcite-ui-brand:#5396FB
}

*:focus {
    outline: none;
}

*, ::after, ::before {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  bottom: 0;
  top: 0;
  height: 100vh;
}

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

h1 {
  color: var(--mustkivi);
  font-size: 35px;
  top: 0;
  margin: 0;
}

h2 {
  color: var(--toila);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin: 0;
  padding-top: 20px;
}

h3 {
  margin: 5px 0;
  color: var(--toila);
  font-size: 1rem;
}

h4 {
  font-size: 1.1rem;
  margin: 10px 0;
  color: var(--toila);
}

h4 a {
  color: var(--toila);
}

p {
  color: var(--mustkivi)
}

a {
  text-decoration: none;
  color: var(--mustkivi);
}

hr {
  margin-top: 2rem;
}

input::placeholder {
  color: var(--mustkivi);
  font-family: 'Roboto Flex', sans-serif;
  font-size: 0.9rem;
}

.page-content-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(470px, 35%) 1fr;
  grid-template-rows: 56px 1fr;
  transition: 300ms;
  overflow-x: hidden;
}

.mapframe {
  padding: 0;
  position: relative;
  grid-row-start: 2;
  margin: 0;
  height: 100%
}

.pilt-kaardiaknas {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url(../img/Avavaade-min.jpg) no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #D2C3D4;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: all 1s;
  overflow: hidden;
}

.pilt-kaardiaknas.aktiivne {
  opacity: 1;
  z-index: 10;
}

.cover-logo {
  height: auto;
  width: 250px;
  margin-top: auto;
}

.kontaktid {
  display: flex;
  margin-top: auto;
}

.kontaktid-element p {
  color: white;
  margin: 10px;
  font-family: 'Space Grotesk', sans-serif;
  text-align: center;
}

.kontaktid-element a {
  color: white
}

p.kontaktid-title {
  font-weight: 700;
  margin: 5px;
}

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

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

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

#ls:hover {
  color: var(--sinine-60);
  background-color: white;
}

.esri-attribution {
  display: none
}

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

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

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

.esri-widget--button {
  color: white;
  background-color: var(--sinine-60);
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.esri-widget--button:hover {
  background-color: var(--toila);
  color: white
}

.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;
  color: var(--sinine-60)
}

.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: var(--sinine-60);
  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-scale-bar__bar-container {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px
}

.esri-slider__thumb {
  border: 2px solid var(--sinine-60)
}

.esri-icon-right::before {
  margin-left: 2px;
  position: absolute;
  top: 0;
  font-size: 1.2rem;
  color: var(--sinine-60);
}

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

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

.valitud {
  font-weight: bold;
  background-color: var(--sinine-60);
  color: white
}

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

.btn-secondary {
  background-color: var(--sinine-60);
  color: white !important;
}

.btn-secondary:hover {
  background-color: var(--toila)
}

.fa {
  padding-right: 10px
}

.paneel {
  position: relative;
  overflow: hidden;
  grid-row-start: 2;
  grid-column-start: 1;
  display: flex;
  flex-direction: column;
  left: 0px;
  top: 0px;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--mustkivi);
}

.küljepaneel {
  margin: 0;
  padding: 15px 10px 10px 10px;
  border-top: 1px solid var(--sinine-60);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0px;
}

#top {
  margin: auto;
	position: absolute;
  left: 0;
	bottom: 20px; 
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  z-index: 1;
  cursor: pointer;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

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

.reveal {
  position: relative;
  transform: translateY(25px);
  opacity: 0;
}

.section-header {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  margin: 30px 0;
}

h2.pealkiri {
  color: var(--toila);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  width: 80%;
  margin: 0 0 0 20px;
}

.section-img {
  width: 30%;
  height: auto;
}

.reveal.active {
  transform: translateY(0px);
  opacity: 1;
  transition: all 1.5s ease;
}

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

.vasak-paneel {
  background-color: white
}

.navinupud {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 5px 10px 15px 10px
}

.menüü {
  position: relative;
  color: var(--sinine-60);
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
  padding: 7px 30px;
  width: 100%;
  transition: transform 0.2s ease-in-out;
}

.menüü:hover:not(.sees) {
  transform: scale(1.1);
}

.sees {
  font-weight: 1000;
  background-color: white;
  color: var(--sinine-60);
}

.sees::before {
  content: "";
  width: 100%;
  height: 4px;
  background-color: var(--sinine-60);
  position: absolute;
  bottom: -18px;
  left: 0;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

#valuePickerÜT {
  height: 30px;
  margin-bottom: 30px;
}

.esri-value-picker__layout--horizontal.esri-value-picker__type--combobox {
  /* max-width: 50%; */
  min-width: 50%
}

#naviRiba {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  grid-column-start: 1;
  grid-column-end: 3;
  top: 0px;
  color: white;
  background-color: var(--sinine-60);
  width: 100%;
  padding: 0 15px;
}

.naviriba-pealkiri {
  margin: 0;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  white-space: nowrap
}

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

.naviriba-parem .naviriba-pealkiri {
  margin-right: 20px;
  font-size: 1.1rem;
}

#naviRiba .bar1, .bar2, .bar3 {
  background-color: white;
  height: 3px;
  width: 36px;
  margin: 4px;
  border-radius: 10px;
}

#naviRiba .hamburger {
  display: none;
  cursor: pointer;
}

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

.offcanvas-header {
  color: black;
}

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

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

.action-button:hover,
.action-button:focus,
.esri-button--secondary:hover {
  background-color: var(--toila);
  color: white
}

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

/**  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: var(--sinine-60);
  border: 1px solid #aaa;
}

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

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

#ValuePicker {
  margin: 20px 0
}

/* TOGGLE */

.toggle-div {
  padding: 20px 0;
  display: flex;
  justify-content: left;
}
.toggle-div label {
  font-weight: 700;
  cursor: pointer;
  color: var(--sinine-60)
}
.toggle {
  opacity: 0;
}
.toggle + label {
  position: relative;
  padding-left: 4.6rem;
}
.toggle + label::before {
  content: "";
  background-color: #c6d0cc;
  position: absolute;
  top: -40%;
  left: 0;
  width: 4rem;
  height: 2rem;
  border-radius: 1.25rem;
  transition: background-color 0.2s;
  cursor: pointer;
}

.toggle + label::after {
  content: "";
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  top: -0.35rem;
  left: 0.2rem;
  transition: transform 0.2s;
  cursor: pointer;
}

.toggle:checked + label::before {
  background-color: var(--sinine-60);
}

.toggle:checked + label::after {
  transform: translateX(1.9rem);
}

/* OTSING */

.input-box{
  position: absolute;
  left: -25px;
  top: 15px;
  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: 50%;
}
input.search-input{
  position: relative;
  outline: none;
  border: none;
  height: 100%;
  width: 100%;
  padding-left: 10px;
  border-radius: 6px;
  font-family: Roboto;
  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: var(--sinine-60);
}
.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: var(--sinine-60);
  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: var(--sinine-60);
  color: white!important;
}

/* LOGIN */

#loginCover {
  position: absolute;
  background-image: url("https://hendrikson.ee/wp-content/uploads/2022/01/hero-bg-1920x980.png");
  z-index: 1000;
  display: none;
  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: var(--sinine-60);
  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: var(--sinine-60);
  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;
}

/* MEDIA QUERIES */

@media (max-width: 1100px) {
  .input-box.open {
    max-width: 70%;
  }
  .input-box.open input {
    font-size: 12px;
  }
}

@media (max-width: 750px) {
  .esri-value-picker__layout--horizontal.esri-value-picker__type--slider .esri-value-picker__action-bar {
    width: 80%;
  }
  .logo {
    display: none
  }
  .page-content-wrapper {
    grid-template-columns: 0% 100%;
  }
  .sidebar-open {
    grid-template-columns: 100% 0%;
  }
  .input-box.open {
    max-width: 70%;
  }
  .input-box.open input {
    font-size: 12px;
  }
  .naviriba-pealkiri {
    font-size: 1rem;
  }
  #naviRiba .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .animateBar1 {
    animation: flipBar1 300ms;
    animation-fill-mode: forwards;
  }
  .animateBar2 {
    animation: fadeBar2 300ms;
    animation-fill-mode: forwards;
  }
  .animateBar3 {
    animation: flipBar3 300ms;
    animation-fill-mode: forwards;
  }
  @keyframes flipBar1 {
    from {
      transform: rotate(0);
    }
    to {
      transform: rotate(45deg) translate(6px, 10px);
    }
  }
  
  @keyframes fadeBar2 {
    from {
      transform: scaleX(1);
      opacity: 1;
    }
    to {
      transform: scaleX(0);
      opacity: 0;
    }
  }
  
  @keyframes flipBar3 {
    from {
      transform: rotate(0);
    }
    to {
      transform: rotate(-45deg) translate(6px, -10px);
    }
  }

  .esri-value-picker .esri-slider__tick-label {
    font-size: 0.35rem;
  }
}
