.modal {
    position: fixed;
    z-index: 1;
    transition: top .5s;
    top: -150%;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    flex-flow: column nowrap;
    -webkit-flex-flow: column nowrap;
    -ms-flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}
.modal_shield {
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: .5;
}
.modal_body {
    flex: 0 1 auto;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    border: .2em solid #666;
    margin: 1em;
    background: #fff;
    color: #000;
    opacity: .95;
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    flex-flow: column nowrap;
    -webkit-flex-flow: column nowrap;
    -ms-flex-flow: column nowrap;
    align-items: stretch;
}
.modal_title {
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    padding: .25em;
    padding-left: 2em;
    border: .2em solid #666;
    background: #000;
    color: #fff;
    font-weight: 900;
}
.modal_content {
    flex: 0 1 auto;
    -webkit-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    padding: .5em;
    position: relative;
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    flex-flow: column nowrap;
    -webkit-flex-flow: column nowrap;
    -ms-flex-flow: column nowrap;
    align-items: stretch;
}
.modal_buttons {
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    -ms-flex: 0 0 auto;
    padding-bottom: 1.5em;
    padding-right: 1em;
    text-align: right;
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    flex-flow: row wrap;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    justify-content: flex-end;
    justify-content: -webkit-flex-end;
    justify-content: -ms-flex-end;
}
.modal_buttons button {
    font-size: 100%;
    font-weight: 800;
}
.modal_btn {
    margin-right: 1em;
}

.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0)
}

.cpaint_brushes {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    flex-flow: row nowrap;
    -webkit-flex-flow: row nowrap;
    -ms-flex-flow: row nowrap;
    overflow-x: auto;
}
.cpaint_brush {
    border: .2em solid white;
    margin: .5em;
    background: #000;
}
.cpaint_active {
    border: .2em solid red;
}
.cpaint_brush > canvas {
    width: 2em;
    height: 2em;
}

.ctstrip {
    display: flex;
    display: -webkit-flex;
    display: -ms-flex;
    max-height: 90vh;
    opacity: .95;
    justify-content: space-between;
    flex-flow: column wrap-reverse;
    -webkit-flex-flow: column wrap-reverse;
    -ms-flex-flow: column wrap-reverse;
}
.ctschild {
    width: 2em;
    height: 2em;
    border: 1px solid #999;
    background: #121;
    text-align: center;
}
.ctscontent {
    top: 0%;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 140%;
}
.ctstoggle {
    background: #533;
}
.ctshide {
    display: none;
}
.ctsactive1 {
    background: #ba0;
}
.ctsactive2 {
    background: #0ba;
}
.ctsactive3 {
    background: #b0a;
}
.ctsactive4 {
    background: #0c4;
}
.ctsactive5 {
    background: #c40;
}
.ctsPanel {
    transition: right .5s;
}
.ctsPanelHide {
    right: -22em;
}
.ctsPanelShow {
    right: 2em;
}

@font-face {
  font-family: 'OpenSansEmoji';
  src:  url('/common/css/OpenSansEmoji.ttf') format('truetype'),
        url('/common/css/OpenSansEmoji.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
.emoji {
    font-family: 'OpenSansEmoji', sans-serif;
}
