/* -------------------------------- 

Primary style

-------------------------------- */
html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html, body {
  /* you need to set this to assign to the main element a min height of 100% */
  height: 100%;
}

body {
  font-size: 100%;
  font-family: "Titillium Web", sans-serif;
  color: #96A58C;
  background-color: #f5f4e9;
}


/* -------------------------------- 

Modules - reusable parts of our design

-------------------------------- */
.cd-img-replace {
  /* replace text with a background-image */
  display: inline-block;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

.overflow-hidden {
  overflow: hidden;
}

/* -------------------------------- 
Main components 
-------------------------------- */
.cd-main-content {
  /* set a min-height and a z-index to be sure that the main element completely covers the lateral menu */
  min-height: 100%;
  position: relative;
  background-color: #f5f4e9;
  z-index: 2;
  padding-top: 50px;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  transition-duration: 0.4s;
}
.cd-main-content.lateral-menu-is-open {
  /* translate to show the lateral menu - all content needs to be put in the .cd-main-content to translate*/
  -webkit-transform: translateX(-260px);
  -moz-transform: translateX(-260px);
  -ms-transform: translateX(-260px);
  -o-transform: translateX(-260px);
  transform: translateX(-260px);
}
@media only screen and (min-width: 768px) {
  .cd-main-content {
    padding-top: 70px;
  }
}

header {
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 100%;
  background: #96A58C;
  z-index: 3;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.4s;
  -moz-transition-duration: 0.4s;
  transition-duration: 0.4s;
}
header.lateral-menu-is-open {
  /* translate to show the lateral menu */
  -webkit-transform: translateX(-260px);
  -moz-transform: translateX(-260px);
  -ms-transform: translateX(-260px);
  -o-transform: translateX(-260px);
  transform: translateX(-260px);
}
header.is-fixed {
  position: fixed;
}
@media only screen and (min-width: 768px) {
  header {
    height: 70px;
  }
}

#cd-logo {
  display: block;
  float: left;
  margin: 1px 0 0 20px;
}
#cd-logo img {
  display: block;
}
@media only screen and (min-width: 768px) {
  #cd-logo {
    margin: 12px 0 0 30px;
  }
}

#cd-top-nav {
  position: absolute;
  top: 0;
  right: 120px;
  height: 100%;
  display: none;
  color: #FFF;
}
#cd-top-nav ul {
  height: 100%;
  padding-top: 18px;
}
#cd-top-nav li {
  display: inline-block;
  margin-right: 1em;
}
#cd-top-nav a {
  display: inline-block;
  padding: .5em;
  color: #FF0;
  text-transform: uppercase;
  font-weight: 600;
}
#cd-top-nav a.current {
  background-color: #242e30;
}
.no-touch #cd-top-nav a:hover {
  color: rgba(255, 255, 255, 0.7);
}
@media only screen and (min-width: 768px) {
  #cd-top-nav {
    display: block;
  }
}

#cd-menu-trigger {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background-color: #738269;
}
#cd-menu-trigger .cd-menu-text {
  height: 100%;
  text-transform: uppercase;
  color: #FFF;
  font-weight: 600;
  display: none;
}
#cd-menu-trigger .cd-menu-icon {
  /* this span is the central line in the menu menu */
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  width: 18px;
  height: 2px;
  background-color: #FFF;
  /* these are the upper and lower lines in the menu menu */
}
#cd-menu-trigger .cd-menu-icon::before, #cd-menu-trigger .cd-menu-icon:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: inherit;
  left: 0;
}
#cd-menu-trigger .cd-menu-icon::before {
  bottom: 5px;
}
#cd-menu-trigger .cd-menu-icon::after {
  top: 5px;
}
#cd-menu-trigger.is-clicked .cd-menu-icon {
  background-color: rgba(255, 255, 255, 0);
}
#cd-menu-trigger.is-clicked .cd-menu-icon::before, #cd-menu-trigger.is-clicked .cd-menu-icon::after {
  background-color: white;
}
#cd-menu-trigger.is-clicked .cd-menu-icon::before {
  bottom: 0;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
#cd-menu-trigger.is-clicked .cd-menu-icon::after {
  top: 0;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
@media only screen and (min-width: 768px) {
  #cd-menu-trigger {
    width: 110px;
    padding-left: 1.25em;
  }
  #cd-menu-trigger .cd-menu-text {
    display: inline-block;
    line-height: 70px;
  }
  #cd-menu-trigger .cd-menu-icon {
    left: auto;
    right: 1.25em;
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    -o-transform: translateX(0);
    transform: translateX(0);
  }
}

#cd-lateral-nav {
  position: fixed;
  height: 100%;
  right: 0;
  top: 0;
  visibility: hidden;
  /* the secondary navigation is covered by the main element */
  z-index: 1;
  width: 260px;
  background-color: #242e30;
  overflow-y: auto;
  /* Force Hardware Acceleration in WebKit */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-transition: -webkit-transform .4s 0s, visibility 0s .4s;
  -moz-transition: -moz-transform .4s 0s, visibility 0s .4s;
  transition: transform .4s 0s, visibility 0s .4s;
  /* this creates the subtle slide in animation of the navigation */
  -webkit-transform: translateX(80px);
  -moz-transform: translateX(80px);
  -ms-transform: translateX(80px);
  -o-transform: translateX(80px);
  transform: translateX(80px);
}
#cd-lateral-nav .cd-navigation {
  margin: 10px 0 16px;
}
#cd-lateral-nav .sub-menu {
  padding: 0 10px 20px 15px;
  display: none;
}
#cd-lateral-nav a {
  display: block;
  line-height: 2em;
  padding: 0 16px 0 32px;
  color: #aab5b7;
}
#cd-lateral-nav a.current {
  background-color: #3a4a4d;
  color: #FFF;
}
.no-touch #cd-lateral-nav a:hover {
  color: #FFF;
}
@media only screen and (min-width: 768px) {
  #cd-lateral-nav .cd-navigation {
    margin: 30px 0;
  }
}
#cd-lateral-nav.lateral-menu-is-open {
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
  visibility: visible;
  -webkit-transition: -webkit-transform .4s 0s, visibility 0s 0s;
  -moz-transition: -moz-transform .4s 0s, visibility 0s 0s;
  transition: transform .4s 0s, visibility 0s 0s;
  /* smooth the scrolling on touch devices - webkit browsers */
  -webkit-overflow-scrolling: touch;
}

/* style menu items which have a submenu  */
#cd-lateral-nav .item-has-children > a {
  position: relative;
  text-transform: uppercase;
  font-weight: 600;
  color:#FFFF00;
  font-size:16px;
  /* this is the right arrow to show that the item has a submenu  */
}
#cd-lateral-nav .item-has-children > a::after {
  content: '';
  display: block;
  height: 11px;
  width: 8px;
  position: absolute;
  top: 50%;
  bottom: auto;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 1em;
  background: url("../images/arrow.png") no-repeat center center;
  background-size: 8px 11px;
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.2s;
  -moz-transition-duration: 0.2s;
  transition-duration: 0.2s;
}
#cd-lateral-nav .item-has-children > a.submenu-open::after {
  -webkit-transform: translateY(-50%) rotate(90deg);
  -moz-transform: translateY(-50%) rotate(90deg);
  -ms-transform: translateY(-50%) rotate(90deg);
  -o-transform: translateY(-50%) rotate(90deg);
  transform: translateY(-50%) rotate(90deg);
}

/* Global CSS */

/* 影片教學列表 - 仿 Youtube 排版 */
.MovieTitle {
	font-size:10pt;
	font-weight: bold;
	line-height:150%;
	height:55px;
	padding:5px 0px 5px 0px;
}

.MovieTitle a {color:#297ACA; text-decoration: none;}
.MovieTitle a:hover {color:#297ACA; text-decoration: underline ;}

.MovieInfo {
	font-size:9pt;
	line-height:120%;
}

.MovieClass {color:#0035E2; font-size:10pt;}
.MovieLevel {color:#BF0003; font-size:10pt;}
.MovieRM {color:#666; font-size:9pt;}

.MovieList{
	width:100%;
	padding:5px 0px;
}

.ListTitle{
	padding:4px 10px 3px 22px;
	background-image:url(../images/Movie.png);
	background-repeat:no-repeat;
	background-position:left;

	font-weight: bold;
	font-size:14pt;
	border-bottom: 1px #999 solid;

}

.MovieContent{
	background-color:#FCFAF2; 
	background-image:url(../images/texture.png);
	border:1px solid #cbcbcb;
	padding:8px;
	margin:3px;
}

/*
.InTop{
	border:1px solid #545454;
	
}

.ShowNews{
	background-color:#F7FFE7; 
	background-image:url(../images/texture.png);
}
*/
.FocusHeader {
	padding:5px 0px;
	font-size:16pt;
	color:#500A59;
	font-family: Verdana, "微軟正黑體", "新細明體";
}

.FocusText {
	background-color:#FEDFE1; 
	background-image:url(../images/texture.png);
	//padding:6px 10px;
	width:100%;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.FocusTextB {
	background-color:#DAC9A6; 
	background-image:url(../images/texture.png);
	//padding:6px 10px;
	width:100%;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.FocusTextC {
	background-color:#FFF; 
	background-image:url(../images/texture.png);
	//padding:6px 10px;
	width:100%;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	line-height:150%;
}

.FocusTextD {
	background-color:#FFE; 
	background-image:url(../images/texture.png);
	//padding:6px 10px;
	width:100%;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	line-height:150%;
}

.FocusText_Basic {
	background-color:#EFF4FF; 
	background-image:url(../images/texture.png);
	padding:6px 10px;
	width:98%;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

.FocusText_Pro {
	background-color:#FFFBF3; 
	background-image:url(../images/texture.png);
	padding:6px 10px;
	width:98%;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}


	/* Youtube iframe CSS 自動調整大小 */
	.video-container {
	    position: relative;
	    padding-bottom: 56.25%;
	    padding-top: 30px; height: 0; overflow: hidden;
	}
	.video-container iframe,
	.video-container object,
	.video-container embed {
	  position: absolute;
	  top: 0;
	  left: 0;
	  width: 100%;
	  height: 100%;
	}
	
	/* YoutubeLink */
	.YoutubeLink {
		padding:5px 0px 5px 0px; 
		width:100%; 
		background-color:#DADADA;
	}
	
	.YoutubeLink a{color:#2C4EC7;text-decoration:none;}	
	.YoutubeLink a:hover{color:#C72C81;text-decoration:none;}
	
	
	
	/* 編輯內容區塊 */
table.EditArea {
	padding:5px;
	width:100%;
	border-collapse: collapse;
	border: 1px solid #666666;
}

table.EditArea td {
	padding:3px;
	border: 1px solid #666666;
}

table.EditArea td td{
	border: 0px;
}

table.EditArea .EditArea_Header {
	height:25px;
	text-align:right;
	background-color:#3B3B3B;
	color:#F1FFA2;
	white-space:inherit;
}

table.EditArea .EditArea_Title {
	height:25px;
	width:170px;
	text-align:right;
	background-color:#333333;
	color:#FFFFFF;
	white-space:inherit;
}

table.EditArea .EditArea_TitleB {
	height:25px;
	width:170px;
	text-align:right;
	background-color:#0A3165;
	color:#FFFFFF;
	white-space:inherit;
}

table.EditArea .EditArea_Contact {
	text-align:Left;
	background-color:#F7F6F3;
	color:#000000;
	white-space:inherit;
}

@media only screen and (max-width :480px){
	table.EditArea .EditArea_Title {
		height:25px;
		width:80px;
		text-align:right;
		background-color:#333333;
		color:#FFFFFF;
		white-space:inherit;
	}

	table.EditArea .EditArea_TitleB {
		height:25px;
		width:80px;
		text-align:right;
		background-color:#0A3165;
		color:#FFFFFF;
		white-space:inherit;
	}
}


/* Movie_Forum CSS */
.Forum div{
	font-size:12pt;
	padding:3px 3px 3px 3px;
	margin:2px 0px 2px 0px;
	background-color:#FEFFF7;
	line-height:150%;
}

.Forum div img{
	padding:3px 0px 0px 5px;
}

.ForumRe {
	padding:5px 8px 5px 8px;
	border:#333 1px dashed; 
	background-color:#FEFFF7;
	text-align:center;
	/*
    position:fixed;bottom:0px;width:100%;
    */
}


/* WordRM_Title */

.WordRM_Title {color:#19377D;font-weight:bold;font-size:14pt;}

.WordRM_Content {}

/* Quizzes CSS */
.Quizzes_Title {
	padding:5px 0px;
}

.Quizzes_Main {
	padding:5px 0px;
}

a.AdminLogin {
	color:#000; 
	text-decoration:none;
}

a:hover.AdminLogin {
	color:#000; 
	text-decoration:none;
}