.pp-wrapper {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: rgba(22, 22, 22, 0.8);
  color: #cccccc;
  border-radius: 3px;
  margin: 0;
  padding: 15px;
  width: 300px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.pp-wrapper .pp-title {
  margin: 0;
  padding: 0 0 10px 0;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.pp-wrapper .pp-desc {
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.pp-wrapper .pp-desc a {
  color: #4682b4;
}

.pp-wrapper.width-max{
  width: 100%;  /* IE fail over */
  width: -moz-max-content;
  width: -webkit-max-content;
  width: -o-max-content;
  width: max-content;
}

.pp-wrapper iframe, .pp-wrapper embed {
  max-width: 100%;
  display: block;
  margin: auto;
}

.pp-wrapper .pp-desc p {
  margin: 0;
}

.pp-wrapper .video-wrapper {
  position: relative;
}

.pp-wrapper .video-wrapper .video-clickable {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

.pp-popup-background {
  position: fixed;
  width: 100%;
  height: 100%;
  justify-content: center;
  text-align: center;
  align-items: center;
  z-index: 10000;
  top: 0px;
  left: 0px;
  display: flex;
  background-color: rgba(0, 0, 0, 0.6);
}

.pp-popup-wrapper {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 30px);
  max-height: calc(100% - 30px);
  padding: 0;
  background-color: black;
  border: 6px solid rgba(255, 255, 255, 0.8);
}

.pp-popup-wrapper .close-btn {
  position: absolute;
  top: -12px;
  right: -12px;
}

.pp-popup-wrapper .close-btn .cupix-icons {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 3px;
  cursor: pointer;
  padding: 0 5px;
}

.pp-popup-wrapper iframe {
  display: table;
  background-color: #e2e2e2;
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  background-image: -webkit-linear-gradient(45deg, #c8c8c8 25%, transparent 25%, transparent 75%, #c8c8c8 75%, #c8c8c8), -webkit-linear-gradient(45deg, #c8c8c8 25%, transparent 25%, transparent 75%, #c8c8c8 75%, #c8c8c8);
  background-image: -moz-linear-gradient(45deg, #c8c8c8 25%, transparent 25%, transparent 75%, #c8c8c8 75%, #c8c8c8), -moz-linear-gradient(45deg, #c8c8c8 25%, transparent 25%, transparent 75%, #c8c8c8 75%, #c8c8c8);
  background-image: linear-gradient(45deg, #c8c8c8 25%, transparent 25%, transparent 75%, #c8c8c8 75%, #c8c8c8), linear-gradient(45deg, #c8c8c8 25%, transparent 25%, transparent 75%, #c8c8c8 75%, #c8c8c8);
}

.pp-div-wrapper.top {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
}

.pp-div-wrapper.bottom {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
}

.pp-div-wrapper.left {
  position: absolute;
  left: 30px;
  transform: translateY(-50%);
}

.pp-div-wrapper.right {
  position: absolute;
  right: 30px;
  transform: translateY(-50%);
}

.triangle {
  width: 0;
  height: 0;
  border-style: solid;
  opacity: 0.8;
  float: none !important;
  position: relative;
}

.triangle.top {
  position: absolute;
  bottom: 100%;
  left: 50%;
  border-width: 0 15px 30px 0;
  border-color: transparent transparent #161616 transparent;
}

.triangle.bottom {
  position: absolute;
  top: 100%;
  left: 50%;
  border-width: 30px 15px 0 0;
  border-color: #161616 transparent transparent transparent;
}

.triangle.left {
  position: absolute;
  top: calc(50% - 15px);
  right: 100%;
  border-width: 15px 30px 0 0;
  border-color: transparent #161616 transparent transparent;
}

.triangle.left-top {
  border-width: 0 30px 15px 0;
  border-color: transparent #161616 transparent transparent;
}

.triangle.left-bottom {
  border-width: 0 0 15px 30px;
  border-color: transparent transparent #161616 transparent;
}

.triangle.right {
  position: absolute;
  top: calc(50% - 15px);
  left: 100%;
  border-width: 15px 0 0 30px;
  border-color: transparent transparent transparent #161616;
}

.triangle.right-top {
  border-width: 15px 30px 0 0;
  border-color: #161616 transparent transparent transparent;
}

.triangle.right-bottom {
  border-width: 15px 0 0 30px;
  border-color: transparent transparent transparent #161616;
}

.hud-wrapper {
  background-color: rgba(255, 255, 255, 0.5);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
  color: #383838;
  border-radius: 3px;
  margin: 0;
  padding: 0 4px;
  font-size: 12px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.pp-event-through {
  pointer-events: none;
}

.viewer-wrapper .pp-img {
  cursor: zoom-in;
}

.pp-img {
  max-width: 100%;
  display: block;
  box-shadow: 0px 0 4px 0 rgba(0, 0, 0, 0.45);
  margin: 4px auto;
}

.popup-center-position {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.popup-block-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  justify-content: center;
  text-align: center;
  align-items: center;
  z-index: 100001;
  top: 0px;
  left: 0px;
  display: flex;
  background-color: rgba(0, 0, 0, 0.6);
}

#popupPreview {
  max-width: calc(100% - 60px);
  max-height: calc(100% - 60px);
  position: fixed !important;
  padding: 0;
  background-color: black;
  border: 6px solid rgba(255, 255, 255, 0.8);
  transition: opacity ease 0.5s;
}

#popupPreview img {
  display: flex;
}

#popupPreviewFrame {
  overflow: hidden;
  min-width: 150px;
  min-height: 150px;
  max-width: 100%;
  max-height: 100%;
}

#popupPreviewClose {
  position: absolute;
  top: 5px;
  right: 5px;
}

#popupPreviewZoom {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.engine-center-align {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.engine-ui-wrapper {
  display: flex;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.engine-icon-button {
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
  user-select: none;
  outline: none;
  border: none;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: baseline;
  font-size: 14px;
  line-height: 24px;
  color: currentColor;
  text-align: center;
  background: transparent;
  min-width: 0;
  width: auto;
  height: 33px;
  padding: 2px;
  margin: 0;
  border-radius: 4px;
}

.engine-icon-button>* {
  vertical-align: middle;
}

.engine-icon-wrapper {
  text-shadow: 0 0 0.1em #333, 0 0 0.1em #333
}

.engine-white2 {
  color: #e2e2e2;
}

.cupix-icons.engine-white2:hover {
  color: white;
}

table.dim {
  color: rgba(0, 0, 0, 0.8);
  border-collapse: collapse;
}

table.dim td {
  padding: 3px;
}

table.dim .value.xc {
  color: #C62828;
}

table.dim .value.yc {
  color: #1B5E20;
}

table.dim .value.zc {
  color: #01579B;
}

.scaleIn {
  visibility: visible;
  opacity: 1;
  -webkit-animation: scaleIn 0.3s ease;
  animation: scaleIn 0.3s ease;
}

.scaleOut {
  visibility: hidden;
  opacity: 0;
  transform: scale(0%);
  transition: visibility 0s 0.3s, opacity 0.3s, transform 0.3s ease;
}

.selectBox {
  position: absolute;
  z-index: 1010;
  background-color: #c8c8c8;
  opacity: 0.2;
  border-width: 2px;
  border-color: #3c3c3c;
  border-style: dashed;
}

@keyframes scaleIn {
  0% {
    visibility: visible;
    transform: scale(0);
  }
  100% {
    transform: scale(100%);
  }
}

@-moz-keyframes scaleIn {
  0% {
    visibility: visible;
    transform: scale(0);
  }
  100% {
    transform: scale(100%);
  }
}

@-webkit-keyframes scaleIn {
  0% {
    visibility: visible;
    transform: scale(0);
  }
  100% {
    transform: scale(100%);
  }
}

@-ms-keyframes scaleIn {
  0% {
    visibility: visible;
    transform: scale(0);
  }
  100% {
    transform: scale(100%);
  }
}

@-o-keyframes scaleIn {
  0% {
    visibility: visible;
    transform: scale(0);
  }
  100% {
    transform: scale(100%);
  }
}

@keyframes scaleOut {
  0% {
    transform: scale(100%);
  }
  100% {
    visibility: hidden;
    transform: scale(0);
  }
}

@-moz-keyframes scaleOut {
  0% {
    transform: scale(100%);
  }
  100% {
    visibility: hidden;
    transform: scale(0);
  }
}

@-webkit-keyframes scaleOut {
  0% {
    transform: scale(100%);
  }
  100% {
    visibility: hidden;
    transform: scale(0);
  }
}

@-ms-keyframes scaleOut {
  0% {
    transform: scale(100%);
  }
  100% {
    visibility: hidden;
    transform: scale(0);
  }
}

@-o-keyframes scaleOut {
  0% {
    transform: scale(100%);
  }
  100% {
    visibility: hidden;
    transform: scale(0);
  }
}