html {
    font-size: 1em;
}

body {
    margin: 0;
    font-family: Microsoft JhengHei;
}

h6 {
    display: none;
}

h2 {
    margin-top: 14px;
}

p {
    font-weight: bold;
}

#img_p {
    float: left;
}

#hidden_banner {
    display: none;
}

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: 17%;
    margin-top: -23px;
    width: auto;
    margin-left: 3%;
    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;
}

hr {
    height: 12px;
    border: 0;
    box-shadow: inset 0 12px 12px -12px rgba(0, 0, 0, 0.5);
    clear: both;
}

#img_top {
    width: 100%;
    height: 100px;
    position: absolute;
    z-index: -1;
}

#img_logo {
    width: 220px;
    margin-top: 16px;
    margin-left: 1%;
    cursor: pointer;
}

#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;
}


#second_div {
    margin-top: 2.5rem;
    margin-left: 10%;
}

#second_div p {
    letter-spacing: 3px;
}

#second_div img {
    margin-top: 15px;
    height: 50px;
    line-height: 50px;
    margin-left: 15px;
    float: left;
    opacity: 0.6;
    vertical-align: middle;
    border-style: none;
    margin-bottom: 16px;
}

#second_div div a {
    word-wrap: break-word;
}

#second_div div a img:hover {
    opacity: 3;
}

div[name="div_mainbase"], div[name="div_mainenvironment"], div[name="div_mainpotential"], div[name="div_mainarticle"] {
    margin-top: 20px;
    background-color: transparent;
    width: 90%;
    float: left;
    min-height: 45px;
    border: 1px solid #4697a1;
    cursor: pointer;
}

div[name="div_mainbase"] p, div[name="div_mainenvironment"] p, div[name="div_mainpotential"] p, div[name="div_mainarticle"] p {
    font-size: 1.1rem;
    color: black;
    letter-spacing: 4px;
    margin: 0 auto;
    margin-left: 13px;
    margin-top: 12px;
    margin-bottom: 11px;
}

div[name="div_subbase"], div[name="div_subenvironment"], div[name="div_subpotential"], div[name="div_subarticle"] {
    background-color: #fffef8;
    width: 90%;
    float: left;
    height: auto;
    border: 1px solid #4697a1;
}

div[name="div_subbase"]>div, div[name="div_subenvironment"]>div, div[name="div_subpotential"]>div, div[name="div_subarticle"]>div {
    margin: 40px;
}

button {
    color: black;
    min-height: 45px;
    background-color: white;
    margin-right: 30px;
    float: left;
    border: 1px solid #4697a1;
    margin-top: 5px;
}

button p {
    font-size: 1.1rem;
    margin-top: 12px;
    margin: 0 auto;
    font-family: Microsoft JhengHei;
}

button:hover {
    cursor: pointer;
    opacity: 0.9;
}

#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;
    height: 85%;
    font-size: 1.5rem;
}

#div_data {
    background: rgba(9, 67, 96, 0.7);
    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;
    height: 85%;
    font-size: 1.5rem;
    color: white;
}

#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;
    height: 85%;
    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;
    height: 85%;
    font-size: 1.5rem;
}

#div_statistics {
    background: rgba(50, 133, 216, 0.2);
    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;
    height: 85%;
    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-height:900px) {
    html {
        font-size: 1.3vw;
    }
}
@media (max-height:800px) {
    html {
        font-size: 1.5vw;
    }
}
@media (max-height:700px) {
    html {
        font-size: 1.7vw;
    }
}
@media (max-height:600px) {
    html {
        font-size: 1.9vw;
    }
}
@media (max-height:500px) {
    html {
        font-size: 1vw;
    }
} */

@media (max-width:800px) {
    html{
        font-size: 0.8em;
     }
 }
@media (max-width:500px) {
    html {
        font-size: 1vw;
    }
     #div_Menu div div:nth-child(2) {
        font-size: 4.5rem;
    }
    div[name="div_title"] p {
        font-size: 4.5rem;
    }
    button p {
        font-size: 5rem;
    }
    div[name="div_mainbase"] p, div[name="div_mainenvironment"] p, div[name="div_mainpotential"] p, div[name="div_mainarticle"] p {
        font-size: 4.5rem;
    }
    [name=div_subbase], [name=div_subenvironment], [name=div_subpotential], [name=div_subarticle] {
        font-size: 4rem
    }
    div[name="div_subtitle"] {
        margin-top: 10px;
    }
    div[name="div_subtitle"] p:nth-child(2) {
        font-size: 2.5rem
    }
    div[name="div_subtitle"] p:nth-child(3) {
        font-size: 3.5rem
    }
    /* div.breakline {
        margin-top: -3px;
    }
   [name=s_line]{
       display: inherit;
   } */
    div[name="div_title"] {
        float: none;
        text-align: left;
        width: 100%;
    }
    div[name="div_title"] p {
        font-size: 6rem;
    }
    #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_p {
        float: none;
    }
    #second_div img {
        height: 45px;
        display: inline-block;
    }
    #div_base div div p:nth-child(1) {
        letter-spacing: 1.5px;
    }
    #div_article div div p:nth-child(1) {
        letter-spacing: 6px;
    }
    #div_potential [name=div_mainpotential] p {
        letter-spacing: 1px;
    }
    #img_logo {
        width: 160px;
        margin-top: 30px;
    }
    div[name="div_subbase"]>div, div[name="div_subenvironment"]>div, div[name="div_subpotential"]>div, div[name="div_subarticle"]>div {
        margin: 30px;
        margin-top: 25px;
        margin-right: 25px;
    }
    #second_div #div_base #div_6>div>p:nth-child(1) {
        letter-spacing: 3px;
    }
    #div_service {
        margin-top: 11px;
    }
    .tooltips span {
        font-size: 3rem;
    }
    #div_footer{
        font-size: 2rem;
    }
}

@media (max-height:500px) {
    #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
    }
    div[name="div_subtitle"] p:nth-child(2) {
        font-size: 2rem
    }
    div[name="div_subtitle"] p:nth-child(3) {
        font-size: 2.5rem
    }
    /* div.breakline {
        margin-top: -25px;
    } */
    #second_div div div div :nth-child(1) {
        letter-spacing: 4.5px;
    }
    #second_div div div div :nth-child(2) {
        font-size: 1.5rem
    }
    #second_div div div div div {
        display: inline-block;
    }
    #second_div #div_article :nth-child(6) div p {
        letter-spacing: 1px;
    }
    div[name="div_subbase"]>div, div[name="div_subenvironment"]>div, div[name="div_subpotential"]>div, div[name="div_subarticle"]>div {
        margin-bottom: 0px;
        margin-top: 30px;
    }
    #div_service {
        margin-top: -21.5px;
    }
    div[name="div_title"] {
        width: 28%;
    }
    div[name="div_title"] p {
        font-size: 4rem;
    }
    .tooltips span {
        font-size: 2rem;
    } 
    html{
        font-size: 0.39em;
    }
    #div_footer{
        font-size: 1.3rem;
    }
}