/* Font faces */
@font-face {
  font-family: 'OffBit';
  src: url('../fonts/OffBit-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'OffBit';
  src: url('../fonts/OffBit-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'OffBit-101';
  src: url('../fonts/OffBit-101.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'OffBit-101';
  src: url('../fonts/OffBit-101Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'OffBit-Dot';
  src: url('../fonts/OffBit-Dot.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'OffBit-Dot';
  src: url('../fonts/OffBit-DotBold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'OffBit-Bar';
  src: url('../fonts/OffBit-Bar.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'OffBit-Bar';
  src: url('../fonts/OffBit-BarBold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'OPSPastPerfect';
  src: url('../fonts/OPSPastPerfect-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

/* Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  color: #fff;
  font-family: 'OffBit', monospace;
}

/* Layout */
#app {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}

#viewport-3d,
#viewport-2d,
#viewport-polar {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#viewport-3d {
  background: #111;
}

#viewport-2d {
  background: #1a1a1a;
}

#viewport-polar {
  background: #000;
}

#divider,
#divider-2 {
  width: 6px;
  cursor: col-resize;
  background: #333;
  flex-shrink: 0;
}

#divider:hover,
#divider-2:hover {
  background: #555;
}

#canvas-2d,
#canvas-polar {
  width: 100%;
  height: 100%;
  display: block;
}

/* Drag-and-drop overlay */
body.drag-over::after {
  content: 'Drop 3D model or media file';
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.85);
  border: 2px dashed #555;
  color: #fff;
  font-family: 'OffBit', monospace;
  font-size: 1.5rem;
  z-index: 9999;
  pointer-events: none;
}
