/*------------------------------------------------------------*\
 * Overall
\*------------------------------------------------------------*/

section {
    position: absolute;
    display: block;
    background-color: white;
}

/*------------------------------------------------------------*\
 * Desktop
\*------------------------------------------------------------*/
section.desktop {
    top: 50px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    overflow: auto;
    /*background-color: gray;
    text-align: center;*/
}


/*------------------------------------------------------------*\
 * Preference View
\*------------------------------------------------------------*/
section.preference {
    top: 0px;
    left: 0px;
    right: 0px;
    height: 179px;
    overflow: hidden;
    /*background-color: lightgray;*/
    border-bottom: 1px solid lightgray;
}

section.preference > .-console {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    display: block;
    padding: 5px;
}

.-console > div.-controller {
    position: relative;
    height: 25px;
    margin: 5px 0px 0px;
    padding: 0px 0px 0px 50px;
    overflow: hidden;
}

.-console > div.-controller:hover { outline: 2px solid lightgray; }
.-console > div.-controller:first-of-type { margin-top: 0px; }

div.-controller > div.-title {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    display: block;
    width: 45px;
    line-height: 25px;
    font-size: 12px;
    text-align: right;
}

div.-controller .-control {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
    background-color: transparent;
    border: 0px solid transparent;
    vertical-align: top;
}

/*-------------------------------------------------------------\
 * INPUT type=NUMBER
\*------------------------------------------------------------*/
input[type="number"] {
    width: 50px;
    border: 1px solid #DDDDDD;
    box-shadow: 0px 0px 2px #DDDDDD;
    padding: 6px 0px;
    text-align: center;
}


/*------------------------------------------------------------*\
 * Library View
\*------------------------------------------------------------*/
section.library {
    top: 200px;
    left: 0px;
    right: 0px;
    bottom: 0px;
}

section.library .-container {
    position: absolute;
    top: 30px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    display: none;
    overflow: auto;
}

/*------------------------------------------------------------*\
 * Component Cube in Library
\*------------------------------------------------------------*/
 section.library  .-cube {
    float: left;
    position: relative;
    display: block;
    width: 120px;
    height: 120px;
    margin: 10px 0px 0px 10px;
    padding: 0px;
    border: 5px solid transparent;
    outline: 1px solid lightgray;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
}
 section.library .-cube:hover {
    outline-color: gray;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.7);
}

 section.library .-cube > .-helptext {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    display: block;
    text-align: center;
    font-size: 10px;
}
 section.library .-cube:hover > .-helptext {
    background-color: rgb(255,150,0);
}


.-cube img.-vert {
    width: auto;
    height: 90px;
}
.-cube img.-horz {
    width: 120px;
    height: auto;
}

/*------------------------------------------------------------*\
 * Simple Common Tool Icon
\*------------------------------------------------------------*/
.close-button {
    display: block;
    padding: 0px;
    margin: 0px;
    border: 0px solid transparent;
    border-radius: 50%;
    background-color: rgb(231,1,125);
    background-image: url(icon/delete.svg);
    background-position: center center;
    background-size: 80% 80%;
    background-repeat: no-repeat;
    cursor: pointer;
}

/*------------------------------------------------------------*\
 * Text Pad
\*------------------------------------------------------------*/
div#textpad {
    position: absolute;
    display: none;
    padding: 0px;
    margin: 0px;
    background-color: white;
    z-index: 1000;
}

div#textpad > textarea {
    padding: 3px;
    margin: 0px;
    border: 1px dotted gray;
}




.rbmenu {
    position: fixed;
    display: display;
    width: 150px;
    height: 0px;
    overflow: hidden;
    z-index: 10;
    background-color: white;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    transition: height 0.2s;
}

.rbmenu > .menuitem {
    display: block;
    margin: 0px;
    padding: 5px;
    background-color: white;
    color: black;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
}
.rbmenu > .menuitem:hover { background-color: lightgray; }

.rbmenu > .menuline {
    font-size: 0px;
    line-height: 0px;
    background-color: white;
    margin: 4px;
    border: 1px solid lightgray;
}

.eraser {
    position: fixed;
    display: none;
    width: 64px;
    height: 64px;
    z-index: 11;
    border: 8px solid gray;
    border-radius: 64px;
    margin: -32px;
    background-color: white;
    background-repeat: no-repeat;
    background-image: url(icon/delete.svg);
    background-size: 64px 64px;
    background-position: center center;
    cursor: pointer;
    opacity: 0.75;
}




/*------------------------------------------------------------*\
 * Cache Library
\*------------------------------------------------------------*/
section.cache {
    top: 200px;
    left: 0px;
    right: 0px;
    bottom: 0px;
}

/*------------------------------------------------------------*\
 * Component Cube in Cache Library
\*------------------------------------------------------------*/
section.cache  .-cube {
    float: left;
    position: relative;
    display: block;
    width: 120px;
    height: 120px;
    margin: 10px 0px 0px 10px;
    padding: 0px;
    border: 5px solid transparent;
    outline: 1px solid lightgray;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}
section.cache .-cube:hover {
    outline-color: gray;
    box-shadow: 0px 0px 5px rgba(0,0,0,0.7);
}

section.cache .-cube > .-helptext {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    display: block;
    text-align: center;
    font-size: 10px;
}
section.cache .-cube:hover > .-helptext {
    background-color: rgb(255,150,0);
}

section.cache .-cube > .close-button { display: none; }
section.cache .-cube:hover > .close-button {
    position: absolute;
    top: 1px;
    right: 1px;
    display: block;
    width: 20px;
    height: 20px;
    font-size: 0px;
}

/*------------------------------------------------------------*\
 * Component Cube Image
\*------------------------------------------------------------*/
section.cache .-cube > img.-vert {
    width: auto;
    height: 90px;
}
section.cache .-cube > img.-horz {
    width: 120px;
    height: auto;
}


/*------------------------------------------------------------*\
 * Page View Bar
\*------------------------------------------------------------*/
section.pages {
    top: 0px;
    left: 0px;
    bottom: 0px;
    width: 150px;
    overflow: hidden;
    padding: 0px;
    margin: 0px;
}

section.pages .-container {
    position: absolute;
    /*top: 60px;*/
    left: 5px;
    right: 5px;
    display: block;
}

.thumbpage {
    position: relative;
    display: block;
    width: 124px;
    height: 175.4px;
    margin: 5px;
    background-color: white;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.75);
}
.thumbpage:hover { box-shadow: 0px 0px 5px rgba(0,0,0,0.75); }
.thumbpage[selected] { box-shadow: 0px 0px 5px rgba(0,100,255,0.85); }

.thumbpage > .page-number {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    display: none;
    height: 15px;
    padding: 2px;
    background-color: black;
    color: white;
    font-size: 10pt;
    text-align: center;
    opacity: 0.5;
    filter: Alpha(opacity=50);
}
.thumbpage:hover > .page-number { display: block; }

.thumbpage > .close-button { display: none; }
.thumbpage:hover > .close-button {
    position: absolute;
    top: 1px;
    right: 1px;
    display: block;
    width: 20px;
    height: 20px;
    font-size: 0px;
}

.insertbar {
    display: block;
    width: 124px;
    height: 10px;
    margin: 5px 5px;
    background-color: lightgray;
}


.-button {
    position: absolute;
    display: block;
    width: 100%;
    background-color: white;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.new {
    top: 0px;
    height: 30px;
    padding: 5px 0px;
    cursor: pointer;
    background-position: 0px -40px, center center;
    background-repeat: no-repeat;
}
.new:hover { background-position: center center, 0px -40px; }


/*------------------------------------------------------------*\
 * Tool Bar
\*------------------------------------------------------------*/
section.tools {
    top: 0px;
    left: 0px;
    right: 0px;
    height: 50px;
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
}

/*------------------------------------------------------------*\
 * Tool Button
\*------------------------------------------------------------*/
section.tools > .button-bar {
    position: absolute;
    top: 0px;
    left: 20px;
    right: 20px;
    bottom: 0px;
    /*border-bottom: 1px solid lightgray;*/
}

.button-bar > .button {
    display: inline-block;
    width: 33px;
    height: 29px;
    margin: 10px 0px 11px 5px;
	border-radius: 7px;
    background-position: center center, 0px -30px, 0px -30px;
    background-color: white;
    background-repeat: no-repeat;
    cursor: pointer;
}
.button-bar > .button:hover { background-position: 0px -30px, center center, 0px -30px; }
.button-bar > .button:active{ background-position: 0px -30px, 0px -30px, center center; }
.button-bar > .button.disable {
    filter: Alpha(opacity=50);
    opacity: 0.5;
    cursor: default;
}

/*------------------------------------------------------------*\
 * Mode Switch Button
\*------------------------------------------------------------*/
section.tools > .mode {
    position: absolute;
    top: 3px;
    right: 5px;
    bottom: 2px;
    display: block;
    padding-right: 65px;
    line-height: 45px;
    font-family: "微軟正黑體";
    text-align: center;
    color: gray;
}

/*------------------------------------------------------------*\
 * Dialogue: selector
\*------------------------------------------------------------*/
.selector {
    position: fixed;
    top: 80px;
    left: 80px;
    right: 80px;
    bottom: 80px;
    display: block;
    padding: 20px;
    border-radius: 20px;
    background-color: white;
}

.selector > .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    width: 40px;
    height: 40px;
}

.selector > .container {
    position: absolute;
    left: 20px;
    right: 20px;
    display: block;
    width: auto;
    padding: 9px 0px 0px 10px;
    border-bottom: 1px solid lightgray;
}

.selector .option {
    float: left;
    display: block;
    padding: 0px;
    /*background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;*/
    cursor: pointer;
    margin: 0px 10px 10px 0px;
}
.selector > .option { margin: 10px 0px 0px 10px; }

.selector .-HoverLine:hover { outline: 1px solid black; }
.selector .-HoverLight:hover { box-shadow: 0px 0px 10px rgba(255,255,255,0.8); }

.container > .-smallpic {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background-position: center center;
    background-size: auto 30px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.container > .-bigpic {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-position: center center;
    background-size: 80px 80px;
    background-repeat: no-repeat;
}

.selector > .group {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: none;
    padding: 10px 0px 0px 10px;
    overflow-x: hidden;
    overflow-y: scroll;
}

.selector .-sample {
    width: 120px;
    height: 120px;
    background-color: transparent;
    background-position: center top;
    background-size: auto 120px;
    background-repeat: no-repeat;
}

.selector .upload {
    width: 100px;
    height: 30px;
    padding: 70px 2px 4px;
    border: 8px dotted lightgray;
    background-color: transparent;
    background-image: url(icon/upload.svg);
    background-position: center top;
    background-size: auto 70px;
    background-repeat: no-repeat;
    color: black;
    font-size: 12px;
    line-height: 15px;
    text-align: center;
}


/*------------------------------------------------------------*\
 * Dialogue: PreViewer
\*------------------------------------------------------------*/
.previewer {
    position: fixed;
    display: block;
    width: 50%;
    min-width: 400px;
    height: 80%;
    min-height: 200px;
    border-radius: 20px;
    background-color: white;
}

.previewer > .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    display: block;
    width: 30px;
    height: 30px;
}

.previewer > .caption {
    position: absolute;
    top: 10px;
    left: 75px;
    right: 75px;
    display: block;
    height: 30px;
    padding: 5px;
    border-radius: 10px;
    background-color: lightgray;
    line-height: 30px;
    font-size: 25px;
    font-family: "微軟正黑體";
    text-align: center;
}


/*-------------------------------------------------------------\
 * iOS Switch HTMLElement<*>
\*------------------------------------------------------------*/
.-switch {
    position: relative;
    display: block;
    width: 35px;
    height: 24px;
    padding: 0px 5px 0px 20px;
    border-radius: 13px;
    border: 1px solid lightgray;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5) inset;
    background-color: lightgray;
    overflow: hidden;
    font-size: 12px;
    text-align: center;
    line-height: 26px;
    cursor: pointer;
}

.-switch::before {
    position: absolute;
    top: 10px;
    left: 5px;
    right: 5px;
    bottom: -10px;
    display: block;
    border-radius: 13px;
    content: "";
    background-color: rgba(255,255,255,0.5);
}

.-switch::after { content: "OFF"; }

.-switch[checked] {
    background-color: rgb(2,235,125);
    padding-left: 5px;
    padding-right: 20px;
    color: white;
}

.-switch[checked]::after { content: "ON"; }

.-switch > .-turner {
    position: absolute;
    top: 0px;
    left: 0px;
    display: block;
    width: 22px;
    height: 22px;
    padding: 0px;
    margin: 0px;
    border: 1px solid gray;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0px 0px 3px rgba(0,0,0,0.5);
    transition: left 0.2s;
}

.-switch[checked] > .-turner { left: 36px; }

