* {
    -webkit-user-select: none;
    user-select: none;
}
canvas {
    position: fixed;
    top: 0;
    left: 0;
    touch-action: none;
}
.eraser {
    border-radius: 100%;
    width: 60px;
    height: 60px;
    border: 2px #d3d3d3 solid;
    background: rgba(207, 207, 207, 0.2);
    opacity: 0.7;
    display: none;
    position: fixed;
    pointer-events: none;
    z-index: 10;
    box-sizing: border-box;
}
.toolbar {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.2);
    user-select: none;
    background: #fff;
    border-radius: 6px;
    width: 320px;
}
[class^="toolbar-"] {
    height: 40px;
    width: 40px;
    line-height: 40px;
    text-align: center;
    display: inline-block;
    float: left;
    cursor: pointer;
    transition: background-color 0.2s ease-out;
    color: #666;
}
.night [class^="toolbar-"] {
    color: #ccc !important;
}
[class^="toolbar-"]:hover {
    background: #f1f1f2;
}
.night [class^="toolbar-"]:hover {
    background: #333;
}
[class^="toolbar-"].active {
    background: #f1f1f2;
    color: #000;
}
.toolbar-pen {
    position: relative;
}
.toolbar-pen span {
    position: absolute;
    top: 0px;
    right: -2px;
    height: 18px;
    line-height: 18px;
    width: 18px;
    font-size: 0.5rem;
    background-color: unset !important;
}

.toolbar-eraser {

}

.toolbar-penonly .status {
    width: 7px;
    height: 7px;
    background-color: #13a559;
    position: absolute;
    top: 3px;
    right: 3px;
    border-radius: 100%;
}
.toolbar-penonly.enabled .status {
    background-color: #e31328;
}
.toolbarmenu {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-150px);
    user-select: none;
    z-index: 11;
    border-radius: 6px;
}
[class^="toolbarmenu-"] {
    height: auto;
    width: 160px;
    background: #fff;
    box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
[class^="toolbarmenu-"].active {
    pointer-events: initial;
}
.toolbarmenu-pen {
    opacity: 0;
    transition: opacity 0.2s linear;
    pointer-events: none;
    animation-fill-mode: forwards;
    animation: fadelogOut 0.4s;
    position: fixed;
    bottom: 5px;
    padding: 10px 20px 20px 20px;
    border-radius: 6px;
    overflow: hidden;
}
.layui-icon-moon::before{
    content: "\e6c2";
}
.night .layui-icon-moon::before{
    content: "\e748";
}
.width-viewer {
    height: 200px;
    width: 50px;
    float: left;
}
.switcher-container {
    margin-bottom: 5px;
    box-sizing: content-box;
    text-align: center;
}
.switcher-container .color-switcher {
    height: 20px;
    width: 20px;
    border-radius: 100%;
    transition: box-shadow 0.1s ease-out;
    cursor: pointer;
    margin: 6px;
    display: inline-block;
    box-sizing: content-box;
}
.switcher-container .color-switcher:hover {
    padding: 4px;
    margin: 2px;
}
.switcher-container .color-switcher.active {
    padding: 4px;
    margin: 2px;
}
.toolbarmenu-pen.active {
    pointer-events: all;
    opacity: 1;
    animation-fill-mode: forwards;
    animation: fadelogIn 0.3s;
}
.toolbarmenu-eraser {
    opacity: 0;
    transition: opacity 0.2s linear;
    pointer-events: none;
    animation-fill-mode: forwards;
    animation: fadelogOut 0.4s;
    margin-left: 50px;
}
.toolbarmenu-eraser.active {
    pointer-events: all;
    opacity: 1;
    animation-fill-mode: forwards;
    animation: fadelogIn 0.3s;
}
.toolbarmenu-eraser p {
    cursor: pointer;
    height: 45px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background: #fff;
    transition: background-color 0.1s ease-out;
}
.toolbarmenu-eraser p img {
    float: left;
    margin-right: 7px;
    margin-left: 10px;
    transform: scale(0.8);
}
@keyframes fadelogIn {
    0% {
        transform: translate3d(0, 80px, 0) scale(0.7);
    }
    100% {
        transform: none;
    }
}
@keyframes fadelogOut {
    0% {
        transform: none;
    }
    100% {
        transform: translate3d(0, 80px, 0) scale(0.7);
    }
}
#toolbar-container {
    transition: opacity 0.2s ease-out;
}
.untouchable {
    pointer-events: none;
    opacity: 0.7;
}
.untouchable .active {
    pointer-events: none !important;
}
.toolbar-icon{

}
.toolbar-icon span{
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
}
.toolbar-icon span i{
    font-size: 20px;
} 
.night canvas{
    background-color: #222;
}
.night .toolbar{
    background-color: #333;
}
.night [class^="toolbar-"].active {
    background: #000;
    color:#fff;
}
.night .toolbarmenu-pen.active{
    background-color: #444;
}
.night .toolbarmenu-eraser p{
    background-color: #444;
    color: #eee;
}
.night .toolbar-icon span {
    background-color: #444;
    color: #eee;
}
.keyus{
    padding: 10px;
    border: 1px solid #f5f5f5;
    margin: 10px;
}
.keyus p{
    font-size: 12px;
    line-height: 24px;
    color: #444;
}
.night .layui-layer {
    background: #333;
    border: 1px solid #222;
}
.night .layui-layer-title {
    color: #ddd;
    border-bottom: 1px solid #444;
}
.night .layui-layer-setwin .layui-layer-close {
    color: #ddd;
}
.night .keyus{
    border: 1px solid #444;
}
.night .keyus p{
    color: #aaa;
}
.night .helpss{
    color: #aaa;
}
@media screen and (max-width: 355px){
    .toolbar {
        width: 160px;
        bottom: 0;
    }
    .toolbarmenu{
        bottom: 80px;
        left: 50%;
        transform: translateX(-100px);
    }
}