html {
  background-color: #444;
}
html, body, body>.sample, #demo-container {
  height: 100%;
}

#demo-container {
  overflow: hidden;
}

#info-description {
  display: none;
  position: absolute;
  z-index: 10;
  bottom: 20px;
  left: 20px;
  right: 60px;
  max-width: 400px;
  color: #fff;
  cursor: grab;
  transition: 0.3s;
  opacity: 0.7;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  text-shadow: black 0.1em 0.1em 0.1em, black 0em 0em 0.2em;
}

#info-description:hover {
  opacity: 1;
}

#info-tab {
  display: none;
  z-index: 9;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateX(100%);
  transition: 0.8s;
  margin-top: -150px;
  width: 350px;
  padding: 20px;
  border-radius: 5px;
  background-color:#fff;
  opacity: 0.5;
  max-width: 100vw;
}

#info-tab img{
width: 100%;
}

#info-tab::after {
  /* display: none; */
  position: absolute;
  content: 'i';
  font-weight: bold;
  margin-left: -20px;
  margin-top: -20px;
  line-height: 40px;
  text-indent: 10px;
  left: 0;
  top: 50%;
  height: 40px;
  width: 40px;
  border-radius: 50% 50%;
  background-color: #fff;
  font-size: 18px;
  color: black;
}

#info-tab:hover {
  transform: translateX(0px);
}

#view-sidebar {
  /* display: flex; */
  display: none;
  z-index: 9;
  flex-direction: column;
  align-content: flex-start;
  position: absolute;
  left: 0;
  width: 100px;
  height: 100%;
  /* background: linear-gradient(to bottom, rgba(255, 255, 255,.3) 50%, rgba(255, 255, 255,.0)); */
  background-color: rgba(255, 255, 255,.3);
  box-shadow: 5px 0px 5px rgba(0, 0, 0, 0.6);
  padding: 0px;
  padding-top: 30px;
  overflow: auto;
}

@media screen and (max-width: 480px) {
  #view-sidebar {
    flex-direction: row;
    top: 0;
    width: 100%;
    height: 100px;
    padding-top: 0px;
    padding-left: 30px;
  }
}

#view-sidebar .sidebar-item {
  /* width: 60px; */
  transition: 0.3s;
  padding: 10px 20px 10px 20px;
  text-align: center;
}

@media screen and (max-width: 480px) {
  #view-sidebar .sidebar-item {
    align-self: flex-start;
    padding: 20px;
    min-width: 100px;
    max-width: 100px;
  }
}

#view-sidebar .sidebar-item:hover, #view-sidebar .sidebar-item.active {
  background-color: rgba(255, 255, 255,.3);
}

#view-sidebar .sidebar-item:hover {
  cursor: pointer;
}

#view-sidebar .sidebar-item img {
  width: 100%;
}

#view-sidebar .sidebar-item .grid-item {
  width: 40px;
  height: 40px;
  margin: 10px;
  display: flex;
  align-items: center;
}

#view-sidebar .sidebar-item .grid-item.color {
  border: 1px solid #fff;
  border-radius: 50%;
}


#resize-tool {
  display: none;
  position: absolute;
  transform: rotate(270deg) translateY(-50%);
  z-index: 8;
  top: 50%;
  right: -50px;
  opacity: 0.3;
}


@media screen and (max-width: 480px) {
  #resize-tool {
    display: none !important;
    overflow-y: hidden;
  }
}

#resize-tool:hover {
  opacity: 0.6;
}

#resize-tool input {
  -webkit-appearance: none;
  padding: 0px;
  width: 200px;
  height: 5px;
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0px 2px 5px black;
  /* overflow: hidden; */
}

#resize-tool input::-webkit-slider-thumb {
  -webkit-appearance: none; 
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50% 50%;
  box-shadow: 0px 2px 5px black;
  /* box-shadow: -100vw 0 0 100vw blue; */
}

.view-tag {
  position: absolute;
  pointer-events: none;
}

.view-tag img {
  vertical-align: top;
}

.view-tag.only-view-dir {
  opacity: 0;
  transition: 1s;
}


.view-tag.top {
  transform: translateY(-100%);
}

.view-tag.left {
  transform: translateX(-100%);
}


.view-tag span {
  position: absolute;
  color: #fff;
  width: 300px;
}


.view-tag.bottom span.left {
  bottom: 12px;
  right: 20px;
  transform: translateY(100%);
  text-align: right;
}

.view-tag.bottom span.right {
  bottom: 12px;
  left: 20px;
  text-align: left;
  transform: translateY(100%);
}

.view-tag.bottom span.middle {
  bottom: -10px;
  text-align: center;
  transform: translate(-50%, 100%);
}

.view-tag.top span.left {
  top: 20px;
  right: 20px;
  transform: translateY(-100%);
  text-align: right;
}

.view-tag.top span.right {
  top: 20px;
  left: 20px;
  text-align: left;
  transform: translateY(-100%);
}

.view-tag.top span.middle {
  top: -10px;
  text-align: center;
  transform: translate(-50%, -100%);
}

.view-tag.left span.left {
  text-align: right;
  left: 0;
  transform: translate(-100%, -10px);
  margin-left: -20px;
}

.view-tag.right span.right {
  text-align: left;
  right: 0;
  transform: translate(100%, -10px);
  margin-right: -20px
}



.view-tag .order {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.view-tag.top .order {
  top: 0;
  margin-left: -10px;
  margin-top: -20px;
}

.view-tag.bottom .order {
  bottom: 0;
  margin-left: -10px;
  margin-bottom: -12px;
}

.view-tag.left .order {
  left: 0;
  margin-top: -10px;
  margin-left: -10px
}

.view-tag.right .order {
  right: 0;
  margin-top: -10px;
  margin-right: -10px
}


#progress-bar-container {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #444;
  transition: 0.8s;
  opacity: 1;
  pointer-events: none;
}
#progress-bar-background {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -100px;
  width: 200px;
  border-radius: 10px 10px;
  overflow: hidden;
  background-color: black;
}

#progress-bar {
  background: linear-gradient(to left, #aaa 50%, #444 100%);
  height: 10px;
  width: 2px;
  transition: 0.8s;
  transform-origin: left;
  transform: scaleX(1);
}

.view-tag[data-model-index] {
  display: none;
}

.view-tag[data-model-index="-1"] {
  display: block !important;
}

#model-viewer[data-model-index="0"] .view-tag[data-model-index="0"] {
  display: block;
}
#model-viewer[data-model-index="1"] .view-tag[data-model-index="1"] {
  display: block;
}
#model-viewer[data-model-index="2"] .view-tag[data-model-index="2"] {
  display: block;
}
#model-viewer[data-model-index="3"] .view-tag[data-model-index="3"] {
  display: block;
}