

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	/* vertical-align: baseline; */
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

.html,body{
    margin: 0px auto;
    background: #343a40;
    /* font-family: "Microsoft JhengHei", "PMingLiU", "MingLiU", "DFKai-sb", Verdana, Arial, Helvetica,serif; */
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-button {
width: 0px;
height: 0px;
}
::-webkit-scrollbar-thumb {
background: #ff8000;
border: 0px none rgba(0, 0, 0, 0);
border-radius: 50px;
}
::-webkit-scrollbar-thumb:hover {
background: #d56a00;
}
::-webkit-scrollbar-thumb:active {
background: #000000;
}
::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0);
border: 0px none rgba(0, 0, 0, 0);
border-radius: 50px;
}
::-webkit-scrollbar-track:hover {
background: rgba(0, 0, 0, 0);
}
::-webkit-scrollbar-track:active {
background: rgba(0, 0, 0, 0);
}
::-webkit-scrollbar-corner {
background: transparent;
}

.menu{
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: black;
    color: white;
}

.menu a{
    color: white;
    text-decoration: none;
}

.menu-color-div{
   position: absolute;
   z-index: 1;
   right: 0;
   top: 0;
   height: 100vh;
   width: 8px;
   background: linear-gradient(270deg, #FF9100 0%, #FFCC00 100%); 
    background: -moz-linear-gradient(270deg, #FF9100 0%, #FFCC00 100%); 
    background: -webkit-linear-gradient(270deg, #FF9100 0%, #FFCC00 100%); 
    background: -o-linear-gradient(270deg, #FF9100 0%, #FFCC00 100%); 
}

.main{
    position: fixed;
    z-index: 0;
    right:0;
    top: 0;
    width: calc(100vw - 300px);
    height: 100vh;
    /* background: #343a40; */
    overflow-y: auto;
    background-size: cover;
}

.menu-bar{
    cursor: pointer;
    position: fixed;
    z-index: 6;
    right:0;
    top: 0;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    font-size: 2rem;
    color: rgba(255,255,255, 0.5);
    display: none;
}

.menu-close{
    cursor: pointer;
    position: fixed;
    z-index: 6;
    right:0px;
    top: 0;
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    font-size: 2rem;
    background: #FFCC00;
    /* color: rgba(255,255,255, 0.5); */
    color: rgba(0,0,0, 1);
    display: none;
}

.main-img{
    position: fixed;
    z-index: -1;
    right:0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    display: none;
}

.main-img-cover{
    position: absolute;
    z-index: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../images/img-cover.png');
    background-repeat: repeat;
}

.main-img-btnL{
    cursor: pointer;
    position:absolute;
    z-index: 1;
    left:0;
    top: 0;
    width: 50%;
    height: 100vh;
    /* background: rgba(0,0,0,0.5) */
}
.main-img-btnR{
    cursor: pointer;
    position:absolute;
    z-index: 1;
    right:0;
    top: 0;
    width: 50%;
    height: 100vh;
    /* background: rgba(255,0,0,0.2) */
}

.web-title{
    font-size: 5rem;
    padding-left: 50px;
    padding-top: 30px;
}

.home-title{
    position: absolute;
    z-index: 2;
    left: 10%;
    top: 100px;
    width: 18%;
    font-size: 3rem;
    color: white; 
    padding: 20px;
    background: rgba(0,0,0,0.3);
}

.home-content{
    position: absolute;
    z-index: 2;
    right: 0%;
    left: 10%;
    top: 350px;
    font-size: 2rem;
    color: white; 
    padding: 30px;
    background: rgba(0,0,0,0.3);
}

.copyright{
    position: fixed;
    z-index: 5px;
    right: 0;
    bottom:0;
    padding: 5px;
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255,255,255,.6);
}

.menu-logo-div{
    position: relative;
    width: 100%;
    height: 120px;
    line-height: 120px;
    /* margin-top: 30px; */
    color: white;
    background: #111;
    /* 有圖就拿掉 */
    font-size: 3rem; 
}

.menu-logo-div-n{
    display: -webkit-flex; display: flex; flex-wrap: wrap; align-items: center;
    width: calc(100% - 60px); margin: 0 60px 0 0;
}
    .menu-logo-div-n img{ width: 100%; margin: auto 0;}
    .menu-logo-div-n-img{ width: 50%; margin: 0;}
    .menu-logo-div-n-language{display: -webkit-flex; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; width: 50%; margin: 0;}
        .menu-logo-div-n-language-box{ width: 32%; margin: 4px 9%;}

@media only screen and (min-width: 992px) {
    .menu-logo-div-n{  width: calc(100% - 10px);  margin: 0 10px 0 0;}
}

.menu-btn{
    cursor: pointer;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: black;
    font-size: 1.2rem;
    font-weight: 700;
}

.menu-btn:hover{
    background: linear-gradient(0deg, #FF9100 0%, #FFCC00 100%); 
    background: -moz-linear-gradient(0deg, #FF9100 0%, #FFCC00 100%); 
    background: -webkit-linear-gradient(0deg, #FF9100 0%, #FFCC00 100%); 
    background: -o-linear-gradient(0deg, #FF9100 0%, #FFCC00 100%); 
}

.menu-active{
    background: linear-gradient(0deg, #FF9100 0%, #FFCC00 100%); 
    background: -moz-linear-gradient(0deg, #FF9100 0%, #FFCC00 100%); 
    background: -webkit-linear-gradient(0deg, #FF9100 0%, #FFCC00 100%); 
    background: -o-linear-gradient(0deg, #FF9100 0%, #FFCC00 100%); 
}

.grid, .grid-2 {
	/* padding: 1em 1em 0 1em;
    margin: 0; */
    margin: 30px;
	column-gap: 2em;
    /* column-rule: 2px outset black; */
    column-width: 50%;
}

.grid {
	column-count: 3;
}

.grid-2 {
    column-count: 2;
}

.module {
	display: inline-block;
    margin: 15px 0 15px 0;
    width: 100%;
	list-style: none;
	background: rgba(0, 0, 0, 0.7);
	padding: 15px;
	/* box-shadow: 0 8px 6px -6px #242424, 0px -8px 6px -6px #242424; */
}

.module img{
    width: 100%;
    /* height: 200px; */
    object-fit: cover;
    cursor: pointer;
}

.tile{ 
    /* -webkit-transform: scale(0); */
    /* transform: scale(0); */
    -webkit-transition: all 350ms ease;
    transition: all 350ms ease;
}

.scale-anm{
  /* transform: scale(1); */
}

.img-showbox{
    cursor: pointer;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    width: 100vw;
    height: 100vh;
    line-height: 100vh;
    text-align: center;
    opacity:0;
}

.img-showbox > img {
    width: 100%;
    max-width: 400px;
}

.news-showbox{
    
    cursor: pointer;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    width: 100vw;
    height: 100vh;
    text-align: center;
    opacity:0;
}

/* .img-showbox img{
    max-width: 60%;
    height: calc(100vh - 100px);
    object-fit: cover; 
} */


.lag{
    /* position: absolute;
    top:10px;
    left:10px; */
    font-size: 0.5rem;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
	.menu{
        width: 100%;
        transform: translateX(-100%);
        transition: all 1000ms cubic-bezier(.7,.04,.39,.97);
        display: none;
    }

    .menu-open{
        transform: translateX(0%);
        transition: all 1000ms cubic-bezier(.7,.04,.39,.97);
        overflow-y: scroll;
        overflow-x: hidden;
    }


    .main{
        width: 100%;
    }

    .web-title{
        font-size: 3rem;
        padding-left: 30px;
        padding-top: 20px;
    }

    .menu-bar{
        display: inline;
    }

    .menu-close{
        display: inline;
    }

    .home-title{
        left: 10%;
        top: 54px;
        width: 35%;
        font-size: 2rem;
        color: white; 
        padding: 10px;
        background: rgba(0,0,0,0.3);
    }
    
    .home-content{
        position: absolute;
        z-index: 2;
        right: 0;

        top: 200px;
        font-size: 1.5rem;
        color: white; 
        padding: 10px;
        background: rgba(0,0,0,0.3);
    }
    
    .grid, .grid-2 {
        column-count: 1;
        margin: 15px;
    }

    .module {
        margin: 10px 0 1rem 0;
        padding: 10px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) { 
	.menu{
        width: 100%;
        transform: translateX(-100%);
        transition: all 1000ms cubic-bezier(.7,.04,.39,.97);
        display: none;
    }

    .menu-open{
        transform: translateX(0%);
        transition: all 1000ms cubic-bezier(.7,.04,.39,.97);
        overflow-y: scroll;
        overflow-x: hidden;
    }


    .main{
        width: 100%;
    }
    .menu-bar{
        
        display: inline;
    }

    .menu-close{
        display: inline;
    }

    .home-title{
        left: 10%;
        top: 54px;
        width: 25%;
        font-size: 3rem;
        color: white; 
        padding: 10px;
        background: rgba(0,0,0,0.3);
    }
    
    .home-content{
        position: absolute;
        z-index: 2;
        right: 0;
        top: 250px;
        font-size: 2rem;
        color: white; 
        padding: 10px;
        background: rgba(0,0,0,0.3);
    }
    
    .grid {
        column-count: 1;
    }

    .module {
        margin: 10px 0 1rem 0;
        padding: 10px;
    }
    
 }

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) { 
	.menu{
        width: 100%;
        transform: translateX(-100%); 
        -webkit-transition: all 1s; /* Safari */
        transition: all 1s;
        display: none;
    }

    .menu-open{
        transform: translateX(0%);
        -webkit-transition: all 1s; /* Safari */
        transition: all 1s;
        overflow-y: auto;
        overflow-x: hidden;
    }


    .main{
        width: 100%;
    }
    .menu-bar{
        
        display: inline;
    }

    .menu-close{
        display: inline;
    }

    .home-title{
        left: 10%;
        top: 60px;
        width: 20%;
        font-size: 3rem;
        color: white; 
        padding: 15px;
        background: rgba(0,0,0,0.3);
    }
    
    .home-content{
        position: absolute;
        z-index: 2;
        right: 0;
        top: 250px;
        font-size: 2rem;
        color: white; 
        padding: 15px;
        background: rgba(0,0,0,0.3);
    }
    
    .grid {
        column-count: 2;
    }

    .module {
        margin: 10px 0 1rem 0;
        padding: 10px;
    }
}

@media(max-width: 991px){
    .menu-logo-div > img {
        width: auto !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) { 
	.home-title{
        left: 10%;
        top: 60px;
        width: 20%;
        font-size: 3rem;
        color: white; 
        padding: 20px;
        background: rgba(0,0,0,0.3);
    }
    
    .home-content{
        position: absolute;
        z-index: 2;
        right: 0;
        top: 250px;
        font-size: 2rem;
        color: white; 
        padding: 20px;
        background: rgba(0,0,0,0.3);
    }

    
}

/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1366px) {
	.menu-btn{
        height: 50px;
        line-height: 50px;
    }
}
