/* Container for tabs with perspective */
.m-tabs {
  width: auto;
  height: 80px;
  display: flex;
  /* border-bottom: 2px solid #1ab394; */
  background-color: #eee;
  margin-bottom: 0px;
  perspective: 1000px; /* Create a perspective for 3D effect */
  border: 1px solid grey;
  border-bottom-style: none;
}


/* Tab container */
.m-tabs span {
  margin: 0;
  padding: 15px 25px;
  /* border: 1px solid #1ab394; */
  border-bottom: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  color: white;
  font-weight: bold;
  transform-style: preserve-3d;
}

/* Hover effect for tabs */


/* Animation keyframes for jumping effect */


/* Hide radio buttons */

.m-tabs input[type="radio"] {
  display: none; /* Hide the radio button */
}


/* Optional: Change background color of the span when the label is selected */
.m-tabs input[type="radio"]:checked + label + input[type="radio"] + label {
  background-color: grey;
}
/* Tab labels */
.m-tabs label {
  cursor: pointer;
  display: block;
  padding: 15px 25px;
  color: black;
  position: relative;
}

/* Active tab */
.m-tabs input[type="radio"]:checked + label {
  background-color: white;
  /* border-color: #1ab394; */
  /* border-bottom: 1px solid transparent; */
  /* color: #1ab394; */
  width: 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-top: 0px; */
  padding-bottom: 40px;
}

/* Content container */
.tab-content {
  opacity: 0;
  transform: rotateX(90deg); /* Initial state for 3D effect */
  transition: opacity 0.5s ease, transform 0.5s ease;
  max-height: 0;
  overflow: hidden;
  position: absolute; /* Keeps it out of view initially */
  width: 100%;
  background-color: white;
  border-radius: 1px solid grey;
  border-top-style: none;
}

/* Active content */
 /* Active content */
 .tab-content.active {
  opacity: 1;
  transform: rotateX(0deg); /* Bring to view */
  max-height: 1000px; /* Large enough to show content */
  position: relative; /* Place it back */
}

/* 3D effect on content reveal */
.tab-content {
  transform-origin: top;
  background-color: white; /* Light background for content area */
  padding: 20px; /* Padding for content */
  border: 1px solid grey; /* Border for content */
  /* border-radius: 5px; Rounded corners for content */
  /* border: 1px solid 1ab394; */
  border-top-style: none;
}
