@font-face {
  font-family: 'IndieFlower';
  src: url('../fonts/IndieFlower.ttf');
}

body {
  background: #f2f2f2;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

button {
  cursor: pointer;
  font-size: inherit;
}

label > * {
  pointer-events: none;
}

.announcement {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #F1FFC8;
  padding: 10px 34px 10px 10px;
  box-shadow: 0 0 4px #555;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  z-index: 1;
}

.announcement .fa {
  margin-right: 6px;
}

.announcement .dismiss {
  background: none;
  border: none;
  position: absolute;
  top: 0;
  right: 12px;
  padding: 0;
  line-height: 100%;
  height: 34px;
  width: 34px;
  font-size: 20px;
}

.main {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.workspace {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  -webkit-transition: left .2s ease;
  -moz-transition: left .2s ease;
  overflow: hidden;
}

.canvas {
  position: relative;
}

.canvas canvas,
.canvas .sticker-layer,
.canvas .text-layer {
  position: absolute;
  left: 0; /* TODO: ? */
}

.canvas .selection {
  width: 100%;
  height: 100%;
  position: absolute;
  background: rgba(0, 0, 0, 0.2);
}

.canvas .handles {
  -webkit-transition: opacity .1s;
  -moz-transition: opacity .1s;
}

.canvas .handle {
  position: absolute;
  width: 18px;
  height: 18px;
  padding: 10px;
  z-index: 2;
}

.canvas .handle i {
  box-sizing: border-box;
  background: #fff;
  font-size: 14px;
  padding: 2px 1px 1px;
  width: 18px;
  height: 18px;
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 0 2px #000;
}

.canvas .handle-resize {
  cursor: nwse-resize;
  bottom: -15px;
  right: -15px;
}

.canvas .handle-rotate {
  cursor: nwse-resize;
  top: -15px;
  right: -15px;
}

.canvas .sticker-layer img {
  position: absolute;
}

.canvas .text-layer textarea {
  background: none;
  border: none;
  color: #000;
  padding: 0;
  line-height: 1em;
  resize: none;
  outline: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.workspace .panels {
  position: absolute;
  white-space: nowrap;
  transition: transform .2s ease;
  -webkit-transition: -webkit-transform .2s ease;
  -moz-transition: -moz-transform .2s ease;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
}

.workspace .panel {
  display: inline-block;
  vertical-align: top;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
  -webkit-transition: -webkit-transform .2s ease, opacity .2s ease;
  -moz-transition: -moz-transform .2s ease, opacity .2s ease;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  overflow: hidden;
  background: #fff;
  /*box-shadow: 0 0 5px #888;*/
  box-shadow: 0 1px 3px #dbdbdb;
}

.workspace .panel.active a {
  border: 3px solid #94E548;
  box-sizing: border-box;
}

.workspace .panel a {
  display: block;
  width: 100%;
  height: 100%;
}

.workspace .panel canvas {
  width: 100%;
  height: 100%;
}

.workspace .canvas {
  background: #fff;
  -webkit-transition: left .2s ease;
  -moz-transition: left .2s ease;
}

.shelf {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  background: #bbb;
  box-shadow: 0 0 10px #666 inset;
  transition: transform .2s ease;
  -webkit-transition: -webkit-transform .2s ease;
  -moz-transition: -moz-transform .2s ease;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
}

.shelf .comics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shelf .comics li {
  position: relative;
  padding: 0 15px 15px;
}

.shelf .comics .delete {
  position: absolute;
  top: -6px;
  right: 10px;
  border: none;
  background: none;
  line-height: 100%;
  font-size: 20px;
  padding: 0;
}

.shelf .comics .delete:hover {
  color: #c00;
}

.shelf .comics a {
  display: block;
}

.shelf .comics img,
.shelf .comics .icon {
  width: 100px;
  height: 100px;
  background: #fff;
}

.shelf .comics img {
  /*box-shadow: 0 0 10px #666;*/
  vertical-align: top;
}

.shelf .comics .icon {
  color: #888;
  padding-top: 38px;
  box-sizing: border-box;
  text-align: center;
  font-size: 22px;
}

.shelf .comics a.active {
  border: 3px solid #94E548;
  border-radius: 3px;
  margin: -3px;
}

.shelf .new-comic {
  display: block;
  width: 100px;
  height: 100px;
  margin: 15px;
  font-size: 40px;
  color: #ddd;
  text-align: center;
  padding-top: 27px;
  box-sizing: border-box;
  border: 2px dashed #ddd;
  border-radius: 5px;
}

.shelf .loading {
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 40px;
  padding-bottom: 10px;
}

.shelf-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  -webkit-transition: left .2s ease;
  -moz-transition: left .2s ease;
}

.menu-bar {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
  list-style: none;
  padding: 0;
}

.menu-bar > li {
  display: inline-block;
  margin-left: 10px;
}

.menu-bar > li > button{
  color:#333;
}

.menu-bar > li > button,
.shelf-toggle {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  font-size: inherit;
  border-radius: 5px;
  text-align: center;
  padding: 6px;
  outline: none;
}

.menu-bar > li > button .fa,
.shelf-toggle .fa {
  font-size: 26px;
  vertical-align: middle;
  width: 26px;
  color:#333;
}

.menu-bar > li > button:hover,
.menu-bar > li > button.active,
.shelf-toggle:hover {
  background: #ddd;
}

.menu-bar > li > button.active {
  border-radius: 5px 5px 0 0;
}

.menu-bar .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  background: #ddd;
  border-radius: 5px 0 5px 5px;
  overflow: hidden;
  min-width: 100px;
}

.menu-bar .menu button {
  border: none;
  background: transparent;
  padding: 12px;
  white-space: nowrap;
  display: block;
  width: 100%;
  text-align: left;
  font-size: inherit;
}

.menu-bar .menu button:hover {
  background: #ccc;
}

.overlay {
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  -webkit-transition: opacity .5s;
  -moz-transition: opacity .5s;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
}

.modal {
  margin: 0 auto;
  width: 240px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 30px #444;
}

.modal h1 {
  font-size: 26px;
  margin: 20px 0;
  text-align: center;
}

.modal .error {
  color: #c00;
}

.field {
  margin: 16px 0;
}

.field label {
  display: block;
  font-size: 0.9rem;
}

.field input {
  padding: 5px;
  margin: 2px 0 4px;
  width: 100%;
  box-sizing: border-box;
  font-size: inherit;
  border: 1px solid #ccc;
}

.field input:focus {
  outline: none;
  padding: 4px;
  border: 2px solid #94E548;
  border-radius: 3px;
}

.field .hint {
  display: block;
  font-size: 11px;
  color: #777;
}

.buttons {
  text-align: center;
}

.buttons button.primary {
  border: 1px solid #ccc;
  background: #eee;
  border-radius: 5px;
  padding: 4px 10px;
}

.buttons button.primary:hover {
  background: #ddd;
}

button.link {
  border: none;
  background: none;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.toolbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  list-style: none;
  padding: 0;
  text-align: center;
  -webkit-transition: left .2s ease;
  -moz-transition: left .2s ease;
}

.toolbar > li {
  display: inline-block;
  margin: 5px;
  position: relative;
  vertical-align: middle;
}

.toolbar > li > button {
  padding: 0;
  border: none;
  width: 50px;
  height: 50px;
  color:#333;
  background: none;
  font-size: 20px;
  border-radius: 3px;
  background: rgba(243, 243, 243, 0.8);
}

.toolbar > li > button .up-hint {
  position: absolute;
  font-size: 12px;
  left: 14px;
  top: 10px;
}

.toolbar > li > button:disabled {
  color: #999;
  cursor: default;
}

.toolbar > li > button:disabled:hover {
  background: none;
}

.toolbar > li > button:focus {
  outline: none;
}

.toolbar > li > button:hover {
  background: rgba(220, 220, 220, 0.8);
}

.toolbar > li.active > button {
  border: 2px solid #94E548;
  background: none;
}

.toolbar-menu,
.sticker-browser,
.share-menu,
.download-menu {
  position: absolute;
  bottom: 0;
  background: rgba(100, 100, 100, 0.8);
  border: 1px solid #444;
  border-radius: 5px;
  box-shadow: 0 0 4px #777;
}

.toolbar .toolbar-menu {
  list-style: none;
  margin: 0 9px 55px;
  padding: 0;
}

.toolbar .toolbar-menu button {
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  padding: 0;
}

.toolbar .separator {
  width: 1px;
  background: #666;
  height: 10px;
  margin: 10px;
}

.sticker-browser {
  margin-bottom: 60px;
  text-align: center;
}

.sticker-browser .overlay + div,
.sticker-browser .overlay + form,
.download-menu .overlay + div {
  position: relative;
  z-index: 101;
}

.sticker-browser::before,
.sticker-browser::after {
  content: '';
  display: inline-block;
  position: absolute;
  left: 42.5%;
}

.sticker-browser::before {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #111;
  bottom: -10px;
  margin-left: -10px;
}

.sticker-browser::after {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #808080;
  bottom: -9px;
  margin-left: -9px;
}

.sticker-browser .header,
.sticker-browser .footer {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.sticker-browser .header {
  border-bottom: 1px solid #555;
  text-align: left;
}

.sticker-browser .footer {
  border-top: 1px solid #555;
}

.sticker-browser .header > div {
  display: inline-block;
  vertical-align: middle;
  padding: 10px;
}

.sticker-browser .categories {

}

.sticker-browser .search-field input {
  padding: 3px;
  border: none;
  border-radius: 2px;
  background: #eee;
  outline: none;
  width:110px;
}

.sticker-browser .search-field input:focus {
  background: #fff;
}

.sticker-browser .search-field .suggestions {
  position: absolute;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #eee;
}

.sticker-browser .search-field .suggestions li {
  padding: 5px;
  color: #333;
  cursor: pointer;
}

.sticker-browser .search-field .suggestions li:hover {
  background: #ccc;
}

.sticker-browser .header .actions {
  float: right;
  padding: 0;
}

.sticker-browser .header-footer button {
  padding: 5px;
  margin: 5px;
  background: none;
  border: none;
  height: 30px;
  border-radius: 5px;
  color: #fff;
  outline: none;
}

.sticker-browser .header-footer button:disabled {
  color: #999;
  cursor: default;
}

.sticker-browser .header-footer button:hover,
.sticker-browser .header-footer button.active {
  background: #777;
}

.sticker-browser .header-footer button:disabled:hover {
  background: none;
}

.sticker-browser .header-footer button .fa {
  font-size: 18px;
  vertical-align: middle;
}

.sticker-browser .header-footer button .fa + span {
  margin-left: 5px;
}

.sticker-browser .stickers {
  overflow: auto;
  text-align: initial;
  white-space: nowrap;
  width:100%;
}

.sticker-browser .stickers .columns {
  list-style: none;
  margin: 0;
  padding: 5px;
  vertical-align: middle;
  display: inline-block;
}

.sticker-browser .stickers .columns > li {
  display: inline-block;
  vertical-align: top;
}

.sticker-browser .stickers .columns ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sticker-browser .stickers .columns ul li {
  padding: 5px;
}

.sticker-browser .stickers button,
.sticker-browser .stickers .icon,
.sticker-browser .stickers .loading {
  width: 100px;
  height: 100px;
}

.sticker-browser .stickers button {
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-color: transparent;
  background-size: contain;
  cursor: pointer;
  border: none;
}

.sticker-browser .stickers .icon {
  color: #888;
  background: #666;
  text-align: center;
  font-size: 22px;
  box-sizing: border-box;
  padding-top: 36px;
}

.sticker-browser .stickers .loading {
  color: #ddd;
  font-size: 26px;
  text-align: center;
}

.sticker-browser .stickers .loading i {
  margin-top: 35px;
}

.sticker-browser .loading-empty {
  color: #fff;
  font-size: 36px;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
}

.sticker-browser .empty {
  text-align: center;
  color: #eee;
  margin: 0;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
}

.sticker-browser .footer {
  text-align: left;
}

.sticker-browser .footer .drawing,
.sticker-browser .footer .extra {
  display: inline-block;
  width: 50%;
}

.sticker-browser .footer .extra {
  text-align: right;
}

.sticker-browser .suggestion {
  background: #ddd;
  border-bottom: 1px solid #aaa;
  text-align: left;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.sticker-browser .suggestion p {
  margin: 0;
  padding: 8px;
  color: #555;
}

.sticker-browser .suggestion p .icon {
  margin-right: 6px;
}

.sticker-browser .suggestion .actions {
  float: right;
  padding: 4px;
}

.sticker-browser .suggestion .actions button {
  border: none;
  background: none;
  padding: 4px;
  margin: 0;
  color: #555;
}

.sticker-browser .canvas {
  background: url('../img/transparent.gif') center;
  position: relative;
  box-shadow: none;
  vertical-align: top;
  display: inline-block;
}

.sticker-browser .preview {
  position: absolute;
  padding: 10px;
}

.sticker-browser .preview canvas {
  background: #666;
}

.sticker-browser form .fields {
  text-align: left;
  padding: 0 10px;
  color: #fff;
}

.sticker-browser form .hint {
  color: #eee;
}

.toggle {
  margin: 5px;
  display: inline-block;
  text-align: center;
}

.toggle input {
  display: none;
}

.toggle label {
  display: inline-block;
  background: rgba(0, 0, 0, 0.1);
  width: 60px;
  height: 30px;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 0 5px #222 inset;
  cursor: pointer;
  box-sizing: border-box;
  padding: 2px;
}

.toggle label span {
  display: inline-block;
  background: #666;
  width: 28px;
  height: 26px;
  left: 2px;
  top: 2px;
  position: absolute;
  -webkit-transition: left .2s ease;
  -moz-transition: left .2s ease;
  border-radius: 4px;
  box-shadow: 0 0 4px #222;
  -webkit-user-select: none;
}

.toggle label i {
  width: 28px;
  line-height: 28px;
  position: relative;
  -webkit-transition: color .2s ease;
  -moz-transition: color .2s ease;
}

.toggle input:checked + label span {
  left: 30px;
}

.toggle label i.left { color: #fff; }
.toggle label i.right { color: #aaa; }

.toggle input:checked + label i.left { color: #aaa; }
.toggle input:checked + label i.right { color: #fff; }

.download-menu {
  margin-bottom: 60px;
  padding: 10px;
  box-sizing: border-box;
}

.download-menu::before,
.download-menu::after {
  content: '';
  display: inline-block;
  position: absolute;
  left: 50%;
}

.download-menu::before {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #111;
  bottom: -10px;
  margin-left: -10px;
}

.download-menu::after {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #808080;
  bottom: -9px;
  margin-left: -9px;
}

.download-menu img {
  max-width: 100%;
}

.download-menu p {
  margin: 6px 0 2px;
  color: #eee;
}

.share-menu {
  margin-bottom: 60px;
  padding: 0 14px;
  text-align: left;
  box-sizing: border-box;
}

.share-menu::before,
.share-menu::after {
  content: '';
  display: inline-block;
  position: absolute;
  left: 50%;
}

.share-menu::before {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #111;
  bottom: -10px;
  margin-left: -10px;
}

.share-menu::after {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #808080;
  bottom: -9px;
  margin-left: -9px;
}

.download-menu .loading,
.share-menu .loading {
  text-align: center;
  color: #ccc;
  padding: 20px;
}

.download-menu .loading i,
.share-menu .loading i {
  font-size: 30px;
}

.share-menu ul {
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 101;
}

.share-menu li {
  margin: 12px 0;
}

.share-menu input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  border: none;
  border-radius: 2px;
  margin: 2px 0;
  font-size: inherit;
  color: #666;
}

.share-menu span {
  color: #eee;
}

.share-menu a {
  display: inline-block;
  border: 1px solid #ccc;
  background: #eee;
  padding: 2px;
  border-radius: 5px;
  margin-left: 4px;
  color: inherit;
  text-align: center;
  font-size: 18px;
  line-height: 22px;
  width: 22px;
}

.share-menu a i {
  width: 20px;
}


.cd-rotate90{
  -ms-transform: rotate(90deg); /* IE 9 */
  -webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
  transform: rotate(90deg);
}
