@charset "UTF-8";

/* body, html {
    height: 100%;
} */

body{
    margin:0;
    padding:0;
    color:#403F41;
    font-family: 'MHeiHK', 'Heiti TC', 'Microsoft JhengHei', '微軟正黑體';
    font-size: 17px;
    font-weight: 300;
}

a{
    color: inherit;
    text-decoration: none;
    word-break: break-all;
}

img{
    max-width: 100%;
}

p {
    line-height: 1.8;
}

/*------------- Common Styles --------------*/
.common{
    position: relative;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
}

.common2{
    padding-left: 70px;
}

.mobile{
    display: none;
}

.clear{
    clear: both;
}

.two-col{
    display: inline-block;
    width: 48%;
    vertical-align: top;
}

.two-col:nth-child(2n){
    margin-left: 3%;
}

/* For ul, ol */
.notBulletPoint{
    list-style: none;
    margin:0;
    padding:0;
}

/* For form */
.input-style{
    border: 1px solid #403F41;
    border-radius: 3px;
    background-color: transparent;
    color:#403F41;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif,'Heiti TC', 'MHeiHK','Microsoft JhengHei', '微軟正黑體';
    font-weight: 300;
}

.button-style{
    border:none;
    color:#403F41;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif,'Heiti TC', 'MHeiHK','Microsoft JhengHei', '微軟正黑體';
    cursor: pointer;
}

.input-style:focus,
.button-style:focus{
    outline:0;
}


/* For Content */
.title {
    text-align: center;
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 40px;
}

.title-text {
    display: inline-block;
    padding: 45px 250px;
    background: linear-gradient(to right, #FFF 0%, #FFF 50%, #EEFFE7 50%, #EEFFE7 100%);
    line-height: 1;
}

.book-title{
    position: relative;
    font-size: 40px;
    line-height: 1.2;
    padding: 25px 0 45px 120px;
    margin-bottom: 40px;
    font-weight: normal;
}

.book-title .book-background{
    left: 200px;
}

.chapter-title{
    position: relative;
    font-size: 30px;
    font-weight: normal;
    padding: 80px 0 15px 50px;
}

.popup-title{
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

/* With padding */
.category-title {
    position: relative;
    padding:35px 0 15px 0;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: normal;
}

/* No padding */
.category-title2{
    font-size: 24px;
    font-weight: normal;
}

.center-container{
    text-align: center;
}

.right-container{
    text-align: right; 
}

/* Background*/
.book-background {
    background-color: #EEFFE7;
    position: absolute;
    top: 0;
    left: 70px;
    width: 335px;
    height: 100%;
    z-index: -1;
}

#overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 12;
    position: fixed;
    display: none;
    cursor: pointer;
}

#popupBox{
    opacity: 0;
	position:fixed;
    width: 500px;
    top: 10%;
    left: 50%;
    -webkit-transform: translate(-50%,0);
    -moz-transform: translate(-50%,0);
    -ms-transform: translate(-50%,0);
    -o-transform: translate(-50%,0);
    transform: translate(-50%,0);
	padding: 0 25px;
	background-color: #FFFFFF;
    border-radius: 10px;
    min-height: 150px;
    -webkit-transition: opacity 1s ease-in-out;
    -moz-transition: opacity 1s ease-in-out;
    -ms-transition: opacity 1s ease-in-out;
    -o-transition: opacity 1s ease-in-out;
    transition: opacity 1s ease-in-out;
    max-height: 80%;
    overflow-y: auto;
    z-index: -1;
}

#popupBox.active{
    opacity: 1;
    z-index:999;
} 

.close-btn{
    display: inline-block;
    width: 28px;
    height: 28px;
    position: absolute;
    cursor: pointer;
}

.close-btn span {
    position: absolute;
    display: block;
    height: 1px;
    width: 100%;
    background: #8B8B8B;
    border-radius: 3px;
    left: 0;
}

.close-btn span:nth-child(1) {
    top: 15px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg); 
    -ms-transform: rotate(135deg); 
    -o-transform: rotate(135deg);
}

.close-btn span:nth-child(2) {
    top: 15px;
    transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg); 
    -ms-transform: rotate(-135deg); 
    -o-transform: rotate(-135deg);
}

/*-------- end common -----------*/
/* .main-content-wrapper {
    position: relative;
    min-height: 100%;
}

.main-content{
    padding-bottom: 71px;
} */

/*----------- header -----------*/
.index-banner-container{
    overflow-x: hidden;
}

.index-banner,
.banner {
    position: relative;
    top: 0;
    left: 50%;
    -webkit-transform: translate(-50%,0);
    -moz-transform: translate(-50%,0);
    -ms-transform: translate(-50%,0);
    -o-transform: translate(-50%,0);
    transform: translate(-50%,0);
}

.banner-container{
    overflow-x: hidden;
}

.header{
    width: 100%;
    position: absolute;
    top: 18px;
    left: 0;
}

.header-logo{
    display: inline-block;
    width: 20%;
    vertical-align: top;
}

.header-menu{
    display: inline-block;
    width: 80%;
    text-align: right;
    vertical-align: top;
}

.menu {
    list-style:none;
    margin:0;
    padding:0;
    font-size: 20px;
}

.menu > li{
    display: inline-block;
    position: relative;
    padding: 0 20px 10px 20px;
    cursor: pointer;
}

.header-menu .menu > li > .menu-title {
    padding-bottom: 8px;
    display: inline-block;
}

.header-menu .menu > li.active > .menu-title{
    border-bottom: 3px solid #403F41;
}

.header-menu .menu > li:hover > .menu-title{
    border-bottom: 3px solid #403F41;
}

.menu > li:not(:last-child)::after{
    content:'';
    display:inline-block;
    width:1px;
    height: 13px;
    border-right:1px solid #C1C4C3;
    position: absolute;
    top: 8px;
    right: 0;
}

.login-status{
    margin-right: 8px;
}

.menu > li:hover .sub-menu{
    display:block;
}

.sub-menu{
    list-style: none;
    margin: 0;
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    padding: 15px 20px;
    background-color: rgba(224, 224, 224, 0.8);
    z-index: 2;
}

.sub-menu > li{
    white-space:nowrap;
    text-align:left;
    line-height: 1.6;
}

.sub-menu > li > a:hover{
    opacity: 0.8;
}

/* Mobile menu */
.hamburger-btn{
    width: 42px;
    height: 33px;
    cursor: pointer;
    display: none;
    position: absolute;
    top: 0;
    right: 0;
}

.hamburger-btn span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #999999;
    border-radius: 3px;
    left: 0;
}

.hamburger-btn span:nth-child(1) {
    top: 0px;
}

.hamburger-btn span:nth-child(2) {
    top: 13px;
}

.hamburger-btn span:nth-child(3) {
    top: 26px;
}

.header-menu .close-btn{
    display: none;
    right: 4%;
}

.header-menu .footer-menu.menu{
    display: none;
}

.header-menu-top .login-status{
    display: inline-block;
    margin-right: 10px;
}

.search-form{
    display: inline-block;
    position: relative;
}

.search-form .input-style{
    width: 140px;
    height: 24px;
    text-indent: 3px;
}

.search-form .button-style{
    background-color: transparent;
    padding: 0;
    line-height: 1;
    position: absolute;
    top: 50%;
    right: 9px;
    -webkit-transform: translate(0,-50%);
    -moz-transform: translate(0,-50%);
    -ms-transform: translate(0,-50%);
    -o-transform: translate(0,-50%);
    transform: translate(0,-50%);
}


/* Content */
.content{
    padding: 35px 0 130px 0;
}


/*------------ index - course overview -------------*/
.course-structure-item {
    display: inline-block;
    width: 20%;
    vertical-align: top;
    margin-right: -4px;
}

.course-structure-name{
    font-size: 24px;
    line-height: 1.6;
    padding: 30px 0 50px 0;
    text-align: center;
    font-weight: normal;
}

.course-structure-item:first-child .course-structure-name{
    background: linear-gradient(to right, #ECF6FF 0%, #ECF6FF 50%, #FFF 50%, #FFF 100%);
}

.course-structure-item:nth-child(2) .course-structure-name{
    background: linear-gradient(to right, #FFF7EC 0%, #FFF7EC 50%, #FFF 50%, #FFF 100%);
}

.course-structure-item:nth-child(3) .course-structure-name{
    background: linear-gradient(to right, #FFECEC 0%, #FFECEC 50%, #FFF 50%, #FFF 100%);
}

.course-structure-item:nth-child(4) .course-structure-name{
    background: linear-gradient(to right, #EDECFF 0%, #EDECFF 50%, #FFF 50%, #FFF 100%);
}

.course-structure-item:nth-child(5) .course-structure-name{
    background: linear-gradient(to right, #FFFFE2 0%, #FFFFE2 50%, #FFF 50%, #FFF 100%);
}

.course-structure-info {
    max-width: 190px;
    margin: -28px auto 0 auto;
}

.course-structure-desc {
    font-size: 17px;
    line-height: 1.6;
    margin-top: 20px;
}


/*--------- Page Content ------------*/
.course-introduction{
    background: url("../images/backgound1.png") left top no-repeat;
    margin-top: -40px;
    padding-top: 80px;
}

.course-introduction-item {
    display: inline-block;
    padding: 0 5% 0 15%;
    width: 30%;
    vertical-align: top;
    margin-bottom: 100px;
}

.course-introduction-item > .category-title2 {
    margin-bottom: 35px;
}

.color-style{
    margin-bottom: 80px;
}

.chapter-list-container {
    display: inline-block;
    vertical-align: bottom;
    width: 35%;
} 

.chapter-item {
    display: flex;
    flex-flow: row wrap;
}

.chapter-no{
    display: inline-block;
    padding: 5px 0 5px 15%;
    margin-right: 2%;
    flex-basis: 20%;
    line-height: 1.2;
}

.chapter-name {
    display: inline-block;
    flex-basis: 60%;
    padding: 5px 0;
    line-height: 1.2;
}

.chapter-list li:first-child .chapter-no,
.chapter-list li:first-child .chapter-name{
    padding-top: 50px;
}

.chapter-list li:last-child .chapter-no,
.chapter-list li:last-child .chapter-name{
    padding-bottom: 60px;
}

.course-overview .book-intro{
    display: inline-block;
    width: 55%;
}

.course-overview .color-style:nth-child(2n - 1) .book-intro{
    margin-left: 9%;
}

.course-overview .color-style:nth-child(2n) .book-intro{
    margin-right: 9%;
}

.course-overview .book-intro .category-title2{
    position: absolute;
    top: -45px;
}

.course-overview .book-desc{
    position: relative;
    display: inline-block;
    padding: 5%;
    width:calc(100% - 360px - 10%);
    width: -moz-calc(100% - 360px - 10%);
    width: -webkit-calc(100% - 360px - 10%);
    width: -o-calc(100% - 360px - 10%);
    vertical-align: bottom;
    margin-bottom: 20px;
    line-height: 1.6;
}

.course-overview .book-intro-img {
    display: inline-block;
    width: 360px;
    margin-left: -5px;
}

.other-courseInfo{
    position: relative;
    min-height: 300px;
    margin-bottom: 80px;
}


.other-courseInfo .category-title{
    padding: 25px 0 25px 0;
}

.other-courseInfo .category-title .book-background {
    left: 0;
}

.other-courseInfo .two-col{
    display: inline-block;
    width: 30%;
    vertical-align: top;
}

.other-courseInfo .two-col:nth-child(2n){
    width: 60%;
    margin-left: 9%;
}

.other-courseInfo > .book-background{
    left: auto;
    right: 0;
    bottom: 30px;
    height: 45%;
    top: auto;
}


/*--------- Book detail ------------*/
.book-detail{
    overflow-x: hidden;
}

.book-detail .book-intro{
    position: relative;
    padding-right: 400px;
}

.book-detail .book-total-resource{
    max-width: 920px;
    margin-left: auto;
    margin-bottom: 40px;
}

.book-detail .book-intro-img {
    position: absolute;
    width: 360px;
    top: 0;
    right: 0;
}

.book-detail .book-desc{
    max-width: 520px;
    margin-left: auto;
    font-size: 26px;
    line-height: 1.6;
}

.book-detail .chapter-list-container {
    display: inline-block;
    margin-right: 40px;
    vertical-align: top;
    width: 405px;
} 

.chapter-list li{
    font-size: 17px;
}

.chapter-list li a{
    color: #4C4C4C !important;
}

.book-detail .chapter-no{
    padding: 8px 0 8px 8%;
    margin-right: 2%;
    flex-basis: 18%;
    line-height: 1.6;
}

.book-detail .chapter-list li:first-child .chapter-no,
.book-detail .chapter-list li:first-child .chapter-name{
    padding-top: 15px;
}

.book-detail .chapter-list li:last-child .chapter-no,
.book-detail .chapter-list li:last-child .chapter-name{
    padding-bottom: 15px;
}

.book-detail .chapter-name {
    flex-basis: 72%;
    padding: 8px 0;
    line-height: 1.6;
}

.chapter-detail-container {
    display: inline-block;
    width:calc(100% - 445px);
    width: -moz-calc(100% - 445px);
    width: -webkit-calc(100% - 445px);
    width: -o-calc(100% - 445px);
    margin-top: 60px;
    vertical-align: top;
}

.chapter-resource{
    position: relative;
    padding-top: 25px;
    padding-bottom: 80px;
}

.chapter-resource-row{
    font-size: 20px;
}

.chapter-resource-row:not(:last-child) {
    padding-bottom: 30px;
}

.resource-category {
    display: inline-block;
    text-align: right;
    margin-right: 45px;
    width: 80px;
    position: relative;
    vertical-align: top;
}

.resource-category::after {
    content: '';
    border: solid black;
    border-width: 0 1px 1px 0;
    display: inline-block;
    padding: 2px;
    position:absolute;
    top: 50%;
    transform: rotate(-45deg) translate(0,-50%);
    -webkit-transform: rotate(-45deg) translate(0,-50%);
    -moz-transform: rotate(-45deg) translate(0,-50%); 
    -ms-transform: rotate(-45deg) translate(0,-50%); 
    -o-transform: rotate(-45deg) translate(0,-50%);
    margin-left: 8px;
}

.chapter-resource-item {
    display: inline-block;
    width:calc(100% - 45px - 80px);
    width: -moz-calc(100% - 45px - 80px);
    width: -webkit-calc(100% - 45px - 80px);
    width: -o-calc(100% - 45px - 80px);
}

.chapter-resource-item li{
    line-height: 1;
    display: inline-block;
    margin-bottom: 10px;
}

.chapter-resource-item li a:hover{
    opacity: 0.8;
}

.chapter-resource-item li:nth-child(2n-1){
    width: 35%;
    margin-right: 3%;
}

.file_desc {
    font-size: 15px;
    padding: 0 0 0 40px;
    width: calc(100% - 40px);
}

.download-btn {
    margin-right: 10px;
    vertical-align: text-bottom;
}


/* Online Resource */
.online-resources .book-background{
    width:285px;
    left: 45px;
}

.online-resources-title{
    margin-top: 35px;
    font-weight: normal;
    font-size: 19px;
}

.teaching-demo{
    position: relative;
    padding:10px 0 115px 0;
}

.appendix {
    margin-top: 20px;
}

.appendix .category-title2{
    padding-left: 110px;
}

.appendix .book-background{
    width: 225px;
    left: 0;
}

.appendix .resource-category{
    width: 135px;
}

.appendix .chapter-resource-item{
    width: calc(100% - 45px - 135px);
    width: -moz-calc(100% - 45px - 135px);
    width: -webkit-calc(100% - 45px - 135px);
    width: -o-calc(100% - 45px - 135px);
}

.related-news{
    margin-top: 50px;
    position: relative;
    padding-bottom: 15px;
}

.related-news .book-background{
    width: 90%;
    left: 10%;
}



/*---------Chapter - change color ----------*/
/* Blue Style */
.blue-style a{
    color: #156DB2;
}

.blue-style a:hover{
    color: #1B3771;
}

/* Page content */
.course-overview .blue-style .book-desc{
    background-color: #ECF6FF;
}

.course-overview .blue-style .chapter-no{
    color: #156DB2;
}

.course-overview .blue-style .category-title2{
    color: #004692;
}

.blue-style .chapter-list li a:hover,
.blue-style .chapter-list li.active a{
    color: #1B3771 !important;
}

.blue-style .chapter-no{
    background-color: #ECF6FF;
}

.blue-style .book-title,
.blue-style .chapter-title,
.blue-style .category-title,
.blue-style .category-title2{
    color: #0563B8;
}

.blue-style .chapter-resource-row:nth-child(2n-1),
.blue-style .chapter-resource-row:nth-child(2n-1) a{
    color: #0E8BFF;
}

.blue-style .chapter-resource-row:nth-child(2n),
.blue-style .chapter-resource-row:nth-child(2n) a{
    color: #003D7F;
}

.blue-style .chapter-resource-row:nth-child(2n-1) .resource-category::after{
    border-color: #0E8BFF;
}

.blue-style .chapter-resource-row:nth-child(2n) .resource-category::after{
    border-color: #003D7F;
}

.blue-style .book-background{
    background-color: #ECF6FF;
}
/*---------------------------------------------*/

/* Yellow Style */
.yellow-style a{
    color: #DDA300;
}

.yellow-style a:hover{
    color: #D69E00;
}

/* Page content */
.course-overview .yellow-style .book-desc{
    background-color: #FBF6E7;
}

.course-overview .yellow-style .chapter-no{
    color: #DDA300;
}

.course-overview .yellow-style .category-title2{
    color: #DDA300;
}

.yellow-style .chapter-list li a:hover,
.yellow-style .chapter-list li.active a{
    color: #D69E00 !important;
}

.yellow-style .chapter-no{
    background-color: #FBF6E7;
}

.yellow-style .book-title,
.yellow-style .chapter-title,
.yellow-style .category-title,
.yellow-style .category-title2{
    color: #FFBC00;
}

.yellow-style .chapter-resource-row:nth-child(2n-1),
.yellow-style .chapter-resource-row:nth-child(2n-1) a{
    color: #FFDD00;
    color: #ecbd0e;
}

.yellow-style .chapter-resource-row:nth-child(2n),
.yellow-style .chapter-resource-row:nth-child(2n) a{
    color: #FF9900;
}

.yellow-style .chapter-resource-row:nth-child(2n-1) .resource-category::after{
    border-color: #FFDD00;
    border-color: #ecbd0e;
}

.yellow-style .chapter-resource-row:nth-child(2n) .resource-category::after{
    border-color: #FF9900;
}

.yellow-style .book-background{
    background-color: #FBF6E7;
}

/*---------------------------------------*/

/* Pink Style */
.pink-style a{
    color: #EA8D99;
}

.pink-style a:hover{
    color: #E38A96;
}

/* Page content */
.course-overview .pink-style .book-desc{
    background-color: #FBEDEF;
}

.course-overview .pink-style .chapter-no{
    color: #EA8D99;
}

.course-overview .pink-style .category-title2{
    color: #EA8D99;
}

.pink-style .chapter-list li a:hover,
.pink-style .chapter-list li.active a{
    color: #E38A96 !important;
}

.pink-style .chapter-no{
    background-color: #FBEDEF;
}

.pink-style .book-title,
.pink-style .chapter-title,
.pink-style .category-title,
.pink-style .category-title2{
    color: #FF9BA8;
}

.pink-style .chapter-resource-row:nth-child(2n-1),
.pink-style .chapter-resource-row:nth-child(2n-1) a{
    color: #FFAACC;
}

.pink-style .chapter-resource-row:nth-child(2n),
.pink-style .chapter-resource-row:nth-child(2n) a{
    color: #DC4DCC;
}

.pink-style .chapter-resource-row:nth-child(2n-1) .resource-category::after{
    border-color: #FFAACC;
}

.pink-style .chapter-resource-row:nth-child(2n) .resource-category::after{
    border-color: #DC4DCC;
}

.pink-style .book-background{
    background-color: #FBEDEF;
}

/*---------------------------------------*/

/* Purple Style */
.purple-style a{
    color: #9692E1;
}

.purple-style a:hover{
    color: #918FDB;
}

/* Page content */
.course-overview .purple-style .book-desc{
    background-color: #EDECFF;
}

.course-overview .purple-style .chapter-no{
    color: #9692E1;
}

.course-overview .purple-style .category-title2{
    color: #9692E1;
}

.purple-style .chapter-list li a:hover,
.purple-style .chapter-list li.active a{
    color: #918FDB !important;
}

.purple-style .chapter-no{
    background-color: #EDECFF;
}

.purple-style .book-title,
.purple-style .chapter-title,
.purple-style .category-title,
.purple-style .category-title2{
    color: #a9a6ff;
}

.purple-style .chapter-resource-row:nth-child(2n-1),
.purple-style .chapter-resource-row:nth-child(2n-1) a{
    color: #A97AFF;
}

.purple-style .chapter-resource-row:nth-child(2n),
.purple-style .chapter-resource-row:nth-child(2n) a{
    color: #753EFF;
}

.purple-style .chapter-resource-row:nth-child(2n-1) .resource-category::after{
    border-color: #A97AFF;
}

.purple-style .chapter-resource-row:nth-child(2n) .resource-category::after{
    border-color: #753EFF;
}

.purple-style .book-background{
    background-color: #EDECFF;
}

/*---------------------------------------*/

/* Light yellow  Style */
.light-yellow-style a{
    color: #334432;
}

.light-yellow-style a:hover{
    color: #334432;
}

/* Page content */
.course-overview .light-yellow-style .book-desc{
    background-color: #EEFFE7;
}

.course-overview .light-yellow-style .chapter-no{
    color: #334432;
}

.course-overview .light-yellow-style .category-title2{
    color: #334432;
}

.light-yellow-style .chapter-list li a:hover,
.light-yellow-style .chapter-list li.active a{
    color: #6A846A !important;
}

.light-yellow-style .chapter-no{
    background-color: #EEFFE7;
}

.light-yellow-style .book-title,
.light-yellow-style .chapter-title,
.light-yellow-style .category-title,
.light-yellow-style .category-title2{
    color: #EEFFE7;
}

.light-yellow-style .chapter-resource-row:nth-child(2n-1),
.light-yellow-style .chapter-resource-row:nth-child(2n-1) a{
    color: #6A846A;
}

.light-yellow-style .chapter-resource-row:nth-child(2n),
.light-yellow-style .chapter-resource-row:nth-child(2n) a{
    color: #334432;
}

.light-yellow-style .chapter-resource-row:nth-child(2n-1) .resource-category::after{
    border-color: #6A846A;
}

.light-yellow-style .chapter-resource-row:nth-child(2n) .resource-category::after{
    border-color: #334432;
}

.light-yellow-style .book-background{
    background-color: #EEFFE7;
}


/*---------------------------------------*/

/* Green  Style */
.green-style a{
    color: #334432;
}

.green-style a:hover{
    color: #334432;
}

/* Page content */
.course-overview .green-style .book-desc{
    background-color: #EEFFE7;
}

.course-overview .green-style .chapter-no{
    color: #334432;
}

.course-overview .green-style .category-title2{
    color: #334432;
}

.green-style .chapter-list li a:hover,
.green-style .chapter-list li.active a{
    color: #6A846A !important;
}

.green-style .chapter-no{
    background-color: #EEFFE7;
}

.green-style .book-title,
.green-style .chapter-title,
.green-style .category-title,
.green-style .category-title2{
    color: #426b2f;
}

.green-style .chapter-resource-row:nth-child(2n-1),
.green-style .chapter-resource-row:nth-child(2n-1) a{
    color: #6A846A;
}

.green-style .chapter-resource-row:nth-child(2n),
.green-style .chapter-resource-row:nth-child(2n) a{
    color: #334432;
}

.green-style .chapter-resource-row:nth-child(2n-1) .resource-category::after{
    border-color: #6A846A;
}

.green-style .chapter-resource-row:nth-child(2n) .resource-category::after{
    border-color: #334432;
}

.green-style .book-background{
    background-color: #EEFFE7;
}


/*---------- Page Content ----------*/
.page-content .rich-txt{
    background: url(../images/page-content-bg.png) left top no-repeat;
    background-size: 100%;
    padding: 50px 50px 0 10%;
}

/*--------- User Profile ------------*/
#form_userProfile {
    text-align: center;
    width: 40%;
    margin: 0 auto;
}

#form_userProfile input[type="text"],
#form_userProfile input[type="password"]{
    width: 100%;
    height: 50px;
    border: 1px solid #E8E9EA;
    text-indent: 10px;
    font-size: 16px;
    border-radius:5px;
}

.error_msg{
    color:red;
}

/* Footer */
.footer{
    width: 100%;
    padding: 15px 0;
    border-top: 2px solid #FCFCFC;
    /* position: absolute;
    left: 0;
    bottom: 0; */
}

.footer-logo {
    display: inline-block;
    width: 25%;
    vertical-align: middle;
}

.footer-logo img:first-child {
    margin-right: 30px;
}

.footer-menu.menu {
    display: inline-block;
    width: 75%;
    font-size: 16px;
    font-weight: 300;
    text-align: right;
    vertical-align: middle;
}

.footer-menu.menu > li:hover > a{
    opacity: 0.8;
}

.footer-menu.menu > li:not(:last-child)::after{
    border-right: 1px solid #656466;
}

/* Popup Box */
#popupBox .close-btn{
    top: 10px;
    right: 10px;
}

#userLogin_container, #resetPw_container, #errorMsg_container{
    display: none;
    padding: 25px;
}

.form-row-container{
    margin-bottom:10px;
}

#form_userLogin input[type="text"],
#form_userLogin input[type="password"],
#form_resetPw input[type="text"]{
	width:100%;
	height: 50px;
	border: 1px solid #E8E9EA;
	text-indent: 10px;
    border-radius:5px;
}

.btn_confirm{
    border:1px solid #E5E5E5;
    border-radius:5px;
    font-size:20px;
    background:#FFF;
    padding: 5px 20px;
    box-shadow: 0 0 8px 1px #e0e0e0;
    cursor:pointer;
    font-weight: 300;
}

#errorMsg{
    position: absolute;
    top:50%;
    left:50%;
    -webkit-transform: translate(-50%,-50%);
    -moz-transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    -o-transform: translate(-50%,-50%);
    transform: translate(-50%,-50%);
    width:100%;
}

/* 1350px
- header menu - spacing 
- course-structure item 
- course overview - chapter list 
- footer
*/

.resources_video {
    top: 50%;
    left: 50%;
    z-index: 1045;
    position: fixed;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    visibility: hidden;
    width: 80%;
    /* height: 80%; */
}

.resources_video img {
    width: 70px;
}

.resources_video .resources_header {
    background-color: #FFF;
}

#video_content {
    /* height: calc(100% - 50px); */
}

.resources_video video {
    width: 100%;
    /* max-height: 100%; */
    background-color: #000000;
}

#resources_video_overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1042;
    overflow: hidden;
    position: fixed;
    background: #0b0b0b;
    opacity: 0;
    visibility: hidden;
}

.resources_video.active {
    opacity: 1;
    visibility: visible;
}

#resources_video_overlay.active {
    opacity: 0.8;
    visibility: visible;
}

.close{
    width: 28px;
    height: 28px;
    position: absolute;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    top:10px;
    right:10px;
}

.close span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #D1D3D4;
    border-radius: 15px;
    left: 0;
}

.close span:nth-child(1) {
    top: 15px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}

.close span:nth-child(2) {
    top: 15px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

@media only screen and (max-width: 1350px) {
    /* header */
    .menu > li{
        padding: 0 15px 10px 15px;
    }

    .course-structure{
        text-align: center;
    }

    .course-structure-item {
        width: 25%;
        margin: 0 4% 50px 4%;
    }

    /* Content */
    /*--------- Course Overview --------*/
    .course-overview .book-intro{
        width: 65%;
    }
    .course-overview .color-style:nth-child(2n - 1) .book-intro{
        margin-left: 4%;
    }

    .course-overview .color-style:nth-child(2n) .book-intro{
        margin-right: 4%;
    }

    .course-overview .book-intro-img{
        width: 300px;
    }

    .course-overview .book-desc{
        padding: 3%;
        width: calc(100% - 300px - 6%);
        width: -moz-calc(100% - 300px - 6%);
        width: -webkit-calc(100% - 300px - 6%);
        width: -o-calc(100% - 300px - 6%);
    }

    /*--------- Book detail ------------*/
    .chapter-detail-container .chapter-resource-item li{
        display: block;
        width: 100% !important;
        margin-right: 0;
    }

    .appendix .chapter-resource-item li:nth-child(2n-1) {
        width: 40%;
    }


    /* footer */
    .footer-logo{
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    .footer-menu.menu{
        display: block;
        width: 100%;
        text-align: center;
    }
}




/* 1023px - some change to mobile ver.
- common styles -> two col
- header
- index - course structure -> change to two col
- course-overview -> course-introduction
                  -> course structure -> chapter list & desc -> display: block(Not Mobile layout)
                  -> other-courseInfo
- book detail
- footer
*/
@media only screen and (max-width: 1023px) {
    .common2{
        padding-left: 0;
    }

    .book-title{
        padding: 25px 0 45px 20px;
    }

    .two-col-container .two-col{
        display: block;
        width: 100% !important;
        margin: 0 !important;
    }
    
    /* header */
    .hamburger-btn{
        display: block;
    }

    .header-logo{
        position: relative;
        display: block;
        width: 100%;
    }

    .header-menu{
        position: fixed;
        top: 0;
        right: -1000px;
        width: 80%;
        height: 100%;
        padding: 20px 4% 0 4%;
        z-index: 999;
        text-align: left;
        background-color: #FFF;
        max-height: 100vh;
        overflow-y: auto;
    }

    .header-menu.slide{
        right: 0;
    }

    .header-menu .close-btn{
        display: block;
    }

    .header-menu-top .login-status{
        margin-right: 0;
        margin-bottom: 5px;
    }

    .header-menu-top .login-status:nth-child(2)::before{
        content: '';
        display: inline-block;
        width: 1px;
        height: 13px;
        border-right: 1px solid #C1C4C3;
        margin: 4px 15px 0 15px;
    }

    .search-form{
        display: block;
        width: 65%;
    }

    .search-form .input-style {
        width: 100%;
        height: 33px;
        border: 1px solid #7A7A7A;
    }

    .search-form .button-style{
        color: #999999;
    }

    .header-menu .menu,
    .header-menu .footer-menu.menu{
        margin: 30px 0 50px 0;
    }

    .header-menu .menu > li,
    .header-menu .footer-menu.menu{
        display:block;
        padding: 0 0 20px 0;
    }

    .header-menu .menu > li:hover > .menu-title{
        border-bottom: none;
    }
    
    .header-menu .menu > li.active > .menu-title{
        border-bottom: 2px solid #403F41;
    }

    .header-menu .menu > li:not(:last-child)::after{
        display: none;
    } 

    .header-menu .sub-menu{
        position: relative;
        top: 10px;
        left: 10px;
        background: none;
        padding: 0;
    }

    .header-menu .footer-menu.menu{
        text-align: left;
        margin: 30px 0 50px 0;
    }

    .header-menu .footer-menu.menu::before {
        content: '';
        display: block;
        position: relative;
        width: 88vw;
        border-top: 1px solid #DCDDDD;
        top: -30px;
        left: -4%;
    }

    .header-menu .footer-menu.menu > li.active > a {
        border-bottom: 2px solid #403F41;
        padding-bottom: 3px;
    }

    /* Content */
    /*------------ index - course structure -------------*/
    .course-structure-item {
        width: 41%;
        margin: 0 4% 50px 4%;
    }

    .course-overview .chapter-list li:first-child .chapter-no,
    .course-overview .chapter-list li:first-child .chapter-name{
        padding-top: 15px;
    }

    .course-overview .chapter-list li:last-child .chapter-no,
    .course-overview .chapter-list li:last-child .chapter-name{
        padding-bottom: 15px;
    }

    /*---------- course-overview ------------*/
    .course-introduction{
        background: url(../images/backgound1-mobile.png) left top no-repeat;
        padding-bottom: 30px;
        background-size: cover;
    }

    .course-introduction-item{
        display: block;
        width: 80%;
        margin-bottom: 50px;
    }

    .color-style{
        display: flex;
        flex-direction: column;
    }

    .course-overview .chapter-list-container{
        width: 400px;
        order: 2;
        margin: 40px auto 0 auto;
    }

    .course-overview .book-intro{
        display: block;
        width: 100%;
        margin: 0 !important;
        order: 1;
        height: 100%;
    }

    .course-overview .book-desc{
        width: 64%;
    }

    .course-overview .book-intro-img{
        width: 28%;
    }

    .other-courseInfo {
        margin-bottom: 150px;
    }

    .other-courseInfo > .book-background {
        height: 270px;
        width: 300px !important;
        bottom: -120px;
    }

    /*---------- Book detail -------------*/
    .book-detail{
        padding: 135px 0 130px 0;
    }

    .book-detail .book-intro{
        padding-right: 0;
    }
    
    .book-detail .book-title .book-background{
        left: 100px;
        width: 70%;
    }

    .book-detail .book-intro-img {
        position: absolute;
        width: 300px;
        top: -65px;
    }

    .book-detail .book-desc{
        max-width: unset;
        margin-top: 10%;
    }

    .book-detail .book-total-resource{
        max-width: unset;
    }

    .book-detail .chapter-list-container{
        display: block;
        margin-right: 0;
    }

    .chapter-detail-container{
        display: block;
        width: 100%;
    }

    .chapter-resource-item li{
        display: block;
        width: 100% !important;
        margin-right: 0;
    }

    .teaching-demo .book-background{
        left: 20%;
        width: 80%;
    }

    .appendix .book-background {
        width: 160px !important;
    }

    /*---------- User profile -------------*/
    #form_userProfile{
        width: 60%;
    }

    /* footer */
    #champ-logo{
        display:none;
    }

    .footer .footer-menu.menu > li:not(:last-child){
        display: none;
    }

}


/* 768px - Fine tuning & change all to mobile ver.
- title
- index - course-structure item -> change to 1 col
- course Overview -> course-structure -> change to mobile ver.
- book detail -> book image
              -> book background
*/
@media only screen and (max-width: 768px) {
    /* Common Styles */
    .desktop{
        display: none;
    }

    .mobile{
        display: block;
    }

    .title{
        text-align: left;
    }

    .title-text {
        display: block;
        margin-left: 15%;
        padding: 25px 0px;
        background: linear-gradient(to right, #FFF 0%, #FFF 13%, #EEFFE7 13%, #EEFFE7 100%);  
    }

    #popupBox{
        width:90%;
    }

    /*------------ index - course overview -------------*/
    .course-structure-item{
        width: 92%;
        margin: 0 4% 50px 4%;
    }
    
    .course-structure-info img{
        width: 100%;
    }

    .course-structure-name{
        padding: 8% 0 28% 0;
    }

    .course-structure-info{
        max-width: unset;
        width: 60%;
        margin: -20% auto 0 auto;
    }

    /*------------- Course Overview -----------*/
    .course-overview .chapter-list-container{
        margin: 0 0 0 -20px;
    }

    .course-overview .book-intro{
        position: relative;
        padding-top: 28%;
    }

    .course-overview .book-desc{
        width: 94%;
    }

    .course-overview .book-intro-img{
        position: absolute;
        right: 0;
        top: 0;
    }

    .other-courseInfo .category-title .book-background{
        width: 80% !important; 
    }

    /*----------- Book Detail ------------*/
    .book-background{
        width: 100% !important;
    }

    .book-detail .book-intro-img {
        position: relative;
        width: 100%;
        top: 0;
        text-align: center;
        margin-top: 20px;
    }

    .appendix .chapter-resource{
        padding-bottom: 0;
    }

    /*--------- User Profile -------------*/
    #form_userProfile {
        width: 70%;
        margin: 0 auto;
    }
}


/* 480 - Fine tuning for mobile
- banner -> zoom banner
- Course Overview -> chapter list
- Book detail -> chapter-list-container
              -> chapter-resource-item -> category & resource -> display: block

*/
@media only screen and (max-width: 480px) {

    .banner{
        width: 180%;
        max-width: unset;
    }

    .index-banner-container .banner{
        width: 150%;
    }

    /*--------- Course Overview -------------*/
    .course-overview .chapter-list-container{
        width: 100%;
    }

    /*--------- Book detail -----------*/
    .book-detail {
        padding: 50px 0 130px 0;
    }

    .book-detail .chapter-list-container{
        width: 100%;
    }

    .book-detail .chapter-no{
        flex-basis: 20%;
    }

    .book-detail .chapter-name{
        flex-basis: 70%;
    }

    .resource-category{
        display: block;
        width: 100%;
        margin-right: 0;
        text-align: left;
    }

    .chapter-resource-item,
    .appendix .chapter-resource-item{
        display: block;
        width: 100%;
    }

    .appendix .category-title2{
        padding: 0;
    }

    .appendix .book-background{
        display: none;
    }


}