@use "../abstracts/variables" as *;
@use "../abstracts/mixins" as *;

section,
.section {
  padding: 4px;
  outline: 1px solid var(--border-color);
  outline-offset: -1px;
  border-radius: #{$border-radius-large};
  background: var(--background-color);
  margin: 4px 0;
}

.scene-container {
  width: calc(100% - (320px + 270px + 90px));
  height: calc(100% - (250px));
  position: absolute;
  top: 50%;
  left: calc(270px + 45px);
  overflow: hidden;
  z-index: 1;
  transform: translate(0, -50%);
  transition: all 0.2s;
  box-shadow: $box-shadow-medium;
  background: var(--background-color-solid);
  canvas {
    outline: none;
    border: none;
  }
}

.tooltip {
  position: absolute;
  top: calc(-100% - 8px);
  background: var(--background-color-solid);
  padding: 4px 10px;
  border-radius: #{$border-radius-medium};
  color: var(--text-color);
  pointer-events: none;
  user-select: none;
  transition: all 0.3s;
  opacity: 0;
  text-transform: capitalize;
  white-space: nowrap;
  &::after {
    content: "";
    position: absolute;
    height: 6px;
    width: 6px;
    background: var(--background-color-solid);
    z-index: -1;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%) rotate(45deg);
  }
}
