/*
Theme Name: BodyPulse
Author: Charles
Description: BodyPulse.com
Version: 1.0.0
*/


body,html { 
    padding:0;
    margin:0;
	overflow-x: hidden
}

h1,h2,h3,h4,h5,h6 {
    margin:0;
    margin-bottom:.7rem;
}

.img-fluid { max-width:100%; height:auto;}
.text-center { text-align:center; }

.elementor-button {
  font-family: "Work Sans", Sans-serif !important;
  font-size: 0.8rem!important;
  font-weight: 600!important;
  text-transform: uppercase!important;
  font-style: normal!important;
  text-decoration: none!important;
}
.ft-white a, .ft-white {
    color: white!important
}

/* ############################################## Metrics  ################################################### */
.metrics-container {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
    /* margin: 50px 8%; */
}

.metric-item {
    text-align: center;
}


.metric-symbol,
.metric-value {
  font-size: 4rem;
  font-weight: 900;
  font-family: "Work Sans", Sans-serif;
  color: #0480c7;
}

.metric-description {
  font-family: "Work Sans", Sans-serif;
  font-size : 1.08rem;
  color : #071C3C;
}



/* ############################################## Bullets  ################################################### */

  ul.custom-list {
    list-style: none; /* Remove default bullets */
    padding-left: 0; /* Remove left padding */
  }

  /* Style for each list item */
  ul.custom-list li {
    position: relative;
    padding-left: 30px; /* Space for the custom bullet */
    margin-bottom: 20px; /* Spacing between items */
  }

  /* Custom bullet */
  ul.custom-list li::before {
	  content: "✓";
	  color: #0480c7;
	  background-color: white;
	  border-radius: 50%;
	  font-weight: 900;
	  position: absolute;
	  left: 0;
	  top: 0;
	  width: 20px;
	  height: 20px;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  font-size: 0.8rem;
	  text-shadow: -0.5px -0.5px 0 #0480c7, 0.5px -0.5px 0 #0480c7, -0.5px 0.5px 0 #0480c7, 0.5px 0.5px 0 #0480c7;
  }

.hfe-search-button-wrapper .hfe-search-icon-toggle .hfe-search-form__input{
	top: 50px
}


/* ############################################## Muscle map  ################################################### */
#main-male {
    display: flex;
    gap: 50px;
}

#main-female {
    display: none;
    gap: 50px;
}

#front_plan,
#back_plan {
    max-width: 300px;
    min-width: 300px;
}

#muscles path.muscle:not(.no-hover):hover {
    fill:  #0480c7;
}

/* Style for the info box */
#muscle-info {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    max-width: 200px;
    z-index: 10;
}

#muscle-info img {
    max-width: 100%;
    height: auto;
}



#switch_female,
#switch_male,
.switch {
    width: 100px;   
}

#muscle-info {
   transition-property: opacity, transform;
   transition-duration: 0.3s;
   transition-timing-function: ease-out;
   transform-origin: top left;
}


/* Info Box Styles */
.highlighted{
  fill: #0480c7!important;
	transition: fill 0.3s ease;
}

#muscle-info {
  position: fixed;
  /* Your existing styles */
  opacity: 0;
  transform: scale(0.9);
  transform-origin: top left;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

#muscle-info.visible {
  opacity: 1;
  transform: scale(1);
}

#muscle-info .content-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

#muscle-info.content-changing .content-wrapper {
  opacity: 0;
  transform: translateY(-5px);
}

/* Optional: Pulse animation */
@keyframes highlight-pulse {
  0% { box-shadow: 0 0 0 0 rgba(4, 128, 199, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(4, 128, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 128, 199, 0); }
}

#muscle-info.first-appear {
  animation: highlight-pulse 1s ease-out;
}
/* Switch styles */
#switch-circle {
    cursor: pointer;
    transition: cx 0.3s ease-in-out; /* Animate circle position and color */
}
#switch_male {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}
#switch_female {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.active {
    opacity: 1 !important;
}

.vertical_container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.switch .cls-1 {
  fill: #0280ca!important;
}

.fc-prim .cls-1, .fc-prim a{
	color:#041C3C;
	fill:#041C3C;
}



.swiper-pagination-bullet{
  font-family: "Work Sans", Sans-serif;
  font-size : 1.2rem;
  color: Black;
  background: #0480c7!important;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active{
      color: white;
  background:  #0480c7!important;
}


/* footer */

footer p{
    margin: 0;
}

#quick_links li a {
    padding-left: 0;
}

#testimonials .swiper.elementor-loop-container {
    padding: 0!important
}

#testimonials .swiper-pagination-bullet{
    background-color: #0480c7!important
}


#testimonials .swiper-pagination-bullet.swiper-pagination-bullet-active
{
      color: white;
  background:  #0480c7!important;
}


@media (max-width: 768px) {

	.subtitle-header div{
		font-size: 1.1rem;
	}
	.title div{
		font-size: 4rem;
	}
	
	#main-female, #main-male {
	  gap: 10px;
	}

    #front_plan, #back_plan {
        max-width: calc(46vw - 5px);
        min-width: calc(46vw - 5px);
    }

    #switch_female, #switch_male, .switch {
        width: 50px;
    }

    .metrics-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-container > .metric-item:last-child {
        grid-column: span 2;                  
        justify-self: center;                  
        text-align: center;                   
    }

    .h2 > div{
        font-family: "Alternate Gothic ATF", Sans-serif;
        font-size: 4rem;
        font-weight: 600;
        text-transform: uppercase;
        font-style: normal;
        text-decoration: none;
        line-height: 1;
    }
}

/* ########################################################## form  */
input, textarea{
  width: 100%;
  padding: 20px 10px;
  border-radius: 3px;
  box-shadow: none;
  border-radius: 7px;
  outline: none;
  border: none;
  background: #f2f2f2;
}

div p:has(input), div p:has(textarea){
	margin: 5px;
}

input::placeholder, textarea::placeholder {
	  font-family: "Work Sans", sans-serif;
	  color: #041C3C;
	  font-style: normal; 
	  font-size:0.9rem;
	  opacity: 1; 
}

input[type='submit']{
	background-color: #0480c7;
	color: white;
}


/* muscle conttaction */

.muscle-images {
        position: relative;
        height: 300px; /* Adjust to fit your images */
        overflow: hidden;
        width: 300px;
      }
      .muscle-images img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: opacity 0.5s ease-in-out;
      }
      .image-contracted {
        opacity: 1;
      }
      .image-relaxed {
        opacity: 0;
      }


/* timeline */
.timeline li .tl-circ{
	border: none;
	background-color: white
}

.timeline::before{
	width: 3px;
}

.timeline li .timeline-panel {
  border: none;
  box-shadow: none!important;
}

.timeline-right{
	text-align: right;
}
.timeline li .timeline-panel::before{
	display: none!important
}
.be-title {
	color: #0480C7 !important;
}

.blog-posts p{
	margin: 0 !important;
}

/* CSS Styles */
.timeline li {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease-out;
}

.timeline li.timeline-right {
  transform: translateX(30px);
}

.timeline li.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Brain */


        .ems-diagram {
          width: 100%;
          /*max-width: 500px;*/
					height: 500px;
  				width: 400px;

        }


        .ems-diagram svg {
          width: 100%;
          height: auto;
        }
  
        /* Hide all elements initially */
        .ems-diagram path,
        .ems-diagram text {
          opacity: 0;
          transition: opacity 1s ease-out, stroke-dashoffset 1.5s ease-out;
        }
  
        /* Special animation for signal paths */
        .ems-diagram .cls-8 {
          stroke-dasharray: 1000;
          stroke-dashoffset: 1000;
        }
  
        /* Show elements when they become visible */
        .ems-diagram .visible {
          opacity: 1!important;
					visibility: visible!important;
        }
  
        .ems-diagram .cls-8.visible {
          stroke-dashoffset: 0 !important;
        }

@media (max-width: 768px) { /* Adjust the max-width as needed for your target devices */
    .ems-diagram {
        width: auto!important; /* Let it adapt naturally to its container */
    }
	
	.ems-diagram path, .ems-diagram text{
		opacity: 1!important
	}
}

.hfe-menu-item, .hfe-sub-menu-item{
  font-family: "Work Sans", Sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  font-style: normal;
  text-decoration: none;

}


/**/
/* Mobile-friendly styles for muscle info box */
#muscle-info {
    /* Position will be set by JavaScript (absolute for desktop, fixed for mobile) */
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    font-size: 14px;
    pointer-events: none; /* Prevent the info box from capturing touch events */
    display: none;
    transition: left 0.1s, top 0.1s; /* Smooth transition for position changes */
	color: black;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    #muscle-info {
        max-width: 260px;
        font-size: 13px;
        padding: 10px;
    }
    
    #muscle-info h3 {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 8px;
    }
    
    #muscle-info p {
        margin: 6px 0;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    #muscle-info {
        max-width: 220px;
        font-size: 12px;
    }
    
    #muscle-info h3 {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
  * {
    font-size: 16px;
    -webkit-text-size-adjust: 100%; /* Prevents Safari from automatically adjusting text sizes */
  }
}






/* test mobile menu  */

/* Elementor mobile menu dropdown animation */
.elementor-menu-toggle.elementor-active + .elementor-nav-menu__container {
  /* Animation for the entire mobile menu panel */
  animation: slide-in 0.3s forwards;
}

@keyframes slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Sub-menu animation */
.elementor-nav-menu--dropdown .elementor-item.elementor-item-active,
.elementor-nav-menu--dropdown .elementor-item.highlighted,
.elementor-nav-menu--dropdown .elementor-item:focus,
.elementor-nav-menu--dropdown .elementor-item:hover {
  transition: all 0.3s ease;
}

/* Dropdown open/close animation */
.elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-sub-item {
  transition: padding 0.3s ease;
}

/* Submenu container animation */
.elementor-nav-menu--dropdown .elementor-nav-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.elementor-nav-menu--dropdown .elementor-nav-menu .sub-menu.elementor-active {
  max-height: 1000px; /* Adjust based on your content size */
}


/* side buttons mobile*/

.mobile-menu-bottom-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 15px;
  margin-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  width: calc(100% - 30px);
  font-size: 10px;
  font-family: "Work Sans", Sans-serif;
}

.mobile-menu-button,.mobile-menu-bottom-buttons #login a {
  display: block;
  padding: 15px 20px;
  text-align: center;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  font-weight: 600;
}

.mobile-menu-button.button-1 {
  background-color: #2271b1;
  color: white !important;
	font-size: 0.8rem!important;
}

.mobile-menu-bottom-buttons  #login a {
  background-color: #f7f7f7;
  color: #333 !important;
  border: 1px solid #dedede;
}

.mobile-menu-bottom-buttons  #login a{
	color: black!important;
		font-size: 10px;
	  font-family: "Work Sans", Sans-serif;
}

.mobile-menu-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Make sure the fixed positioning works correctly within the parent menu */
.hfe-side {
  position: relative;
  padding-bottom: 110px; /* Add some bottom padding to make room for the buttons */
}


@media screen and (max-width: 768px){
  p{
    font-size: 1.08rem;
  }
}
