#dialogCadViewer {
  overflow: hidden;
}

#dialogCadViewer md-toolbar {
  max-width: 100vw;
  overflow-x: auto;
}

#dialogCadViewer md-toolbar .md-menu {
  margin: 0;
  padding: 0;
  max-width: 40px;
}

@media (orientation: portrait) {
  #dialogCadViewer md-slider {
    margin-right: 14px;
  }
}

@media (max-width:780px) and (orientation: landscape) {
  #dialogCadViewer .md-icon-button {
    margin-right: 5px;
  }
}

@media (max-width: 780px) {
  .dddwhiteboardHeader, .dddwhiteboard-text-input-header {
    display: none;
  }
  #dialogCadViewer .md-toolbar-tools, #dialogCadViewer .md-toolbar-tools .md-toolbar-tools, #dialogCadViewer .md-toolbar-tools .md-toolbar-tools .md-toolbar-tools {
    padding: 0;
  }
  #dialogCadViewer .md-icon-button {
    margin: 0;
    padding: 0;
  }
  #dialogCadViewer .closeButton {
    margin-right: 0;
  }
}

@media (max-width: 400px) {
  #dialogCadViewer .md-toolbar-tools .md-icon-button:not(.closeButton) {
    width: 30px;
    height: 30px;
  }
  .placeholderWidth {
    width: 60px !important;
  }
}

@media (max-width: 343px) {
  #dialogCadViewer .md-subheader-content .md-icon-button {
    width: 30px;
    height: 30px;
  }
  .placeholderWidth {
    width: 60px;
  }
}

.ddd-subtool .md-subheader-inner {
  padding: 3px;
  display: flex;
  color: var(--font-color);
  background-color: transparent;
}

.ddd-subtool .md-icon-button {
  margin: 0 !important;
}

.subtoolOpen {
  border-bottom: 2px solid;
  border-radius: 2px !important;
}

.dddSlider {
  max-width: 400px;
}

.dddSlider.md-slider-content {
  margin-top: 5px;
}

.dddFlexContainer .md-subheader-content {
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex: none !important;
  max-height: 36px;
}

.dddFlexContainer {
  display: flex;
  justify-content: space-around;
  background-color: rgba(0, 0, 0, 0);
}

.dddIconSubheader {
  color: white;
}

.dddWhiteboard-close {
  width: fit-content;
  flex-direction: row;
  padding: 0;
}

.dddPartFlex {
  align-content: center;
  flex: 1;
  display: flex;
  align-items: center;
}

.dddSubDivider {
  height: 50%;
  border-left: 1px solid;
}

.dddDivider {
  height: 50%;
  border-left: 1px solid;
  margin-right: 2px;
  min-width: 2px;
}

.dddDialog {
  z-index: 99;
}

.dddFooter {
  z-index: 99;
  border-top-style: none;
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0 0 80px 0;
}

.dddSection {
  z-index: 99;
  display: flex !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  background-color: rgba(0, 0, 0, 0.3);
}

.animate-show-hide.ng-hide {
  opacity: 0;
}

.animate-show-hide.ng-hide-add, .animate-show-hide.ng-hide-remove {
  transition: all linear 0.1s;
}

.placeholderWidth {
  width: 80px;
}

@media (max-width:361px) and (orientation: portrait) {
  #dialogCadViewer .md-icon-button {
    margin-right: 0;
  }
}

@media (max-width:359px) and (orientation: portrait) {
  .placeholderAnnotations {
    display: none;
  }
  .hideSettings {
    display: none;
  }
}

@media (max-width:685px) and (orientation: landscape) {
  .placeholderIcon {
    display: none;
  }
}

@media (max-width:646px) and (orientation: landscape) {
  .placeholderIcon {
    display: none;
  }
  .ddd-subtool .md-icon-button {
    width: 30px;
    height: 30px;
    min-height: 30px;
  }
}

#dddContainer {
  padding: 0;
  margin: 0;
  position: relative;
  background: #777;
  overflow: hidden;
  overscroll-behavior: none;
}

#dddW-webglContainer {
  position: absolute;
  z-index: 98;
  overflow: hidden;
  overscroll-behavior: none;
}

#dddW-info {
  position: absolute;
  top: 0;
  left: 50%;
  color: #ffffff;
  padding: 5px;
  font-family: Monospace;
  font-size: 13px;
  text-align: center;
  z-index: 99;
}

#dddW-buttons {
  position: absolute;
  right: 5px;
  font-family: Monospace;
  text-align: center;
  z-index: 99;
  transform: translate(0, 50%);
}

#dddW-slider {
  position: absolute;
  display: inline-block;
  left: 40%;
  bottom: 0;
  width: auto;
  color: #ffffff;
  padding: 5px;
  font-family: Monospace;
  font-size: 13px;
  text-align: center;
  z-index: 99;
  box-sizing: border-box;
}

#dddW-gamepad {
  position: absolute;
  display: inline;
  left: 75px;
  bottom: 75px;
  text-align: center;
}

#dddW-tree {
  display: inline-block;
  left: 0;
  text-align: left;
  z-index: 100;
  resize: both;
  height: 80%;
  width: 30%;
  max-height: 85%;
  min-width: 90px;
  min-height: 30px;
  max-width: max-content;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.1);
}

#dddW-tree::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

/* Track */

#dddW-tree::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */

#dddW-tree::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */

#dddW-tree::-webkit-scrollbar-thumb:hover {
  background: #555;
}

#dddW-errorText {
  position: absolute;
  width: 100vw;
  top: 50%;
  font-size: 30px;
  text-align: center;
  font-family: Monospace;
  color: #fff;
  pointer-events: none;
  z-index: 99;
}

#dddW-loadingText {
  position: absolute;
  width: 100vw;
  top: 50%;
  font-size: 30px;
  text-align: center;
  font-family: Monospace;
  color: #fff;
  pointer-events: none;
  z-index: 99;
}

#dddW-waitingText {
  position: absolute;
  width: 100vw;
  top: 25%;
  font-size: 30px;
  text-align: center;
  font-family: Monospace;
  color: #fff;
  pointer-events: none;
  z-index: 99;
}

#dddW-white {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  overscroll-behavior: none;
  position: absolute;
}

#dddW-coopView-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  pointer-events: none;
  overflow: hidden;
  z-index: 98;
}

#dddW-input-text {
  position: absolute;
  max-width: 592px;
  min-width: 48px;
  z-index: 99;
  display: none;
  font-size: 14pt;
  background-color: white;
  resize: both;
  overflow: auto;
  white-space: pre-wrap;
  padding: 4px 8px;
  margin: auto;
  font-family: Arial;
  border-radius: var(--default-radius);
  border: 1px solid white;
  min-height: fit-content;
  outline-color: rgba(var(--primary-color));
}

#dddW-input-check {
  width: 32px;
  height: 32px;
  position: absolute;
  z-index: 99;
  display: none;
}

#dddW-selection-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  pointer-events: none;
  overflow: hidden;
  z-index: 98;
}

.dddW-pointerCanvas {
  z-index: 99 !important;
  pointer-events: none !important;
  height: 100% !important;
}

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

.dddW-helpText-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 98;
  padding: 2px 5px;
  pointer-events: none;
}

#dddW-helpText {
  pointer-events: none;
}

#dddW-helpText-toggle {
  padding: 2px 5px;
  background: #ffffff33;
  pointer-events: auto;
  outline: none;
  cursor: pointer;
}

.dddwhiteboardHeader {
  min-width: fit-content;
  z-index: 81;
  white-space: nowrap;
}

.dddTitel {
  min-width: 120px;
}

.dddTitelPlaceholer {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.dddPenWidthSmallest svg {
  width: 25%;
}

.dddPenWidthSmall svg {
  width: 35%;
}

.dddPenWidthMiddle svg {
  width: 50%;
}

.dddPenWidthBigger svg {
  width: 70%;
}

.dddPenWidthBiggest svg {
  width: 100%;
}

.pulsatingPointer {
  top: 0;
  left: 0;
  display: block;
  border-radius: 50%;
  position: absolute;
  opacity: 0;
  z-index: 97;
  pointer-events: none;
  width: 15vh;
  height: 15vh;
  background-color: #ff0000;
  animation: 1000ms pulseIn;
  -webkit-animation: 1000ms pulseIn;
  -moz-animation: 1000ms pulseIn;
  -o-animation: 1000ms pulseIn;
}

@keyframes pulseIn {
  0% {
    opacity: 1;
    transform: scale(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(1, 1);
  }
}

@-webkit-keyframes pulseIn {
  0% {
    opacity: 1;
    -webkit-transform: scale(0, 0);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1, 1);
  }
}

@-moz-keyframes pulseIn {
  0% {
    opacity: 1;
    -webkit-transform: scale(0, 0);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1, 1);
  }
}

@-o-keyframes pulseIn {
  0% {
    opacity: 1;
    -webkit-transform: scale(0, 0);
  }
  100% {
    opacity: 0;
    -webkit-transform: scale(1, 1);
  }
}