/* 
    SCN Polygon Viewer stylesheet
    Author     : Aleksandar
*/

.complex_wrapper,
.buildings_wrapper {
  position: relative;
  min-width: 100vw;
  min-height: 100vh;
  height: 100vh;
  display: none;
  transition: all 0.5s ease 0s;
  transform-origin: 0 0;
}

.complex_wrapper.active,
.buildings_wrapper.active {
  display: block;
}

.buildings_wrapper:before {
  background-size: cover;
  -webkit-filter: blur(5px);
  -moz-filter: blur(5px);
  -o-filter: blur(5px);
  -ms-filter: blur(5px);
  filter: blur(5px);
}

.view_wrapper {
  position: absolute;
  min-height: 100%;
  height: 100%;
  width: auto;
  left: 0;
  top: 0;
  opacity: 0;
  display: block;
  transform-origin: 0px 0px;
  transition: all 1.5s ease 0s;
  user-select: none;
  z-index: 10;
  line-height: 0;
  /* overflow: hidden; */
  overflow: auto;
}

.active .view_wrapper.active {
  opacity: 1;
  transition: opacity 1.5s ease 0s;
  overflow: auto;
}

.view_wrapper.active {
  min-height: 100%;
  height: 100%;
  width: auto;
  opacity: 1;
  left: 0;
  justify-items: center;
  z-index: 12;
  overflow: hidden;
}

.building_view_img {
  position: relative;
  z-index: 5;
  margin: 0;
  height: 100%;
  vertical-align: middle;
  transform-origin: 0px 0px;
}

.units_polygon_map {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  user-select: none;
  transform-origin: 0px 0px;
}

.units_polygon_map .unit {
  transform-origin: 0px 0px;
  stroke: #fff;
  vector-effect: non-scaling-stroke;
  stroke-width: 1px;
  fill: rgba(255, 255, 255, 0.3);
  cursor: default;
  transition: all 0.4s ease 0s;
  outline: none;
  opacity: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.units_polygon_map .unit.active {
  cursor: pointer;
  opacity: 1;
}

.units_polygon_map .unit:focus {
  outline: none;
}

.units_polygon_map .unit:hover {
  z-index: 10;
  transform: translate3d(0px, -1px, 0);
}

.units_polygon_map .unit.status_1 {
  /* stroke: #229822; */
  fill: rgba(122, 255, 122, 0.3);
}

.units_polygon_map .unit.status_1:hover {
  stroke: #1ace1a;
  fill: rgba(0, 155, 0, 0.6);
}

.units_polygon_map .unit.status_2 {
  /* stroke: #229822; */
  fill: rgba(255, 0, 0, 0.3)
}

.units_polygon_map .unit.status_2:hover {
  stroke: darkred;
  fill: rgba(204, 0, 0, 0.3);
}

.units_polygon_map .unit.status_3 {
  /* stroke: #969644; */
  fill: rgba(0, 102, 255, 0.3);
}

.units_polygon_map .unit.status_3:hover {
  stroke: #0000cc;
  fill: rgba(0, 0, 255, 0.3);
}

.units_polygon_map .unit.status_4 {
  /* stroke: #7b2626; */
  fill: rgba(204, 0, 204, 0.3);
}

.units_polygon_map .unit.status_4:hover {
  stroke: #9900ff;
  fill: rgba(153, 0, 204, 0.3);
}

.units_polygon_map .unit.status_5 {
  /* stroke: #888; */
  fill: rgba(255, 153, 0, 0.3);
}

.units_polygon_map .unit.status_5:hover {
  stroke: #996600;
  fill: rgba(204, 153, 0, 0.3);
}
