.three_d_models {
  background-color: #021020;
}

.three_d_model_section {
  position: relative;
  background: #021020 url(/education/wp-content/plugins/ShadowHealth/assets/images/three_d/home-digital-patient-bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom center;
  overflow-y: auto;
  padding-top: 50px;
  position: relative;
  max-width: 1440px;
  margin: auto;
}

.three_d_model_section .shadowhealth_carousel-wrapper {
  display: none;
  overflow: hidden;
  width: 100%;
  margin: auto;
  padding: 0;
}

.three_d_model_section .shadowhealth_carousel-wrapper * {
  box-sizing: border-box;
}

.three_d_model_section .shadowhealth_carousel {
  transform-style: preserve-3d;
  max-width: 1170px;
  margin: auto;
}

.three_d_model_section .shadowhealth_carousel__item {
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
  margin: auto;
  padding: 1rem 4rem;
  z-index: 100;
  transition: transform .3s, opacity .3s, z-index .3s;
}

.three_d_model_section .shadowhealth_carousel__item.initial,
.three_d_model_section .shadowhealth_carousel__item.active {
  opacity: 1;
  position: relative;
  z-index: 900;
}

.three_d_model_section .shadowhealth_carousel__item.prev,
.three_d_model_section .shadowhealth_carousel__item.next {
  z-index: 800;
}

.three_d_model_section .shadowhealth_carousel__item.prev {
  transform: translateX(-100%);
  /* Move 'prev' item to the left */
}

.three_d_model_section .shadowhealth_carousel__item.next {
  transform: translateX(100%);
  /* Move 'next' item to the right */
}

.three_d_model_section .shadowhealth_carousel__button--prev,
.three_d_model_section .shadowhealth_carousel__button--next {
  position: absolute;
  top: 40%;
  width: 200px;
  height: 265px;
  color: #fff;
  background-color: transparent;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 1001;
  /* Sit on top of everything */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
}

.three_d_model_section .shadowhealth_carousel__button--prev:hover,
.three_d_model_section .shadowhealth_carousel__button--next:hover {
  color: #000;
  opacity: 1;
}

.three_d_model_section .shadowhealth_carousel__button--prev {
  left: -7.5%;
}

.three_d_model_section .shadowhealth_carousel__button--next {
  right: -7.5%;
}

.three_d_model_section .shadowhealth_carousel__button--prev::after,
.three_d_model_section .shadowhealth_carousel__button--next::after {
  content: " ";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%) rotate(135deg);
}

.three_d_model_section .shadowhealth_carousel__button--next::after {
  left: 47%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* This styles the 3D object inserted in the aside container */
.three_d_model_section .model1 {
  height: 636px;
  border: none;
  outline: none;
  appearance: none;
  --poster-color: transparent;
  padding: 0 0 21px;
}

.three_d_model_section .heading {
  margin-top: 2%;
  text-transform: capitalize;
  color: #fff;
  width: 100%;
  text-align: center;
  font-size: 10vh;
  line-height: 6vh;
}

.three_d_model_section .sub-heading {
  text-transform: capitalize;
  color: #FFFFFF;
  width: 100%;
  text-align: center;
  font-size: 38px;
  line-height: 1.6;
  margin: 30px auto;
  padding: 0 15px;
}

.three_d_model_section .character {
  position: relative;
  width: 100%;
  margin: auto;
  text-align: center;
}

.three_d_model_section .chart-container {
  position: absolute;
  width: 93%;
  text-align: center;
  background-color: transparent;
  padding-right: 350px;
  top: 3%;
  left: -9%;
  transform: scale3d(1, 1, 1);
}

.three_d_model_section .chart {
  width: 350px;
  max-width: 350px;
  padding: 0;
  color: #CDE4FF;
  border: 1px solid #ACD2FF;
  background-color: #031935;
  filter: drop-shadow(0 0 8px #CDE4FE);
  animation-name: chart;
  animation-duration: 4s;
  animation-fill-mode: forwards;
  transform-origin: 0% 0%;
  margin: auto;
}

@keyframes chart {
  from {
    transform: scale3d(0, 0, 1);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

.three_d_model_section .chart .content {
  opacity: 1;
}

.three_d_model_section .chart .age {
  opacity: 0;
  animation-name: spantag;
  animation-duration: 3s;
  animation-fill-mode: forwards;
}

.three_d_model_section .chart .last_name {
  opacity: 0;
  animation-name: spantag;
  animation-duration: 3s;
  animation-delay: 2s;
  animation-fill-mode: forwards;
}

.three_d_model_section .chart .first_name {
  opacity: 0;
  animation-name: spantag;
  animation-duration: 3s;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes spantag {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.three_d_model_section .ptag_ani {
  opacity: 0;
  animation-name: ptag2;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  animation-delay: 0s;
}

@keyframes ptag2 {
  0% {
    opacity: 1;
    clip-path: inset(5% 100% 15% 0%);
  }

  100% {
    opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
  }
}

.three_d_model_section .chart .chart_title {
  display: block;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.6;
  opacity: 0;
  color: #ffffff;
  text-transform: none;
  margin: 0;
  animation-name: spantag;
  animation-duration: 3s;
  animation-delay: 3s;
  animation-fill-mode: forwards;
}

.three_d_model_section .chart .chart_data {
  font-family: var(--elsevier-sans), Arial, sans-serif;;
  display: block;
  text-transform: none;
  color: #CDE4FF;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0;
  margin: 0;
  animation-name: spantag;
  animation-duration: 3s;
  animation-delay: 3s;
  animation-fill-mode: forwards;
}

.three_d_model_section .chart .task {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.three_d_model_section .chart .chart_data_bullet {
  font-family: var(--elsevier-sans), Arial, sans-serif;;
  display: list-item;
  text-transform: none;
  margin: 4px 0 4px 18px;
  list-style: inside;
  color: #CDE4FF;
  opacity: 0;
  animation-name: spantag;
  animation-duration: 3s;
  animation-delay: 3s;
  animation-fill-mode: forwards;
}

.three_d_model_section .chart .chart_ehr {
  padding: 12px 5px;
  border-bottom: 1px solid #ACD2FF;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
}

.three_d_model_section .chart .grid-container-name {
  display: grid;
  grid-template-columns: auto;
  grid-gap: 0;
}

.three_d_model_section .chart .chart_name {
  padding: 12px 15px;
  border-bottom: 1px solid #ACD2FF;
  text-align: center;
  text-transform: none;
  color: #ACD2FF;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.three_d_model_section .chart .chart_content1 {
  padding: 12px 15px;
  border-bottom: 1px solid #ACD2FF;
  text-align: left;
}

.three_d_model_section .chart .chart_content2 {
  padding: 12px 15px;
  border-bottom: 1px solid #ACD2FF;
  text-align: left;
}

.three_d_model_section .chart .bottom-margin {
  margin-bottom: 12px;
}

.three_d_model_section .chat {
  position: absolute;
  width: 320px;
  max-width: 320px;
  left: 66%;
  top: -1%;
  font-size: 18px;
  line-height: 21px;
  transform-origin: 0% 0%;
}

.three_d_model_section .chat_bubble {
  position: relative;
  margin-right: 10%;
  padding: 12px;
  background-color: #FFF0E4;
  border-radius: 10px 10px 10px 0;
  color: #505050;
  margin-bottom: 15px;
  opacity: 0;
  text-align: left;
}

.three_d_model_section .chat_bubble_ani {
  animation-name: chat;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.three_d_model_section .chat_bubble .chat_arrow {
  position: absolute;
  bottom: -19px;
  left: 0;
  width: 0;
  height: 0;
  border-right: 20px solid transparent;
  border-top: 20px solid #FFF0E4;
}

.three_d_model_section .chat_bubble2 {
  position: relative;
  margin-left: 10%;
  padding: 12px;
  background-color: #CDE4FF;
  border-radius: 10px 10px 0 10px;
  color: #505050;
  margin-bottom: 15px;
  opacity: 0;
  text-align: left;
}

.three_d_model_section .chat_bubble2_ani {
  animation-name: chat;
  animation-duration: 3s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
}

.three_d_model_section .chat_bubble2 .chat_arrow {
  position: absolute;
  width: 0;
  height: 0;
  bottom: -19px;
  right: 0;
  border-left: 20px solid transparent;
  border-top: 20px solid #CDE4FF;
}

@keyframes chat {
  0% {
    opacity: 0;
    transform: scale3d(0, 0, 1);
  }

  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.three_d_model_section .bubble_message {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: inherit;
}

.three_d_model_section .bubble_message_mobile {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  color: inherit;
}

.three_d_model_section .chat-mobile {
  display: none;
  max-width: 350px;
  transform: scale3d(0.7, 0.7, 1);
  margin: auto;
  height: 180px;
  overflow-y: hidden;
  padding-bottom: 20px;
}

.three_d_model_section .chat_fade_in {
  animation-name: chat_fade_in;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
  text-align: left;
}

@keyframes chat_fade_in {
  0% {
    opacity: 0;
    transform: scale3d(0, 0, 1);
  }

  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.three_d_model_section .chat_fade_out {
  animation-name: chat_fade_out;
  animation-duration: 5s;
  animation-fill-mode: forwards;
  animation-play-state: paused;
  text-align: left;
}

@keyframes chat_fade_out {
  0% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }

  100% {
    opacity: 0;
    transform: scale3d(0, 0, 1);
  }
}

.three_d_model_section .character-thumbnails-container {
  position: relative;
  height: 56px;
  margin: 30px 0;
  text-align: center;
}

.three_d_model_section .model_disc {
  position: relative;
  width: 618px;
  top: -165px;
  left: 0rem;
}

.three_d_model_section .character-thumbnails {
  position: absolute;
  width: 100%;
  padding: 0 15px 30px;
  text-align: center;
  color: #FFFFFF;
  top: -17px;
  z-index: 10000;
}

.three_d_model_section .character-thumbnails .character {
  margin-right: 40px;
  display: inline-block;
  background-position: center center;
  background-repeat: no-repeat no-repeat;
  background-size: contain;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  border-bottom-right-radius: 13px;
  border-bottom-left-radius: 13px;
  cursor: pointer;
}

.three_d_model_section .character-thumbnails .character:last-child {
  margin-right: 0;
}

.three_d_model_section .mobile-chart {
  display: none;
  text-align: center;
}

.three_d_model_section .view-patient-chart {
  font-family: var(--elsevier-sans), Arial, sans-serif;;
  display: inline-block;
  max-width: 350px;
  margin: 12px auto auto;
  font-size: 20px;
  line-height: 1.6;
  padding: 8px 15px;
  color: #CDE4FF;
  border: 2px solid #ACD2FF;
  background-color: #031935;
  filter: drop-shadow(0 0 8px #CDE4FE);
  cursor: pointer;
}

.three_d_model_section .close_chart_x {
  display: none;
  width: 30px;
  color: #CDE4FE;
  position: absolute;
  right: 6px;
  top: 7px;
  cursor: pointer;
}

.three_d_model_section .close_chart_x_container {
  border: 1px solid #CDE4FE;
  font-size: 24px;
  line-height: 1.6;
  padding: 6px 5px 0;
}

.three_d_model_section .chart_data_content {
  display: inline-block;
  width: 80%;
  vertical-align: top;
}

@media screen and (min-width: 768px) {
  .three_d_model_section .chart-container {
    display: block !important;
  }
}

@media screen and (min-width: 768px) and (max-width: 1260px) {
  .three_d_model_section .chart-container {
    left: -8%;
  }
  
  .three_d_model_section .shadowhealth_carousel-wrapper {
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .three_d_model_section .shadowhealth_carousel {
    transform: scale3d(0.8, 0.8, 1);
    width: 100%;
    left: -9%;
  }

  .three_d_model_section .shadowhealth_carousel__button--prev, .three_d_model_section .shadowhealth_carousel__button--next {
    width: 112px;
  }
  
  .three_d_model_section .shadowhealth_carousel__button--prev {
    left: -9%;
  }
  
  .three_d_model_section .shadowhealth_carousel__button--next {
    right: -9%;
  }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
  .three_d_model_section .chart-container {
    left: -11%;
  }
  
  .three_d_model_section .chat {
    left: 72%;
  }
    
  .three_d_model_section .shadowhealth_carousel__button--prev {
    display: none;
  }
  
  .three_d_model_section .shadowhealth_carousel__button--next {
    display: none;
  }
}

/*
@media screen and (min-width: 500px) and (max-width: 767px) {
  .three_d_model_section .shadowhealth_carousel__item {
    padding: 0rem 1rem 1rem;
  }
  
  .three_d_model_section .sub-heading {
    margin-bottom: 0;
  }
  
  .three_d_model_section .chart-container {
    position: absolute;
    transform: scale3d(0.5,0.5, 1);
    top: -10% !important;
    left: 0 !important;
    z-index: 100000;
  }
  
  .three_d_model_section .character {
    text-align: left;
  }
  
  .three_d_model_section .model1 {
    background-position: center bottom -3px !important;
    height: 260px;
  }
  
  .three_d_model_section .character-thumbnails-container {
    margin-bottom: 0px;
  }
  
  .three_d_model_section .character-thumbnails {
    position: absolute;
    width: 24%;
    top: -586%;
    right: 0;
    text-align: left;
  }
}
 */

@media screen and (max-width: 767px) {
  .three_d_model_section .chart .chart_ehr {
    padding: 12px 30px;
  }
  
  .three_d_model_section .heading {
    margin-top: 10%;
  }

  .three_d_model_section .mobile-chart {
    display: block;
  }

  .three_d_model_section .character-thumbnails .character {
    margin-right: 5px;
    width: 3rem !important;
    height: 3rem !important;
  }

  .three_d_model_section .chat {
    display: none;
  }

  .three_d_model_section .chat-mobile {
    display: block;
  }

  .three_d_model_section .chart {
    width: 95%;
    max-width: unset;
  }

  .three_d_model_section .chart-container {
    display: none;
    top: 27%;
    left: 0 !important;
    width: 100%;
    position: absolute;
    padding: 0;
    height: 50vh;
    z-index: 10000;
  }

  .three_d_model_section .shadowhealth_carousel__button--prev,
  .three_d_model_section .shadowhealth_carousel__button--next {
    display: none;
  }

  .three_d_model_section .shadowhealth_carousel-wrapper {
    width: 100%;
    padding: 0;
  }

  /* This styles the 3D object inserted in the aside container */
  .three_d_model_section .model1 {
    background-position: center bottom -10px;
    background-image: url(/education/wp-content/plugins/ShadowHealth/assets/images/three_d/home-digital-patient-disc.png);
    background-repeat: no-repeat;
    background-size: contain;
    padding: 0 !important;
  }
  
  .three_d_model_section .model_disc {
    display: none;
  }

  .three_d_model_section .character-thumbnails {
    padding: 40px 0 0;
  }
  
  .three_d_model_section .character-thumbnails-container {
    margin-bottom: 60px;
  }

  .three_d_model_section .close_chart_x {
    display: block;
  }

  .three_d_model_section .shadowhealth_carousel__item {
    padding: 1rem 1rem;
  }
}