﻿body {
font-size: 14pt;
font-family: "Microsoft JhengHei", "Apple LiSung Light";
color: black;
background-color: #CCCCCC;
text-align: left;
margin: .5em auto .5em auto;
padding: 0;
}

.en {
font-family: "Palatino Linotype", "Palatino", "Times New Roman";
}

a, a:link, a:visited, a:hover, a:active {
color: brown;
text-decoration: underline;
target: current none;
}
a:hover {color: darkred;}

.e a, .e a:link, .e a:visited, .e a:hover, .e a:active {
target: new tab;
}

/* header */
.h {
display: block;
overflow: hidden;
text-align: left;
line-height: 1.5em;
color: black;
background-color: #CCCCCC;
background-color: rgba(189,255,189,0.2);
background-image: url(bg1.gif);
background-position: top right;
background-repeat: no-repeat;
background-attachment: scroll;
border: 1px solid gray;
border-radius: 16px;
width: 36em;
height: auto;
padding: .5em 1em .5em 1em;
margin: 0 0 0 27%;
}

/* banner */
.b {
display: block;
vertical-align: middle;
text-indent: 0;
color: black;
width: auto;
margin: 0;
padding: 0;
font-size: 18pt;
font-weight: bold;
}

/* ranking */
.r, .w {
display: block;
vertical-align: middle;
text-indent: 0;
color: black;
width: auto;
margin: 0;
padding: 0;
font-size: 12pt;
}

/* poem */
.w {
text-align: right;
}

/* content */
.c {
display: block;
overflow: hidden;
text-align: left;
line-height: 1.5em;
color: black;
width: 38em;
height: auto;
margin: 0 0 1em 27%;
background-color: #CCCCCC;
background-color: rgba(200,200,200,0.7);
border: 1px solid gray;
border-top: none;
border-radius: 8px / 64px;
}

/* title */
.t {
text-indent: 0;
text-align: left;
color: black;
background-color: #CCCCCC;
background-color: rgba(223,223,223,0.7);
border: 1px solid gray;
border-radius: 2em / 1em;
width: auto;
padding: 0 2em 0 2em;
font-weight: bold;
}

/* paragraph */
p {
text-indent: 2em;
text-align: left;
width: 30em;
padding-left: 2em;
}

sub {
vertical-align: -25%;
margin-left: 3px;
}

/* block */
pre {
font-family: "Consolas", "MingLiU";
font-size: 12pt;
font-weight: normal;
line-height: 1.5em;
text-indent: 0;
color: black;
border-top: 2px dashed gray;
border-bottom: 2px dashed gray;
width: auto;
padding: .5em 0 .5em 0;
margin-left: 2em;
margin-right: 2em;
word-wrap: break-word;
}

table pre {
display: block;
border: 0;
margin: 0;
text-align: center;
width: auto;
}

/* exercise */
.e {
font-size: 12pt;
font-weight: bold;
text-indent: 0;
text-align: left;
line-height: 2em;
word-spacing: .5em;
letter-spacing: 2px;
color: black;
background-color: #CCCCCC;
background-color: rgba(223,223,223,0.7);
border: 1px solid gray;
border-left: 0;
border-right: 0;
border-radius: 30em / 3em;
width: auto;
margin: .5em 0 .5em 0;
padding: 0 5em 0 5em;
word-wrap: break-word;
}

/* link */
.l {
font-size: 8pt;
font-style: normal;
font-weight: normal;
target: new tab;
}

/* GWT demo */
.d {
text-indent: 0;
margin-left: 2em;
margin-right: auto;
}

/* canvas */
.i {
text-align: center;
}

img, p img, embed {
display: block;
text-indent: 0;
text-align: center;
margin: 0 auto 0 auto;
}

/* sidebar */
.m {
display: block;
font-family: Verdana;
font-size: 10pt;
font-weight: bold;
line-height: 1em;
text-align: center;
text-indent: 0;
color: black;
background-color: rgba(189,255,189,0.2);
background-image: url(bg2.gif);
background-position: bottom left;
background-repeat: no-repeat;
background-attachment: scroll;
border: 1px solid gray;
border-radius: 8px / 64px;
padding: 0;
width: 25%;
min-width: 25%;
max-width: 25%;
height: auto;
min-height: 99%;
overflow: hidden;
position: fixed;
left: .5%;
top: .5%;
z-index: 1;
}

.m .li {
display: block;
text-align: left;
line-height: 1.5em;
border-bottom: 1px dotted gray;
height: auto;
margin: 0;
padding: .3em .66em .3em .66em;
}

.m .li:first-child {
font-size: 14pt;
}

.m a, .m a:link, .m a:visited, .m a:hover, .m a:active {
text-decoration: none;
color: black;
}
.m a:hover {color: darkred;}

/* code  */
.sh {
display: block;
overflow: visible;
font-family: "Lucida Console", "Courier New";
font-size: 12pt;
line-height: 1.5em;
color: black;
width: auto;
margin: .5em 2em .5em 2em;
word-wrap: break-word;
}

/* code title */
.sh .bar {
color: black;
background-color: #CCCCCC;
background-color: rgba(223,223,223,0.7);
border: 1px solid gray;
border-bottom: 0;
border-top-right-radius: 16px;
border-top-left-radius: 16px;
padding-left: 1em;
}

/* line number + content */
.sh ol {
background-color: #EEEEEE;
background-color: rgba(200,200,200,0.2);
list-style: decimal outside !important;
margin: 0 !important;
border: 1px solid gray;
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
}

/* content */
.sh ol li {
border-top: 1px dotted gray;
}
.sh ol li:first-child {
border: 0;
}

.sh .comment, .sh .comments {color: #008200;}
.sh .string, .sh .char {color: #069;}
.sh .macro {color: purple;}
.sh .type {color: #069;}
.sh .keyword {color: blue;}
.sh .word {}
.sh .value, .sh .hex {color: brown;}
