   html,
   body {
       height: 100%;
       padding: 0;
       margin: 0;
       font-family: arial;

   }

    a:link{
        color: #0056b3;
    }




   .header_style{
    background-color: rgb(255, 255, 255) ;
    color: rgb(18, 28, 118);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
   }
   #title {
       position: absolute;
       top: 0%;
       left: 0%;
       width: 100%;
       height: 9%;
       background-color: #f1f3f4;
       border: 1px solid darkgrey;
   }

   #map {
       position: absolute;
       top: 9%;
       left: 19%;
       width: 81%;
       height: 91%;
       overflow: scroll;
       border: 0.5px solid #4CAF50;
   }

   #wms_layers_btn {
       position: absolute;
       z-index: 500;
       top: 1%;
       left: 60%;
   }

   #data {
       width: 60%;
   }

   #table_data {
       position: absolute;
       bottom: 0%;
       overflow: scroll;
       left: 19.5%;
       right: 0%;
       height: 0%;
       border: 1px solid #4CAF50;
   }

   #table {
       white-space: nowrap;
       grid-template-areas: "head-fixed" "body-scrollable";
   }

   #table_popup {
       white-space: nowrap;
       grid-template-areas: "head-fixed" "body-scrollable";
   }

   #showData {
       overflow: auto;
       width: 100%;
   }


   #table th {
       position: -webkit-sticky;
       /* for Safari */
       position: sticky;
       top: 0;
       background-color: darksalmon;
   }

   #table_popup th {
       position: -webkit-sticky;
       /* for Safari */
       position: sticky;
       top: 0;
       background-color: rgb(181, 209, 238);
       border: 0.5px solid #000;
   }

   #table_popup td {
       position: -webkit-sticky;
       /* for Safari */
       position: sticky;
       top: 0;
       background-color: rgb(218, 218, 230);
       border: 0.5px solid #000;
   }

   #table_wms_layers {

       white-space: nowrap;
       border-collapse: separate;
       font-family: arial;
       font-size: 14px;

   }

   #table_wms_layers th {
       position: -webkit-sticky;
       /* for Safari */
       position: sticky;
       top: 0;
       background-color: darksalmon;
   }

   /*
   #clear_btn {
       display: flex;
       position: absolute;
       background-color: transparent;
       border: none;
       z-index: 1000;
       top: 0%;
       left: 0%;
       width: 30px;
       height: 30px;
       font-size: 21px;

   }
*/
   #btn_do_chieu_dai {
       position: absolute;
       display: flex;
       align-items: center;
       justify-content: center;
       position: absolute;
       background-color: #fff8f8;
       border: 1px solid #ccc;
       z-index: 1000;
       bottom: 3.2em;
       right: 0.25em;
       ;
       width: 38px;
       height: 38px;
       font-size: 28px;
       border-radius: 3px;
       transition: border-color 0.3s;

       /* Tạo hiệu ứng mềm cho thay đổi màu viền */
       /* Thay đổi màu viền khi di chuột vào */
       &:hover {
           border-color: #615f5f;
           /* Màu viền khi di chuột vào */
       }
   }

   #btn_do_dt {
       position: absolute;
       display: flex;
       align-items: center;
       justify-content: center;
       position: absolute;
       background-color: #fff8f8;
       border: 1px solid #ccc;
       z-index: 1000;
       bottom: 1.52em;
       right: 0.25em;
       width: 38px;
       height: 38px;
       font-size: 28px;
       border-radius: 3px;
       transition: border-color 0.3s;

       /* Thay đổi màu viền khi di chuột vào */
       &:hover {
           border-color: #615f5f;
           /* Màu viền khi di chuột vào */
       }
   }

   .hover-content {
       display: none;
       position: absolute;
       /* Sử dụng vị trí tương đối */
       background-color: #f1f1f1;
       border: 1px solid #ccc;
       padding: 1px;
       font-size: 15;
       z-index: 1;

       /* Đảm bảo nội dung nằm trên nút */
   }

   .ol-mouse-position {
       top: 97%;
       right: 20%;
       position: absolute;
       font-weight: bold;
   }

   .layer-switcher.shown {
       max-height: 465px;
   }

   #query_tab {
       position: absolute;
       padding: 0.5% 0%;
       top: 9%;
       height: 54%;
       overflow: scroll;
       width: 19%;
       left: 0.5%;

   }

   .tab-content {
       position: relative;
       top: 1%;
       width: 85%;
       height: 85%;
       /*
       overflow: scroll;
       border: 1px solid blue;
       */
   }

   #legend {
       z-index: 11;
       padding: 2px 4px;
       border: 1px solid grey;
       position: absolute;
       bottom: 0%;
       height: 38%;
       overflow: scroll;
       width: 19%;
       left: 0.5%;
       background-color: #ffffff;
       font-weight: bold;
   }

   .ol-popup {

       position: absolute;
       background-color: white;
       /*
       -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
       filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));
       */
       padding: 15px;
       border-radius: 10px;
       border: 1px solid #cccccc;
       bottom: 12px;
       left: -50px;
       min-width: 280px;
       max-width: 800px;
       max-height: 500px;
       overflow-x: auto;
       overflow-y: auto
   }

   /*
   .ol-popup:after {
       content: "";
       position: absolute;
       top: 100%;
       left: 50%;
       margin-left: -5px;
       border-width: 5px;
       border-style: solid;
       border-color: #555 transparent transparent transparent;
   }
   */
   .ol-popup:before {
       top: 100%;
       border: solid transparent;
       content: " ";
       height: 0;
       width: 0;
       position: absolute;
       pointer-events: none;
   }

   .ol-popup:after {
       border-top-color: white;
       border-width: 10px;
       left: 48px;
       margin-left: -10px;
   }

   .ol-popup:before {
       border-top-color: #cccccc;
       border-width: 11px;
       left: 48px;
       margin-left: -11px;
   }

   .ol-popup-closer {
       text-decoration: none;
       position: absolute;
       z-index: 999;
       top: 1px;
       right: 10px;
   }

   .ol-popup-closer:after {
       content: "X";
       position: fixed;
   }

   #measure {
       position: absolute;
       z-index: 50;
       top: 30%;
       /*
       height:1%;
       */
       left: 0.1%;

   }

   #measuretype {
       display: none;

   }

   #getinfo {
       position: absolute;
       z-index: 50;
       top: 1%;
       /*
       height:15px;
       */
       left: 30%;

   }

   #Hienthipopup {
       position: absolute;
       display: inline;
       background-color: white;
       border-radius: 10px;
       background-origin: padding-box;
       padding: 2px;
       z-index: 50;
       top: 0.5%;
       /*
       height:15px;
       */
       left: 3.5em;
       font-size: 12px;

   }

   .tooltip {
       position: relative;
       background: rgba(0, 0, 0, 0.5);
       border-radius: 4px;
       color: white;
       padding: 4px 8px;
       opacity: 0.7;
       white-space: nowrap;
   }

   .tooltip-measure {
       opacity: 1;
       font-weight: bold;
   }

   .tooltip-static {
       background-color: #ffcc33;
       color: black;
       border: 1px solid white;
   }

   .tooltip-measure:before,
   .tooltip-static:before {
       border-top: 6px solid rgba(0, 0, 0, 0.5);
       border-right: 6px solid transparent;
       border-left: 6px solid transparent;
       content: "";
       position: absolute;
       bottom: -6px;
       margin-left: -7px;
       left: 50%;
   }

   .tooltip-static:before {
       border-top-color: #ffcc33;
   }


   /*---------*/
   button.btn-settings {
       margin: 25px;
       padding: 20px 30px;
       font-size: 1.2em;
       background-color: #337ab7;
       color: white;
   }

   button.btn-settings:active {
       color: white;
   }

   .modal {
       overflow: hidden;
   }

   .modal-dialog {

       height: 300px;
   }

   .modal-header {
       height: 30px;
       padding: 20px;
       background-color: #18456b;
       color: white;
   }

   .modal-title {
       margin-top: -10px;
       font-size: 16px;
   }

   .modal-header .close {
       margin-top: -10px;
       color: #fff;
   }

   .modal-body {
       color: #888;
       padding: 5px 35px 20px;
   }

   .modal-body h3 {
       text-align: center;
   }

   .modal-body p {
       padding-top: 10px;
       font-size: 1.1em;
   }

   #btn-xoa {
       padding-right: 10px;
       /* Thêm khoảng trắng bên phải của nội dung */
   }

   #btn-xoa .fas {
       margin-right: 5px;
       /* Thêm khoảng trắng bên phải của biểu tượng */
   }

   #btn-xoa {
       background-color: #FF0000;
       /* Mã màu đỏ */
   }

   /* Đặt vị trí của nút */
   /* Chỉnh logo*/
   .logo {
       position: absolute;
       top: 0.5em;
       left: 8.0em;
       width: 117px;
       /* Đặt chiều rộng */
       height: 71px;
       /* Đặt chiều cao */
   }

   /* Header */
   header {
       background-color: #3498db;
       /* Chọn màu bạn muốn ở đây */
       color: #0a21ee;
       /* Màu chữ trắng hoặc màu tương tự cho sự tương phản */
       padding: 0px;
       /* Khoảng cách giữa nền và vị trí text */
       height: 100%;
   }

   /* CSS để tùy chỉnh header và vị trí text khác (nếu cần) */
   h1 {
       font-size: 25px;
       font-weight: bold;
       /* Kích thước chữ của vị trí text */
       margin: 0;
       /* Loại bỏ khoảng cách ngoài của vị trí text */
       position: fixed;
       /* Đặt header làm phần cố định */
       top: 15px;
       /* Đặt header ở phía trên cùng */
       left: 10.5em;
       /* Đặt header ở phía trái */
       width: 100%;
       /* Đặt header chiếm toàn bộ chiều rộng */
   }

   nav {
       margin-right: 10px;
       position: fixed;
       top: 40px;
       left: 18em;
   }

   nav ul {
       list-style: none;
       padding: 0;
       margin: 0;
       display: flex;
   }

   nav li {
       margin-right: 10px;
       position: relative;
       /* Tạo khoảng cách giữa các mục menu */
   }

   /* CSS để tùy chỉnh màu chữ khi di chuột qua mục menu */
   nav li:hover a {
       color: #e74c3c;
       /* Màu chữ khi di chuột vào */
   }

   nav a {
       text-decoration: none;
       color: #fff;
       font-weight: bold;
       font-size: 16px;
       display: block;
       /* Để mục menu trở thành hình chữ nhật */
       padding: 10px 10px;
       /* Khoảng cách nội dung menu */
   }

   /* CSS để tùy chỉnh màu nền khi di chuột qua mục menu */
   nav li:hover {
       background-color: transparent;
       padding: 0px 0px;
       /* Chỉnh kích thước nền menu khi di chuột vào */
   }

   /* CSS để tạo hiệu ứng hiển thị menu ngang */
   nav ul {
       position: relative;
   }

   nav ul::before {
       content: "";
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 2px;
       /* Chiều cao của dòng ngang */
       background-color: #fff;
       /* Màu của dòng ngang */
       display: none;
   }

   /* CSS để thêm khoảng cách giữa header và nội dung chính */
   .content {
       margin-top: 50px;
       /* Để tránh bị che phủ bởi menu */
   }
   /* Định vị GPS*/
   .geolocation-marker {
       width: 20px;
       height: 20px;
       border: 2px solid #fff;
       border-radius: 50%;
       background-color: #2e64c7;
       position: relative;
	   animation: pulse 1.5s ease-in-out infinite;
   }

   .arrow {
       width: 0;
       height: 0;
       border-left: 6px solid transparent;
       border-right: 6px solid transparent;
       border-bottom: 12px solid rgb(159, 13, 159);
       /* Màu của mũi tên */
       position: absolute;
       top: 50%;
       left: 50%;
       transform-origin: bottom center;
       transform: translate(-50%, -50%);
       transition: transform 0.5s;
       /* Thời gian chuyển đổi */
   }
   /* Định nghĩa animation */
   @keyframes pulse {
       0% {
           transform: scale(1);
       }

       50% {
           transform: scale(1.2);
       }

       100% {
           transform: scale(1);
       }
   }
   /*  Mặt cắt địa hình*/
   #toggleCuttingButton {
       position: absolute;
       display: flex;
       align-items: center;
       justify-content: center;
       position: absolute;
       background-color: #fff8f8;
       border: 1px solid #ccc;
       z-index: 1000;
       bottom: 5.0em;
       right: 0.25em;
       width: 38px;
       height: 38px;
       font-size: 28px;
       border-radius: 3px;
       transition: border-color 0.3s;

       /* Thay đổi màu viền khi di chuột vào */
       &:hover {
           border-color: #615f5f;
           /* Màu viền khi di chuột vào */
       }
   }
    .tooltip {
       position: relative;
       background: rgba(0, 0, 0, 0.5);
       border-radius: 4px;
       color: white;
       padding: 4px 8px;
       opacity: 0.7;
       white-space: nowrap;
   }
   
   body {
       display: flex;
       justify-content: flex-end;
       align-items: flex-end;
       height: 100vh;
       margin: 0;
   }
   

   #tooltip {
       display: none;
       position: relative;
       background: rgba(0, 0, 0, 0.5);
       border-radius: 4px;
       color: white;
       padding: 4px 8px;
       opacity: 0.7;
       white-space: nowrap;
       z-index: 999;
   }
   
   /*CSS API TAU*/
   .popup {
       display: none;
       position: absolute;
       background-color: #fff;
       border: 1px solid #ccc;
       border-radius: 10px;
       padding: 10px;
       z-index: 9999;
       max-width: 400px;
       /* Điều chỉnh kích thước popup tùy theo nhu cầu */
   }

   .popup-content table {
       width: 100%;
   }

   .popup-content td {
       padding: 5px;
       border-bottom: 1px solid #ccc;
   }

   .popup-content td:last-child {
       border-bottom: none;
   }

   .popup-content strong {
       display: inline-block;
       width: 100px;
       /* Điều chỉnh kích thước phần đầu mục tùy theo nhu cầu */
       font-weight: bold;
   }

   /* CSS để tạo giao diện cho nút "X" */
   .popup-close {
       /* Định dạng chung cho nút "X" */
       cursor: pointer;
       padding: 2px;
       background-color: rgb(238, 234, 234);
       /* Màu nền */
       color: #e71515;
       font-size: 20px;
       /* Màu chữ */
       border: none;
       border-radius: 2px;

       /* Bo góc */
   }

   /* Định dạng hover khi di chuột vào nút "X" */
   .popup-close:hover {
       background-color: #ff5555;
       /* Màu nền khi hover */
       color: #fff;
       /* Màu chữ khi hover */
   }

   /* CSS cho nút "Xem chi tiết" */
   #view-details-btn {
       padding: 8px 16px;
       background-color: #007bff;
       /* Màu nền của nút */
       color: #fff;
       /* Màu chữ của nút */
       border: none;
       border-radius: 4px;
       cursor: pointer;
       transition: background-color 0.3s ease;
       /* Hiệu ứng hover */
   }

   #view-details-btn:hover {
       background-color: #0056b3;
       /* Màu nền của nút khi di chuột vào */
   }