* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    font-family: Open Sans, Arial, serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background: #f44336;
    background-size: cover;
}

.mainbox {
    position: relative;
    width: 500px;
    height: 500px;
}

.mainbox::after {
    position: absolute;
    content: '';
    width: 32px;
    height: 32px;
    background: url('./assets/arrow-left.png') no-repeat;
    background-size: 32px;
    right: -52px;
    top: 50%;
    transform: translate(-50%);
}

.mainbox.animate-arrow::after {
    animation: animateArrow 1s ease infinite;
}

@keyframes animateArrow  {
    50% {
        right: -65px;
    }
}

.wheel {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    border: 10px solid #fff;
    overflow: hidden;
    transition: all ease 3s; /*for rotation*/
}

.box2 {
    width: 100%;
    height: 100%;
    transform: rotate(-135deg);
}

span {
    width: 50%;
    height: 50%;
    display: inline-block;
    position: absolute;
}

span b {
    width: 65px;
    height: 65px;
    line-height: 65px;
    border-radius: 50%;
    font-size: 26px;
    text-align: center;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 3px 3px 0 #717171;
}

.span1 {
    clip-path: polygon(0 92%, 100% 50%, 0 8%);
    background-color: #ffeb3b;
    top: 120px;
    left: 0
}

.span2 {
    clip-path: polygon(100% 92%, 0 50%, 100% 8%);
    background-color: #e91e63;
    top: 120px;
    right: 0
}

.span3 {
    clip-path: polygon(50% 0, 8% 100%, 92% 100%);
    background-color: #4caf50;
    bottom: 0;
    left: 120px;
}

.span4 {
    clip-path: polygon(50% 100%, 92% 0, 8% 0);
    background-color: #3f51b5;
    top: 0;
    left: 120px;
}

.spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 4px solid #fff;
    background-color: #ff5722;
    color: #fff;
    box-shadow: 0 5px 20px #000;
    font-weight: bold;
    font-size: 22px;
    cursor: pointer;
}

.spin-button:active {
    width: 70px;
    height: 70px;
    font-size: 20px;
}

.blur {
    animation: blurAnimation 3s;
}

@keyframes blurAnimation {
    0% {
        filter: blur(1.5px);
    }
    80% {
        filter: blur(1.5px);
    }
    100% {
        filter: blur(0px);
    }
}
