* {
    font-family: 'Microsoft JhengHei';
}

bottom {
    position: fixed;
    bottom: 0;
    background: #fff;
}

.list-title {
    width: 90px;
}


/*::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background-color: #eaeaea;
    border-left: 1px solid #ccc;
}

::-webkit-scrollbar-thumb {
    background-color: #5bc0de;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #5bc0de;
}*/

.item img {
    height: 20px;
    width: auto;
}

#title.readonly {
    font-size: 18px;
    height: 40px;
    text-align: center;
    font-weight: bold;
    cursor: default;
    margin-top: 10px;
}

#title.form-control {
    margin: 0 auto;
    font-size: 28px;
    margin-bottom: 30px;
    height: 60px;
    text-align: center;
    font-weight: bold;
    max-width: 720px;
}

#title.form-control[readonly] {
    position: relative;
    border: none;
    background: none;
    box-shadow: none;
    transition: none;
}

#j-wrapper {
    width: 100%;
}

#edit-iframe {
    position: fixed;
    top: 0;
    left: 0;
    right: 235px;
    bottom: 0;
    padding: 25px;
    background: #fffde8;
    overflow: auto;
}

#edit-wrapper {
    margin: 0 auto;
    padding: 35px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    min-height: 800px;
}


/*
#edit-wrapper.show-schedule {
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
    height: 100vh;
    padding: 10px;
    display: table;
    min-height: 100vh;
    min-height: 100%;
    height: 100%;
}*/

#edit-wrapper.show-schedule {
    height: 800px;
    display: table;
    padding: 10px;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#editData .modal-header {
    background: #46b7d9;
    color: #fff;
    text-align: center;
    border-radius: 5px 5px 0 0;
}

#form-set {
    padding: 10px;
    border: solid 1px #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
}

#form-set .row {
    margin: 0;
    margin-bottom: 5px;
}

#form-set .row>span:nth-child(1) {
    height: 34px;
    line-height: 34px;
    text-align: left;
    padding-left: 5px;
}

#form-set .tab-pane {
    display: none;
}

#form-set .active {
    display: block;
}

.modal-body h4 {
    margin-top: 5px;
    color: #46b7d9;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

.horizontal {
    display: table;
    table-layout: fixed;
}

.horizontal li {
    display: table-cell;
    height: 50px;
    vertical-align: middle;
    border: solid 1px #000;
    border-bottom: none;
    border-left: none;
    font-weight: bold;
}

.horizontal li:hover {
    background: rgba(0, 0, 0, 0.1);
}

.menu ul>li {
    width: 90px;
    float: left;
    display: table;
    height: 60px;
    border: dotted 2px #46b7d9;
    margin-right: 7px;
    margin-bottom: 7px;
    border-radius: 5px;
    box-shadow: 3px 3px 0px 0px #b7b7b7;
    font-weight: bold;
}

.menu ul>li>div {
    display: table-cell;
    vertical-align: middle;
}

.horizontal li:nth-child(1) {
    border-left: solid 1px #000;
}

#schedule>li:last-child li {
    border-bottom: solid 1px #000;
}

#schedule-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

#schedule-wrapper {
    position: relative;
    margin-bottom: 50px;
}

.control-help-left {
    position: absolute;
    top: 0;
    left: -20px;
    width: 13px;
    background: rgba(255, 255, 255, 0.6);
}

.control-help-top {
    position: absolute;
    top: -28px;
    right: 65px;
    background: rgba(255, 255, 255, 0.6);
}

.control-help-bottom {
    position: absolute;
    bottom: -30px;
    left: 65px;
    background: rgba(255, 255, 255, 0.6);
}

#controller .fa-pencil {
    position: absolute;
    top: -75px;
}

#prompt,
#controller {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

#controller .hoz-plus {
    position: absolute;
    right: 0;
    top: -32px;
}

#controller .hoz-minus {
    position: absolute;
    right: 30px;
    top: -32px;
}

#controller .vcl-plus {
    position: absolute;
    bottom: -32px;
}

#controller .vcl-minus {
    position: absolute;
    bottom: -32px;
    left: 30px;
}

.item {
    text-align: center;
    overflow: hidden;
    pointer-events: none;
    transition: all .3s
}

#controller .fa {
    pointer-events: all;
    cursor: pointer;
    font-size: 24px;
    padding: 1px;
    /*background: #FFF;*/
    border-radius: 5px;
    z-index: 51;
}

#controller .fa:hover {
    color: #999;
}

.img-item {
    overflow: hidden;
    text-align: center;
    margin-top: 5px;
    padding: 5px 0;
}

.img-item.active,
.img-item:hover {
    border-radius: 10px;
    background: #eee;
}

.img-item img,
.img-item img {
    height: auto;
    width: auto;
}

#edit-box {
    height: 100%;
    position: fixed;
    right: 0;
    bottom: 0;
    width: 300px;
    padding-left: 15px;
}

.edit-container {
    width: 100%;
    height: 100%;
}

.edit-container>div {
    position: absolute;
    left: 44px;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
}

.menu {
    float: left;
}

.menu p {
    text-align: center;
    padding-right: 15px;
}

#edit-box .tab {
    float: left;
    width: 30px;
    position: relative;
    height: 100vh;
    z-index: 2;
    width: 300px;
    overflow: auto;
    padding-bottom: 10px;
}

.tab>li {
    width: 30px;
    text-align: center;
    padding: 10px 8px;
    cursor: pointer;
    border: solid 1px #666;
    border-radius: 5px 0 0 5px;
    margin-top: 3px;
    border-right: none;
    background: rgba(255, 255, 255, 0.5);
    color: #337ab7;
}

.tab>li.active {
    background: #e8f5ff;
    border-right: solid 2px #e8f5ff;
}

.menu>div {
    padding: 25px;
    display: none;
    border-left: solid 1px #666;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding-right: 10px;
    background: #e8f5ff;
}

.menu ul {
    display: table;
    table-layout: fixed;
    padding-bottom: 80px;
}

#menu-bg>div {
    padding-bottom: 80px;
    display: inline-block;
}

.menu>div>hr {
    border-top: dotted 3px #fff;
    margin-right: 15px;
}

.menu>div>h3 {
    text-align: center;
    margin-top: 0;
    padding-right: 15px;
    font-weight: bold;
    color: #46b7d9;
}

.menu>div.active {
    display: block;
}

@media screen and (max-width: 768px) {
    #edit-iframe {
        padding: 0;
        right: 0;
    }
    /*#edit-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 800px;
        padding: 10px;
        padding-top: 15px;
        margin: 0;
        border-radius: 0;
        position: absolute;
        bottom: 0;
        top: 0;
        display: table;
    }*/
    .horizontal li {
        height: 50px;
    }
    .horizontal li:nth-child(1) {
        border-left: solid 1px #000;
    }
    #edit-trash,
    #edit-box {
        display: none;
    }
    #schedule-wrapper {
        margin-bottom: 25px;
    }
    .item {
        font-weight: bold;
    }
}

.drag-item:hover .item {
    /*transform: scale(0.85, 0.85);*/
}

.drag-item {
    cursor: pointer;
}

.menu .drag-item {
    background: #fff;
    transition: all .2s;
}

.menu .drag-item:hover {
    background: rgba(0, 0, 0, 0.1)
}

.drag-item.over {
    background: rgba(150, 150, 150, 0.2);
}

#menu-basic .fa {
    font-size: 30px;
    padding: 2px;
    cursor: pointer;
}

#menu-basic .fa:hover {
    color: #999;
}

#menu-basic .row {
    margin-bottom: 5px;
}

#menu-basic .row>span {
    padding: 0 5px;
}

#menu-basic .row>span:nth-child(1) {
    height: 34px;
    line-height: 34px;
    text-align: center;
}

#menu-basic input[type=number] {
    width: 56px;
}

#menu-basic>div {
    padding: 10px;
}

#borderStyle>option {
    border: solid 1px #000;
}

#menu-bg img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    box-shadow: 5px 5px 2px 0px rgba(0, 0, 0, 0.36);
    transition: all .3s;
}

#menu-bg img:hover {
    transform: scale(0.9, 0.9);
}

#onSubmit {
    height: 80px;
    z-index: 99;
    top: inherit;
    left: 45px;
    background: #e8f5ff;
    text-align: center;
}

#onSubmit .btn {
    padding: 20px 30px;
    margin: 0 5px;
}

#edit-trash {
    position: fixed;
    z-index: 50;
    font-size: 65px;
    bottom: 10px;
    transition: all .3s;
    border-radius: 5px;
    padding: 5px;
    color: #000;
    background: #fff;
    border-radius: 50px;
    width: 75px;
    text-align: center;
    height: 75px;
    line-height: 65px;
    box-shadow: 0 0 5px 5px #fff;
    opacity: 0;
}

#edit-trash.over {
    background: #000;
    color: #FFF;
    transform: scale(1.2, 1.2);
}

#create-model {
    height: 70px;
    width: 100%;
    margin-right: 15px;
    border: dashed 1px #52bcdc;
    color: #52bcdc;
    width: 200px;
    line-height: 70px;
    text-align: center;
    background: #fff;
    width: 190px;
    margin-bottom: 10px;
    box-shadow: 3px 3px 0px 0px #b7b7b7;
    font-weight: bold;
}

#create-model.over {
    transform: scale(1.1, 1.1);
}

#editData .fa-trash-o {
    font-size: 20px;
    float: left;
}

#loading {
    position: fixed;
    z-index: 999;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    display: table;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

#loading>div {
    display: table-cell;
    vertical-align: middle;
}

@keyframes focusAnim {
    0% {
        box-shadow: 0 0 10px 10px #fff;
    }
    50% {
        box-shadow: 0 0 10px 10px #666;
    }
    100% {
        box-shadow: 0 0 10px 10px #fff;
    }
}

@-moz-keyframes focusAnim {
    0% {
        box-shadow: 0 0 10px 10px #fff;
    }
    50% {
        box-shadow: 0 0 10px 10px #666;
    }
    100% {
        box-shadow: 0 0 10px 10px #fff;
    }
}

@-webkit-keyframes focusAnim {
    0% {
        box-shadow: 0 0 10px 10px #fff;
    }
    50% {
        box-shadow: 0 0 10px 10px #666;
    }
    100% {
        box-shadow: 0 0 10px 10px #fff;
    }
}

#edit-trash.focus,
#schedule.focus,
#create-model.focus {
    opacity: 1;
    animation: focusAnim 2s;
    -moz-animation: focusAnim 2s;
    -webkit-animation: focusAnim 2s;
    -o-animation: focusAnim 2s;
    box-shadow: 0 0 10px 10px #fff;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    z-index: 999;
}

.popover.left,
.popover.top {
    pointer-events: all;
}

#print {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

#dialog-demo {
    display: table;
    width: 70px;
    table-layout: fixed;
    margin: 0 auto;
}

#dialog-demo li {
    display: table-cell;
    height: 70px;
    vertical-align: middle;
    font-weight: bold;
    border: solid 1px #ddd;
    border-radius: 3px;
}

#vice-img,
#main-img {
    max-height: 400px;
    padding: 15px;
    overflow: auto;
}

#borderWidth {
    width: 56px;
}

#menu-bg span {
    width: 40%;
    float: left;
    margin: 0 10px;
}

.autokey {
    text-align: center;
    border: solid 1px #d6d6d6;
    border-radius: 5px;
    padding: 10px;
}

.autokey>li {
    margin: 5px 0;
    cursor: pointer;
}

.autokey>li:hover {
    color: #F00;
}