@font-face {
	font-family: 'Bradley Hand ITC';
	src: url('../data/fnt/bradhitc-webfont.eot');
	src: local('bradhitc-webfont'), url('../data/fnt/bradhitc-webfont.woff') format('woff'), url('../data/fnt/bradhitc-webfont.ttf') format('truetype');
}
@font-face {
	font-family: 'Comic Sans MS';
	src: url('../data/fnt/ComicSansMS.eot');
	src: local('ComicSansMS'), url('../data/fnt/ComicSansMS.woff') format('woff'), url('../data/fnt/ComicSansMS.ttf') format('truetype');
}
@font-face {
	font-family: 'Comic Zine';
	src: url('../data/fnt/COMIZ.eot');
	src: local('COMIZ'), url('../data/fnt/COMIZ.woff') format('woff'), url('../data/fnt/COMIZ.ttf') format('truetype');
}
@font-face {
	font-family: 'Lucida Calligraphy';
	src: url('../data/fnt/LCALLIG.eot');
	src: local('LCALLIG'), url('../data/fnt/LCALLIG.woff') format('woff'), url('../data/fnt/LCALLIG.ttf') format('truetype');
}
@font-face {
 font-family: "Thirsty Rough Reg Two";
 src: url('../data/fnt/ThirstyRoughRegularTwo.otf') format("opentype");
}
@font-face {
    font-family: "Tangerine";
    src: url('../data/fnt/Tangerine_Regular.ttf') format("truetype");
}
:root {
    --viewport-scale: 0.6;
}
html, body{
    width:100%;
    height: 100%;
}
html{
    background-color: black;
}
body{
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    left: calc(env(safe-area-inset-left, 0px) / var(--viewport-scale));
    right: 0px;
    right: calc(env(safe-area-inset-right, 0px) / var(--viewport-scale));
    background-color: white;
    overflow: hidden;
    padding: 0px;
    margin: 0px;
    font-family: arial;
    font-size: 15px;
}
header{
    padding-top:0px;
    font-size: 30px;
    font-weight: bold;
	position: absolute;
	left:0px;
	top:0px;
	right:0px;
	height:70px;
    line-height: 70px;
    vertical-align: middle;
    /*padding-left: 70px;*/
    background:transparent url(../img/logo.png) no-repeat center;
    background-size: 50px;
    background-position-x: 30px;
    background-color: #07f;
    color: #eee;
    overflow: hidden;
    white-space: nowrap;
}
[page="home"] header{
    background-position-x: 8px;
}
[page*="-heft"] header{
	height:40px;
    line-height: 40px;
    /*padding-left: 40px;*/
    background-size: 30px;
    overflow: visible;
    z-index: 100;
}
header > span{
    background-image: url(../img/arrow-left.png);
	background-size: 30px;
    background-position-x: 0px;
    background-position-y: center;
    background-repeat: no-repeat;
    text-decoration:none;
	display: inline-block;
	padding-left: 90px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}
/* header > span:after{
	content: "";
    position: absolute;
    width: 30px;
    height: 70px;
    background-color: transparent;
    background-image: url(../img/arrow-left.png);
    background-position: center;
    background-repeat: no-repeat;
    filter: invert(100%);
    -webkit-filter: invert(100%);
    left: 0px;
    background-size: 30px;
} */
header>div{
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 10px;
    height: 50px;
    z-index: 100;
}
header>div>span{
    width: 50px;
    height: 50px;
    margin-left: 5px;
    display: none;
    background-image: none;
	background-size: 50px;
    background-position-x: 0px;
    background-position-y: center;
    background-repeat: no-repeat;
    text-decoration:none;
    border-radius: 12px;
}
header>div>span:hover{
    box-shadow: 0 0 10px #00f !important;
}

header>div>span.login{
    display: inline-block;
    background-image: url(../img/login.png);
}
.auth header>div>span.login{
    filter: brightness(10);
}
header>div>span.edit{
    background-image: url(../img/editBig.png);
}
.auth header>div>span.edit{
    display: inline-block;
}
.edit header>div>span.edit{
    box-shadow: 0 0 10px #00f inset;
}
header>div>span.add{
    background-image: url(../img/addBig.png);
}
.edit header>div>span.add{
    display: inline-block;
}
header>div>span.ical{
    display: inline-block;
    background-image: url(../img/ical.png);
}
header>div>span.save{
    display: inline-block;
    background-image: url(../img/save.png);
}
header>div>span.cloud{
    display: inline-block;
    background-image: url(../img/cloud.png);
    opacity: 60%;
}
header>div>span.lokal{
    display: inline-block;
    background-image: url(../img/lokal.png);
    opacity: 60%;
}
.safari header>div>audio{
    position: absolute;
    height: 50px;
    width: 70px;
    top: -18px;
    right: 0px;
}
.safariAlt header>div>audio{
    position: absolute;
    height: 70px;
    width: 70px;
    right: 0px;
    top: -13px;
}

[page*="-heft"] header > span{
	padding-left: 70px;
}
/* [page*="-heft"] header > span:after{
    display: none;
} */

[page="home"] header > span{
    background-image: none;
	display: inline-block;
	padding-left: 70px;
    cursor: auto;
}
/* [page="home"] header > span:after{
	content:none;
} */

header > tools{
    display: none;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 40px;
    padding-left: 2px;
    height: 30px;
    line-height: 25px;
    background: #eee;
    padding: 1px 4px;
    font-size: 22px;
    color: #888;
}
[page*="-heft"] header > tools{
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select:none;
    user-select: none;
}
header > tools tool {
    width: 20px;
    height: 20px;
    padding: 2px 2px 2px 2px;
    margin: 2px 2px 2px 2px;
    font-size: inherit;
    font-weight: bold;
    line-height: 20px;
    vertical-align: top;
    border: 1px solid transparent;
    display: none;
    pointer-events: all;
}
header > tools tool:first-child {
    margin-left: 2px;
}
header > tools tool.selected{
    background-color: #eef;
    border-radius: 2px;
    border: 1px solid #bbf;
}
header > tools tool:hover{
    background-color: #ccf;
    border-radius: 2px;
}
header > tools tool.img {
	background-size: 20px;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    text-decoration:none;
    cursor: pointer;
}
.edit header > tools tool.img {
    display: inline-block;
}
header > tools b{
    font-size: 30px;
    vertical-align: top;
    display: none;
}
.edit header > tools b{
    display: inline-block;
}
header > tools span{
    font-weight: normal;
    line-height: 18px;
    display: none;
}
.edit header > tools span{
    display: inline-block;
}

header > tools select{
    font-size: 14px;
    height: 20px;
    display: none;
}
.edit header > tools select{
    display: inline-block;
}
header > tools input {
    font-size: 14px;
    height: 14px;
    display: none;
}
.edit header > tools input {
    display: inline-block;
}

header > tools tool#heftPrint {
    background-image: url(../img/print.png);
    display: inline-block;
}
header > tools tool#heftSave {
    background-image: url(../img/save.png);
}
header > tools tool#pageAdd {
    background-image: url(../img/pageAdd.png);
}
header > tools tool#pageDel {
    background-image: url(../img/pageDel.png);
}
header > tools tool#objectNewTxt {
    background-image: url(../img/objectNewTxt.png);
}
header > tools tool#objectNewRtf {
    background-image: url(../img/objectNewRtf.png);
}
header > tools tool#objectNewImg {
    background-image: url(../img/objectNewImg.png);
}
header > tools tool#objectNewLied {
    background-image: url(../img/objectNewLied.png);
}
header > tools tool#objectDel {
    background-image: url(../img/objectDel.png);
}
header > tools tool#filterInvert {
    background-image: url(../img/filterInvert.png);
}
header > tools tool#filterInvert select#filterInvertValue {
    display: none;
    margin-top: 25px;
    margin-left: -5px;
}
header > tools tool#filterInvert #filterInvertValue.on {
    display: initial;
}
header > tools tool#foreColor {
    background-image: url(../img/font.png);
}
header > tools tool#foreColor input#foreColorValue {
    display: none;
    margin-top: 25px;
    margin-left: -5px;
    height: 30px;
}
header > tools tool#foreColor input#foreColorValue.on {
    display: initial;
}
header > tools select#objectNewImgList {
    width: 120px;
    margin: 0px 4px 0px 2px;
}
header > tools select#objectNewLiedList {
    width: 120px;
    margin: 0px 4px 0px 2px;
}
header > tools select#fontFamily {
    width: 120px;
    margin: 0px 4px 0px 2px;
}
header > tools input#fontSize {
    width: 45px;
    margin: 0px 4px 0px 2px;
}
header > tools tool#fontWeight {
    background-image: url(../img/fontWeightBold.png);
}
header > tools tool#fontStyle {
    background-image: url(../img/fontStyleItalic.png);
}
header > tools tool#textDecorationLine {
    background-image: url(../img/textUnderline.png);
}
header > tools tool#textAlignLeft {
    background-image: url(../img/textAlignLeft.png);
}
header > tools tool#textAlignCenter {
    background-image: url(../img/textAlignCenter.png);
}
header > tools tool#textAlignRight {
    background-image: url(../img/textAlignRight.png);
}
header > tools tool#rotateRight {
    background-image: url(../img/rotateRight.png);
}
header > tools tool#rotateLeft {
    background-image: url(../img/rotateLeft.png);
}
header > tools tool#transformScaleX {
    background-image: url(../img/transformScaleX.png);
}
header > tools tool#transformScaleX select#transformScaleXValue {
    display: none;
    margin-top: 25px;
    margin-left: -5px;
}
header > tools tool#transformScaleX #transformScaleXValue.on {
    display: initial;
}
header > tools tool#transformScaleY {
    background-image: url(../img/transformScaleY.png);
}
header > tools tool#transformScaleY select#transformScaleYValue {
    display: none;
    margin-top: 25px;
    margin-left: -5px;
}
header > tools tool#transformScaleY #transformScaleYValue.on {
    display: initial;
}

main{
    position: absolute;
    margin: 0px;
    top:70px;
    left:0px;
    bottom: 0px;
    right:0px;
    -webkit-overflow-scrolling: touch;
}
main > div:first-child{
    position: absolute;
    margin: 0px;
    top:0px;
    left:0px;
    bottom:0px;
    right:0px;
    padding-bottom: 0px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) / var(--viewport-scale));
    overflow:auto;
    -webkit-overflow-scrolling: touch;
}
main.mappe > div:first-child,
main.lieder > div:first-child{
    right: 30px;
}
[page*="-heft"] main{
    position: absolute;
    margin: 0px;
    top:70px;
    left:0px;
    bottom: 20px;
    bottom: calc((env(safe-area-inset-bottom, 0px) / var(--viewport-scale)) + 20px);
    right:0px;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
}
[page*="-heft"] main > div:first-child::after{
    padding-bottom: 0px;
}
footer{
    display: none;
    position: absolute;
    left: 0px;
    right: 0px;
    bottom:0px;
    bottom: calc(env(safe-area-inset-bottom, 0px) / var(--viewport-scale));
    height: 20px;
    line-height: 20px;
    background: #eee;
    padding: 1px 8px;
    font-size: 16px;
}
[page*="-heft"] footer{
    display: initial;
}
footer > div{
    display: none;
}
.edit footer > div{
    display: block;
}
footer > div span{
    display: inline-block;
    width: auto;
    margin: 0px 2px 0px 0px;
    font-size: 12px;
}
footer span#heftZoomTxt{
    width: 32px;
    text-align: right;
}
footer input[type="range"]{
    vertical-align: top;
}
busy{
    display: none;
    position: absolute;
    margin: 0px;
    top:0px;
    left:0px;
    bottom:0px;
    right:0px;
    background-color: #fff;
    z-index: 2000;
    background-image: url(../img/busy.gif);
    background-repeat: no-repeat;
    background-position: 50%;
    opacity: 0.9;
}
.notch  {
    position: absolute;
    pointer-events: all;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 0px;
    height: calc(env(safe-area-inset-bottom, 0px) / var(--viewport-scale));
    background-image: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
    z-index: 10000;
}
register{
    display: none;
    position: absolute;
    margin: 0px;
    top:0px;
    bottom:0px;
    right:0px;
    background-color: #eee;
    overflow-x:visible;
    overflow-y:scroll;
    -webkit-overflow-scrolling: touch;
}
main.mappe register,
main.lieder register{
    display: block;
}
overlay{
    display: none;
    position: absolute;
    margin: 0px;
    top:0px;
    left:0px;
    bottom:0px;
    right:0px;
    background-color: #000;
    opacity: 0.7;
    z-index: 1000;
}
red {
    color: red;
}

.a{
    cursor: pointer;
}
ul{
    list-style:none;
    list-style-type:none;
    margin:0;
    padding:0;
}
ul li{
    display:block;
    margin:0;
    padding:0;
}
ul.tab{
    background-color:#eee;
    /*margin-top:70px;*/
}
ul.tab li{
    font-size:25px;
    padding:8px 10px;
    font-weight: normal;
    border-bottom: 1px solid #888;
}
ul.tab li:last-child{
    border-bottom: none;
}
ul.tab li:hover{
	background-image: radial-gradient(#c0c0fb 0%, #eee 90%);
}
ul.tab li.a>span{
	background-image: url(../img/arrow-right.png);
	background-size: 20px;
    background-position-x: 100%;
    background-position-y: center;
    background-repeat: no-repeat;
    text-decoration:none;
}
ul.tab li.mappe.a,
ul.tab li.termin.a{
	cursor: auto;
}
ul.tab li.arrowDown{
    background-image: url(../img/arrow-down.png);
    font-weight: bold;
}
ul.tab li.lied{
    padding:0px 10px;
}
ul.tab li>span{
    color:#395963;
    line-height:50px;
    text-decoration:none;
    white-space: nowrap;
	display: block;
    width: 100%;
}
ul.tab li.lied>span{
	line-height:50px;
}
ul.tab li>span>span{
	display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select:none;
    user-select: none;
}
ul.tab li>span>span:not(.a){
    cursor: default;
}
ul.tab li.lied>span>span.titel{
	width: calc(100% - 65px);
    padding:0px 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}
.mappe ul.tab li.lied>span>span.titel{
    width: calc(100% - 35px);
}
ul.tab li.mappe>span>span.titel,
ul.tab li.termin>span>span.titel{
    width: calc(100% - 20px);
}
.termin ul.tab li.lied>span>span.titel{
    width: calc(100% - 65px);
}
.edit ul.tab li.lied>span>span.titel{
	width: calc(100% - 160px);
}
.edit .mappe ul.tab li.lied>span>span.titel{
    width: calc(100% - 95px);
}
.edit ul.tab li.mappe>span>span.titel,
.edit ul.tab li.termin>span>span.titel{
    width: calc(100% - 90px);
}
.edit .termin ul.tab li.lied>span>span.titel{
    width: calc(100% - 125px);
}
ul.tab li.mappe>span>span.img,
ul.tab li.termin>span>span.img,
ul.tab li.lied>span>span.img,
.info span.img{
	width: 30px;
	height: 35px;
    margin-top: -5px;
    vertical-align: middle;
    border-radius: 8px;
	background-size: 25px;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    text-decoration:none;
}
.info span.img{
    height: 20px;
    background-size: 20px;
}

ul.tab li.mappe>span>span.img.a:hover,
ul.tab li.termin>span>span.img.a:hover,
ul.tab li.lied>span>span.img.a:hover,
.info span.img:hover{
    box-shadow: 0 0 10px #00f;
}

ul.tab li.termin>span>span.pdf.a,
ul.tab li.lied>span>span.pdf.a{
    background-image: url(../img/pdf.png);
}
ul.tab li.termin>span>span.txt.a,
ul.tab li.lied>span>span.txt.a{
    background-image: url(../img/txt.png);
}
ul.tab li.termin>span>span.cloud.a,
ul.tab li.lied>span>span.cloud.a{
    background-image: url(../img/cloud.png);
    opacity: 60%;
}
ul.tab li.termin>span>span.lokal.a,
ul.tab li.lied>span>span.lokal.a{
    background-image: url(../img/lokal.png);
    opacity: 60%;
}
ul.tab li.mappe>span>span.edit,
ul.tab li.termin>span>span.edit,
ul.tab li.lied>span>span.edit{
    background-image: url(../img/edit.png);
    display: none;
}
.edit ul.tab li.mappe>span>span.edit.a,
.edit ul.tab li.termin>span>span.edit.a,
.edit ul.tab li.lied>span>span.edit.a{
    display: inline-block;
}
ul.tab li.lied>span>span.cap{
    display: none;
}
ul.tab li.lied>span>span.cap.a{
    background-image: url(../img/cap.png);
}
.edit ul.tab li.lied>span>span.cap{
    display: inline-block;
}
ul.tab li.mappe>span>span.trash,
ul.tab li.termin>span>span.trash,
ul.tab li.lied>span>span.trash,
.info span.trash{
    background-image: url(../img/trash.png);
    display: none;
}
.edit ul.tab li.mappe>span>span.trash.a,
.edit ul.tab li.termin>span>span.trash.a,
.edit ul.tab li.lied>span>span.trash.a,
.info span.trash{
    display: inline-block;
}
ul.tab li.mappe>span>span.questionmark,
ul.tab li.termin>span>span.questionmark,
ul.tab li.lied>span>span.questionmark,
.info span.questionmark{
    background-image: url(../img/questionmark.png);
    display: none;
}
.edit ul.tab li.mappe>span>span.questionmark.a,
.edit ul.tab li.termin>span>span.questionmark.a,
.edit ul.tab li.lied>span>span.questionmark.a,
.info span.questionmark{
    display: inline-block;
}
img.svg {
    width: 100%;
}

/* Register */
ul.reg{
    background-image: linear-gradient(to right, #eee 0%, #bbb 100%);
    width: 30px;
}
ul.reg li{
    font-size:20px;
    padding:1px;
    font-weight: normal;
    text-align: center;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-image: linear-gradient(to top, #eee 0%, #bbb 120%);
}
ul.reg li:hover{
	background-image: linear-gradient(to top, #eee 0%, #c0c0fb 120%);
}

ul.reg li:first-child{
    border-top-left-radius: 0px;
}
ul.reg:after{
	content: "";
	display: inline-block;
	right: 0px;
    width: 30px;
    height: 20px;
	position: absolute;
    border-top-left-radius: 10px;
    background-image: linear-gradient(to top, #eee 0%, #bbb 120%);
    
}

/* Dialog */
ul.dialog{
    font-size: 20px;
}
ul.dialog>li {
    padding: 10px;
}
ul.dialog>li>label{
    display:inline-block;
    width: 60px;
    text-align:right;
    vertical-align: top;
    padding-right: 5px;
    line-height: 20px;
    margin-top: 13px;
}
ul.dialog>li>div{
    display:inline-block;
    width: calc(100% - 65px);
    margin-top: 10px;
}
ul.dialog>li>div>input:not([type="checkbox"]),
ul.dialog>li>div>textarea,
ul.dialog>li>div>select{
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-family: arial;
    font-size: 20px;
}
ul.dialog>li>div>input[type="checkbox"]{
    height: 20px;
    width: 20px;
}
ul.dialog>li>div>input:not([type="checkbox"]),
ul.dialog>li>div>select{
    height: 27px;
    vertical-align: top;
}
ul.dialog>li>div>span{
    font-size: 18px;
}
/* Dialog LiedEdit */
ul.dialog>li>div>input#liedTitel,
ul.dialog>li>div>input#liedAnmerkung{
    width: 49%;
}
ul.dialog>li>div>input#liedTitel{
    margin-right: 2%;
}
/* DialogTerminEdit */
ul.dialog>li>div>input#terminTag,
ul.dialog>li>div>input#terminGt,
ul.dialog>li>div>input#terminVon,
ul.dialog>li>div>input#terminBis{
    width: unset;
}
/* Dialog MappeEdit */
.mappeEdit ul.dialog>li>label{
    width: 135px;
}
.mappeEdit ul.dialog>li>div{
    width: calc(100% - 140px);
}
ul.dialog>li>div>input#mappeLiedNr{
    width: 50px;
}
ul.dialog>li>div>select#mappeLiedTitel{
    width: calc(100% - 50px);
}
/* Dialog Login */
.login ul.dialog>li>label{
    width: 90px;
}
.login ul.dialog>li>div{
    width: calc(100% - 95px);
}
.loginInitial ul.dialog>li>label{
    width: 160px;
}
.loginInitial ul.dialog>li>div{
    width: calc(100% - 165px);
}
.pwChange ul.dialog>li>label{
    width: 160px;
}
.pwChange ul.dialog>li>div{
    width: calc(100% - 165px);
}
ul.dialog>li>div.loginMessage,
.login ul.dialog>li>div.login,
.loginInitial ul.dialog>li>div.login,
.pwChange ul.dialog>li>div.login{
    width: 100%;
}
.login ul.dialog>li>div.login input,
.loginInitial ul.dialog>li>div.login input,
.pwChange ul.dialog>li>div.login input{
    width: 100%;
    height: 30px;
    border-radius: 5px;
    background-color: #5f5;
    color: #000;
    font-weight: bold;
    font-size: inherit;
}
.pwChange ul.dialog>li>label[for="usr"],
.pwChange ul.dialog>li>div[for="usr"],
.login ul.dialog>li>label[for="npwd"],
.login ul.dialog>li>div[for="npwd"],
.login ul.dialog>li>label[for="npwd2"],
.login ul.dialog>li>div[for="npwd2"],
.login ul.dialog>li>div input#loginInitial,
.login ul.dialog>li>div input#pwChange,
.loginInitial ul.dialog>li>div input#login,
.loginInitial ul.dialog>li>div input#pwChange,
.pwChange ul.dialog>li>div input#loginInitial,
.pwChange ul.dialog>li>div input#login{
    display: none;
}
/* Dialog Info */
.info ul.dialog>li>label{
    width: 160px;
}
.info ul.dialog>li>div{
    width: calc(100% - 165px);
}
.info ul.dialog>li>div[for="log"]{
    font-size: 15px;
    line-break: anywhere;
    word-break: break-all;
}
/* Heft */
ul.pages {
    position: absolute;
    width: 220mm;
}
/* Heft-Seiten */
ul.pages li.page {
    --move-width: 8px;
    --move-height: 8px;
    --move-margin: -5px;
    --move-center: calc(50% - 5px);
    --move-radius: 4px;
    --move-div-margin: 5px;
}
ul.pages li.page {
    position: relative;
    overflow: hidden;
    margin: 5mm auto;
    width: 210mm;
    height: 297mm;
    background: white;
    box-shadow: 0 0 0.5cm #888;
}
ul.pages li.page.a {
    cursor: initial;
}
ul.pages li.page.a::before {
    content: "";
    position: absolute;
    left: 15mm;
    top: 10mm;
    width: 180mm;
    height: 277mm;
    outline: 1px solid #ddd;
    display: block;
    background: transparent;
    pointer-events: none;
}
.edit ul.pages li.page.a {
    cursor: pointer;
}
.edit ul.pages li.page.selected {
    box-shadow: 0 0 0.5cm #bbf;
}
ul.pages li.page div.pageNo {
    bottom: 4mm;
    right: 10mm;
    position: absolute;
    display: none;
    z-index: 1;
}
ul.pages li.page.a div.pageNo {
    display: initial;
}
/* Heft-Objekte */
div.oO {
    position: absolute;
    margin: 0px;
}
div.oO[angle="90"] {
    transform-origin: left bottom;
}
div.oO[angle="180"] {
    transform-origin: right bottom;
}
div.oO[angle="270"] {
    transform-origin: right top;
}
div.oO.a {
    cursor: initial;
    outline: initial;
}
.edit div.oO.a {
    cursor: pointer;
    outline: 1px dashed #bbb;
}
div.oH {
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
div.oI {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    pointer-events: none;
}
div.o, 
embed.o {
    width: 100%;
    height: 100%;
    line-height: 125%;
    cursor: auto;
}
textarea.o {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0px;
    overflow: hidden;
    background: transparent;
    resize: none;
    line-height: 125%;
}
div.oMT,
div.oMR,
div.oMB,
div.oML{
    position: absolute;
    display: none;
}
div.oTL, 
div.oT, 
div.oTR, 
div.oR, 
div.oBR, 
div.oB, 
div.oBL, 
div.oL {
    width: 8px;
    width: var(--move-width);
    height: 8px;
    height: var(--move-height);
    background-color: #ddd;
    position: absolute;
    display: none;
    border: 1px solid #000;
}
div.oTL {
    top: -5px;
    top: var(--move-margin);
    left: -5px;
    left: var(--move-margin);
    border-radius: 4px;
    border-radius: var(--move-radius);
    cursor: nw-resize;
}
div.oT {
    top: -5px;
    top: var(--move-margin);
    left: calc(50% - 5px);
    left: var(--move-center);
    cursor: n-resize;
}
div.oTR {
    top: -5px;
    top: var(--move-margin);
    right: -5px;
    right: var(--move-margin);
    border-radius: 4px;
    border-radius: var(--move-radius);
    cursor: ne-resize;
}
div.oR {
    top: calc(50% - 5px);
    top: var(--move-center);
    right: -5px;
    right: var(--move-margin);
    cursor: e-resize;
}
div.oBR {
    bottom: -5px;
    bottom: var(--move-margin);
    right: -5px;
    right: var(--move-margin);
    border-radius: 4px;
    border-radius: var(--move-radius);
    cursor: se-resize;
}
div.oB {
    bottom: -5px;
    bottom: var(--move-margin);
    left: calc(50% - 5px);
    left: var(--move-center);
    cursor: s-resize;
}
div.oBL {
    bottom: -5px;
    bottom: var(--move-margin);
    left: -5px;
    left: var(--move-margin);
    border-radius: 4px;
    border-radius: var(--move-radius);
    cursor: sw-resize;
}
[angle="0"] div.oTL,
[angle="90"] div.oBL,
[angle="180"] div.oBR,
[angle="270"] div.oTR {
    cursor: nw-resize;
}
[angle="0"] div.oT,
[angle="90"] div.oL,
[angle="180"] div.oB,
[angle="270"] div.oR {
    cursor: n-resize;
}
[angle="0"] div.oTR,
[angle="90"] div.oTL,
[angle="180"] div.oBL,
[angle="270"] div.oBR {
    cursor: ne-resize;
}
[angle="0"] div.oR,
[angle="90"] div.oT,
[angle="180"] div.oL,
[angle="270"] div.oB {
    cursor: e-resize;
}
[angle="0"] div.oBR,
[angle="90"] div.oTR,
[angle="180"] div.oTL,
[angle="270"] div.oBL {
    cursor: se-resize;
}
[angle="0"] div.oB,
[angle="90"] div.oR,
[angle="180"] div.oT,
[angle="270"] div.oL {
    cursor: s-resize;
}
[angle="0"] div.oBL,
[angle="90"] div.oBR,
[angle="180"] div.oTR,
[angle="270"] div.oTL {
    cursor: sw-resize;
}
[angle="0"] div.oL,
[angle="90"] div.oB,
[angle="180"] div.oR,
[angle="270"] div.oT {
    cursor: w-resize;
}
div.oL {
    top: calc(50% - 5px);
    top: var(--move-center);
    left: -5px;
    left: var(--move-margin);
    cursor: w-resize;
}
div.oO.selected{
    cursor: move;
    outline: 1px solid #bbf;
    z-index: 10;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select:none;
    user-select: none;
}
.ff div.oO.selected{
    outline-offset: -5px;
}
div.oO.selected div.oI:first-child{
    outline: 1px solid #eee;
}
div.oO.edit{
    cursor: text;
    outline: 1px solid #bbb;
}
div.oO.edit div.oI,
div.oO.edit div.oH{
    pointer-events: all;
}
div.oO.edit div.oI textarea{
    resize: vertical;
}
div.oO.selected div.oMT,
div.oO.selected div.oMR,
div.oO.selected div.oMB,
div.oO.selected div.oML{
    display: block;
}
div.oO.selected div.oTL,
div.oO.selected div.oT,
div.oO.selected div.oTR,
div.oO.selected div.oR,
div.oO.selected div.oBR,
div.oO.selected div.oB,
div.oO.selected div.oBL,
div.oO.selected div.oL{
    display: block;
}
