
html {
	font-size:12pt;
}

body{
	cursor:default;
	font-size:1.1em;
	margin: 0;
	background:#152130;
	color:#C4CCCB;
	line-height:180%;
}

/* links */
a {
    text-decoration: none;
    color: #fff782;
    word-wrap:break-word;
}
a:hover,
a:focus {
    text-decoration: underline;
}

/***********************
	  LAYOUT
************************/
#LayOut {
	width:100%;
	overflow-x:hidden;
	margin:0.5em auto;
	max-width:85em;
	border-radius:0.2em;
}

/* header */
#header {
	position:relative;
	margin:1em 0;
}

#header .hlight {
	position:relative;
	width:100%;
	background-color: #0086B3;
	border-radius:3px;
}

#header #logo  h1{
	font: bold 1.6em Georgia, Times, serif;
	line-height:150%;
	padding: 0;
	margin: 0;
	margin-top:0.5em;
	color: #e4eceb;
	vertical-align: top;
        display:initial;
	text-shadow: 1px 1px 0 #152130;
	filter: Shadow(Color=#152130, Direction=135, Strength=5);
	font-family:"Helvetica Neue", Helvetica, Arial, sans-serif, 微軟正黑體, 新細明體;
}
#header #logo h1 a {
	color:#e4eceb;
	text-decoration:none;
}

#header #myad {
	position:relative;
	right:0;
	display:inline-block;
	min-width:640px;
	margin:1em auto;
	border:1px solid red;
}
#header #logo  {
	min-height:75px;
	background-size: cover;
	background-repeat:no-repeat;
	background-position:50%;
	-moz-background-size: cover;  /* Firefox 3.6 */
	background-position: center;  /* Internet Explorer 7/8 */
}
#header #logo .logo {
	position:relative;
	width:160px;
	height:120px;
	margin-top:-35px;
	float: left;
}
#mylogo {
	border-radius:5px;
	border:1px solid #AAA;
	-moz-box-shadow:2px 2px 2px rgba(20%,20%,40%,0.6),4px 4px 6px rgba(20%,20%,40%,0.4),6px 6px 12px rgba(20%,20%,40%,0.4);
	-webkit-box-shadow:2px 2px 2px rgba(20%,20%,40%,0.6),4px 4px 6px rgba(20%,20%,40%,0.4),6px 6px 12px rgba(20%,20%,40%,0.4);
	box-shadow:2px 2px 2px rgba(20%,20%,40%,0.6),4px 4px 6px rgba(20%,20%,40%,0.4),6px 6px 12px rgba(20%,20%,40%,0.4);
}
#slogan {
	max-width:55%;
	font: normal 1em 'Trebuchet MS', Tahoma, sans-serif;
	letter-spacing: 0px;
	color: #e4eceb;
	margin:2px;
	margin-left: 158px;
	padding: 2px 8px 0;
	text-shadow: 1px 1px 0 #152130;
	filter: Shadow(Color=#152130, Direction=135, Strength=5);
	text-align:left;
}
.webname {
	display:inline-block;
	*display:inline;
	vertical-align:top;
}

.nav {
	margin-bottom:8px;
}
.nav ul{
	float:right;
	font: bold 1em Georgia, "Times New Roman", Times, serif;
	list-style: none;
	margin: 4px 8px 0 0;
	padding: 0;		
	text-transform: uppercase;		
}
.nav ul li {
	display: inline;
}
.nav ul li a {
	padding: 0px 8px 2px;	
	color: #E4ECEB; 
	text-decoration: none;
}
.nav ul li a:hover {
	color: #FFF;
}
.nav ul li a.actived  {	
	color:#FFF;
	font-size:110%;
	font-weight:bold;
}

.prompt {
	border-color:#555;
	border-style:solid;
	border-width:1px 0;
	padding:8px;
	letter-spacing:2px;
	margin-bottom:1em;
	margin-right:1em;
	font-weight:bold;
	font-size:1em;
	text-shadow: 1px 1px 0 #152130;
	filter: Shadow(Color=#152130, Direction=135, Strength=5);
}

/* footer */
#footer {
	clear: both;
	padding: 15px;
	font-family: normal 0.9em 'Trebuchet MS', Tahoma, sans-serif;
	color: #E4ECEB;
	background: #122d64;
	border-radius:3px;
	margin-top:1em;
	text-align:center;
}
#footer a.gear {
	margin-right:2em;
	float:right;
}

.block {
	border-radius:0.2em;	
}
.content {
	margin:0 1em 1em 0;
	min-height:24em;
}
#layout {
    position: relative;
    left: 0;
    padding-right: 0;
}
.active#layout {
    position: relative;
    left: -16em;
}
.menu-link {
    position: absolute;
    display: block;
    top: -5.5em;
    right: 0;
    background: #000;
    background: rgba(0,0,0,0.8);
    font-size: 0.6em;
    z-index: 10;
    padding: 1em;
	border-radius:50%;
}
.bar1, .bar2, .bar3 {
	background-color:#FFF;
	width:2em;
	height:0.3em;
	margin: 0.2em 0;
	transition: 0.4s;
}

.active .bar1 {
	-webkit-transform: rotate(-45deg) translate(-0.5em, 0em) ;
	transform: rotate(-45deg) translate(-0.5em, 0em) ;
}
.active .bar2 {
	opacity: 0;
}
.active .bar3 {
	-webkit-transform: rotate(45deg) translate(-0.6em, -0.2em) ;
	 transform: rotate(45deg) translate(-0.6em, -0.2em) ;
} 
#layout.active #sidebar {
//	right: 16em;
	width: 16em;
//	border : 2px solid #666;
//	border-right:0;
//	background:#152130;
}
#layout.active .menu-link {
	right:-27em;
}
#sidebar {
	margin-bottom:1em;
	position: absolute;
    	width: 16em;
	right: -16em;
	top:0;
//	margin-right:-16em;
}
.sidebar .menu-block {
	padding:0.5em;
	margin-bottom:1em;
}
.sidebar ul{
	font-family: normal 1em Georgia, "Times New Roman", Times, serif;
	list-style: none;
	margin: 8px;
	padding: 0;
}
.sidebar ul li.title {
	text-align:center;
	font-size:1.1em;
	font-weight:bold;
	margin-bottom:0.5em;
	padding-bottom:0.5em;
	border-bottom:1px solid silver;
}
.sidebar ul li {
	list-style:none;
	line-height:180%;
    	width: 13em;
   	white-space: nowrap;
    	overflow: hidden;
    	text-overflow: ellipsis;
}

.bg-color-def {
	background:#263140;
	border-radius:3px;
}



/* alignment classes */
.float-left  { float: left; }
.float-right { float: right; }
.align-left  {	text-align: left; }
.align-right {	text-align: right; }
.align-center {	text-align: center; }

/* additional classes */
.clear { clear: both; }

.bg-fit-width {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; 
}

.imgVHscale {
	width:100%;
	height:100%;
	vertical-align:top;
	text-align:center;
}
.imgVHscale img {
  display: inline-block;
  width: auto; height: auto;
  max-width: 100%; max-height: 100%;
  vertical-align: middle;
}
.imgVHscale.border {
	border:1px solid gray;
	border-radius:8px;
}
.imgVHscale.headimg,.imgVHscale.topimg {
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}
.imgVHscale.headimg:after {
  display: inline-block;
  height: 100%; width: 0;
  vertical-align: middle;
  content: "";
}
.imgVHscale.topimg:after {
  display: inline-block;
  height: 100%; width: 0;
  vertical-align: top;
  content: "";
}

.node {
	padding:1em 1em 2em 1em;
	border-bottom:1px dotted #666;
	font-size:1.1em;
	line-height:200%;	
	letter-spacing: 1px;
}

.node .title {
	font-size:1.3em;
}

.node .about {
	font-size:0.9em;
	color:#646C6B;
	margin : 0.5em 0 1em 1em;
}
.node .about .tag {
	color:#eec887;
	margin-right:1em;
}
.node .about .tag.actived {
	color:#CCC;
	font-size:110%;
	font-weight:bold;
}

.booklink {
	margin-right:1em;
	text-align:center;
	line-height:2.5em;
}
.booklink .bprev {
	margin-left:1em;
	float:left;
}
.booklink .bnext {
	margin-right:1em;
	float:right;
}
.booklink img {
	height: 24px;
	width: auto;
	margin:0 0.5em;
	vertical-align:text-bottom;
}

#pgsel .pure-button.pure-button-active{
	color:#EEE;
	font-weight:bold;
	border:1px solid gray;
}
#pgsel .pure-button.total{
	color:#999;
	font-weight:bold;
}
#pgsel .pure-button{
	padding:0.2em;
	height:2em;
	line-height:2em;
	background:none;
	color:#eec887;
	font-siZe:1.2em;
}
#pgsel .expadding {
	padding-left: 0.8em;
	padding-right: 0.8em;
}
#pgsel .nohand {
	cursor:default;
}
#pgsel li img {
	margin:0;
	vertical-align:middle;
}

.modal {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background-color: #333;
	filter:alpha(opacity=50); 
	-moz-opacity:0.5; 
	-khtml-opacity: 0.5; 
	opacity: 0.5; 
	background-image:url("../img/loading.gif");
	background-repeat:no-repeat;
	background-attachment:fixed;
	background-position:center;
}
body.loading {
    overflow: hidden;   
}
body.loading .modal {
    display: block;
}
.editable {
	min-height: 450px;
}

.button-small {
	font-size: 85%;
}
.button-error {
	background: rgb(202, 60, 60); /* this is a maroon */
	color:white;
}
.button-warning {
	background: rgb(223, 117, 20); /* this is an orange */
	color:white;
}
.button-error {
	background: #E00; /* this is an orange */
	color:white;
}

.inline {
	display:inline-block;
	*display:inline;
}
.date {
	display:none;
}

@media screen and (max-width: 720px){
        .nav ul, .node .about {display:none;}
}

.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%;
}
.img_container {
        position: relative;
	text-align:center;
}
.img_container img{
	margin:0.5em auto;
        max-width: 100%;
        height: auto;
}
.img_container img.code {
	max-width: 80%;
}

.table .pure-g {
	letter-spacing:0.01em;
}
.table .pure-g li {
	padding:1em;
}

@media (min-width: 66em) {
.menu-link {
    position: absolute;
    right: 16em;
    display: none;
}
#layout {
    padding-right: 16em;
    right: 0;
}
#sidebar {
	margin-right:0;
	right:0;
}
}

#layout, #sidebar, .menu-link {
    -webkit-transition: all 0.2s ease-out;
    -moz-transition: all 0.2s ease-out;
    -ms-transition: all 0.2s ease-out;
    -o-transition: all 0.2s ease-out;
    transition: all 0.2s ease-out;
}

.body .pure-g {
	padding:0;
}

.body .pure-g li>p {
	margin:0;
	padding:1em;

}
a.back-to-top {
    display: none;
    width: 2em;
    height: 2em;
    position: fixed;
    z-index: 999;
    right: 1em;
    bottom: 1.5em;
    background: rgba(0,0,0,0.5);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    color: #FFF;
    font-weight: bold;
    line-height: 2em;
    text-align: center;
    text-decoration: none;
}
