.gcon {
  height: 320px;
  width: 320px;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                        supported by Chrome, Edge, Opera and Firefox */
}

.gccon {
  /* box-shadow: 0 0 2px 0;*/
  z-index: 200;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                        supported by Chrome, Edge, Opera and Firefox */
}

.gwrap {
  position: relative;
}

.promo-shade {
  z-index: 10;
  width: 320px;
  height: 320px;
  position: absolute;
  background-color: rgba(50, 50, 50, 0.6);
}

.promo-shade.hidden {
  display: none;
}

.promo {
  z-index: 11;
  position: absolute;
}

.promo.fa {
  padding-left: 0;
}

.promo.fb {
  padding-left: 80px;
}

.promo.fc {
  padding-left: 160px;
}

.promo.fd {
  padding-left: 240px;
}

.promo.hidden {
  display: none;
}

.promo piece {
  display: block;
  position: relative;
  width: 74px;
  height: 74px;
  background-color: #b7b7a3;
  background-size: 74px;
  background-position: center;
  -webkit-transition: all 200ms ease-in-out;
  -ms-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
  box-sizing: border-box;
  border: 2px solid black;
  margin: 3px 4px 6px 3px;
}

.promo piece:hover {
  background-color: #a5b0b8;
  background-size: 80px;
  -webkit-transition: all 200ms ease-in-out;
  -ms-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}

.og-wrap {
  width: 320px;
  height: 320px;
  position: absolute;
  display: block;
}

og-helper {
  position: absolute;
  width: 12.5%;
  padding-bottom: 12.5%;
  display: table; /** hack: round to full pixel size in chrome */
  bottom: 0;
}

og-container {
  position: absolute;
  width: 800%;
  height: 800%;
  display: block;
  bottom: 0;
}

og-board {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  line-height: 0;
  background-size: cover;
  cursor: pointer;
}

og-board square {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 25%;
  pointer-events: none;
}

og-board square.move-dest {
  pointer-events: auto;
}

og-board square.last-move {
  will-change: transform;
}

.og-wrap piece {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 25%;
  background-size: cover;
  z-index: 2;
  will-change: transform;
  pointer-events: none;
}

og-board piece.dragging {
  cursor: move;
  z-index: 10;
}

piece.anim {
  z-index: 8;
}

piece.fading {
  z-index: 1;
  opacity: 0.5;
}

.og-wrap piece.ghost {
  opacity: 0.3;
}

.og-wrap piece svg {
  overflow: hidden;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

.og-wrap piece svg image {
  opacity: 0.5;
}

.og-wrap .og-shapes, .og-wrap .og-custom-svgs {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.og-wrap .og-shapes {
  opacity: 0.6;
  z-index: 2;
}

.og-wrap .og-custom-svgs {
  /* over piece.anim = 8, but under piece.dragging = 10 */
  z-index: 9;
}

.og-wrap coords {
  position: absolute;
  display: flex;
  pointer-events: none;
  opacity: 0.8;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.og-wrap coords.ranks {
  left: 0;
  top: -30px;
  flex-flow: column-reverse;
  height: 100%;
  width: 12px;
}

.og-wrap coords.ranks.black {
  flex-flow: column;
}

.og-wrap coords.files {
  bottom: 0;
  left: 33px;
  flex-flow: row;
  width: 100%;
  height: 16px;
  text-transform: uppercase;
  text-align: center;
}

.og-wrap coords.files.black {
  flex-flow: row-reverse;
}

.og-wrap coords coord {
  flex: 1 1 auto;
}

.og-wrap coords.ranks coord {
  transform: translateY(39%);
}
