/* __V3D_TEMPLATE__ - template-based file; delete this line to prevent this file from being updated */

body {
  margin: 0px;
  overflow: hidden;
}

.v3d-container {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

.fullscreen-button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  background-size: 100% 100%;
  display: none;
  z-index: 1;
}

.fullscreen-open {
  background-image: url('media/fullscreen_open.svg');
}

.fullscreen-close {
  background-image: url('media/fullscreen_close.svg');
}

/* removes tap blinking on ios devices */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ------- custom styles -------- */

.none {
  display: none;
}
.cfg-container {
  margin-left: 20px;
  padding: 20px;
  position: absolute;
  top: 50%;
  left: 0px;
  transform: translateY(-50%);
  width: 250px;
  border-radius: 4px;
  border: 1px solid white;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(0, 0, 0, 0.4);
}
.cfg-container .title {
  text-align: center;
  color: white;
  padding-bottom: 10px;
  border-bottom: 1px solid white;
}
.prop-row {
  display: flex;
  margin-top: 20px;
}
.prop-row .prop_name {
  min-width: 180px;
  color: white;
}
.prop-row .prop_toggle {
  cursor: pointer;
  width: 40px;
}
.prop_toggle {
  position: relative;
}
.prop_toggle.off .rounded_l,
.prop_toggle.off .rounded_r {
  transform: translateX(-40px);
}
.prop_toggle .line {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: white;
}
.rounded-container {
  position: relative;
  z-index: 2;
}
.rounded-container .rounded_r,
.rounded-container .rounded_l {
  transition: all ease 0.4s;
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid white;
  background-color: white;
}
.rounded-container .rounded_l {
  top: -2px;
  right: -12px;
}
.rounded-container .rounded_r {
  top: 0px;
  right: -10px;
}
/* loading slyles */
#preload_container {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}

#preload_container > div {
  height: 80%;
  width: 100%;
  position: relative;
}

#preload_container > div > img {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
}
#preload_container > div > .loading-percent {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translate(-50%, 0%);
  font-size: 2em;
  font-weight: bold;
}

/* responsive */
@media screen and (orientation: portrait) {
  .cfg-container {
    margin: 0px 10px 0px 10px;
    bottom: 10px;
    left: 0px;
    right: 0px;
    transform: none;
    top: auto;
    width: auto;
    padding: 10px;
    transform: translate(0%, 10%) scale(0.7);
  }
  .cfg-container .row-container {
    display: flex;
    justify-content: space-around;
  }
  .prop-row {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 0;
    padding: 20px 0px;
  }
  .prop-row {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 0;
    padding: 20px 0px;
  }
  .prop-row .prop_name {
    margin-bottom: 20px;
    min-width: auto;
    text-align: center;
  }
  .prop-row .prop_toggle {
    height: 20px;
    margin-left: auto;
    margin-right: auto;
  }
  /*------- */
  .cfg-container {
    padding: 3px;
  }
  .cfg-container .group-props {
    display: flex;
    justify-content: space-around;
  }
  .group-props.bottom-props .prop-row {
    padding: 0px 0px 20px 0px;
  }
  #preload_container > div {
    height: 70%;
    width: 100%;
    position: relative;
  }
  #preload_container > div > img {
    object-fit: cover;
  }
}

/* Target landscape mode for devices with a minimum width of 769px */
@media screen and (max-height: 450px) and (orientation: landscape) {
  .cfg-container {
    transform: translate(-10%, -50%) scale(0.8);
  }
}

@media screen and (max-width: 856px) {
}

@media screen and (min-width: 320px) {
}

/* Small devices (tablets, 768px and up) */
@media screen and (min-width: 768px) {
}

/* Medium devices (desktops, 992px and up) */
@media screen and (min-width: 992px) {
}

/* Large devices (large desktops, 1200px and up) */
@media screen and (min-width: 1200px) {
}
