﻿body {
    padding: 0;
    margin: 0;
}

html, body {
    height: 100%;
    width: 100vw;
}

#mapID {
    /*height: calc(100% - 44px);*/
    height: 100%;
    width: 100vw;
    /*margin-top: 52px;*/
}

#header {
    background-color: #eee;
    position: relative;
    width: 100vw;
    height: 44px;
    z-index: 500;
}

#headerImg {
    max-width: 150px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

/*#headerText {
    max-width: 150px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    font-family: 'Microsoft JhengHei';
    font-size: 18px;
}*/

#headerText {
    background-color: #34B87F;
    color: #fff;
    border-radius: 4px;
    padding: 9px 15px;
    /*max-width: 150px;*/
    position: fixed;
    left: 50%;
    top: 6px;
    transform: translate(-50%,0%);
    font-family: 'Microsoft JhengHei';
    font-size: 18px;
    z-index: 1100000;
    /*width: 160px;*/
    width: 240px;
}

@media only screen and (max-width: 425px) {
  #headerText {
    width: 160px;
  }
  #locationText {
    width: 110px;
  }
}

#headerText > a {
    font-size: 14px;
    z-index: 1100000;
    color: #FFC400;
}

#locationText {
    background-color: #34B87F;
    color: #fff;
    border-radius: 4px;
    padding: 9px 15px;
    /*max-width: 150px;*/
    position: fixed;
    left: 50%;
    bottom: 36px;
    transform: translate(-50%,0%);
    font-family: 'segoe ui';
    font-size: 18px;
    /*text-align: center;*/
    max-width: 180px;
    display: none;
    display:inline;
    vertical-align:middle;
}

/*#btn_info {
    float: right;
    margin-right: 10px;
}*/

#btn_info {
    position: fixed;
    top: 4px;
    right: 10px;
    width: 36px;
    height: 36px;
    z-index: 1100000;
    cursor:pointer;
}

#infoDiv {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vw;
    height: 100vh;
    
    z-index: 1100000;
    /*display: none;*/
}

#btn_infoClose {
    position: fixed;
    top: 4px;
    right: 10px;
    width: 16px;
    height: 16px;
    z-index: 1100000;
    padding: 10px;
    cursor:pointer;
}

#infoHeaderImg {
    width: 198px;
    height: 51px;
    position: relative;
    left: 50%;
    transform: translate(-50%,0%);
}

#infoHeader {
    background-color: #fff;
    color: #383838;
    text-align: center;
    padding-left:16px;
    padding-top:16px;
    padding-right:16px;
    border-radius: 6px 6px 0px 0px;
}

#infoHeaderTitle {
    font-size:20px;
    font-weight: 600;
    font-family: 'Segoe UI';
    padding-bottom: 3px;
    /*padding-left: 27px;
    padding-top: 12px;*/
}

#infoHeaderSubtitle {
    font-size:16px;
    font-family: 'Segoe UI';
    /*position: absolute;
    top: 18px;
    right: 196px;*/
}

#infoContent {
    font-family: 'Microsoft JhengHei';
    font-size: 14px;
    font-weight: 400;
    color: 	#3e3a39;
    line-height: 20px;
    /*padding: 16px;*/
    text-align: justify;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    max-width: 542px;
    background-color: #fff;
    border-radius: 6px;
    /*overflow:scroll;*/
}

#infoCenter {
    position: relative;
    background-color: #eee;
    border-radius: 6px;
    margin-left:25px;
    margin-right:25px;
}

#infoImage {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 138px;
}

#infoList {
    padding-left: 212px;
    padding-right: 25px;
    overflow-y: auto;
    max-height: 138px;
}



#infoList > li:first-child{
    padding-top:12px;
}

#infoList > li{
    padding-bottom:12px;
}

#infoFooter {
    position: relative;
    margin-left:25px;
    margin-right:25px;
}

#infoMetadata {
    /*margin-left:25px;*/
    font-size: 12px;
    /*position: absolute;
    top: 0px;
    left: 0px;*/
    overflow-y: auto;
    height: 40px;
    padding-bottom: 16px;
}

#infoLogo {
    /*padding-left: 340px;
    padding-right: 25px;*/
    position: absolute;
    top: 0px;
    right: 0px;
}

#mapControlDiv {
    position: fixed;
    top: 54px;
    right: 10px;
    width: 70px;
    z-index: 400;
}

#mapControlDiv div {
    background-color: #fff;
    border: 2px solid rgba(0,0,0,.2);
    border-bottom: 1px solid #ccc;
    text-align: center;
    /*color: #7a807d;*/
    font-size: 18px;
    font-family: 'Microsoft JhengHei';
    font-weight: 500;
    /*width: 43px;
    height: 30px;*/
    cursor: pointer;
    padding-bottom: 3px;
    padding-top: 3px;
}

#btn_Xiangyang {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

#btn_Sancha {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    color: #F6B800;
}


#locateDiv {
    position: fixed;
    /*bottom: 25px;*/
    bottom: 23px;
    right: 10px;
    width: 40px;
    /*margin: 10px;*/
    z-index: 600;
}

#locateDiv .btn {
    width: 30px;
    height: 30px;
    padding: 5px;
    background-color: #7a807d;
    border-radius: 10px;
}

#footer {
    /*background-color: #ffffff;*/
    position: fixed;
    left: 0px;
    bottom: 20px;
    width: 100vw;
    height: 72px;
    z-index: 500;
}

#footer img {
    max-width: 220px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}

.text-labels {
    color: white;
    font-size: 20px;
    font-family: 'Microsoft JhengHei';
    text-shadow: 0px 0px 4px #000000;
    font-weight: bold;
}

.label-observer {
    background-color: #EE4D5A;
    color: white;
    font-size: 20px;
    font-family: 'Microsoft JhengHei';
    text-shadow: 0px 0px 4px #000000;
    font-weight: bold;
    margin-top:-4px;
    border-radius: 4px;
    padding-left: 4px;
    padding-right: 4px;
    line-height: 24px;
}

/*.popup-small >div >div{
    margin: 3px 3px;
}*/

.popup-observer >div {
    background: transparent;
    box-shadow: none;
    z-index: 1000;
}

.popup-observer >div:nth-of-type(2) >div {
    background: transparent;
    box-shadow: none;
}

.leaflet-popup-content{
    margin: 0px 0px;
}

h2 {
    margin-bottom: 10px;
}

h3 {
    margin: 0px;
}

a {
    color:#007bff;
    text-decoration:none;
}

::after, ::before {
    box-sizing: border-box;
}

ol {
    counter-reset: list;
}

ol > li {
    list-style: none;
    position: relative;
}

ol > li:before {
    content: "(" counter(list) ")";
    counter-increment: list;
    left: -40px;
    padding-right: 10px;
    position: absolute;
    text-align: right;
    width: 40px;
}

@media only screen and (max-width: 425px) {
  #infoList {
    padding-left: 45px;
  }
    #infoImage {
        display:none;
    }
    /*#infoMetadata {
        width: 165px;
    }*/
    #infoLogo {
        padding-left: 165px;
    }
}

@media only screen and (max-width: 375px) {
    #infoMetadata {
        padding-bottom: 56px;
    }
    #infoLogo {
        top: 40px;
    }
}