.ff-kanit {
  font-family: "Kanit", sans-serif;
}

.wqchart {
  height: 250px;
}

.m {
  margin: 2px 2px 2px 2px;
}

.mt-30 {
  margin-top: 19px;
}

.ml-20 {
  margin-right: 20px;
}

.mt-80 {
  margin-top: 80px;
}

.mb-30 {
  margin-bottom: 30px;
}

#map {
  height: 450px;
  border-radius: 15px;
}

@media (min-width: 768px) {
  #map {
    height: 800px;
    border-radius: 15px;
  }
}

.btn-margin {
  margin: 2px;
}

.chart {
  width: 100%;
  height: 400px;
}

.chart2 {
  width: 100%;
  height: 500px;
}

.mt-20 {
  margin-top: 20px;
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidebar a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #f1f1f1;
}

.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #111;
  color: white;
  padding: 10px 15px;
  border: none;
}

.openbtn:hover {
  background-color: #444;
}

#main {
  transition: margin-left .5s;
  padding: 16px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidebar {
    padding-top: 15px;
  }

  .sidebar a {
    font-size: 18px;
  }
}

.card-box {
  background-color: #F4FAFF;
  border-radius: 15px;
  box-shadow: 0 24px 36px rgba(0, 0, 0, 0.11), 0 0px 46px rgba(0, 0, 0, 0.04);
}

.card-box2 {
  background-color: #ffffff;
  /* border-radius: 15px; */
  /* box-shadow:0 24px 36px rgba(0, 0, 0, 0.11), 0 0px 46px rgba(0, 0, 0, 0.04); */
}

.box-listitem {
  position: fixed;
  bottom: 0;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-color: rgb(204, 18, 18);
  background-clip: padding-box;
  outline: 0;
  transition: transform .3s ease-in-out;
}

.listitem-start {
  top: 0;
  left: 0;
  width: 400px;
  border-right: 1px solid rgba(0, 0, 0, .2);
  transform: translateX(-100%);
}

.box-listitem .show {
  transform: none;
}

.gR3rXe {
  background-position: center;
  background-size: 48px 48px;
  display: inline-block;
  height: 48px;
  width: 48px;
}

.basemap-style {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  text-align: center;
  font-family: 'Noto Sans Thai', sans-serif;
  cursor: pointer;
}

.basemap-style:hover {
  color: #0563bb;
}

.basemap-style:hover>.gR3rXe {
  border: 2px solid #0563bb;
  border-radius: 8px;
}

.basemap-style:active>.gR3rXe {
  border: 2px solid #0563bb;
  border-radius: 8px;
}

.basemap-style-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  text-align: center;
  font-family: 'Noto Sans Thai', sans-serif;
  cursor: pointer;
}

.basemap-style-active>span {
  color: #0563bb;
}

.basemap-style-active>.gR3rXe {
  border: 2px solid #0563bb;
  border-radius: 8px;
  box-shadow: inset 0px 0px 0px 2.2px #fff;
}

#tool {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9999;
  overflow-y: auto;
}

@media screen and (max-width: 375px) {
  #tool {
    left: -12px;
  }
}

.radar-rain {
  cursor: pointer;
  width: 95%;
  height: 28px;
  border: 2px solid #444;
  border-radius: 20px;
  color: #F4FAFF;
  background: rgb(105, 207, 231);
  /* background: linear-gradient(90deg, rgba(105, 207, 231, 1) 0%, rgba(105, 207, 231, 1) 20%, rgba(15, 94, 127, 1) 40%, rgba(255, 220, 15, 1) 60%, rgba(252, 114, 52, 1) 80%, rgba(253, 29, 29, 1) 100%); */
  background: linear-gradient(90deg, rgba(105, 207, 231, 1) 0%, rgba(105, 207, 231, 1) 15%, rgba(74, 168, 195, 1) 30%, rgba(15, 94, 127, 1) 40%, rgba(135, 157, 71, 1) 50%, rgba(255, 232, 15, 1) 60%, rgba(254, 167, 34, 1) 70%, rgba(252, 114, 52, 1) 80%, rgba(253, 29, 29, 1) 90%, rgba(254, 1, 252, 1) 100%);
}

.Noto-14 {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 12px;
}

.tooltiptext {
  visibility: hidden;
  width: 150px;
  background-color: black;
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-radius: 6px;
  /* padding: 5px 0; */
  /* left: 50%; */
  /* Position the tooltip */
  left: 10%;
  margin-top: 28px;
  position: absolute;
  z-index: 10;
}

.radar-rain:hover .tooltiptext {
  visibility: visible;
}

.box-color {
  width: 20px;
  height: 20px;
}

.ihome {
  color: #fff;
  background: #111;
  border-radius: 50px;
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 26px;
  cursor: pointer;
}

.scrolbar-style::-webkit-scrollbar {
  width: 12px;
  /* width of the entire scrollbar */
}

.scrolbar-style::-webkit-scrollbar-track {
  background: transparent;
  /* color of the tracking area */
}

.scrolbar-style::-webkit-scrollbar-thumb {
  background-color: #717171;
  border-radius: 20px;
  border: 2px solid #ffc107;
}





/* CSS */
.button-67 {
  align-items: center;
  background: #002f86;
  border: 0;
  border-radius: 10px;
  box-shadow: -10px -10px 30px 0 #fff, 10px 10px 30px 0 #1d0dca17;
  box-sizing: border-box;
  color: #f0f0fa;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  justify-content: center;
  /* line-height: 1.5rem; */
  padding: 10px;
  position: relative;
  text-align: left;
  transition: .2s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: pre;
  width: 100%;
  word-break: normal;
  word-spacing: normal;
}


@media (min-width: 768px) {
  .button-67 {
    padding: 16px;
    font-size: 16px;
  }
}


/* Parent background
#F5F5FA */

.btn-close {
  align-items: center;
  background: #002f86;
  color: #edebf5;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  justify-content: center;
  width: 10%;
}

.btn-close:hover {
  align-items: center;
  background: #002f86;
  color: #edebf5;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  justify-content: center;
  width: 10%;
}


/* CSS */
.button-18 {
  align-items: center;
  background-color: #ecf3ff;
  border: 0;
  border-radius: 10px;
  box-sizing: border-box;
  color: #002f86;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  /* font-weight: 600; */
  justify-content: center;
  line-height: 20px;
  max-width: 480px;
  min-height: 40px;
  min-width: 0px;
  overflow: hidden;
  padding: 0px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, box-shadow 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s, color 0.167s cubic-bezier(0.4, 0, 0.2, 1) 0s;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: middle;
}

.button-18:hover,
.button-18:focus {
  background-color: #d3e5ff;
  /* border: 1px solid #2a1f62; */
  color: #002f86;
}

.button-18:active {
  background: #c0d9ff;
  color: #002f86;
}

.button-18:disabled {
  cursor: not-allowed;
  background: rgba(0, 0, 0, .08);
  color: rgba(0, 0, 0, .3);
}

@media (min-width: 768px) {
  .button-18 {
    padding: 16px;
    font-size: 16px;
  }
}

.legend {
  padding: 6px 8px;
  font-size: 12px;
  font-family: "Kanit", sans-serif;
  background: white;
  background: rgba(255, 255, 255);
  /*box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);*/
  border-radius: 5px;
  line-height: 24px;
  color: #555;
  width: 100%;
}

.legend i.icon {
  background-size: 18px;
  background-color: rgba(255, 255, 255, 1);
}

.btn-select {
  align-items: center;
  background: #002f86;
  color: #edebf5;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  justify-content: center;
  width: 160px;
  padding: 10px;
}

.btn-select:hover,
.btn-select:focus {
  background-color: #002f86;
  /* border: 1px solid #2a1f62; */
  color: #edebf5;
}

.bg-bage {
  background-color: #cadbfa;
  color: #002f86;
}


/* .leaflet-control-layers-toggle {
  background-image: url(https://i.stack.imgur.com/3keSg.png) !important;
  background-color: #0a5a88;
  background-size: 20px 20px;
}

.leaflet-touch .leaflet-control-layers-toggle {
  background-image: url(https://i.stack.imgur.com/3keSg.png) !important;
  background-color: #002f86;
  background-size: 20px 20px;
  border-radius: 25px;
} */

.leaflet-control-layers-list {
  color: rgb(0, 0, 0);
  background-color: #ffffff49;
  font-family: "Kanit", sans-serif;
  padding: 6px 10px 6px 6px;
}