.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;
    padding-bottom: .25em;
    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: .25em;
    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;
    max-height: 90vh;
    opacity: .95;
    justify-content: space-between;
}
.ctstripH {
    flex-flow: row-reverse wrap;
    align-items: center;
}
.ctstripV {
    flex-flow: column wrap-reverse;
    align-items: center;
}
.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 {
    position: fixed;
    transition: right .5s;
}
.ctsPanelHide {
    right: -30em;
}
.ctsPanelShow {
    right: 2em;
}
.ctsSubStrip {
    background: #422;
    margin: .1em;
    margin-top: 0;
    border: 1px solid #999;
    opacity: .95;
}
.ctsDrop {
    position: fixed;
/*    transition: height .2s, padding .2s, top .4s steps(2, end);*/
    border: 1px solid #999;
    overflow: hidden;
}
.ctsDropHide {
    height: 0em;
    padding: 0em;
    top: -100%;
}
.ctsDropShow {
    height: 1em;
    padding: .25em;
}
.subpanels_box {
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
}
.subpanels_picks {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    background: #333;
    font-size: 110%;
    font-weight: 900;
}
.subpanels_pick {
    color: #fff;
    padding-left: .5em;
    padding-right: .5em;
    padding-top: .25em;
    padding-bottom: .25em;
    border: 1px solid #000;
}
.subpanels_picked {
    background: #666;
    color: #fcc;
    border: 1px solid #600;
}
.subpanels_spacer {
    flex: 1 1 1em;
}
.subpanels_btn {
    color: #fff;
    padding-left: .5em;
    padding-right: .5em;
    padding-top: .25em;
    padding-bottom: .25em;
    border: 1px solid #000;
}
.subpanels_subs {
    flex: 1 1 auto;
    position: relative;
}
.subpanels_sub {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .5em;
    overflow-y: auto;
}


@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;
}
