html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#map {
  height: 1200px;
  width: 100%;
}

.overlay {
  position: absolute;
  top: 85px;
  left: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  padding: 15px 15px;
  border-radius: 5px;
  z-index: 1000;
}

.modal-station {
  width: 700px;
  margin-bottom: 2px;
}

.row-rid-ui {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.column-rid-ui {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.position-rid-bottom-ui {
  position: absolute;
  z-index: 1;
  right: 50px;
  bottom: 80px;
  width: 250px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 5px;
  z-index: 1000;
}

.position-rid-top-ui {
  position: absolute;
  z-index: 1;
  right: 30px;
  top: 90px;
  width: 250px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 5px;
  z-index: 1000;
}

.center_x_y {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scale-marker-left {
  position: absolute;
  width: 70%;
  height: 1px;
  background-color: transparent;
  border-top: 1px solid #333;
}

.marker-10-left {
  top: 10%;
  border-color: red;
}

.marker-30-left {
  top: 30%;
  border-color: yellow;
}

.marker-60-left {
  left: 4px;
  top: 60%;
  border-color: yellow;
}

.marker-90-left {
  left: 3px;
  top: 90%;
  border-color: red;
}

.scale-marker-right {
  position: absolute;
  width: 70%;
  height: 1px;
  background-color: transparent;
  border-top: 1px solid #333;
}

.marker-10-right {
  top: 10%;
  border-color: red;
}

.marker-30-right {
  top: 30%;
  border-color: yellow;
}

.marker-60-right {
  left: 4px;
  top: 60%;
  border-color: yellow;
}

.marker-90-right {
  left: 3px;
  top: 90%;
  border-color: red;
}

.label-left {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
}

.label-right {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
}

.show-percent {
  font-size: 8px;
}

.bar-left {
  position: relative;
  width: 12px;
  height: 60px;
  background-color: #e0e0e0;
  border-radius: 2px;
}

.bar-right {
  position: relative;
  width: 12px;
  height: 60px;
  background-color: #e0e0e0;
  border-radius: 2px;
}

.fill-left {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #76c7c0;
  border-radius: 2px;
  transition: height 0.3s;
}

.fill-right {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #76c7c0;
  border-radius: 2px;
  transition: height 0.3s;
}

.text-main-half-ui {
  margin: 0;
  font-family: "Kanit", sans-serif;
  font-size: 14px;
}

.text-second-ui {
  margin: 0;
  margin-top: 4px;
  color: #000;
  line-height: 1;
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 10px;
}

.text-second {
  margin: 0;
  margin-top: 4px;
  color: #000;
  line-height: 1;
  font-family: "Kanit", sans-serif;
  font-weight: 500;
  font-size: 10px;
}

.icon-floor-gate {
  width: 164px;
  height: 104px;
}

.bg-time {
  position: relative;
  overflow: hidden;
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: auto;
  min-height: 110px;
  max-height: 110px;
  padding: 5px;
  background: url(../images/stars.png) round rgb(0, 13, 38);
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  box-sizing: border-box;
}

.center_all {
  display: flex;
  justify-content: center;
  align-items: center;
}

.cctv-thumnail {
  width: 120px;
  height: 80px;
  background-color: lightgray;
}

.gm-ui-hover-effect {
  display: none !important;
}

.spinnerLoadingOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.floorgate-parent {
  width: 400px; 
  height: 280px; 
  position:relative; 
  overflow:hidden;
}

.floorgate-image {
  width: 100%; 
  height: 280px; 
  position:absolute;
}

.cctv-thumnail-parent {
  width: 120px; 
  height: 80px; 
  position:relative; 
  overflow:hidden;
}

.cctv-thumnail-image {
  width: 120px; 
  height: 80px; 
  position:absolute;
  cursor: pointer;
}

/* Modal styles */
.modal-cctv {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-cctv-content {
  position: relative;
  max-width: 60%;
  max-height: 60%;
}

.modal-cctv img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.close-icon {
  color: grey;
  font-size: 18px;
  cursor: pointer;
}