body {
  font-family: Poppins;
  padding: 10px 20px;
}

.hr-line {
  border-top: 1px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(90deg, White, DimGrey, White) border-box;
}

p {
  font-weight: 200;
}

a {
  text-decoration: none;
}

/* Simple loader indicating status while 3d model is loading */

.loader {
  position: absolute;
  width: 250px;
  height: 250px;
  margin: 0;
  padding: 0;
  top: 10px;
  left: 15px;
  background-color: transparent;
  border: 4px dashed Dodgerblue;
  border-radius: 50%;
  font-weight: bold;
  color: DodgerBlue;
  text-align: center;
}

/* --- Card Style Toggle --- */

.toggle-container {
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0),
    white
  );
}

#light {
  top: 30px;
  scale: 0;
  z-index: -1;
  transition: all 0.35s ease;
}

#dark {
  top: 0px;
  scale: 1;
  z-index: -1;
  transition: all 0.35s ease;
}

@property --c1 {
  syntax: "<color>";
  inherits: false;
  initial-value: Gold;
}

@property --c2 {
  syntax: "<color>";
  inherits: false;
  initial-value: DarkOrange;
}

.card-switch-1 {
  appearance: none;
  position: relative;
  height: 35px;
  width: 62px;
  border-radius: 20px;
  background-image: linear-gradient(220deg, var(--c1), var(--c2));
  transition: --c1 0.5s, --c2 0.5s;
  cursor: pointer;
  &::before {
    content: "";
    position: absolute;
    height: 75%;
    aspect-ratio: 1;
    border-radius: 50%;
    left: 30%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: Ivory;
    z-index: 1;
    transition: all 0.35s ease;
  }
  &::after {
    height: 35px;
    width: 62px;
    position: relative;
    display: flex;
    align-items: center;
    left: 38px;
    color: Ivory;
    font: var(--fa-font-solid);
    font-size: 16px;
    content: "\f185";
    transition: all 0.35s ease;
  }
}

.card-switch-1:checked {
  --c1: SteelBlue;
  --c2: Black;
  background-image: linear-gradient(120deg, var(--c1), var(--c2));
  &::before {
    background-color: Azure;
    left: 70%;
  }
  &::after {
    color: Azure;
    content: "\f186";
    left: 10px;
  }
}

/* --- 3d Card CSS --- */

.card-3d {
  min-width: 280px;
  max-width: 820px;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 15px 25px 10px LightGrey;
}

.card-3d-dark {
  background-image: radial-gradient(#404040, black);
  border: 1px solid WhiteSmoke;
  outline: 8px solid black;
  & .card-3d-body {
    color: Whitesmoke;
  }
  & dotlottie-player {
    filter: brightness(80%);
  }
  & #webgl-3 {
    filter: drop-shadow(0px 25px 25px Black);
  }
}

.card-3d-light {
  background-image: radial-gradient(Gainsboro, Whitesmoke);
  border: 1px solid DimGrey;
  outline: 8px solid WhiteSmoke;
  & .card-3d-body {
    color: Black;
  }
  & dotlottie-player {
    filter: brightness(40%);
  }
  & #webgl-3 {
    filter: drop-shadow(0px 25px 25px #919496);
  }
}

.card-3d-body {
  padding: 30px 15px 30px 15px;
}

.card-3d-title {
  font-size: 24px;
  font-weight: 600;
  text-wrap: balance;
}

.object-3d {
  position: relative;
  width: 280px;
  height: 280px;
  padding: 0;
}

.webgl {
  position: relative;
  transition: all;
  cursor: grab;
}

.model-shadow::after {
  content: "";
  display: block;
  position: relative;
  width: 80%;
  height: 8px;
  margin: 0 auto;
  top: -10px;
  background: Black;
  opacity: 0.5;
  border-radius: 70%;
  filter: blur(8px);
}

dotlottie-player {
  position: relative;
  display: inline-block;
  top: 12px;
  width: 35px;
  height: 35px;
}

.responsive {
  width: 100% !important;
  height: 100% !important;
}

.animate {
  animation: animate 3s ease-in-out;
}

@keyframes animate {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 100%;
  }
}

/* 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) {
  .card-3d-title {
    margin-top: 20px;
    text-align: center;
  }
  #webgl-1 {
    width: 180px !important;
    height: 180px !important;
  }
  #webgl-2 {
    width: 200px !important;
    height: 200px !important;
  }
  #webgl-3 {
    width: 200px !important;
    height: 200px !important;
  }
  #webgl-4 {
    width: 200px !important;
    height: 200px !important;
  }
  .object-3d {
    width: 180px !important;
    height: 180px !important;
  }
  .loader {
    width: 180px !important;
    height: 180px !important;
    top: -2px;
    left: 2px;
  }
}
.rotating-img {
  animation: rotateYslow 10s linear infinite;
  transform-style: preserve-3d;
  display: inline-block;
  backface-visibility: hidden;
  border-radius: 50%;
}

@keyframes rotateYslow {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

