.wheel_wrapper {
  display: flex;
  justify-content: center;
  margin: 12rem 0 8rem;
  padding: 0 1rem;
}

.wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: none;
  position: relative;
  max-width: 57rem;
  aspect-ratio: 1/1;
  width: 75vw;
  border-radius: 100%;
  border: 5px solid var(--primary);
}

.wheel {
  display: inherit;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  border-radius: 50%;
  text-align: center;
  padding: 5rem 4rem;
  box-sizing: border-box;
  h2 {
    font-weight: lighter;
    color: var(--secondary);
  }
  h1 {color: var(--secondary);}
  br { display: block !important;}
}

.wheel-item-arc {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100%; width: 100%;
  pointer-events: auto;
  z-index: 2;
  transition: transform 0.8s cubic-bezier(.68,-0.55,.27,1.55);
}

.wheel-item {
  position: absolute;
  left: 50%; 
  top: 56%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-28rem) rotate(calc(-1 * var(--angle)));
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 15rem;
  max-height: 490px;
}

.wheel-item:last-child { padding-top: 5.5rem; }

.wheel-item img {
  border-radius: 40px;
  background-color: var(--primary);
  padding: 1rem;
  height: 110px;
  width: 110px;
  margin: 0 auto;
}

.wheel-item span {
  display: block;
  margin-top: 1.5rem;
  font-size: 25px;
  font-weight: bold;
}

/* Hidden description under each item */
.wheel-item .desc {
  opacity: 0;
  font-size: 25px;
  font-weight: lighter;
  margin-top: 1.5rem;
  transition: opacity 0.3s ease-out;
  span {
    font-size: 16px;
    font-weight: lighter;
    margin-top: 2rem;

  }
}

/* Show description on hover */
.wheel-item:hover .desc {
  opacity: 1;
}

/* Optional hover grow effect */
.wheel-item:hover {
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-28rem) rotate(calc(-1 * var(--angle))) scale(1.1);
  /* z-index: 5; */
}

@media (max-width: 1280px) {  
  .wheel-item { pointer-events: none; }
  .wheel-item .desc { opacity: 1; } 
}

@media (max-width: 1200px) {
  .wheel-item {
    width: 12rem;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-24rem) rotate(calc(-1 * var(--angle)));
  }
  .wheel-item:last-child { padding-top: 7rem; }
  .wheel-item span {
    font-size: 20px;
  }
  .wheel-item .desc {
    font-size: 20px;
  }
}

@media (max-width: 1020px) {
  .wheel_wrapper {
    margin: 6rem 0 18rem;
  }
  .wheel-item {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(24rem) rotate(calc(-1 * var(--angle)));
  }
}

@media (max-width: 968px) {
  .wheel-container {width: 60vw;}
  .wheel-item {
    top: 35%;
    translate: (-50%, 50%) rotate(var(--angle)) translateY(20rem) rotate(calc(-1 * var(--angle)));

  }
  .wheel-item img {
    height: 80px;
    width: 80px;
    border-radius: 20px;
  }
}
@media (max-width: 764px) {
  .wheel {
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 2rem; 
    padding: 0;
    br {display: none;}
    h1 {margin: 0 0 3rem;}
  }
  .wheel-item {
    position: static; /* remove absolute positioning */
    transform: none !important; /* ignore JS transforms */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    max-height: none;
    padding-top: 0;
  }
  .wheel-item:last-child { padding-top: 0; }
  .wheel-item-arc {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    position: static;
    gap: 2rem;
  }

  .wheel-container {
    flex-direction: column;
    width: 100%;
    border: none;
    aspect-ratio: auto;
  }
  .wheel_wrapper {
    margin: 4rem 0;
  }
}