:root {
    --z-index-default: 10;
    --z-index-over: 100;
    --z-index-under: 5;
}

#container {
    height: 88vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: repeat(18, 1fr);
    grid-template-columns: repeat(6, 1fr);
}

#header1 {
    grid-column: 1/7;
    grid-row: 1/ 2;
    background: mediumseagreen;
    color: white;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    padding: 5px;
}

#header2 {
    grid-column: 1/7;
    grid-row: 2/ 3;
    background: white;
    color: mediumseagreen;
    font-family: sans-serif;
    display: grid;
    justify-contents: center;
    padding: 3px;
}

#menu {
    grid-column: 4/7;
    grid-row: 1/19;
    background: transparent;
    color: white;
    font-family: sans-serif;
}

#pbutton1 {
    grid-column: 5/6;
    grid-row: 2/ 3;
    z-index: var(--z-index-default);
    background: white;
    text-align: center;
}

#pbutton2 {
    grid-column: 6/7;
    grid-row: 2/ 3;
    z-index: var(--z-index-default);
    background: white;
    text-align: center;
}

#map {
    grid-column: 1/7;
    grid-row: 4/18;
    z-index: var(--z-index-default);
}

#graph {
    grid-column: 1/7;
    grid-row: 5/18;
    z-index: var(--z-index-default);
}

#vtable {
    grid-column: 1/7;
    grid-row: 3/18;
    z-index: var(--z-index-default);
    overflow-x: scroll;
}

#scitem {
    grid-column: 1/5;
    grid-row: 2/ 3;
    margin: 5px;
    z-index: var(--z-index-default)
}

#tglswitch {
    grid-column: 5/7;
    grid-row: 2/ 3;
    margin: 5px;
    z-index: var(--z-index-default);
}

#docmaincontents {
    grid-column: 1/7;
    grid-row: 2/18;
    font-family: sans-serif;
    overflow-y: scroll;
    padding: 1em 1em 0 1em;
}

#footer {
    position: sticky;
    bottom: 0;
    z-index: var(--z-index-over);
    grid-column: 1/7;
    grid-row: 18/19;
    background: mediumseagreen;
    color: white;
    font-family: sans-serif;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 5px;
    grid-template-columns: 1fr 1fr 1fr;
}

/* #pb1 {
    display: inline-block;
    width: 90%;
    margin: 3px 5%;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 1em;
    text-decoration: none;
    background: darkseagreen;
    color: darkslategrey;
    font-family: sans-serif;
}

#pb2 {
    display: inline-block;
    width: 90%;
    margin: 3px 5%;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 1em;
    text-decoration: none;
    background: darkseagreen;
    color: darkslategrey;
    font-family: sans-serif;
} */

.fb {
    width: 70%;
    padding: 2px;
    border: 2px solid white;
    border-radius: 1em;
    text-decoration: none;
    color: white;
    text-align: center;
}

/* variable selector */
.shortcut {
    font-size: x-small;
    text-align: center;
}

#sc1 {
    grid-column: 1/2;
    grid-row: 4/5;
}

#sc2 {
    grid-column: 2/3;
    grid-row: 4/5;
}

#sc3 {
    grid-column: 3/4;
    grid-row: 4/5;
}

#sc4 {
    grid-column: 4/5;
    grid-row: 4/5;
}

#sc5 {
    grid-column: 5/6;
    grid-row: 4/5;
}

#sc6 {
    grid-column: 6/7;
    grid-row: 4/5;
}

.scbutton {
    display: inline-block;
    width: 90%;
    margin: 3% 5%;
    padding-top: 10%;
    padding-bottom: 10%;
    border-radius: 1em;
    text-decoration: none;
    background: white;
    color: black;
    font-family: sans-serif;
    border: 1px solid black;
    box-shadow: 0 2px black;
}

.scb-hidden {
    display: none;
}

.scb-hidden:checked~label span {
    background: #aaaaaa;
    color: black;
    top: 2px;
    box-shadow: inset 0 1px black;
}

#scb1 {
    background: #ffc7af;
    color: black;
}

#scb2 {
    background: #edffbe;
    color: black;
}

#scb3 {
    background: #cbffd3;
    color: black;
}

#scb4 {
    background: #c2eeff;
    color: black;
}

#scb5 {
    background: #dcc2ff;
    color: black;
}

#scb6 {
    background: brown;
    color: white;
}

#scb1-check:checked~label span {
    background: #996600;
    color: white;
}

#scb2-check:checked~label span {
    background: #666600;
    color: white;
}

#scb3-check:checked~label span {
    background: #336600;
    color: white;
}

#scb4-check:checked~label span {
    background: #006699;
    color: white;
}

#scb5-check:checked~label span {
    background: #663366;
    color: white;
}

#scb6-check:checked~label span {
    background: brown;
    color: white;
}


/* depth selector */
#sc-sub1 {
    grid-column: 1/2;
    grid-row: 3/4;
}

#sc-sub2 {
    grid-column: 2/3;
    grid-row: 3/4;
}

#sc-sub3 {
    grid-column: 3/4;
    grid-row: 3/4;
}

#sc-sub4 {
    grid-column: 4/5;
    grid-row: 3/4;
}

#sc-sub5 {
    grid-column: 5/6;
    grid-row: 3/4;
}

#sc-sub6 {
    grid-column: 6/7;
    grid-row: 3/4;
}

#sc-sub1-check:disabled~label span {
    border: 1px dotted grey;
    color: grey;
    background: white;
    box-shadow: none;
}

#sc-sub2-check:disabled~label span {
    border: 1px dotted grey;
    color: grey;
    background: white;
    box-shadow: none;
}

#sc-sub3-check:disabled~label span {
    border: 1px dotted grey;
    color: grey;
    background: white;
    box-shadow: none;
}

#sc-sub4-check:disabled~label span {
    border: 1px dotted grey;
    color: grey;
    background: white;
    box-shadow: none;
}

#sc-sub5-check:disabled~label span {
    border: 1px dotted grey;
    color: grey;
    background: white;
    box-shadow: none;
}

#sc-sub6-check:disabled~label span {
    border: 1px dotted grey;
    color: grey;
    background: white;
    box-shadow: none;
}


/* hamburger menu */
.drawer {
    height: 45px;
}

.drawer-hidden {
    display: none;
}

.drawer-open {
    display: flex;
    width: 30%;
    height: 100%;
    margin-left: auto;
    margin-right: 10px;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 100;
    cursor: pointer;
}

.drawer-open span {
    content: '';
    display: block;
    height: 8%;
    width: 30px;
    border-radius: 1%;
    background: white;
    transition: 0.5s;
    position: absolute;
}

.drawer-open span:before,
.drawer-open span:after {
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 1%;
    background: white;
    transition: 0.5s;
    position: absolute;
}

.drawer-open span:before {
    bottom: 250%;
}

.drawer-open span:after {
    top: 250%;
}

#drawer-check:checked~.drawer-open span {
    background: rgba(255, 255, 255, 0);
}

#drawer-check:checked~.drawer-open span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#drawer-check:checked~.drawer-open span::after {
    top: 0;
    transform: rotate(-45deg);
}

.drawer-content {
    width: 100%;
    margin-top: 2%;
    background: seagreen;
    visibility: hidden;
    position: relative;
    z-index: var(--z-index-under);
}

.drawer-content ul {
    padding: 0%;
}

.drawer-content ul li {
    border-bottom: solid 1px white;
    list-style: none;
    font-size: small;
    color: green;
}

.drawer-content ul li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: small;
    line-height: 2.5em;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    color: white;
    position: relative;
}

#drawer-check:checked~.drawer-content {
    visibility: visible;
    z-index: var(--z-index-over);
}

/* For time series graphs */
div.tooltip {
    position: absolute;
    width: 65px;
    height: 58px;
    padding: 2px 10px;
    color: white;
    font-size: small;
    font-family: sans-serif;
    background: black;
    border-radius: 8px;
    visibility: hidden;
}

/* Data table */
/*.colsel-hidden{display:none;float:left;}
.sellabel{display:block;float:left;width:12%;text-align:center;border-radius:10%;text-decoration:none;background:black;color:white;font-family:sans-serif;border:1px solid gray;margin-right:0px;}*/
.colsel-hidden {
    display: none;
}

.sellabel {
    display: inline-block;
    width: 11%;
    padding: 5px 3px;
    border-radius: 1em;
    font-family: sans-serif;
    font-size: x-small;
    text-align: center;
    background: #aaaaaa;
    color: black;
    border: 1px solid black;
    box-shadow: inset 0 1px black;
    z-index: var(--z-index-over);
}

.colsel-hidden:checked+label {
    background: white;
    color: black;
    border: 1px solid black;
    box-shadow: 0 2px black;
}

.colsel-hidden:disabled+label {
    border: 1px dotted grey;
    color: grey;
    background: white;
    box-shadow: none;
}

.datatable {
    clear: both;
    border-collapse: collapse;
    margin-top: 5px;
}

table {
    width: 100%;
}

td {
    vertical-align: middle;
    padding: 0 2px;
    border: 1px solid #000;
    width: 50px;
    font-family: monospace;
}

th {
    vertical-align: middle;
    padding: 2px;
    border: 1px solid #000;
    min-width: 40px;
    font-family: sans-serif;
    font-size: small;
    line-height: 1.3;
}

#labelCol10m {
    position: sticky;
    left: 0%;
    top: 5px;
}

#labelCol50m {
    position: sticky;
    left: 15%;
    top: 5px;
}

#labelCol100m {
    position: sticky;
    left: 30%;
    top: 5px;
}

#labelCol200m {
    position: sticky;
    left: 45%;
    top: 5px;
}

#labelCol400m {
    position: sticky;
    left: 60%;
    top: 5px;
}

#labelCol600m {
    position: sticky;
    left: 75%;
    top: 5px;
}

#Col10m:checked~.datatable tr:nth-child(5),
#Col10m:checked~.datatable tr:nth-child(5) {
    display: none;
}

#Col50m:checked~.datatable tr:nth-child(6),
#Col50m:checked~.datatable tr:nth-child(6) {
    display: none;
}

#Col100m:checked~.datatable tr:nth-child(7),
#Col100m:checked~.datatable tr:nth-child(7) {
    display: none;
}

#Col200m:checked~.datatable tr:nth-child(8),
#Col200m:checked~.datatable tr:nth-child(8) {
    display: none;
}

#Col400m:checked~.datatable tr:nth-child(9),
#Col400m:checked~.datatable tr:nth-child(9) {
    display: none;
}

#Col600m:checked~.datatable tr:nth-child(10),
#Col600m:checked~.datatable tr:nth-child(10) {
    display: none;
}

/*#ColWind:checked ~ .datatable tr th:nth-child(3),#ColWind:checked ~ .datatable tr th:nth-child(3){display:none;}
#Col10m:checked ~ .datatable tr th:nth-child(5),#Col10m:checked ~ .datatable tr th:nth-child(5){display:none;}
#Col20m:checked ~ .datatable tr th:nth-child(6),#Col20m:checked ~ .datatable tr th:nth-child(6){display:none;}
#Col50m:checked ~ .datatable tr th:nth-child(7),#Col50m:checked ~ .datatable tr th:nth-child(7){display:none;}
#Col100m:checked ~ .datatable tr th:nth-child(8),#Col100m:checked ~ .datatable tr th:nth-child(8){display:none;}
#Col500m:checked ~ .datatable tr th:nth-child(9),#Col500m:checked ~ .datatable tr th:nth-child(9){display:none;}
#Col900m:checked ~ .datatable tr th:nth-child(10),#Col900m:checked ~ .datatable tr th:nth-child(10){display:none;} *** for vertical table *** */
#rownow {
    background: skyblue;
}

.colnow {
    background: skyblue;
}

#jumpbutton {
    display: inline-block;
    position: sticky;
    top: 1px;
    left: 90%;
    margin-top: 0;
    vertical-align: middle;
    height: 34px;
    line-height: 30px;
    width: 34px;
    background: lightgray;
    opacity: 0.8;
    border: 1px solid black;
    z-index: var(--z-index-over);
}

.jumpicon {
    font-size: 30px;
    margin: 2px;
}

/* .FixedTableHeader {
    position:sticky;top:0;color:#fff;background:#333;
    &:before{
	content:"";position:absolute;top:-1px;left:-1px;width:100%;height:100%;border:1px solid #ccc;
    }
} *** for vertical table *** */

.FixedTableHeader {
    position: sticky;
    left: 0;
    color: #000;
    background: #ddd;
}

.FixedTableHeader::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 100%;
    height: 100%;
    border: 1px solid #000;
}

.datatable tr:nth-child(4) th,
.datatable tr:nth-child(4) td {
    border-bottom-width: 15px;
    border-bottom-color: #ddd;
}

.HeaderFixedW0Hrz {
    width: 15px;
}

.HeaderFixedW0 {
    width: 8px;
}

.HeaderFixedW1 {
    width: 15px;
}


.valuelist {
    border-collapse: collapse;
}

.valuelist th,td
{
    border: solid 1px black;
    padding: 2px 2px;
    font-size: small;
    white-space: nowrap;
}

.valuelist td {
    text-align: right;
}

.valuelist td .cellstring {
    text-align: center;
}

.alert {
    color: red;
}

#HeaderTitle {
    display: inline-block;
    height: 100%;
}

#HeadString {
    font-weight: bold;
    font-size: 18px;
    vertical-align: middle;
}


.CustomControl {
    display: flex;
    z-index: var(--z-index-default);
}

.DateLabel {
    background: white;
    opacity: 0.8;
    text-align: center;
    color: black;
    font-size: 20px;
    font-family: sans-serif;
    border: 2px solid black;
    border-radius: 5px;
    margin: 0px 8px;
    padding: 0px 8px;
}

.BtnShipTrack {
    background: white;
    opacity: 0.8;
    text-align: center;
    color: black;
    font-size: 18px;
    font-family: sans-serif;
    border: 2px solid black;
    border-radius: 5px;
    margin: 0px 1px;
    padding: 0 4px;
}


/* Message */
#Announce {
}

.MessageBox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 80%;
    max-width: 350px;
    max-height: 100%;
    text-align: left;
    background: white;
    color: black;
    font-size: small;
    font-family: sans-serif;
    border: 2px solid black;
    border-radius: 5px;
    padding: 10px;
    z-index: 11111;
}

#CloseMarkMessage {
    position: absolute;
    top: 1px;
    right: 1px;
    font-size: 20px;
    background-color: inherit;
    border: none;
    color: #777777;
}

/* point selector */
.pointselect {
    overflow: hidden;
    width: 100%;
    margin: auto;
    text-align: center;
}

.pointselect select {
    width: 100%;
    cursor: pointer;
    text-overflow: ellipsis;
    border: none;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.pointselect.ps {
    position: relative;
    border: 1px solid #bbbbbb;
    border-radius: 2px;
    background: #ffffff;
}

.pointselect.ps::before {
    position: absolute;
    top: 0.9em;
    right: 0.8em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid mediumseagreen;
    pointer-events: none;
}

.pointselect.ps select {
    font-weight: bold;
    font-size: 18px;
    padding: 5px 38px 5px 10px;
    color: mediumseagreen;
}

/* condition selector */
.conditionselect {
    position: relative;
    overflow: hidden;
    width: 90%;
    height: 25px;
    margin: auto;
    text-align: center;
}

.conditionselect select {
    width: 100%;
    cursor: pointer;
    text-overflow: ellipsis;
    border: none;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.conditionselect.cs {
    position: relative;
    border: 1px solid #bbbbbb;
    border-radius: 2px;
    background: #ffffff;
}

.conditionselect.cs::before {
    position: absolute;
    top: 0.6em;
    right: 0.8em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #333333;
    pointer-events: none;
}

.conditionselect.cs select {
    font-weight: bold;
    font-size: 15px;
    padding: 1px 10px;
    color: #333333;
}


/* toggle switch */
.toggleswitch {
    position: relative;
    margin: auto;
    width: 95%;
    height: 25px;
}

.toggleswitch input[type="radio"] {
    display: none;
}

.toggleswitch label {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 25px;
    font-family: sans-serif;
    font-size: 15px;
    border: 1px solid #bbbbbb;
    border-radius: 2px;
}

.toggleswitch #tglleft+label {
    right: 50%;
    border-radius: 2px 0 0 2px;
    background: #eee;
    color: #666;
    border-right: none;
}

.toggleswitch #tglleft:checked+label {
    background: mediumseagreen;
    color: #fff;
}

.toggleswitch #tglright+label {
    left: 50%;
    border-radius: 0 2px 2px 0;
    background: #eee;
    color: #666;
    border-left: none;
}

.toggleswitch #tglright:checked+label {
    background: mediumseagreen;
    color: #fff;
}

/* style for document page */
.doctitle {
    font-size: xx-large;
    font-weight: bold;
}

h1 {
    font-size: x-large;
    font-weight: bold;
    padding-top: 30px;
}

h2:before {
    content: '\025a0';
    margin-right: 3px;
}

h2 {
    font-size: large;
    font-weight: normal;
    padding-top: 15px;
}




/* loading circle */
.loading {
    grid-column: 1/7;
    grid-row: 3/17;
    z-index: 50;
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 0;
    background: #fdfdfd;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 500ms;
}

.loading .circle {
    display: block;
    position: relative;
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
    margin: auto;
    border: 8px solid #e0e0e0;
    border-top: 7px solid #3cb371;
    border-radius: 50px;
    animation: loading 700ms linear 0ms infinite normal both;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.balloon {
    position: relative;
    width: 300px;
    margin-top: 5px;
    padding: 10px;
    border: 3px solid mediumseagreen;
    border-radius: 5px;
    background-color: #FFFFFF;
    color: black;
}

.balloon::before {
  content: '';
  position: absolute;
  left: 30px;
  top: -15px;
  display: block;
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-bottom: 15px solid mediumseagreen;
}

.balloon::after {
  content: '';
  position: absolute;
  left: 30px;
  top: -11px;
  display: block;
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-bottom: 15px solid #FFFFFF;
}


/* Sub Login */
#acceptance {
    position: fixed;
    z-index: 90;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 80%;
    max-width: 500px;
    height: 380px;
    max-height: 80vh;
    overflow-y: scroll;
    display: grid;
    padding: 10px;
    background-color: #fff;
    border: 2px solid grey;
    border-radius: 5px;
    font-family: sans-serif;
}

#acceptance #title {
    text-align: center;
}

#acceptance #maintext {
    text-align: left;
    font-size: small;
}

#acceptance label {
    text-align: center;
    margin-bottom: 5px;
}

.jumpbutton {
    padding: 8px 20px;
    margin: 5px auto;
    background-color: #ccc;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: not-allowed;
}
.jumpbutton:enabled { 
    background-color: mediumseagreen;
    cursor: pointer;
}


/* About Page */
#excludeArea {
    display: flex;
    flex-wrap:wrap;
    justify-content: space-around;
}

#excludeArea figure {
    margin: 0;
}

#excludeArea figcaption {
    text-align: center;
    margin-bottom: 15%;
}

