html {
    font-size: 1em;
}

body {
    margin: 0;
    font-family: Microsoft JhengHei;
}

h6 {
    display: none;
}

h2 {
    margin-top: 14px;
}

#hidden_banner {
    display: none;
}

[name=img_back] {
    width: 2rem;
    margin-left: 21px;
    cursor: pointer;
}

p {
    font-weight: bold;
}

label {
    font-size: 1rem;
}

hr {
    height: 12px;
    border: 0;
    box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5);
    clear: both;
}

.content_data, .content_theme, .content_datacount, .content_themecount, .content_datastatistics, .content_themestatistics, .content_datacount_1, .content_themecount_1 {
    height: 100%;
    width: 100%;
}

#div_hotleft {
    float: left;
    width: 47.5%;
    margin-right: 5%
}

#div_hotright {
    float: left;
    width: 47.5%;
}

div [name="div_subbar"] {
    width: 100%;
    background-color: rgb(204, 243, 224);
}

div [name="div_subbar"] p {
    text-align: left;
    padding: 10px;
    margin: auto;
}

.datepicker {
    text-align: center;
    line-height: 34px;
    width: 180px;
    font-size: 1.3rem;
    font-weight: bolder;
}

text {
    font-size: 0.8rem;
}

[name="s_count"] {
    float: right;
    font-size: 2.1rem;
    margin-right: 40px;
}

[name="s_text"] {
    float: right;
    margin: 15px;
    font-size: 1rem;
}

#img_top {
    width: 100%;
    height: 100px;
    position: absolute;
    z-index: -1;
}

#img_logo {
    width: 220px;
    margin-top: 16px;
    margin-left: 1%;
    cursor: pointer;
}

#img_Basemap {
    width: 35%;
    position: absolute;
    z-index: -1;
    left: 0;
}

#div_subdiv {
    width: 90%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

#div_footer {
    width: 100%;
    /* min-height: 100px; */
    background-color: #494949;
    clear: both;
    position: absolute;
    padding: 25px;
    font-size: 1rem;
}
#div_footer a {
    text-decoration: none;
    color: #30a5ff;
    font-weight: 700;
    cursor: pointer;
}
.modal-dialog {
    max-width: calc(1000px - 50% ) !important;
    min-width: 50%  !important;
}


div[name="div_title"] {
    float: left;
    width: 20%;
}

div[name="div_title"] p {
    font-size: 2.5rem;
    font-weight: bold;
    margin: auto;
}

div[name="div_subtitle"] {
    float: right;
    width: auto;
    margin-top: -23px;
    margin-left: 2%;
    margin-bottom: 10px;
}

div[name="div_subtitle"] p:nth-child(2) {
    margin-bottom: auto;
    font-size: 1rem;
}

div[name="div_subtitle"] p:nth-child(3) {
    margin-top: auto;
    font-size: 2.5rem;
    margin-bottom: auto;
}

.svg_datacount .bar, .svg_themecount .bar, .svg_datacount_1 .bar, .svg_themecount_1 .bar {
    fill: rgba(48, 165, 255, 0.5);
    clip-path: url(#clip);
    stroke: #30a5ff;
}

.svg_datacount .subBar, .svg_themecount .subBar {
    fill: rgba(48, 165, 255, 0.5);
    opacity: 0.5;
}

.svg_datacount .brush .extent, .svg_themecount .brush .extent {
    stroke: #fff;
    fill: steelblue;
    fill-opacity: 0.25;
    shape-rendering: crispEdges;
}

div[name="div_mainhot"] {
    margin-top: 20px;
    background-color: rgb(70, 151, 161);
    width: 100%;
    float: left;
    border: 1px solid #4697a1;
}

div[name="div_mainhot"] p {
    color: white;
    font-size: 1rem;
    margin: 0.5rem;
}

div[name="div_subhot"] {
    background-color: #fffef8;
    width: 100%;
    float: left;
    height: 410px;
    border: 1px solid #4697a1;
}

#div_3, #div_4, #div_3_1, #div_4_1 {
    height: 800px;
}

#div_3 rect:hover, #div_4 rect:hover {
    cursor: pointer;
    fill: rgba(48, 165, 255, 0.8)
}

.content_theme {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 300px;
    overflow: hidden;
}

.content_data {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 300px;
    overflow: hidden;
}

.axis path, .axis line {
    fill: none;
    stroke: #5f6468;
}

.axis text {
    fill: #5f6468;
    font-size: 0.8rem;
}

.line {
    fill: none;
    stroke: #ef0d0c;
    stroke-width: 1.5px;
}

div.tooltip {
    position: absolute;
    text-align: center;
    padding: 2px;
    font: 16px sans-serif;
    background: lightsteelblue;
    border: 0px;
    border-radius: 8px;
    pointer-events: none;
    text-align: center;
    padding: 1ch 1.5ch;
    background: #333;
    color: #fff;
}

svg .bar {
    stroke: #30a5ff;
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: #30a5ff;
    border-color: #30a5ff;
    -webkit-appearance: button;
    cursor: pointer;
    color: #fff;
}

#div_Menu {
    height: 75px;
    width: 101%;
    font-weight: bold;
}

#div_theme {
    background: rgba(25, 125, 139, 0.2);
    width: 20%;
    height: 87%;
    float: left;
    text-align: center;
    cursor: pointer;
    display: table;
    word-break: break-all;
}

#div_theme div:first-child {
    display: table-caption;
    background: #197d8b;
    height: 15%;
}

#div_theme div:nth-child(2) {
    display: table-cell;
    vertical-align: middle;
    font-size: 1.5rem;
}

#div_data {
    background: rgba(9, 67, 96, 0.2);
    width: 20%;
    height: 87%;
    float: left;
    text-align: center;
    cursor: pointer;
    display: table;
    word-break: break-all;
}

#div_data div:first-child {
    background: #094360;
    height: 15%;
    display: table-caption;
}

#div_data div:nth-child(2) {
    display: table-cell;
    vertical-align: middle;
    font-size: 1.5rem;
}

#div_intro {
    background: rgba(221, 58, 54, 0.2);
    width: 20%;
    height: 87%;
    float: left;
    text-align: center;
    cursor: pointer;
    display: table;
    word-break: break-all;
}

#div_intro div:first-child {
    background: #dd3a36;
    height: 15%;
    display: table-caption;
}

#div_intro div:nth-child(2) {
    display: table-cell;
    vertical-align: middle;
    font-size: 1.5rem;
}

#div_co {
    background: rgba(255, 199, 94, 0.2);
    width: 20%;
    height: 87%;
    float: left;
    text-align: center;
    cursor: pointer;
    display: table;
    word-break: break-all;
}

#div_co div:first-child {
    background: #ffc75e;
    height: 15%;
    display: table-caption;
}

#div_co div:nth-child(2) {
    display: table-cell;
    vertical-align: middle;
    font-size: 1.5rem;
}

#div_statistics {
    background: rgba(50, 133, 216, 0.7);
    width: 20%;
    height: 87%;
    float: left;
    text-align: center;
    cursor: pointer;
    display: table;
    word-break: break-all;
}

#div_statistics div:first-child {
    background: #3285d8;
    height: 15%;
    display: table-caption;
}

#div_statistics div:nth-child(2) {
    display: table-cell;
    vertical-align: middle;
    font-size: 1.5rem;
}

a.tooltips {
    position: relative;
    display: inline;
}

a.tooltips span {
    position: absolute;
    width: 140px;
    color: #FFFFFF;
    background: #3B3B3B;
    height: 26px;
    line-height: 26px;
    text-align: center;
    visibility: hidden;
    border-radius: 7px;
}

a.tooltips span:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -8px;
    width: 0;
    height: 0;
    border-right: 8px solid #3B3B3B;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

a:hover.tooltips span {
    visibility: visible;
    opacity: 0.7;
    left: 100%;
    top: 50%;
    margin-top: -33px;
    margin-left: 15px;
    z-index: 999;
}

@media (max-width:850px) {
    [name=s_text] {
        display: none;
    }
    [name=s_count] {
        margin-right: 0;
        margin-top: 10px;
    }
    text {
        font-size: 1.5rem;
    }
    .axis text {
        font-size: 1.8rem;
    }
    #div_hotleft {
        width: 100%;
        margin-right: 0
    }
    #div_hotright {
        width: 100%;
    }
    .datepicker {
        height: 2rem;
        width: 6rem;
    }
}

@media (max-width:800px) {
    html{
        font-size: 0.8em;
     }
 }
@media (max-width:500px) {
    html {
        font-size: 1vw;
    }
      [name=s_date] {
        font-size: 3rem;
    }
    #div_Menu div div:nth-child(2) {
        font-size: 4.5rem;
    }
    div[name="div_title"] p {
        font-size: 6rem;
    }
    div[name="div_subtitle"] {
        margin-top: 2px;
    }
    div[name="div_subtitle"] p:nth-child(2) {
        font-size: 2.5rem
    }
    div[name="div_subtitle"] p:nth-child(3) {
        font-size: 3.5rem
    }
    /* [name=hide_s] {
        display: none;
    } */
    div [name=div_mainhot] p {
        font-size: 5rem;
    }
    #div_3, #div_4, #div_3_1, #div_4_1 {
        height: 550px;
    }
    g.context {
        display: none;
    }
    #div_3_1 [name=s_text], #div_4_1 [name=s_text] {
        display: block;
        font-size: 3rem;
    }
    [name=s_count] {
        font-size: 4rem;
    }
    .datepicker {
        height: auto;
        width: 62px;
        font-size: 2.8rem;
    }
    .btn {
        font-size: 2.5rem;
    }
    [name=div_subbar] p {
        font-size: 2rem;
    }
    [name=showtext] {
        font-size: 3rem;
    }
    .cxcalendar_hd {
        font-size: 4rem;
    }
    .cxcalendar_bd {
        font-size: 3rem;
    }
    div[name="div_title"] {
        float: none;
        text-align: left;
        width: 100%;
    }
    #div_Menu div div:nth-child(2) {
        font-size: 8rem;
    }
    .s_banner {
        display: block;
        font-size: 4rem;
    }
    #div_intro .s_banner {
        letter-spacing: 8px;
        margin-left: 5px;
    }
    #hidden_banner {
        display: block;
    }
    #img_logo {
        width: 160px;
        margin-top: 30px;
    }
    .tooltips span {
        font-size: 3rem;
    }
    [name=img_back] {
        width: 17px;
        margin-left: 4px;
        margin-right: -5px;
    }
    .axis text {
        font-size: 2.4rem;
    }
    svg>text {
        font-size: 2.5rem;
    }
    #div_footer{
        font-size: 2rem;
        /* width: 87%; */
    }
}

@media (max-height:500px) {
    [name=s_date] {
        font-size: 2rem;
    }
    [name=img_back] {
        width: 15px;
    }
    #div_Menu div div:nth-child(2) {
        font-size: 3rem;
    }
    button p {
        font-size: 3rem;
    }
    div[name="div_mainbase"] p, div[name="div_mainenvironment"] p, div[name="div_mainpotential"] p, div[name="div_mainarticle"] p {
        font-size: 3rem;
    }
    [name=div_subbase], [name=div_subenvironment], [name=div_subpotential], [name=div_subarticle] {
        font-size: 3rem
    }
    .datepicker {
        height: auto;
        width: 110px;
        font-size: 2.8rem;
    }
    .btn {
        font-size: 1.5rem;
    }
    [name=s_text] {
        display: block;
    }
    div [name=div_mainhot] p {
        font-size: 2rem;
    }
    div[name="div_subtitle"] p:nth-child(2) {
        font-size: 1.5rem
    }
    div[name="div_subtitle"] p:nth-child(3) {
        font-size: 2.5rem
    }
    g.context {
        display: none;
    }
    [name=showtext] {
        font-size: 2rem;
    }
    [name=s_text] {
        font-size: 2rem;
        margin-top: 20px;
    }
    [name=s_count] {
        font-size: 3.5rem;
    }
    #div_3_1 [name="div_subbar"] p [name=s_text], #div_4_1 [name="div_subbar"] p [name=s_text] {
        margin-top: 12px;
    }
    #div_3_1 [name="div_subbar"] p [name=s_count], #div_4_1 [name="div_subbar"] p [name=s_count] {
        margin-top: 0px;
    }
    div[name="div_title"] p {
        font-size: 4rem;
    }
    .tooltips span {
        font-size: 2rem;
    }
    .cxcalendar_hd {
        font-size: 2rem;
    }
    .cxcalendar_bd {
        font-size: 2rem;
    }
    html{
        font-size: 0.39em;
    }
    #div_footer{
        font-size: 1.3rem;
    }
}