*{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: none;
}


.mainboxwheel{
  position: relative;
  width: 500px;
  height: 500px;
}
.mainboxwheel:after{
  position: absolute;
  content: '';
  width: 32px;
  height: 32px;
  background: url('arrow-left.png') no-repeat;
  background-size: 32px;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
}
.boxwheel{
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 50%;
  border: 10px solid #fff;
  overflow: hidden;
  transition: all ease 5s;
}
span{
  width: 50%;
  height: 50%;
  display: inline-block;
  position: absolute;
}
.spanwheel1{
  clip-path: polygon(0 92%, 100% 50%, 0 8%);
  background-color: #fffb00;
  top: 120px;
  left: 0;
}
.spanwheel2{
  clip-path: polygon(100% 92%, 0 50%, 100% 8%);
  background-color: #ff4fa1;
  top: 120px;
  right: 0;
}
.spanwheel3{
  clip-path: polygon(50% 0%, 8% 100%, 92% 100%);
  background-color: #ffaa00;
  bottom: 0;
  left: 120px;
}
.spanwheel4{
  clip-path: polygon(50% 100%, 92% 0, 8% 0);
  background-color: #22ff00;
  top: 0;
  left: 120px;
}


.boxwheel1 .spanwheel3 b{
   transform: translate(-50%, -50%) rotate(-270deg);
}
.boxwheel1 .spanwheel1 b,
.boxwheel2 .spanwheel1 b{
  transform: translate(-50%, -50%) rotate(185deg);
}
.boxwheel2 .spanwheel3 b{
  transform: translate(-50%, -50%) rotate(90deg);
}
.boxwheel1 .spanwheel4 b,
.boxwheel2 .spanwheel4 b{
  transform: translate(-50%, -50%) rotate(-85deg);
}

.boxwheel2{
  width: 100%;
  height: 100%;
  transform: rotate(-135deg);
}
span b{
  font-size: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}

.spinwheel{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 4px solid #fff;
  background-color: #001aff;
  color: #fff;
  box-shadow: 0 5px 20px #000;
  font-weight: bold;
  font-size: 22px;
  cursor: pointer;
}
.spinwheel:active{
  width: 70px;
  height: 70px;
  font-size: 20px;
}

.mainboxwheel.animate:after{
  animation: animateArrow 0.7s ease infinite;
}
@keyframes animateArrow{
  50%{
    right: -40px;
  }
}
