:root,
:host {
  --ol-background-color: white;
  --ol-accent-background-color: #F5F5F5;
  --ol-subtle-background-color: rgba(128, 128, 128, 0.25);
  --ol-partial-background-color: rgba(255, 255, 255, 0.75);
  --ol-foreground-color: #333333;
  --ol-subtle-foreground-color: #666666;
  --ol-brand-color: #00AAFF;
}

.ol-box {
  box-sizing: border-box;
  border-radius: 2px;
  border: 1.5px solid var(--ol-background-color);
  background-color: var(--ol-partial-background-color);
}

.ol-mouse-position {
  top: 8px;
  right: 8px;
  position: absolute;
}

.ol-scale-line {
  background: var(--ol-partial-background-color);
  border-radius: 4px;
  bottom: 8px;
  left: 8px;
  padding: 2px;
  position: absolute;
}

.ol-scale-line-inner {
  border: 1px solid var(--ol-subtle-foreground-color);
  border-top: none;
  color: var(--ol-foreground-color);
  font-size: 10px;
  text-align: center;
  margin: 1px;
  will-change: contents, width;
  transition: all 0.25s;
}

.ol-scale-bar {
  position: absolute;
  bottom: 8px;
  left: 8px;
}

.ol-scale-bar-inner {
  display: flex;
}

.ol-scale-step-marker {
  width: 1px;
  height: 15px;
  background-color: var(--ol-foreground-color);
  float: right;
  z-index: 10;
}

.ol-scale-step-text {
  position: absolute;
  bottom: -5px;
  font-size: 10px;
  z-index: 11;
  color: var(--ol-foreground-color);
  text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);
}

.ol-scale-text {
  position: absolute;
  font-size: 12px;
  text-align: center;
  bottom: 25px;
  color: var(--ol-foreground-color);
  text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);
}

.ol-scale-singlebar {
  position: relative;
  height: 10px;
  z-index: 9;
  box-sizing: border-box;
  border: 1px solid var(--ol-foreground-color);
}

.ol-scale-singlebar-even {
  background-color: var(--ol-subtle-foreground-color);
}

.ol-scale-singlebar-odd {
  background-color: var(--ol-background-color);
}

.ol-unsupported {
  display: none;
}

.ol-viewport,
.ol-unselectable {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ol-viewport canvas {
  all: unset;
  overflow: hidden;
}

.ol-viewport {
  touch-action: pan-x pan-y;
}

.ol-selectable {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
}

.ol-grabbing {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

.ol-grab {
  cursor: move;
  cursor: -webkit-grab;
  cursor: -moz-grab;
  cursor: grab;
}

.ol-control {
  position: absolute;
  background-color: var(--ol-subtle-background-color);
  border-radius: 4px;
}

.ol-zoom {
  top: .5em;
  left: .5em;
}

.ol-rotate {
  top: .5em;
  right: .5em;
  transition: opacity .25s linear, visibility 0s linear;
}

.ol-rotate.ol-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s linear, visibility 0s linear .25s;
}

.ol-zoom-extent {
  top: 4.643em;
  left: .5em;
}

.ol-full-screen {
  right: .5em;
  top: .5em;
}

.ol-control button {
  display: block;
  margin: 1px;
  padding: 0;
  color: var(--ol-subtle-foreground-color);
  font-weight: bold;
  text-decoration: none;
  font-size: inherit;
  text-align: center;
  height: 1.375em;
  width: 1.375em;
  line-height: .4em;
  background-color: var(--ol-background-color);
  border: none;
  border-radius: 2px;
}

.ol-control button::-moz-focus-inner {
  border: none;
  padding: 0;
}

.ol-zoom-extent button {
  line-height: 1.4em;
}

.ol-compass {
  display: block;
  font-weight: normal;
  will-change: transform;
}

.ol-touch .ol-control button {
  font-size: 1.5em;
}

.ol-touch .ol-zoom-extent {
  top: 5.5em;
}

.ol-control button:hover,
.ol-control button:focus {
  text-decoration: none;
  outline: 1px solid var(--ol-subtle-foreground-color);
  color: var(--ol-foreground-color);
}

.ol-zoom .ol-zoom-in {
  border-radius: 2px 2px 0 0;
}

.ol-zoom .ol-zoom-out {
  border-radius: 0 0 2px 2px;
}

.ol-attribution {
  text-align: right;
  bottom: .5em;
  right: .5em;
  max-width: calc(100% - 1.3em);
  display: flex;
  flex-flow: row-reverse;
  align-items: center;
}

.ol-attribution a {
  color: var(--ol-subtle-foreground-color);
  text-decoration: none;
}

.ol-attribution ul {
  margin: 0;
  padding: 1px .5em;
  color: var(--ol-foreground-color);
  text-shadow: 0 0 2px var(--ol-background-color);
  font-size: 12px;
}

.ol-attribution li {
  display: inline;
  list-style: none;
}

.ol-attribution li:not(:last-child):after {
  content: " ";
}

.ol-attribution img {
  max-height: 2em;
  max-width: inherit;
  vertical-align: middle;
}

.ol-attribution button {
  flex-shrink: 0;
}

.ol-attribution.ol-collapsed ul {
  display: none;
}

.ol-attribution:not(.ol-collapsed) {
  background: var(--ol-partial-background-color);
}

.ol-attribution.ol-uncollapsible {
  bottom: 0;
  right: 0;
  border-radius: 4px 0 0;
}

.ol-attribution.ol-uncollapsible img {
  margin-top: -.2em;
  max-height: 1.6em;
}

.ol-attribution.ol-uncollapsible button {
  display: none;
}

.ol-zoomslider {
  top: 4.5em;
  left: .5em;
  height: 200px;
}

.ol-zoomslider button {
  position: relative;
  height: 10px;
}

.ol-touch .ol-zoomslider {
  top: 5.5em;
}

.ol-overviewmap {
  left: 0.5em;
  bottom: 0.5em;
}

.ol-overviewmap.ol-uncollapsible {
  bottom: 0;
  left: 0;
  border-radius: 0 4px 0 0;
}

.ol-overviewmap .ol-overviewmap-map,
.ol-overviewmap button {
  display: block;
}

.ol-overviewmap .ol-overviewmap-map {
  border: 1px solid var(--ol-subtle-foreground-color);
  height: 150px;
  width: 150px;
}

.ol-overviewmap:not(.ol-collapsed) button {
  bottom: 0;
  left: 0;
  position: absolute;
}

.ol-overviewmap.ol-collapsed .ol-overviewmap-map,
.ol-overviewmap.ol-uncollapsible button {
  display: none;
}

.ol-overviewmap:not(.ol-collapsed) {
  background: var(--ol-subtle-background-color);
}

.ol-overviewmap-box {
  border: 1.5px dotted var(--ol-subtle-foreground-color);
}

.ol-overviewmap .ol-overviewmap-box:hover {
  cursor: move;
}

.ol-overviewmap .ol-viewport:hover {
  cursor: pointer;
}

:root {
    --toolbar-bottom: 2.5em;
}

/*
* Noto Sans TC (Chinese_traditional) http://www.google.com/fonts/earlyaccess
 */
/*@import url(//fonts.googleapis.com/earlyaccess/notosanstc.css);*/
/*
@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 100;
  src: url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Thin.woff2) format('woff2'),
       url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Thin.woff) format('woff'),
       url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Thin.otf) format('opentype');
  font-display: fallback;
}
@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Light.woff2) format('woff2'),
       url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Light.woff) format('woff'),
       url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Light.otf) format('opentype');
  font-display: fallback;
}
@font-face {
   font-family: 'Noto Sans TC';
   font-style: normal;
   font-weight: 400;
   src: url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Regular.woff2) format('woff2'),
        url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Regular.woff) format('woff'),
        url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Regular.otf) format('opentype');
  font-display: fallback;
 }
@font-face {
   font-family: 'Noto Sans TC';
   font-style: normal;
   font-weight: 500;
   src: url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Medium.woff2) format('woff2'),
        url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Medium.woff) format('woff'),
        url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Medium.otf) format('opentype');
  font-display: fallback;
 }
@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Bold.woff2) format('woff2'),
       url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Bold.woff) format('woff'),
       url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Bold.otf) format('opentype');
  font-display: fallback;
 }
@font-face {
   font-family: 'Noto Sans TC';
   font-style: normal;
   font-weight: 900;
   src: url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Black.woff2) format('woff2'),
        url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Black.woff) format('woff'),
        url(https://fonts.gstatic.com/ea/notosanstc/v1/NotoSansTC-Black.otf) format('opentype');
  font-display: fallback;
}
*/

html, body {
    margin: 0;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

.hidden {
    display: none;
}

.glassmophism {
    backdrop-filter: blur(6px) saturate(200%);
    -webkit-backdrop-filter: blur(6px) saturate(200%);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.8);
}

/* the same with .ol-control button */
/*
.ol-button {
    display: block;
    margin: 1px;
    padding: 0;
    color: white;
    font-size: 1.14em;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    height: 1.375em;
    width: 1.375em;
    line-height: .4em;
    background-color: rgba(0,60,136,0.5);
    border: none;
    border-radius: 2px;
}
*/

/*================== Overlay ===================*/
#trkseg-pt {
  width: 32px;
  height: 32px;
  background-image: url(0a1b5ae569eaa7888300.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

/*============ Settings Board ==================*/

/* Remove input[type=number] Arrows/Spinners */
/* Chrome, Safari, Edge, Opera */
#setting-layers input::-webkit-outer-spin-button,
#setting-layers input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
#setting-layers input[type=number] {
  -moz-appearance:textfield;
  appearance:textfield;
}

.settings {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 85%;
    z-index: 9;
    background: #f8f8f8;
    border-left: solid 1px #f0f0f0;
}

.settings-ctrl.ol-control {
    /*float: right;*/
    /* .ol-control using absolute position */
    position: absolute;
    top: .5em;
    right: .5em;
}

.settings.collapsed .settings-main{
    display: none;
}

.settings-main {
    padding: .5em;
    min-width: 250px;
    height: 100vh;
    /*overflow-y: auto;*/
    box-sizing: border-box;
}

.ly-placeholder {
    display: inline-block;
    width: calc(100% - 3px);
    height: 1.5em;
    border: 2px dotted gray;
    /*background: gray;*/
}
/*
.ly-hover {
    background: #d0d0d0;
    cursor: grab;
}
*/

/*
#setting-layers:hover{
    overflow-y: scroll;
    padding-right: 0;
}
*/
#setting-layers{
    height: calc(100% - 2em);
    box-sizing: border-box;
    overflow-y: auto;
    /*padding-right: 17px; *//* width of scrollbar in Chrome, Firefox*/
}
/*
@supports (-ms-ime-align:auto) {
    #setting-layers{
        padding-right: 15px; /* width of scrollbar in Edge
    }
}
*/

#setting-layers ul{
    padding: 0;
    margin: 4px 2px 4px 0;
    list-style-type: none;
}
#setting-layers ul:not(:last-child){
    border-bottom: solid 1px #ccc;
    padding-bottom: 0.5em;
}

#setting-layers li:hover{
    background: #e8e8e8;
    cursor: grab;
}
#setting-layers li .ly-opt-checked:checked ~ *{
    color: #202020;
}
#setting-layers li .ly-opt-checked ~ *{
    color: #808080;
}

#setting-layers li .ly-opt-seeable.filtered .seeable-icon-normal,
#setting-layers li .ly-opt-seeable:not(.filtered) .seeable-icon-filtered {
    display: none;
}

#setting-layers li .ly-body {
    display: inline-block;
    min-width: 15.5em;
}

#setting-layers li button.ly-ctrl {
    font-size: smaller;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    color: lightgrey;
}
#setting-layers li button.ly-ctrl:hover {
    cursor: pointer;
}
#setting-layers li:not(:hover) button.ly-ctrl:not(.enabled) {
    visibility: hidden;
}
#setting-layers li button.ly-ctrl:not(.enabled):hover {
    color: #adcafc;
}
#setting-layers li button.ly-ctrl.enabled:hover {
    color: cornflowerblue;
}
#setting-layers li button.ly-ctrl.enabled {
    color: steelblue;
}

#setting-layers li .ly-opt-opacity{
    transform: scale(1.2) translate(4px, -1px);
    text-align: right;
    margin-right: 3px;
    width: 28px;
    border: none;
    background-color: transparent;
}
#setting-layers li .ly-opt-opacity:hover{
    background-color: white;
}
#setting-layers li .ly-opt-opacity+i{
    transform: scale(0.8);
}

/*------------ Layer / SeeFilter -----------------*/

.filter-panel{
    position: absolute;  /* use absolute since it is under the ol-control */
    min-width: 10em;
    padding: 6px;
    border-radius: 0 4px 8px 8px;
    margin-top: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: solid 1px #d0d0d0;
}

.filter-panel,
.filter-panel .filter-row input{
    background-color: #e8e8e8;
}

.filter-panel .tabcontent {
    border-width: 0;
}

.filter-panel input:checked + label{
    color: #404040;
}
.filter-panel input:not(:checked) + label{
    color: #808080;
}

.filter-panel .filter-row {
    white-space: nowrap;
}

.filter-panel .filter-row label{
    display: inline-block;
    width: 3em;
}
.filter-panel .filter-row input{
    border-width: 0;
    border-bottom: 1px dashed lightgray;
    padding: 0px 4px;
    color: #404040;
}

.filter-panel .filter-row input:focus-visible{
    outline: 0;
    background-color: #fcfcfc;
}

.filter-panel .filter-row button {
    display: inline;
    cursor: pointer;
    font-size: 10px;
    vertical-align: 1px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-panel .filter-row button.active {
    background: powderblue;
    border: solid 1px lightskyblue;
}

.filter-panel .footer{
    background: rgba(128,128,128,.1);
    padding: 2px 0;
    margin-top: 2px;
    border-radius: 0 0 6px 6px;
}

.filter-panel .footer {
    text-align: right;
    margin-right: 6px;
}

/*----------------------------------------------------------------*/
#setting-opts button:hover{
    cursor: pointer;
}

#setting-opts .opt-group {
    border-width: 1px 0 0 0;
    margin-top: 8px;
}

#setting-opts legend {
    font-weight: bold;
}

#setting-opts ul.opt-item {
    list-style-type: none;
    margin: 0;
    padding: 0;
    /*font-weight: bold;*/
}

#setting-opts ul.opt-item li{
    margin-left: 1em;
    font-weight: normal;
}

#setting-opts ul.opt-item:not(:last-child){
    margin-bottom: 4px;
}

/*********************************************************
/* Toolbar
/********************************************************/

.toolbar{
    position: relative;
    z-index: 5;   /* prvent being covered by the map */
}

.toolbar .ctrl-btn {
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
}

.toolbar .ctrl-btn.enabled {
    color: steelblue
}

.toolbar .ctrl-btn:not(.enabled){
    /*background: rgba(64, 64, 64, .5);*/
    /*color: lightgray;*/
}

/*============ Sidebar ==================*/

.toolbar-side{
    left: .5em;
    top: 18em;
}

/*============ Topbar =================*/
.toolbar-top{
    left: 3em;
    top: .5em;
}

.toolbar-top .ol-control:nth-child(2) { left: 2em; }
/*
.toolbar-top .ol-control:nth-child(3) { left: 4em; }
.toolbar-top .ol-control:nth-child(4) { left: 6em; }
.toolbar-top .ol-control:nth-child(5) { left: 8em; }
*/

/*------------ Topbar / Goto -------------------*/

.toolbar-top .goto-panel{
    display: inline-block;
}

.toolbar-top .ctrl-btn-goto:not(.active) ~ .goto-panel{
    display: none;
}

.toolbar-top .goto-panel .goto-coordsys {
    text-align: center;
    font-size: 95%;
    outline: 0;
    border: 0px;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 3px 4px 2px 4px;;
    vertical-align: 0px;
    margin: 0;
}
.toolbar-top .goto-panel .goto-coordsys:hover {
    cursor: pointer;
}

/* not show "Go" button when "findspot" is selected, since it is triggered by clicking the spot in the list */
.toolbar-top .goto-panel .goto-coordsys:has(option[value="findspot"]:checked) ~ .goto-coord-go {
    display: none;
}

.toolbar-top .goto-panel .goto-txt{
    text-align: left;
    font-size: 16px;
    border: none;
    border-radius: 0 4px 4px 0;
    outline: 0;
    vertical-align: 1px;
    padding: 2px 8px 2px 8px;
    width: 7em;
}

.toolbar-top .goto-panel .goto-txt.invalid {
    background-color: #ffa0a0;
}

.toolbar-top .goto-panel .goto-txt::placeholder{
    color: #b0b0b0;
    font-size: smaller;
}

/* input text is empty, then hides aux button */
.toolbar-top .goto-panel .goto-txt:placeholder-shown + .goto-aux button{
    display: none;
}

.toolbar-top .goto-panel .goto-aux {
    position: absolute;
    top: 2px;
    right: 4px;
}

.toolbar-top .goto-panel .goto-aux button{
    cursor: pointer;
    color: white;
    background: #666;
    display: inline;
    width: 3.5em;
    font-size: 12px;
    font-weight: 300;
    padding: 0 4px;
    border: dotted 1px #ddd;
    border-radius: 10px;
}

/*
.toolbar-top .goto-panel .goto-coord-go:hover {
    cursor: pointer;
}
.toolbar-top .goto-panel .goto-coord-go {
    margin-left: 0px;
    border-radius: 16px;
    position: absolute;   /* use 'absolute', which help ol-control to fit its width *//*
    right: -6px;
    top: -1px;
    border: solid 1px lightgray;
    padding: 0px;
    font-size: 17px;
}

.toolbar-top .goto-panel .goto-coord-go svg{
    font-size: 12px;
}
*/

/*------------- Topbar / Goto / Spots ----------------*/
.goto-panel .goto-spot-list {
    list-style: none;
    padding: 0;
    margin: 1px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: rgba(255, 255, 255, .6);
    overflow: auto;
    max-height: 90vh;
}
.goto-panel .goto-spot-list:not(.active) {
    display: none;
}
.goto-panel .goto-spot-item {
    padding: 6px 12px 6px 6px;  /* padding more in right for scrollbar */
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.goto-panel .goto-spot-item:hover {
    background-color: #f0f7ff;
}
.goto-panel .goto-spot-item:last-child {
    border-bottom: none;
}

.goto-panel .goto-spot-name {
    font-weight: bold;
    color: #333;
}
.goto-panel .goto-spot-info{
    float: right;
    font-size: 0.9em;
    color: #666;
}

.goto-panel .goto-spot-info span{
    display: inline-block;
}

.goto-panel .goto-spot-info-ele{
    min-width: 5.5em;
}
.goto-panel .goto-spot-info-dist{
    min-width: 6.5em;
}
.goto-panel .goto-spot-info-dir{
    min-width: 1em;
}

.goto-panel button.goto-spot-more {
    width: 100%;
    padding: 10px;
    background: #eee;
    border: none;
    cursor: pointer;
    margin-top: 1px;
}
.goto-panel button.goto-spot-more:hover {
    background: #ddd;
}
.goto-panel button.goto-spot-more:not(.active) {
    display: none;
}

/*============= Toolbar Bottom ======================*/

.toolbar-bottom{
    position: fixed;
    bottom: var(--toolbar-bottom);
    left: 50%;
    transform: translateX(-50%);
}


/*============= Map ======================*/

.ol-map-container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.ol-overviewmap {
    bottom: var(--toolbar-bottom);
}
.ol-overviewmap .ol-overviewmap-map{
    width: 25vw;
    height: 25vh;
}

.ol-scale-bar,
.ol-scale-line {
    bottom: var(--toolbar-bottom);
    left: calc(100% - 16px);
    transform: translateX(-100%);
}

.ol-attribution {
    bottom: 0;
    right: 0;
}

.ol-attribution button {
    height: 14px;
}

.ol-attribution:not(.ol-collapsed) {
    background-color: rgba(0,0,0,0.2);
}
.ol-attribution:not(.ol-collapsed) ul{
    color: #ffffd4;
    text-shadow: 0 0 4px black;
}

.save-cookie {
    top: 284px;
    left: .5em;
}

.ol-touch .save-cookie {
    top: 80px;
}

/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: rgba(255,255,255,.3);
  }
  
  /* Style the buttons inside the tab */
  .tab .tablink {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 2px 5px;
    transition: 0.3s;
    font-size: 17px;
  }
  
  /* Change background color of buttons on hover */
  .tab .tablink:hover {
    background-color: #ddd;
  }
  
  /* Create an active/current tablink class */
  .tab .tablink.active {
    background-color: #ccc;
  }

  .tabcontent:not(.active){
    display: none;
  }
  
  /* Style the tab content */
  .tabcontent {
    padding: 4px;
    border: 1px solid #ccc;
    border-top: none;
  }
.ctx-menu {
    position: fixed;
    z-index: 10000;
    min-width: 185px;
    background: #404040;
    border-radius: 5px;
    /*display: none;*/
    transform: scale(0);
    transform-origin: top left;
}

.ctx-menu.visible {
    /*display: block;*/
    transform: scale(1);
    transition: transform 100ms ease-in-out;
}

.ctx-menu .ctx-item-bar {
    border-top: 1px solid #a0a0a0;
}

.ctx-menu .ctx-item {
    padding: 8px 10px;
    font-size: 15px;
    color: #eee;
    cursor: pointer;
    /*border-radius: inherit;*/
}

.ctx-menu .ctx-item:only-child {
    border-radius: 5px !important;
}
.ctx-menu .ctx-item:first-child {
    border-radius: 5px 5px 0 0;
}
.ctx-menu .ctx-item:last-child {
    border-radius: 0 0 5px 5px;
}


.ctx-menu .ctx-item a {
    display: inline-block;
    min-width: 10em;
    color: #eee;
    text-decoration: none;
    white-space: nowrap;
    appearance: button;
}

.ctx-menu .ctx-item:hover {
    background: #606060;
}

.ctx-menu .ctx-item i,
.ctx-menu .ctx-item svg {
    display: inline-block;
    width: 16px;
    margin-right: 8px;
}

.ctx-menu .ctx-item a .item-subicon{
    font-size: 10px;
    margin-left: 8px;
}

.ctx-menu .ctx-item:not(.subicon) a .item-subicon{
    display: none;
}

.ctx-menu .ctx-item-group {
    position: relative;
}

.ctx-menu .ctx-item-group::after {
    content: "►";
    font-size: smaller;
}

.ctx-item-group > .ctx-submenu {
    z-index: 10001;
    position: absolute;
    top: 0;
    left: calc(100% + 1px);
    min-width: 8em;
    background: #404040;
    border-radius: 0 5px 5px 0;
}

.ctx-item-group:not(:hover) > .ctx-submenu {
    display: none;
}
/* ============== .progbar ==========================*/
.progbar {
    position: relative;
    min-height: 1px;
    color: #202020;
    background-color: lightgray;
    border-radius: 8px;
    border: solid 1px #e0e0e0;
}

.progbar>span {
    position: absolute;
    right: 4px;
    bottom: 0;
}

.progbar>div {
    display: inline-block;
    box-sizing: border-box;
    text-align: left;
    color: #202020;
    background-color: darkgray;
    border-radius: 8px;
}

.progbar>div>span {
    padding-left: 4px;
}

/******************* Popup Overlay ********************/

select, option {
    -webkit-appearance: none; /* WebKit/Chromium */
    -moz-appearance: none; /* Gecko */
    appearance: none;
}
  /* Internet Explorer 10–11 and Edge */
select::-ms-expand {
    display: none;
}

.tooltip-inner {
    white-space: nowrap;
}

.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 2em 15px 15px;*/
    padding: 2px;
    border-radius: 8px;
    bottom: 12px;
    left: -50px;
    /*min-width: 225px;*/
    border: 1px solid #cccccc;
    transition: border .5s ease-in;
}
.ol-popup:after, .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.highlight {
    /*border: 1px solid orange;*/
    border-width: 2px 2px 1px 1px;
    border-style: solid;
    border-color: orange;
    transition: border .5s ease-out;
}

/* ======================================================================== */

/*#pt-popup input,*/
#pt-popup span[contenteditable]{
    padding: 2px 4px;
    border: solid 1px transparent;
}

/*#pt-popup input:focus-visible,*/
#pt-popup span[contenteditable]:focus-visible{
    outline: 0;
    background-color: #e8e8e8;
    border: solid 1px #d0d0d0;
    border-radius: 4px;
}

/* as placeholder */
#pt-popup span[contenteditable]:empty:before
{
    color: lightgray;
    font-weight: normal;
    font-style: italic;
    content: attr(data-placeholder);
}

/*
// 使用內建的 resizer
.pop-resizer.active:not(.disabled) {
    transform: rotateX(180deg);   //resize cursor in top-right corner
    resize: both;
    overflow: hidden;
}
.pop-resizer.active:not(.disabled) .pop-resizer-content{
    transform: rotateX(180deg);
}
*/

.pop-resizer {
  position: relative;
}

/* 自訂的右上角 resizer */
.pop-resizer.active:not(.disabled) .pop-resizer-handler {
    position: absolute;
    top: 0; /* 貼齊最邊緣，以便和外層圓角融合 */
    right: 0;
    width: 16px; /* 稍微放大一點，更容易抓取 */
    height: 16px;
    cursor: nesw-resize;
    z-index: 10;

    /* 💡 核心優化：利用多重漸層，畫出「深灰 + 白色高光」的立體雙色刻痕 */
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.35) 2px, /* 深色陰影線 */
            rgba(0, 0, 0, 0.35) 3px,
            rgba(255, 255, 255, 0.7) 3px, /* 白色高光線，創造凹凸刻痕感 */
            rgba(255, 255, 255, 0.7) 4px);

    /* 💡 遮罩：切出右上三角形，並為右上角加上符合主容器的圓角（假設外層是 8px） */
    border-top-right-radius: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 100%);

    /* 互動效果 */
    opacity: 0.7;
    transition: all 0.2s ease;
}

.pop-resizer.active:not(.disabled) .pop-resizer-handler:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pop-closer {
    display: none;
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}

.pop-closer:after {
    content: "✖";
}

.pop-content {
    padding: 4px 32px 4px 4px;  /* right space for tool buttons */
}

.pop-content:focus-visible {
    outline: 0;
}

.pop-desc:not(.hidden) {
    display: inline-block;
    white-space: break-spaces;
    color: #90a3bb;
    font-size: smaller;
}

/*----------------------------------------------------------------*/

.pop-trk {
    position: relative;
    white-space: nowrap;
    /*
    border-bottom: solid 1px lightgray;
    padding-bottom: 4px;
    margin-bottom: 5px;
    */
    /*border: solid 1px transparent;*/
    /*border-radius: 8px;*/
}
.pop-trk:hover {
    /*border-color: lightgray;*/
}

.pop-trk:not(:hover) .pop-trk-tool {
    display: none;
}

.pop-trk-tool {
    margin: 0;
    border: 0;
    border-top: 1px solid lightgray;
    padding: 2px;
    text-align: center;
    /*width: calc(100% - 18px);*/
}

.pop-trk-tool button{
    border: none;
    background-color: transparent;
    color: gray;
    width: 2em;
}
.pop-trk-tool button:hover{
    color: black;
    cursor: pointer;
}

/*-----------------------------------------------*/

.color-item {
    padding: 8px;
    margin: 2px;
    border-radius: 4px;
    border: solid 1px #d0d0d0;
}

.color-item:hover{
    cursor: pointer;
    padding: 9px;
    margin: 1px;
}

.pop-trk-color {
    display: inline-block;
}

.pop-trk-name-wrap {
    display:inline-block;
    width: calc(100% - 27px);
}

.pop-trk-name {
    display: inline-block;
    vertical-align: 4px;
    font-weight: bold;
}

.pop-trk-seg-sn {
    /*position: absolute;
    bottom: 7px;
    right: -25px;*/
    vertical-align: 4px;
    color: gray;
    font-size: small;
}

.pop-trk-progbar{
    font-size: 12px;
    margin: 1px 0 4px 0;
}

/* --- hidden text ---- */
.pop-trk-progbar,
.pop-trk-progbar div{
    height: 1px;
}
.pop-trk-progbar span{
    visibility: hidden;
}

/* --- show text ---- */
.pop-trk:hover .pop-trk-progbar.active,
.pop-trk:hover .pop-trk-progbar.active div {
    height: auto;
}
.pop-trk:hover .pop-trk-progbar.active span{
    visibility: visible;
}

.pop-colorboard {
    position: absolute;
    z-index: 10;
    padding: 4px;
}

.pop-colorboard-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/*----------------------------------------------------------------*/

.pop-pt-tool {
    position: relative;
    margin: 0;
    border: 0;
    padding: 0px;
}

.pop-pt-tool button {
    border: none;
    border-radius: 4px;
    background: transparent;
    font-size: 16px;
    padding: 4px;
}

.pop-pt-tool button:hover{
    background-color: rgba(0, 0, 0, .1);
    cursor: pointer;
}

.pop-pt-tool button:nth-child(-n+2) {
    position: absolute;
    right: -16px;
    top: 0px;
}

.pop-pt-tool button:nth-child(3) {
    position: absolute;
    right: -24px;
    top: calc(1em + 4px);
}

.pop-tool-mk-wpt svg {
    color: royalblue;
    transform: rotate(25deg);
}

.pop-tool-rm-wpt svg {
    color: #505050;
}

/*----------------------------------------------------------------*/
.pop-pt-header,
.pop-pt-coord,
.pop-pt-ele,
.pop-pt-time {
    white-space: nowrap;
}

/*  Set the position of pop-pt-header on the top of the panel */
/*
.ol-popup { border-top-left-radius: 0; }
.po-pt-header {
    position: absolute;
    top: -32px;
    left: 0px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px 4px 0 0;
    padding: 4px 4px 0px 2px;
}
*/

.pop-pt-header:not(.hidden) {
    display: inline-block;
    border-radius: 4px;
    margin-left: 4px;
}

.pop-pt-sym {
    padding: 2px;  /* match the size of text of pt-name */
    vertical-align: -7px;
}

.pop-pt-sym:hover {
    cursor: pointer;
}

.pop-pt-name {
    /*font-weight: bold;*/
    font-size: 20px;
    /*width: 9em;*/
}

.pop-pt-desc {
    margin-left: 4px;
}

.pop-pt-coord, .pop-pt-ele, .pop-pt-time{
    margin: 2px 0;
    color: gray;
    font-size: 90%;
}

.pop-pt-coord-title, .pop-pt-ele-title, .pop-pt-time-title{
    width: 55px;
    font-weight: 600;
    text-align: right;
    display: inline-block;
}

.pop-pt-coord-title{
    outline: 0;
    border: 0px;
    color: gray;
    background: transparent;
    font-size: 95%;
}

.pop-pt-coord-title:hover{
    cursor: pointer;
}

.pop-pt-coord-title option[value="twd67_6"],
.pop-pt-coord-title option[value="twd97_6"],
.pop-pt-coord-title option[value="twd67_8"],
.pop-pt-coord-title option[value="twd97_8"],
.pop-pt-coord-title option[value="findspot"]{
    display: none;
}

/* to align editable ele and time fields */
.pop-pt-coord-title { padding-right: 5px; width: 60px;}
.pop-pt-time-value { padding-left:5px; }

.pop-pt-gmap img {
    width: 12px;
    height: 12px;
    border: 0;
}

.sym-copyright ,
.sym-copyright a:link,
.sym-copyright a:visited {
    color: #b0b0b0;
    font-size: x-small;
    margin-top: 3px;
}

.sym-license {
    white-space: nowrap;
}

/* ---------------------------------------------------------------- */
.pop-symboard {
    position: absolute;
    padding: 4px;
    z-index: 10;
}

.pop-symboard-items {
    display: grid;
    grid-template-columns: repeat(21, 1fr);
}

.pop-symboard-item {
    padding: 2px;
    border-radius: 4px;
}
.pop-symboard-item:hover{
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}
.pop-symboard-item.extra {
    background-color: rgba(0, 0, 0, 0.2);
}
.pop-symboard-item.extra:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
.pop-symboard-item-img {
    width: 32px;
    height: 32px;
    background-image: url(7b7c0a3dfb1e5a62b514.png);
}

.pop-symboard-footer{
    border-top: 2px solid lightgray;
    margin-top: 2px;
    padding-top: 2px;
}

.pop-symboard-footer>label{
    margin-left: 4px;
    /*vertical-align: middle;*/
}

.pop-symboard-footer>input{
    width: calc(100% - 3em);
    background: transparent;
    border: none;
    outline: 0;
    font-size: 20px;
    color: #202020;
    text-shadow: -1px -1px 0 #f0f0f0, 1px -1px 0 #f0f0f0, -1px 1px 0 #f0f0f0, 1px 1px 0 #f0f0f0;
}

/********************** Image Active *****************/
.pop-image.active {
    height: 300px;
    width: 400px;
    background-size:     cover;
    background-repeat:   no-repeat;
    background-position: center center;
    border-radius: 8px;
}

.pop-image.active .pop-content:hover{
    background-color: rgba(255, 255, 255, 0.5);
}
.pop-image.active .pop-content:hover .pop-pt-header{ background-color: unset; }
.pop-image.active .pop-header{ background-color: rgba(255, 255, 255, 0.5); }

.pop-image.active .pop-pt-coord,
.pop-image.active .pop-pt-coord-title,
.pop-image.active .pop-pt-ele,
.pop-image.active .pop-pt-time,
.pop-image.active .sym-copyright,
.pop-image.active .sym-copyright a:link,
.pop-image.active .sym-copyright a:visited{
    color: #202020;
}


/* Tooltip 氣泡樣式（預設隱藏） */
.ol-zoomslider-thumb-text {
  position: absolute;
  left: 34px; /* 移到滑桿右側，避免擋住滑桿 */
  top: 50%;
  transform: translateY(-50%);
  background-color: #007bff;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  font-family: Arial, sans-serif;
  font-weight: bold;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none; /* 避免干擾滑鼠事件 */
  user-select: none;
  
  /* 動態特效：預設透明度為 0 且稍微往左靠（做出浮現位移感） */
  opacity: 0;
  margin-left: -5px;
  transition: opacity 0.2s ease, margin-left 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Tooltip 的小箭頭 */
.ol-zoomslider-thumb-text::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent #007bff transparent transparent;
}

/* 觸發條件：
   1. 當滑鼠 hover 滑桿本體時 
   2. 當使用者正在拖曳滑塊時（透過 JS 動態加上 .is-dragging 類別）
*/
.ol-zoomslider:hover .ol-zoomslider-thumb-text,
.ol-zoomslider-thumb.is-dragging .ol-zoomslider-thumb-text {
  opacity: 1;
  margin-left: 0;
}
/* --------- details: open upward -------------*/

/* Container layout styling */
details.open-upward {
  display: inline-flex;
  flex-direction: column-reverse; /* Flips content to stack above summary */
}

/* Optional: Rotate the default arrow to point up when open */
details.open-upward[open] summary::-webkit-details-marker,
details.open-upward[open] summary::marker {
  transform: rotate(-180deg);
}

/* --------- details: animation -------------*/

:root { interpolate-size: allow-keywords; }

.tool-eleprof details {
    position: relative;  /* for header absolute*/
}

/* 針對 details 內容進行動畫設定 */
.tool-eleprof details::details-content {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      height 0.3s ease,
      opacity 0.3s ease,
      content-visibility 0.3s ease allow-discrete; /* 關鍵：讓收合動畫播放完才真正隱藏 */
}

/* 展開狀態的樣式 */
.tool-eleprof details[open]::details-content {
    height: auto;
    opacity: 1;
}

/* --------- summary: text and align -------------*/
.tool-eleprof details summary{
    text-align: center;
    align-items: center;
    list-style-position: inside; /* Keeps the arrow next to the centered text */
    list-style: none;
    /*cursor: pointer;*/
    pointer-events: none;
}

/* only children of summary can trigger the details content */
.tool-eleprof details summary * {
    cursor: pointer;
    pointer-events: auto;
}

/* --------- control button --------*/

/*
.toolbar-bottom details summary::before{
    content: "\f1fe";
    font: var(--fa-font-solid);
}
*/

.tool-eleprof details summary .ctrl-btn {
    color: #666666;
    background: rgba(255,255,255,.5);
    width: 1em;
    height: 1em;
    padding: 2px 4px;
    vertical-align: middle;  /* erase the gap between summary and details-content */
    border-style: double;
    border-color: lightgray;
    border-width: 1px 1px 4px 1px;
    border-radius: 4px;
}

.tool-eleprof details[open] summary .ctrl-btn {
    color: steelblue;
    border-width: 1px 1px 0 1px;
    border-radius: 4px 4px 0 0;
}

/* ---- style for open-upward ------*/
.tool-eleprof details.open-upward summary .ctrl-btn {
    border-width: 4px 1px 1px 1px;
}

.tool-eleprof details[open].open-upward summary .ctrl-btn {
    border-width: 0 1px 1px 1px;
    border-radius: 0 0 4px 4px;
}

/* --------- header -------------*/

.tool-eleprof details header {
    position: absolute;  /* put on the the next element */
    /* left: 1px; */
    /* top: 0px; */
    font-family: sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #303030;
    padding: 4px 8px;
    z-index: 6;
}

.tool-eleprof details header .subtitle {
    font-size: 14px;
    color: #808080;
}
/* --------- canvas -------------*/
.tool-eleprof details canvas {
  display: block; /* Removes the text-line alignment gap completely */
}

.tool-eleprof details canvas:not(.active){
    pointer-events: none;
}

.tool-eleprof details canvas{
    /*background: rgba(255, 232, 232, .7);*/
    border: solid 1px #d0d0d0;
    border-radius: 8px;
    box-sizing: border-box;
    z-index: 5;
}
:root {
    --text-color: #202020;
    --input-color: #202020;
    --input-bgcolor: rgba(0,0,0,0.1);
    --marker-bgcolor: rgba(255,255,255,0.3);
}

.tool-areamarker {
    z-index: 7;
    position: fixed;
    transition: top 0.3s ease, left 0.3s ease;
    top: 100px;
    left: 100px;
    box-sizing: border-box;
    padding: 1em;
    min-width: 100px;
    min-height: 100px;
    color: var(--text-color);
    touch-action: none;
    /*
    overflow: hidden;
    resize: both;
    */

    /* glass-like panel */
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px #a0a0a0 solid;
    border-radius: 3px;
    box-shadow: 0 2px 1px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.tool-areamarker.closing {
  transform: translateY(300px) rotate(-75deg);
  opacity: 0;
  pointer-events: none;
}

.tool-areamarker:before,
.tool-areamarker:after{
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  width: 42px;
  height: 100%;
  top: -10px;
  right: 50px;
  transform: rotate(50deg);
  transform-origin: top center;
  filter: blur(5px);
  pointer-events: none;  /* ignore mouse hover */
}

.tool-areamarker:after{
  right: -20px;
  width: 20px;
}

.tool-areamarker .areamarker-content {
    padding: 4px;
    border-radius: 3px;
}

/* ---------------- Panel Hover --------------------- */

.tool-areamarker.doing,
.tool-areamarker:has(.areamarker-content:hover) {
    background: rgba(255,255,255,0.7);
    transition: background-color 1.5s ease-out;
}

/* transition 動畫要發生在 hover 時，而非 not hover，故不能反過來寫
.tool-areamarker:not(.doing):not(:has(.areamarker-content:hover)) {
    background-color: rgba(0, 0, 0, 0.15);
    transition: background-color 1.5s ease-out;
}
*/

/* ---------------- Panel 精簡模式 ------------------ */

.tool-areamarker:not(.doing) .areamarker-content:not(:hover) *,
.tool-areamarker:not(.doing):has(.areamarker-content:not(:hover)) .areamarker-header,
.tool-areamarker:not(.doing):has(.areamarker-content:not(:hover)) .areamarker-footer {
    visibility: hidden;
}
.tool-areamarker:not(.doing) .areamarker-content:not(:hover) .areamarker-coord,
.tool-areamarker:not(.doing) .areamarker-content:not(:hover) .areamarker-xspan,
.tool-areamarker:not(.doing) .areamarker-content:not(:hover) .areamarker-yspan {
    color: #202020;
    visibility: visible;
    pointer-events: none;  /* not able to trigger hover */
    background: var(--marker-bgcolor);
}

.tool-areamarker:not(.doing) .areamarker-content:not(:hover) .areamarker-coord {
    position: absolute;
    top: 0;
    left: 0;
    text-align: left;
}
.tool-areamarker:not(.doing) .areamarker-content:not(:hover) .areamarker-coord:has(+ .locked) {
    margin-left: 28px;
}

.tool-areamarker:not(.doing) .areamarker-content:not(:hover) .areamarker-xspan {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
.tool-areamarker:not(.doing) .areamarker-content:not(:hover) .areamarker-yspan {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

/* ---------------- Panel Resizer ------------------ */

:root {
    --resizer-offset: -18px;
}

.resizer.hidden {
    display: none;
}

.resizer {
    position: absolute;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    z-index: 8;
}

.resizer::after {
    content: "";
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    background: rgba(255,255,255,.75);
    border: 1.5px solid #606060;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
    transition: background 100ms, border-color 100ms,
                transform 100ms;
}

.resizer:hover::after {
    background: #DBEAFE;
    border-color: #2563EB;
    transform: scale(1.15);
}

.resizer.active::after {
    background: #2563EB;
    border-color: #fff;
}

.resizer-nw { top:    var(--resizer-offset); left:  var(--resizer-offset);           cursor: nwse-resize; }
.resizer-ne { top:    var(--resizer-offset); right: var(--resizer-offset);           cursor: nesw-resize; }
.resizer-sw { bottom: var(--resizer-offset); left:  var(--resizer-offset);           cursor: nesw-resize; }
.resizer-se { bottom: var(--resizer-offset); right: var(--resizer-offset);           cursor: nwse-resize; }
.resizer-n  { top:    var(--resizer-offset); left: 50%; transform: translateX(-50%); cursor:   ns-resize; }
.resizer-s  { bottom: var(--resizer-offset); left: 50%; transform: translateX(-50%); cursor:   ns-resize; }
.resizer-w  { left:   var(--resizer-offset); top:  50%; transform: translateY(-50%); cursor:   ew-resize; }
.resizer-e  { right:  var(--resizer-offset); top:  50%; transform: translateY(-50%); cursor:   ew-resize; }

/*****************************************************/

.tool-areamarker.movable {
    cursor: grab;
}
.tool-areamarker.movable.panning {
    cursor: grabbing;
}

.tool-areamarker:has(.resizer-n.active),
.tool-areamarker:has(.resizer-s.active) {
    cursor: ns-resize;
}
.tool-areamarker:has(.resizer-e.active),
.tool-areamarker:has(.resizer-w.active) {
    cursor: ew-resize;
}
.tool-areamarker:has(.resizer-ne.active),
.tool-areamarker:has(.resizer-sw.active){
    cursor: nesw-resize;
}
.tool-areamarker:has(.resizer-nw.active),
.tool-areamarker:has(.resizer-se.active){
    cursor: nwse-resize;
}

.tool-areamarker.movable .areamarker-anchor {
    visibility: hidden;
}

/*****************************************************/

.tool-areamarker .areamarker-footer {
    height: 100px;
}

.tool-areamarker .areamarker-header-title {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    padding: 0 0 4px 4px;
}

.tool-areamarker .areamarker-anchor{
    position: absolute;
    top: 0;
    left: 0;
    margin: 2px 0;
    color: rgba(0, 0, 0, 0.5);
    font-size: 20px;
    transform: rotate(15deg);
}

.tool-areamarker {
    /* close animation */
    transform-origin: calc(100% - 12px) 12px;   /* the center of closer button */
    transition:
        transform 1.0s ease-in,
        opacity 1.0s ease-in;
}

.tool-areamarker .areamarker-closer{
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    margin: 4px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #484848;
}

.tool-areamarker .areamarker-closer:hover{
    color: #303030;
    cursor: pointer;
    animation: spin 1.5s linear;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.tool-areamarker p,
.tool-areamarker span,
.tool-areamarker header {
    text-wrap: nowrap;
}

.tool-areamarker .areamarker-opt {
    display: inline-block;
    margin-right: 0.5em;
    width: 3em;
    font-size: 1.1em;
    font-weight: bold;
    text-align: right;
}

/* TODO 不支援的 coordsys 先 disable */
.areamarker-coordsys option[value="wgs84"],
.areamarker-coordsys option[value="taipower"],
.areamarker-coordsys option[value="twd67_6"],
.areamarker-coordsys option[value="twd97_6"],
.areamarker-coordsys option[value="twd67_8"],
.areamarker-coordsys option[value="twd97_8"],
.areamarker-coordsys option[value="findspot"]{
    display: none;
}

.tool-areamarker input {
    color: var(--input-color);
    background: var(--input-bgcolor);
    border-width: 0 0 0px 0;
    border-radius: 3px;
    text-align: center;
    text-shadow: px 1px 2px rgba(0, 0, 0, 0.5);
    /*-webkit-text-stroke: 0.5px #404040;*/
    font-size: 18px;
}

.tool-areamarker input:focus {
    outline: none;
    /*background-color: rgba(255,255,255,0.5);*/
}

.tool-areamarker input.invalid {
    background-color: rgba(255,64,64,0.3);
}

.tool-areamarker input[type="text"] {
    border-width: 0 0 1px 0;
}

.tool-areamarker input[type="number"] {
    text-align: center;
    width: 4.5em;
}

.tool-areamarker select {
    cursor: pointer;
    border: none;
    outline: none;
    appearance: none;
    padding: 2px 4px;
    border-radius: 4px;
    color: var(--text-color);
    background: var(--input-bgcolor);
    font-size: 16px;
}

.tool-areamarker select:focus {
    border: none;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.tool-areamarker .areamarker-content button.areamarker-lock {
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.areamarker-lock.locked .fa-lock-open { display: none; }
.areamarker-lock:not(.locked) .fa-lock { display: none; }
.areamarker-lock .fa-lock-open { color: green; }
.areamarker-lock .fa-lock { color: red; }

.areamarker-coord {
    padding-left: 6px;
    width: 10.5em;
}

#areamarker-filetypes-pdf:not(:checked) ~ .areamarker-pagesize {
    display: none;
}

/* Button ---------------------------------- */

.tool-areamarker .areamarker-content button {
    padding: 8px;
    margin-right: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: var(--text-color);
    background-color: transparent;
    border: 1px #404040 solid;
    border-radius: 4px;
    transition: background-color 1.0s;
}

.tool-areamarker .areamarker-content button:not(:disabled):hover {
    cursor: pointer;
    background-color: rgba(0,0,0, 0.1);
}

.tool-areamarker .areamarker-content button:disabled {
    cursor: not-allowed;
    color: #808080;
}

/* abort button */
.tool-areamarker .areamarker-content button.areamarker-abort {
    color: rgb(151, 47, 47);
    background-color: rgba(128, 0, 0, .1);
}
.tool-areamarker:not(.doing) .areamarker-content button.areamarker-abort {
    display: none;
}


/* Progress Bar ---------------------------- */

.areamarker-prog {
    max-width: 462px;
    box-sizing: border-box;
    padding: 8px;
}

.areamarker-prog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.areamarker-prog-status {
    font-size: 16px;
}

.areamarker-prog-percent {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: slashed-zero;
}

.areamarker-prog-percent:after {
    content: "%";
}

.areamarker-prog-bar {
    width: 100%
}

.areamarker-prog-msg {
    white-space: pre;
    min-height: 40px;
    margin: 8px 0 0;
    color: #202020;
    font-size: 14px;
    line-height: 1.6;
}

/*# sourceMappingURL=main.238d9c5b0ab322da0354.css.map*/