.muscle-groups {
  position: relative;
  background: #1e1e1e;
  width: 420px;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);
  overflow: hidden;
  border-top: 0.75rem solid #C6FF00;
}
.muscle-groups h1 {
  margin: -0.5rem -1rem 1rem;
  padding: 0 1rem 0.75rem;
  background: #C6FF00;
  color: #1e1e1e;
  text-align: center;
  font-size: 1.25rem;
}
.muscle-groups h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #C6FF00;
}
.muscle-groups label + h2 {
  margin-top: 1rem;
}
.muscle-groups label {
  width: 50px;
  display: block;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.7rem;
  opacity: 1;
  position: relative;
  z-index: 200;
  border-left: 5px solid transparent;
  padding-left: 6px;
  margin-left: -11px;
  color: #ffffff;
}
.muscle-groups label:hover, .muscle-groups label.hover {
  opacity: 1;
  border-color: #C6FF00;
}
.muscle-groups input:checked + label {
  opacity: 1;
  font-weight: bold;
  color: #C6FF00;
}
.muscle-groups svg {
  position: absolute;
  right: -1.5rem;
  bottom: 3rem;
  height: 350px;
  z-index: 100;
}
.muscle-groups svg g[id] path {
  opacity: 0.2;
  transition: opacity 0.25s ease-in-out;
}
.muscle-groups svg g g[id]:hover path {
  cursor: pointer;
  opacity: 0.5;
  fill: #C6FF00 !important;
}
.muscle-groups .muscles-helper {
  display: none;
}
.muscle-groups label[for="obliques"]:hover ~ svg #Obliques path {
  opacity: 0.75;
}
.muscle-groups .obliques:checked ~ svg #Obliques path {
  opacity: 0.8;
  fill: #37ff00 !important;
}
.muscle-groups label[for="abs"]:hover ~ svg #Abs path {
  opacity: 0.75;
}
.muscle-groups .abs:checked ~ svg #Abs path {
  opacity: 0.8;
  fill: #00BCD4 !important;
}
.muscle-groups label[for="quads"]:hover ~ svg #Quads path {
  opacity: 0.75;
}
.muscle-groups .quads:checked ~ svg #Quads path {
  opacity: 0.8;
  fill: #C6FF00 !important;
}
.muscle-groups label[for="biceps"]:hover ~ svg #Biceps path {
  opacity: 0.75;
}
.muscle-groups .biceps:checked ~ svg #Biceps path {
  opacity: 0.8;
  fill: #C6FF00 !important;
}
.muscle-groups label[for="adductors"]:hover ~ svg #Adductors path {
  opacity: 0.75;
}
.muscle-groups .adductors:checked ~ svg #Adductors path {
  opacity: 0.8;
  fill: #FF1744 !important;
}
.muscle-groups label[for="pectorals"]:hover ~ svg #Pectorals path {
  opacity: 0.75;
}
.muscle-groups .pectorals:checked ~ svg #Pectorals path {
  opacity: 0.8;
  fill: #FF1744 !important;
}
.muscle-groups label[for="deltoids"]:hover ~ svg #Deltoids path {
  opacity: 0.75;
}
.muscle-groups .deltoids:checked ~ svg #Deltoids path {
  opacity: 0.8;
  fill: #00BCD4 !important;
}
.muscle-groups label[for="hamstrings"]:hover ~ svg #Hamstrings path {
  opacity: 0.75;
}
.muscle-groups .hamstrings:checked ~ svg #Hamstrings path {
  opacity: 0.8;
  fill: #00BCD4 !important;
}
.muscle-groups label[for="quads"]:hover ~ svg #Quads path {
  opacity: 0.75;
}
.muscle-groups .quads:checked ~ svg #Quads path {
  opacity: 0.8;
  fill: #C6FF00 !important;
}
.muscle-groups label[for="forearms"]:hover ~ svg #Forearms path {
  opacity: 0.75;
}
.muscle-groups .forearms:checked ~ svg #Forearms path {
  opacity: 0.8;
  fill: #37ff00 !important;
}
.muscle-groups label[for="calves"]:hover ~ svg #Calves path {
  opacity: 0.75;
}
.muscle-groups .calves:checked ~ svg #Calves path {
  opacity: 0.8;
  fill: #C6FF00 !important;
}
.muscle-groups label[for="triceps"]:hover ~ svg #Triceps path {
  opacity: 0.75;
}
.muscle-groups .triceps:checked ~ svg #Triceps path {
  opacity: 0.8;
  fill: #00BCD4 !important;
}
.muscle-groups label[for="glutes"]:hover ~ svg #Glutes path {
  opacity: 0.75;
}
.muscle-groups .glutes:checked ~ svg #Glutes path {
  opacity: 0.8;
  fill: #FF1744 !important;
}
.muscle-groups label[for="lats"]:hover ~ svg #Lats path {
  opacity: 0.75;
}
.muscle-groups .lats:checked ~ svg #Lats path {
  opacity: 0.8;
  fill: #C6FF00 !important;
}
.muscle-groups label[for="trapezius"]:hover ~ svg #Trapezius path {
  opacity: 0.75;
}
.muscle-groups .trapezius:checked ~ svg #Trapezius path {
  opacity: 0.8;
  fill: #FF1744 !important;
}
body {
  font-family: Helvetica Neue, Helvetica, Ubuntu, Segoe UI, Verdana, sans-serif;
}
main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 2rem 0;
}
main .info {
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  width: 500px;
  padding-top: 0; /* Remove padding-top to allow .muscle-info to take precedence */
  color: #ffffff;
  padding-left: 2rem;
  opacity: 0.5;
  position: relative; /* Ensure proper positioning context */
  opacity: 1;
}
main .info .muscle-info {
  flex: 0 0 auto; /* Prevent stretching, allow fixed height if needed */
  background: #1e1e1e;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  margin-bottom: 1rem; /* Space between .muscle-info and original content */
  color: #ffffff; /* Contrast with background */
}
main .info .muscle-info h3 {
  font-size: 1.2rem;
  color: #C6FF00;
  margin-bottom: 0.5rem;
}
main .info .muscle-info h4 {
  font-size: 1rem;
  margin: 0.5rem 0;
}
main .info .muscle-info p, main .info .muscle-info ul {
  font-size: 0.9rem;
  line-height: 1.5;
}
main .info .muscle-info ul {
  list-style: disc;
  padding-left: 1.5rem;
}
main .info .muscle-info a {
  color: #C6FF00;
  text-decoration: underline;
}
main .info .muscle-info a:hover {
  text-decoration: none;
}
main .info p {
  margin: 0;
}
main .info a {
  color: #eee;
}