@import './ruler-layer.css';
@import './selector-layer.css';
@import './snapline-layer.css';
@import './align-layer.css';
@import './toolbar.css';

:root {
    --g-playground-icon-origin: url('./origin.svg');
    --g-playground-icon-rotate: url('./rotate.svg');
    --g-playground-select: var(--g-selection-background);
    --g-playground-hover: var(--g-selection-background);
    --g-playground-line: var(--g-selection-background);
    --g-playground-blur: #999;
    --g-playground-ruler-select: #3794ff;
    --g-playground-selectBox-outline: var(--g-selection-background);
    --g-playground-selectBox-background: rgba(84, 34, 232, 0.2);
    --g-playground-select-hover-background: rgba(84, 34, 232, 0.1);
    --g-playground-select-control-size: 12px;
}

.gedit-playground-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    color: var(--g-foreground);
    background-color: var(--g-foreground);
    margin-right: 4px;
    vertical-align: center;
    opacity: 0.7;
    background-repeat: no-repeat;
    transform: scale(0.8, 0.8);
}
.gedit-playground-origin-icon {
    -webkit-mask: var(--g-playground-icon-origin);
    mask: var(--g-playground-icon-origin);
}
.gedit-playground {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 10;
    overflow: hidden;
    user-select: none;
    outline: none;
    box-sizing: border-box;
    color: white;
    background-color: var(--g-editor-background);
}

.gedit-playground * {
    box-sizing: border-box;
}

.gedit-playground-loading {
  position: absolute;
  color: white;
  text-shadow: 0 0 4px #000;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 120px;
  margin-left: -50px;
  margin-top: -60px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s;
  flex-direction: column;;
  text-align: center;
  opacity: 0.8
}
.gedit-playground-loading:before {
  content: '';
  display: block;
  width: 100px;
  height: 100px;
  background-image: url('https://mdn.alipayobjects.com/mrch_cogame/afts/img/A*PCvHRbezH1UAAAAAAAAAAAAADoV3AQ/original');
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.gedit-hidden {
    display: none;
}

.gedit-playground-pipeline {
    position:absolute;
    overflow: visible;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}
.gedit-playground-layer {
    position: absolute;
    overflow: visible;
}

