html{
    height: 100%;
    font-size: 12px
}

body{
    padding-top: 10px;
    height: 100%;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
}

@media (max-width: 2160px) {
    body {
        overflow: hidden;
        padding-top: 0;
    }
}

input[type=checkbox],
input[type=radio] {
    transform: scale(1.5);
    -ms-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -o-transform: scale(1.5);
    padding: 10px;
}


@media (max-width: 420px) {
    input[type=checkbox],
    input[type=radio] {
        transform: scale(1);
        -ms-transform: scale(1);
        -moz-transform: scale(1);
        -webkit-transform: scale(1);
        -o-transform: scale(1);
    }
}

#trackTableTitle {
    border-left: 15px #808080 solid;
    border-bottom: 2px #808080 solid;
    margin-bottom: 10px;
}

#satnumTextInput {
    width: 50px;
}

/*軌跡列表開始*/

#trackListTable,
#trackListTableBySearch,
#trackListTableByRank  {
    height: 60vh;
    text-align: center;
    width: 100%;
    margin: 0;
}

@media (max-width: 2160px) {
    #trackListTable,
    #trackListTableBySearch,
    #trackListTableByRank  {
        height: 60vh;
    }
}

#trackListTable thead,
#trackListTableBySearch thead,
#trackListTableByRank thead {
    display: block;
}

#trackListTable tr,
#trackListTableBySearch tr,
#trackListTableByRank tr {
    display: flex;
}

#trackListTable tbody,
#trackListTableBySearch tbody,
#trackListTableByRank tbody {
    display: block;
}

#trackListTable thead .filters,
#trackListTableBySearch thead .filters,
#trackListTableByRank thead .filters {
    display: flex;
}

#trackListTable tr:after,
#trackListTableBySearch tr:after,
#trackListTableByRank tr:after {
    /* clearing float */
    content: ' ';
    display: block;
    visibility: hidden;
    clear: both;
}

#trackListTable tbody td,
#trackListTable thead tr th,
#trackListTableBySearch tbody td,
#trackListTableBySearch thead tr th,
#trackListTableByRank tbody td,
#trackListTableByRank thead tr th {
    font-size: 1.2rem;
    width: 33%;
    float: left;
    text-align: center;
    margin: auto;
}

@media (max-width: 500px) {
    #trackListTable tbody td,
    #trackListTable thead tr th,
    #trackListTableBySearch tbody td,
    #trackListTableBySearch thead tr th,
    #trackListTableByRank tbody td,
    #trackListTableByRank thead tr th {
        font-size: 1rem;
    }
}

#trackListTable tbody td,
#trackListTableBySearch tbody td,
#trackListTableByRank tbody td {
    width: 45%;
    height: 58px;
    line-height: 44px;
    padding-bottom: 3px;
    padding-top: 10px;
    white-space: nowrap;
}
.offcanvas-top-bar {
    display: none;
}
.menu-bar {
    display: none;
}
#toggleDetailBtn {
    display: none;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
}
.detail-grid div {
    /* margin: auto; */
    white-space: nowrap;
}
@media (max-width: 2160px) {
    #leftCol {
        background-color: white;
        position: fixed;
        padding: 0 10px;
        top: 0;
        left: -80vw;
        width: 80vw;
        max-width: 600px;
        height: 100vh; /*給 Safari 以外的瀏覽器讀取*/
        max-height: -webkit-fill-available;
        z-index: 15;
        transition: all 0.5s;
        overflow-y: auto;
    }
    .backdrop {
        background-color: #000000b8;
        position: fixed;
        width: 100vw;
        height: 100vh;
        padding: 0 !important;
        top: 0;
        z-index: 14;
        display: none;
    }
    #closeMenuBtn:hover {
        color: #5e5e5e;
    }
    .menu-bar {
        position: fixed;
        display: block;
        top: 1em;
        left: 1em;
        z-index: 15;
    }
    .menu-bar button i {
        font-size: 2rem;
    }
    .offcanvas-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        height: 50px;
        margin: 0.5em auto;
    }
    .offcanvas-top-bar i {
        font-size: 3rem;
        width: 50px;
        height: 50px;
        display: flex;
        color: gray;
        justify-content: center;
        align-items: center;
    }

    /* 軌跡詳情的RWD設定 */
    .detail-group {
        position: fixed;
        z-index: 12;
        left: 0;
        bottom: -80vh;
        height: 80vh;
        width: 100vw;
        background-color: #FFFFFF;
        box-shadow: 0px -4px 14px 0px #00000082;
        overflow-y: auto;
        /* border-top: 1px solid black; */
        transition: all 0.75s;
    }
    .drag-btn {
      top: 0.5em;
      left: 50%;
      transform: translateX(-50%);
      z-index: 90;
      font-size: 1rem;
      background-color: #ffffffa6;
      border: 1px solid gray;
      border-radius: 15px;
      width: 60px;
      height: fit-content;
      display: flex;
      position: sticky;
      justify-content: center;
      align-items: center;
      color: gray;
    }
    .drag-dash {
        border: 1px dashed black;
        width: 100%;
        display: none;
        position: fixed;
        z-index: 100;
    }
    #detailRow1 {
        border-top: 0 !important;
    }
    #toggleDetailBtn {
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
    .toogle-detail-btn {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        width: 7em !important;
        max-width: 100px;
        height: 3em;
        white-space: nowrap;
        position: fixed;
        transition: all 0.75s !important;
        bottom: 5em;
        z-index: 13;
        font-size: 1.2rem;
        right: calc(80px + 1em);
        background: white;
        text-decoration: none;
        color: black;
        outline: none !important;
        border-bottom: 0 !important;
        box-shadow:
            -6px -5px 4px 0 rgb(0 0 0 / 20%),
            4px -5px 3px 0 rgb(0 0 0 / 17%);
    }
    .detail-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
    }
    .lock-frame {
        position: relative;
    }
    /* .lock-position {} */
    #detailRow3 {
        height: 16vh;
    }
    #scrollTable tbody {
        max-height: 55vh;
        overflow-y: auto;
    }
}

.draw-path-btn {
    width: 18%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem !important;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .detail-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detailSumText {
        padding: 0 20px;
    }
}

@media (max-width: 400px) {
    .toogle-detail-btn {
        right: calc(60px + 1em);
    }
    .draw-path-btn {
        font-size: 1rem !important;
    }
}

#rightCol {
    padding-left: 0px;
    padding-right: 0px;
    margin: 0px;
}
/*軌跡列表結束*/

#hdopTextInput {
    width: 50px;
}

#trackShowTypeCheckBoxDiv {
    padding-bottom: 10px;
    padding-left: 20px;
    margin-bottom: 20px;
}

#separateLineRow {
    margin: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#separateLineRow > img {
    height: 50px;
}

.separateLineDiv {
    height: 50px;
    text-align: center;
}

.separateLineDiv img {
    max-width: 100%;
    max-height: 100%;
}

.detailSumText {
    font-size: 1.8rem;
    height: 90px;
    line-height: 90px;
    text-align: left;
}

#detailTableDownloadBtn {
    float: right;
    padding-top: 20px;
}

#iconColumn {
    border-left: 8px #808080 groove;
    height: 60px;
    line-height: 60px;
    text-align: center;
}

#detailRow1 {
    /* text-align: left; */
    border-top: 8px #808080 ridge;
    border-bottom: 1px #b7b7b7 solid;
    /* margin-left: 0px;
    margin-right: 0px; */
}

#detailRow2 {
    /* margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px; */
    height: fit-content;
    width: 100%;
    padding: 0;
    margin: 1em auto;
}

#detailRow3 {
    border-top: 1px #b7b7b7 solid;
    margin-left: 0px;
    margin-right: 0px;
}

#detailRow4 {
    margin-left: 0px;
    margin-right: 0px;
}

.general-header {
    font-size: 1.6rem;
    border: 0px;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

.general-header-text {
    font-size: 1.6rem;
    border: 0px;
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
}

#generalTable {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    /*text-align: left;*/
    font-size: 1.6rem;
    height: 80px;
}

#hozizontalControlDiv {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizontalItem {
    font-size: 1.6rem;
    display: inline-block;
    /*padding-right: 30px;*/
    margin-right: 20px;
}

.verticalItem {
    font-size: 1.6rem;
    display: block;
    /*margin-right: 30px;*/
    margin-bottom: 20px;
    /*float: right;*/
    text-align: center;
    white-space: nowrap;
}

#lineChartContent {
    /* height: 350px; */
    margin: auto 0;
}

#tHeader {
    /*background: -webkit-linear-gradient(top, #ababab , #f7fbfd, #ababab);*/
    background: white;
    border-top: 1px #b7b7b7 solid;
    border-right: 0px #b7b7b7 solid;
    border-left: 8px #808080 ridge;
    border-bottom: 8px #808080 groove;
}

#scrollTable {
    border-collapse: collapse;
    border: 0px solid #bbbbbb;
    width: 100%;
    border-spacing: 0;
    text-align: center;
    font-size: 1.1rem;
}

#scrollTable thead,
#scrollTable tbody,
#scrollTable tr {
    display: block;
}

#scrollTable tr:after {
    /* clearing float */
    content: ' ';
    display: block;
    visibility: hidden;
    clear: both;
}

#scrollTable tbody {
    border-left: 2px solid #bbbbbb;
    border-right: 2px solid #bbbbbb;
    border-bottom: 2px solid #bbbbbb;
    /* height: 700px; */
    height: fit-content;
    background-color: white;
    /* overflow-y: auto;
    overflow-x: hidden; */
}

#scrollTable thead td {
    height: 50px;
    /* line-height: 50px; */
    text-align: center;
    border-right: 1px #b7b7b7 solid;
}
#scrollTable thead td .show-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#scrollTable tbody td,
#scrollTable thead td {
    font-size: 1.6rem;
    width: 16.66%;
    float: left;
}

.genera-detail-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    height: 100%;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .genera-detail-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
    #scrollTable tbody td,
    #scrollTable thead td {
        font-size: 1.5rem;
    }

    .general-header {
        font-size: 1.5rem;
        border: 0px;
        text-align: center;
    }
    
    .general-header-text {
        font-size: 1.5rem;
        border: 0px;
        text-align: center;
    }
}

@media (max-width: 578px) {
    #scrollTable tbody td,
    #scrollTable thead td {
        font-size: 1.3rem;
    }
    .general-header {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 500px) {
    #scrollTable tbody td,
    #scrollTable thead td {
        font-size: 1.2rem;
    }

    .general-header {
        font-size: 1rem;
        border: 0px;
        text-align: left;
    }
    
    .general-header-text {
        font-size: 1.4rem;
        border: 0px;
        text-align: left;
    }
}

@media screen and (max-width: 400px) {
    #scrollTable tbody td,
    #scrollTable thead td {
        font-size: 1rem;
    }

    .general-header {
        border: 0px;
        text-align: left;
    }
    
    .general-header-text {
        font-size: 1.3rem;
        border: 0px;
        text-align: left;
    }
}

#scrollTable tbody tr:hover td {
    background-color: #bbbbbb;
}

#scrollTable tbody .pink td {
    background-color: pink;
}


/*詳情表格結束*/


/*地圖開始*/

#locusIconListDiv {
    height: 30px;
}

#mapLayout {
    position: relative;
    min-height: 95vh;
    /* padding-left: 0px;
    padding-right: 0px; */
}

#map {
    /*position: relative;*/
    /*height: 95vh;*/
    /*z-index: 4;*/
    position: absolute;
    left: 0px;
    top: 0px;
    height: 95vh;
    width: 100%;
}
#container {
    /*position: relative;*/
    /*height: 95vh;*/
    /*z-index: 4;*/
    /* position: absolute;
    left: 20px;
    top: 0px; */
    height: 95vh;
    width: 100%;
}

@media (max-width: 2160px) {
  #mapLayout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    padding: 0;
  }
  #container {
    height: 100%;
  }
}

#floating-panel {
    position: absolute;
    width: fit-content;
    max-width: 500px;
    /*float: left;*/
    top: 5em;
    right: 1em;
    /* left: 50%;
    transform: translateX(-50%); */
    z-index: 10;
    /*padding: 5px;*/
    text-align: center;
    font-family: 'Roboto', 'sans-serif';
    line-height: 30px;
    /*padding-left: 10px;*/
}

.mapSetting {
    float: right;
    margin-right: 10px;
}


.locusIcon {
    float: left;
    font-size: 1.6rem;
}

.locusIcon img {
    max-width: 100%;
    max-height: 100%;
}


/*地圖結束*/


/*折線圖樣式開始*/


/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


/*
* The CSS below is intended for the "global" styles of svg.line-graph, not specifics per graph such as color of lines
* which is expected to come from the data itself (even though it can be done via CSS as well if wanted)
*/

svg.line-graph text {
    cursor: default;
}

svg.line-graph .hover-line {
    stroke: #6E7B8B;
}

svg.line-graph .hide {
    opacity: 0;
}

svg.line-graph .axis {
    shape-rendering: crispEdges;
}

svg.line-graph .x.axis line {
    stroke: #D3D3D3;
}

svg.line-graph .x.axis .minor {
    stroke-opacity: .5;
}

svg.line-graph .x.axis path {
    /*display: none;*/
    fill: none;
    stroke: #000;
}

svg.line-graph .x.axis text {
    font-size: 0.8rem;
}

svg.line-graph .y.axis line,
.y.axis path {
    fill: none;
    stroke: #000;
}

svg.line-graph .y.axis text {
    font-size: 1rem;
}

svg.line-graph .scale-button:not(.selected):hover {
    text-decoration: underline;
    cursor: pointer !important;
}

svg.line-graph .date-label {
    fill: #6E7B8B;
}
