/**
  Dok-gamelib engine

  Description: Game engine for producing web games easily using JavaScript and WebGL
  Author: jacklehamster
  Sourcode: https://github.com/jacklehamster/dok-gamelib
  Year: 2020
 */


html, body {
    margin: 0;
    height: 100%;
    background-color: black;
    color: #aaaaaa;
    touch-action: none;
    overflow: hidden;
}

canvas {
  transition: width .2s ease-in, height .2s ease-in;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.crisp {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;				
}

.tab {
  background-color: #555555;
  padding:  3px 8px;
  margin: 1px;
  font-size: 8pt;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 8pt;
}

.tab-container {
  display: flex;
  flex-direction: row;
}

.tab:hover {
  color: #FFFFCC;
}

.tab.selected {
  cursor: default;
  background-color: #cccccc;
  color: #000000;
}

.panel {
  transition: opacity 0.2s linear, transform .3s ease-in-out;
}

.panel.shifted {
  transform: perspective(1000px) translate3d(-350px, 0, -300px) rotate3d(0, 1, 0, 90deg);
}

.panel.split {
  transform: perspective(1000px) translate3d(-240px, -40px, -340px) rotate3d(0, 1, 0, 60deg);
}

.panel.paused {
  opacity: .5;
}

.editor-container {
  overflow-x: visible;
  overflow-y: auto;
  width: 620px;
  height: 400px;
}

.panel-button {
  cursor: pointer;
  color: #63809D;
  font-size: 9pt;
  white-space: nowrap;
  display: inline-flex;
  align-items: flex-end;
  margin-left: 6px;
}

.panel-button:hover {
  color: #FFFFFF;
}

.source-code {
  font-family: "Courier New", monospace;
  font-size: 8pt;
  color: white;
  background-color: black;
  white-space: pre;
  border: 1px solid #ccc;
  margin: 2px;
  padding: 3px;
  overflow-x: auto;
}

.editor {
  visibility: hidden;
  opacity: 0;  
  margin-top: 100px;  
  position: absolute;
  transform: perspective(1000px) translate3d(800px, 0, 300px) rotate3d(0, 1, 0, -90deg);
  height: 100%;
  transition: visibility 0.5s, opacity 0.5s linear, transform .3s ease-in-out;
}

.editor.shifted {
  visibility: visible;
  opacity: 1;
  transform: perspective(1000px) translate3d(110px, -50px, 0) rotate3d(0, 1, 0, 0);
}

.editor.split {
  visibility: visible;
  opacity: 1;
  transform: perspective(1000px) translate3d(190px, -96px, -200px) rotate3d(0, 1, 0, -45deg);  
}

.hidden {
  display: none;
}

.unselectable {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
