.loader-light {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0px;
  top: 0;
  left: 0;
  background-color: transparent;
  border: 4px dashed White;
  border-radius: 50%;
  font-size: 26px;
  font-weight: bold;
  color: White;
  scale: 0.95;
  & p {
    filter: invert(100%);
  }
}
.loader-dark {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  top: 0;
  left: 0;
  background-color: transparent;
  border: 4px dashed Black;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: Black;
  text-align: center;
  transform: scale(0.95);
}
.particles-lottie {
  position: absolute;
  left: 0;
  top: 0;
  filter: blur(8px);
}
@media screen and (max-width: 400px) {
  .card-3d-title {
    margin-top: 20px;
    text-align: center;
  }
  #webgl-3, #webgl-4  {
    max-width: 200px;
    max-height: 200px;
  }
  .object-3d {
    max-width: 200px;
    max-height: 200px;
  }
  .loader {
    max-width: 200px;
    max-height: 200px;
  }
  .particles-lottie {
    max-width: 200px;
    max-height: 200px;
  }
}

/*----Autorotate Toggle----*/
.auto-rotate {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  scale: 0.8;
  margin: 0px;
}
.auto-rotate input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
input:checked + .slider {
  background-color: #2196f3;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}
input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}

/*----3d Model Card----*/

.card-3d {
  border-radius: 15px;
}
.card-3d-dark {
  background-image: radial-gradient(#404040, black);
  border: 1px solid WhiteSmoke;
  outline: 8px solid black;
  & hr {
    width: 100%;
    border-color: Whitesmoke;
  }
  & .card-3d-body p {
    filter: invert(100%);
  }
  & .cube-lottie {
    filter: brightness(80%);
  }
  & #webgl-3 {
    filter: drop-shadow(0px 25px 25px Black);
  }
}
.card-3d-light {
  background-image: radial-gradient(White, Whitesmoke);
  border: 1px solid DimGrey;
  outline: 8px solid WhiteSmoke;
  & hr {
    width: 100%;
    border-color: Dimgrey;
  }
  & .card-3d-body {
    color: Black;
  }
  & .cube-lottie{
    filter: brightness(40%);
  }
  & #webgl-3 {
    filter: drop-shadow(0px 25px 25px Lightgrey);
  }
}
.card-3d-body {
  padding: 30px 15px 30px 15px;
}
.card-3d-title {
  font-size: 24px !important;
  font-weight: 600;
}
wa-spinner {
  --track-color: DimGrey;
  font-size: 3rem;
}
.responsive {
  width: 100% !important;
  height: 100% !important;
}
.webgl {
  cursor: grab;
  position: relative;
  z-index: 1;
}
.img-legend-item {
  background-color: none;
  border: 1px solid Black;
  border-radius: 40px;
  padding: 0px 15px 0px 0px;
  cursor: pointer;
  transition: scale 0.3s ease;
}
.img-legend-item:hover {
  scale: 1.08;
}
.object-3d {
  position: relative;
  width: 280px;
  height: 280px;
  padding: 0;
}
.footer-lottie {
  position: relative;
  display: inline-block;
  color: Whitesmoke;
  top: 12px;
  width: 35px;
  height: 35px;
}

/* Quick fix to make loader and model smaller on mobile so that there is space on the side for scrolling down */

@media screen and (max-width: 383px) {
  .legend-item {
    margin: 0 25%;
  }
  .card-3d-title {
    margin-top: 20px;
    text-align: center;
  }
  .object-3d {
    width: 180px !important;
    height: 180px !important;
  }
  .loader {
    width: 180px !important;
    height: 180px !important;
    top: -2px;
    left: 2px;
  }
}

/*---- Human Anatomy ----*/

.object-3d-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: radial-gradient(#393a3c, black);
  background-repeat: no-repeat;
  overflow: hidden;
}
.circle-loader {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: Whitesmoke;
}
#progress-ring {
  --size: 100px;
  --indicator-color: Dodgerblue;
  --track-color: Grey;
  --indicator-transition-duration: 0;
  font-weight: bold;
  font-size: 18px;
}
.model-controls {
  position: absolute;
  z-index: 2;
  width: 100%;
  top: -120px;
  & p {
    color: Whitesmoke;
  }
}
.model-toggle-container {
  width: 50px;
  height: 50px;
  transition: 0.4s;
  -webkit-user-select: none;
  user-select: none;
}
.model-toggle-container input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #171819;
  border: 1px solid Whitesmoke;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.4s;
  -webkit-user-select: none;
  user-select: none;
}
.toggle i {
  color: Whitesmoke;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.toggle[disabled] {
  cursor: not-allowed;
  opacity: 0.4;
}
.toggle-checkbox:checked + .toggle {
  border-color: Dodgerblue;
  box-shadow: 0px 0px 18px Dodgerblue;
}
.toggle-checkbox:checked + .toggle i {
  color: Dodgerblue;
}
.controls-btn {
  width: 50px;
  height: 50px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #171819;
  border: 1px solid Whitesmoke;
  border-radius: 50%;
  transition: 0.4s;
  & i {
    color: Whitesmoke;
  }
}
.layer-selection-container {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  z-index: 2;
  bottom: -110px;
}
.layer-selection {
  background-color: transparent;
  border: 3px solid Whitesmoke;
  border-radius: 50%;
  padding: 0;
  transition: 0.4s;
}
.semi-circle-left {
  width: 20px;
  height: 40px;
  display: inline-block;
  border-radius: 40px 0px 0px 40px;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: 100% 50%;
  rotate: 35deg;
}
.semi-circle-right {
  width: 20px;
  height: 40px;
  display: inline-block;
  border-radius: 0px 40px 40px 0;
  background-repeat: no-repeat;
  background-size: cover;
  transform-origin: 0% 50%;
  rotate: 35deg;
}
.layer-selected {
  border-color: Dodgerblue;
}
.skin-texture {
  background-image: url("https://assets.codepen.io/9400490/skin_texture.jpg");
  background-size: 100px;
  background-position: left;
}
.muscle-texture {
  background-image: url("https://assets.codepen.io/9400490/muscle_texture.jpg");
  background-size: 100px;
}
.veins-texture {
  background-image: url("https://assets.codepen.io/9400490/veins_texture.jpg");
  background-size: 100px;
  background-position: 60% 20%;
}
.bone-texture {
  background-image: url("https://assets.codepen.io/9400490/bone_texture.jpg");
  background-size: 100px;
}
.organ-texture {
  background-image: url("https://assets.codepen.io/9400490/organ_texture.jpg");
  background-size: 40px;
}
@media (hover: hover) {
  .controls-btn:hover {
    scale: 1.12;
  }
  .toggle:hover {
    scale: 1.12;
  }
}

/*----Human Eye Model----*/

.circle-loader {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}
#progress-ring-2 {
  --size: 100px;
  --indicator-color: Dodgerblue;
  --track-color: Whitesmoke;
  --indicator-transition-duration: 0;
  font-weight: bold;
  font-size: 18px;
}
.webgl {
  position: relative;
  cursor: grab;
}
.auto-rotate-2 {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  scale: 0.8;
}
.auto-rotate-2 input {
  opacity: 0;
  width: 0;
  height: 0;
}
.model-main-container {
  margin: 0 auto;
  max-width: 800px;
}
.model-bg {
  background-image: linear-gradient(
      rgba(245, 245, 245, 1),
      rgba(245, 245, 245, 0),
      rgba(245, 245, 245, 0),
      rgba(245, 245, 245, 0),
      rgba(245, 245, 245, 1)
    ),
    url("https://moodleportfolio.com/pluginfile.php/1/theme_baz/additionalresources/0/eye-model-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  -webkit-user-select: none;
  user-select: none;
}
.model-3d-container-2 {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.6 / 1;
}
.model-3d-container-2:fullscreen {
  background-image: linear-gradient(
      rgba(245, 245, 245, 1),
      rgba(245, 245, 245, 0),
      rgba(245, 245, 245, 1)
    ),
    url("https://moodleportfolio.com/pluginfile.php/1/theme_baz/additionalresources/0/eye-model-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0px 0px 80px WhiteSmoke inset;
}
.model-3d-controls {
  position: absolute;
  width: 100%;
  top: -60px;
}
.toggle-container {
  width: 50px;
  height: 50px;
  -webkit-user-select: none;
  user-select: none;
}
.toggle-container input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-2 {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid Black;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.4s;
  -webkit-user-select: none;
  user-select: none;
}
.toggle-2 i {
  color: Black;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.controls-btn-2 {
  width: 50px;
  height: 50px;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1.5px solid Black;
  border-radius: 50%;
  transition: 0.4s;
  & i {
    color: Black;
  }
}
.toggle-2[disabled] {
  cursor: not-allowed;
  opacity: 0.4;
}
.toggle-checkbox-2:checked + .toggle-2 {
  border-color: White;
  background-color: rgba(30, 144, 255, 1);
}
.toggle-checkbox-2:checked + .toggle-2 i {
  color: White;
}
.annotation {
  position: absolute;
  display: none;
  top: 0;
  left: 0;
  z-index: 1;
  transition: opacity 0.5s;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}
.circle-marker {
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: Whitesmoke;
  background-color: Black;
  border: 1.5px solid #fff;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}
#annotation-1 {
  z-index: 2;
}
#annotation-2 {
  z-index: 1;
}
.annotationText {
  font-size: 18px;
  margin-left: 40px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.7);
  -webkit-user-select: none;
  user-select: none;
  display: none;
}
.annotationText p {
  filter: invert(100%);
}
.wa-model-details {
  margin-bottom: 10px;
}
.wa-model-details::part(content) {
  padding: 0;
}
.wa-model-details::part(base) {
  border-radius: 0;
}
.wa-model-details::part(header) {
  font-size: 20px;
  font-weight: 700;
  border-start-start-radius: 0px;
  border-start-end-radius: 0px;
  border-end-start-radius: 0px;
  border-end-end-radius: 0px;
}
.wa-model-details[open]::part(icon) {
  color: White;
}
.wa-model-details::part(header) {
  background-color: Whitesmoke;
}
.wa-model-details[open]::part(header) {
  background-color: DodgerBlue;
  color: White;
}
.wa-model-details[open]::part(icon) {
  color: White;
}
.wa-model-details::part(summary) {
  width: 100%;
  display: flex;
  justify-content: center;
}


