*{
  position:relative;
}
body{
    margin: 0px;
    padding: 0px;
    color: #000;
    font-weight: 400;
    font-family: 'Custom','Noto Sans TC','Nobel Book';
    text-align: left;
    letter-spacing: 1px;

        margin-top: 90px;

    
    
}

.nonedata{
    display:none;color: #b1b1b1;
}

.loadingcover{
    background-color: #fff; width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; z-index: 999;
}


centerwrap{
	max-width:1240px;
    position: relative;
    margin: auto;
    text-align: center;
    height: 100%;
    display: block;
}
centerwraps {
    max-width: 960px;
    position: relative;
    margin: auto;
    text-align: center;
    height: 100%;
    display: block;
}
li{
  list-style: none;
}
a{
  display: contents;
  color: inherit;
  text-decoration: none;
}

h1,h2,h3,h4,h5,h6{
	margin-block-start: 0;
    margin-block-end: 0;
    font-weight: normal;
}

/* placeholder */

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
	font-weight: 300;
	color: #999;
}
::-moz-placeholder { /* Firefox 19+ */
	font-weight: 300;
	color: #999;
}
:-ms-input-placeholder { /* IE 10+ */
	font-weight: 300;
	color: #999;
}
:-moz-placeholder { /* Firefox 18- */
	font-weight: 300;
	color: #999;
}


/* 開發測試 */
.dev{
	display: none;
}

input ,textarea ,select{
	-moz-box-shadow:none !important;
	-webkit-box-shadow:none !important;
	box-shadow:none !important;
	-moz-outline:none !important;
	-webkit-outline:none !important;
	outline:none !important;
}



/*  rwd  */
@media screen and (max-width: 960px) {

        .videoView .wrap {
           
                width: 100vw;
                height: 100vh;
                padding-bottom: 0;
                position: absolute;
                left: 0;
                top: 0;
                margin-left: 0;
                margin-top: 0;
        }
}
/* ............................................................ */


select{
	height: 40px;
    border-radius: 5px;
    border: 2px solid #d1cccc;
    width: 220px;
    font-size: 16px;
    text-align-last: center;
}

.pc{
	display: block;
}
.m{
	display: none;
}
pc{
	display: block;
}
m{
	display: none;
}

pc2{
	display: block;
}
m2{
	display: none;
}



#fb-root{
	display: none;
	opacity: 0;
}

.dotcover{
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0,0,0,0.1); */
    z-index: 2;
    background: url(/images/screentone.png) repeat 0 0;
    opacity: 0.8;
}

horizon{
	display: block;
    margin-bottom: 30px;
    margin-top: 30px;
    border-top: 1px dashed #e9e9e9;
}


body{

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
        min-height: 100vh;
}





/* topbanner  */
/* ............................................................ */

section.topbanner{
    margin-top: 90px;



    .title{
        color: #535353;
        height: 120px;
        margin-left: 50px;
        font-size: 30px;

        h1{
            font-size: 30px;
            position: absolute;
            left: 0px;
            top: 34px;
            background-color: #FFF;
            z-index: 1;
            padding-right: 50px;
        }

        &:after{
            content: '';
            display: block;
            width: 100%;
            height: 1px;
            background-color: #eeeeee;
            position: absolute;
            top: 58px;
        }
    }
    .photo{
        background-color: #f9f9f9;
        height: 450px;
        background-size: cover;
        background-position: center;
    }
}


/* 沒有值則隱藏 */
.valuenone[value=""]{
    display: none;
}


/* sitemap  */
/* ............................................................ */

section.sitemap{
    background-color: #2c7875;


    centerwrap{
        padding: 40px;
        font-size: 12px;
        text-align: left;
        color: #FFF;
        line-height: 2;

        .each{
            display: inline-block;
            vertical-align: top;
            width: 9%;
            margin-right: 1%;
            margin: 0.3%;


            a{
                display: block;
                color: #d1eae7;
                line-height: 18px;
                margin-bottom: 12px;
            }
            a.title{
                color: #FFF;
                font-size: 14px;
            }
        }
    }
}


/* footer  */
/* ............................................................ */

footer{

    background-color: #161616;
    color: #FFF;

    .in{
        display: flex;
    }

    centerwrap{
        padding: 60px;
        padding-bottom: 130px;
        background-image: url(/images/blacken.png);
        background-position: left 55px bottom;
        background-repeat: no-repeat;
    }
    


    .leftWrap{
          flex: 0 0 70%;
          vertical-align: top;
          text-align: left;

          .name{
              font-size: 18px;
              color: #c4c4c4;
          }
          .nameEn{
              font-size: 14px;
              color: #c4c4c4;
          }
          .contactWrap{
              margin-top: 20px;
              font-size: 15px;

              li{
                line-height: 1.8;
                                margin-left: 75px;
                text-indent: -75px;
              }

          }
    }

    .rightWrap{
          flex: 0 0 30%;
          vertical-align: top;
          text-align: right;

          .iconWrap{

            .icon{
                display: inline-block;
                height: 45px;
            }
          }

          .cpr{
              position: absolute;
              right: 0;
              bottom: -80px;
              font-size: 14px;
          }

    }

}

/* nav  */
/* ............................................................ */
body[scrolled="true"]{

    nav .pc_header{
        box-shadow: 0px 0px 50px 5px rgba(0, 0, 0, 0.06);
    }
    nav .m_header{
        box-shadow: 0px 0px 50px 5px rgba(0, 0, 0, 0.06);
    }

}

nav{
    z-index: 100;


    .pc_header{
        position: fixed;
        top: 0;
        width: 100%;
        text-align: center;
        background-color:#FFF;
        z-index: 2;

        -webkit-transition: box-shadow 0.3s;
        -moz-transition: box-shadow 0.3s;
        -o-transition: box-shadow 0.3s;
        transition: box-shadow 0.3s;
    

        .logo{
            height: 60px;
            position: absolute;
            left: 50px;
            top: 11px;
        }
        .logo-en{
            position: absolute;
            left: 120px;
            top: 46px;
            font-size: 10px;
            letter-spacing: 0;
        }
        .logo-text{
            position: absolute;
            left: 120px;
            top: 24px;
            font-size: 16px;
        }


        .nknu-nav{
            position: absolute;
            right: 30px;
            width: 77px;
            top: 30px;
        }

        centerwrap{
                height: 90px;
        }
        .btns_wrap{
            position: absolute;
            right: 30px;
            top: 0px;
            z-index: 4;
            color: #FFF;


            .btn{
                    display: inline-block;
                    color: #303030;
                    font-weight: 400;
                    font-size: 15px;
                    padding: 14px;
                    padding-left: 6px;
                    padding-right: 6px;
                    letter-spacing: 0px;
                    height: 61px;
                    line-height: 60px;

                    &[page="unitPlanning"]{
                        color: #cc8686;
                    }
                    &[page="unitResearch"]{
                        color: #cc8686;
                    }
                    &[page="unitIAC"]{
                        color: #cc8686;
                    }
                    

                    &:hover{
                            color: #b22828;
                            background-color: #f0f0f0;
                    }



                    &.selected{
                        height: 59px;
                        background-color: #f0f0f0;
                    }

                    &.active{
                        color: #b22828;
                        font-weight: bold;
                    }


                    &.morebtns:before{
                        content: '...';
                        position: absolute;
                        top: 29px;
                        width: 100%;
                        left: 0;
                        font-size: 20px;
                    }
            }
        }
        .fb{
                width: 35px;
                right: 40px;
                position: absolute;
                top: 20px;
        }
    }

    .btnListWrap{
        background-color: #f0f0f0;
        width: 100%;
        position: fixed;
        left: 0;
        text-align: center;        
        z-index: 2;
        margin-top: -2px;


        li{
                display: inline-block;
                padding: 15px;
                padding-top: 30px;
                padding-bottom: 30px;
                color: #585858;
                font-size: 14px;

                br{
                    display: none;
                }


                &:hover{
                    color: #b22828;
                }
        }
    }
    .btnListWrapCancel{
        background-color: red;
        width: 100%;
        height: 100%;
        z-index: 1;
        position: fixed;
        top: 0;
        left: 0;
        opacity: 0;
    }

    .m_header{
        background-color: #FFF;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10;

         -webkit-transition: box-shadow 0.3s;
        -moz-transition: box-shadow 0.3s;
        -o-transition: box-shadow 0.3s;
        transition: box-shadow 0.3s;
        


        .logo{
            height: 41px;
            top: 8px;
            left: 16px;
        }
        .logo-en{
            position: absolute;
            left: 63px;
            top: 29px;
            font-size: 10px;
            letter-spacing: 0;
            
        }
        .logo-text{
            position: absolute;
            left: 63px;
            top: 13px;
            font-size: 12px;
        }

        .btns_wrap{
            background-color: #cc5626;
            width: 100%;
            height: auto;
            position: fixed;
            top: 60px;
            text-align: center;
            color: #FFF;
            padding-top: 20px;
            padding-bottom: 50px;

            transition: opacity 0.1s ease-in-out;
            opacity: 0;
            pointer-events: none; 

            .btn{
                height: 40px;
                height: 50px;
                line-height: 50px;
            }
        }

        .menu-icon{
            position: fixed;
            right: 14px;
            font-size: 12px;
            top: 20px;
            cursor: pointer;
            z-index: 950;
            width: 30px;
            height: 25px;
            transition: all 0.3 ease;

            span {
                height: 2px;
                width: 27px;
                background-color: #111;
                display: block;
                transition: all 0.3s ease;
            }

            &:before {
                content: '';
                height: 2px;
                width: 27px;
                background-color: #111;
                display: block;
                margin-bottom: 7px;
                transition: all 0.3s ease;
            }
            &:after {
                content: '';
                height: 2px;
                width: 27px;
                background-color: #111;
                display: block;
                margin-top: 7px;
                transition: all 0.3s ease;
            }
        }
    }
}

nav.open .m_header .btns_wrap{
    opacity: 1;
    pointer-events: auto; 
    
}

body[scrolled="true"] nav .pc_header {
    background: 0 0;
    filter: none;
    background-color: #FFF;
}


.button{
    border: 1px solid #FFF;
    padding: 5px;
    text-align: center;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    border-radius: 60px;
    max-width: 200px;

}

/* noteAlert  */
/* ...............................  */
.noteAlert{
    display: none;

    background-color: #0000009c;
    height: 100px;
    width: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 999;
    margin-left: -150px;
    margin-top: -50px;
    border-radius: 10px;
    text-align: center;
}
.noteAlert i{
            color: #FFF;
            font-size: 35px;
            margin-top: 17px;
}

.noteAlert .text {
            color: #FFF;
            text-align: center;
            margin: 15px;
            font-size: 16px;
            margin-top: 5px;
}




/* btn */
 body[p="about"] .btns_wrap .btn[page="about"]
,body[p="news"] .btns_wrap .btn[page="news"]
,body[p="recruit"] .btns_wrap .btn[page="recruit"]
,body[p="student"] .btns_wrap .btn[page="student"]
,body[p="enroll"] .btns_wrap .btn[page="enroll"]
,body[p="plan"] .btns_wrap .btn[page="plan"]
,body[p="acadact"] .btns_wrap .btn[page="acadact"]
,body[page="download"] .btns_wrap .btn[page="download"]
,body[page="links"] .btns_wrap .btn[page="links"]
,body[page="teacherstaff"] .btns_wrap .btn[page="teacherstaff"]
{
        color: #009688;
}




body[scrolled="true"] .btn[page="newprojects"]{
    background-color: #191919;
}


/* newsList */
/* ............................. */
.newsList{

    li{
        border-bottom: 1px solid #e0e0e0;
        padding: 20px;
        text-align: left;
        font-size: 15px;

        &:not([department="all"]) b{
            margin-right: 8px;
        }
        
        .date{
            color: #888888;
            margin-bottom: 5px;
        }
        .type{
                position: absolute;
                right: 15px;
                top: 30px;
                color: #d82b2b;
        }
        .text{
            b{
                    color: #b64343;
            }
        }
    }  

    

    

}



/*  rwd  */
/* -----------------------------------*/
@media screen and (min-width: 1080px) and (max-width: 1280px) {
    

}

/*  rwd  */
/* -----------------------------------*/
@media screen and (max-width: 1080px) {

        pc2{
			display: none;
		}
		m2{
			display: block;
		}

        body{
			margin-top: 60px;
		}

}

@media screen and (max-width: 768px) {


        .button {
            height: 30px;
            line-height: 30px;
            font-size: 14px;
        }



		pc{
			display: none;
		}
		m{
			display: block;
		}
		.pc{
			display: none;
		}
		.m{
			display: block;
		}


        section.topbanner{
            margin-top: 0px;
        }
        section.topbanner .title{
            height: 65px;
            margin-left: 0px;
            font-size: 30px;
        }
        section.topbanner .title h1 {
            font-size: 22px;
            position: absolute;
            left: calc(50% - 100px);
            top: 15px;
            z-index: 1;
            padding-right: 0px;
            width: 200px;
            letter-spacing: 4px;
        }
        section.topbanner .photo {
            height: 150px;
            
        }
        section.topbanner .title:after{
            top: 32px;
        }

        


        section.sitemap{
            display: none;
        }


    /* footer */
    footer .leftWrap .contactWrap {
          margin-bottom: 30px;
    }
    footer .in {
            display: block;
        
    }
    footer centerwrap {
        padding: 40px;
        padding-bottom: 34px;
        background-position: left 25px bottom;
        
    }
    footer .leftWrap .contactWrap {
        margin-top: 20px;
        font-size: 13px;
        
    }

    footer  .rightWrap  .iconWrap {
          text-align: center;
    }

    footer  .rightWrap  .cpr {
                position: relative;
                right: 0;
                bottom: 0;
                font-size: 14px;
                text-align: center;
                margin-top: 20px;
    }


    .newsList {
        & li {
            .type {
                top: 20px;
            }
        }
    }
      
}
