html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  user-select: none;
}
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.editor {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
}
.preview {
  flex: 1;
  overflow: hidden;
  background-color: #f0f0f0;
  padding: 10px;
  border: 1px dotted black;
  position: relative;
}
.overlay-screen {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 0;
  bottom: 0;
  /* pointer-events: none; */
  width: 100%;
  height: 100%;
  z-index: 100;
}
.side {
  min-width: 300px;
  background-color: beige;
}
.tab-headers {
  display: flex;
  flex-direction: flex;
  justify-content: space-between;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  gap: 5px;
}
.tab-header {
  display: inline-block;
  flex: 1;
  text-align: center;
  padding: 5px;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 5px;
}
.active {
  background-color: #8f8;
}
.tab-bodies {
  width: 100%;
  height: 100%;
}
.tab-body {
  display: none;
  width: 100%;
  height: 100%;
}
.active {
  display: block;
}
.elements {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
.selected {
  background-color: #8f8;
}
.pos {
  padding: 3px;
  border: 1px dotted blue;
  margin: 10px;
}
.resize-drag {
  border-radius: 8px;
  touch-action: none;
  box-sizing: border-box;
}
