body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #e2e2e2;
    text-align: center;
}

.head-box {
    background: white;
    padding: 40px;
    margin: 10px;
    font-weight: bold;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding: 0 10px;
}

@media(min-width: 768px) {
    .main {
        flex-direction: row;
    }
}

.title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #4886D9;
}

.title span {
    color: #4886D9;
}

.title .wh {
    color: #ffc107;
}

.info-box {
    background: #3a76b3;
    color: white;
    padding: 20px;
    width: 100%;
    max-width: 250px;
    text-align: left;
    border-radius: 8px;
}

.info-box strong {
    color: #F28C0F;
    font-weight: 900;
    font-size: 20px;
}

.segment {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    left: 50%;
    transform-origin: 0% 100%;
    clip-path: polygon(0% 100%, 100% 50%, 0% 0%);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 15px;
    font-weight: bold;
    font-size: 3vw;
    text-align: right;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}


/*WRAPPER*/

#wrapper {
    margin: 40px auto 0;
    width: 266px;
    position: relative;
}

#txt {
    color: #eaeaea;
}


/*WHEEL*/

#wheel {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 10px, rgba(0, 0, 0, 0) 0px 3px 0px, 0px 9px 20px 4px #00000099;
    transform: rotate(0deg);
}

#inner-wheel {
    width: 100%;
    height: 100%;
    -webkit-transition: all 6s cubic-bezier(0, .99, .44, .99);
    -moz-transition: all 6 cubic-bezier(0, .99, .44, .99);
    -o-transition: all 6s cubic-bezier(0, .99, .44, .99);
    -ms-transition: all 6s cubic-bezier(0, .99, .44, .99);
    transition: all 6s cubic-bezier(0, .99, .44, .99);
}

#wheel div.sec {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 130px 75px 0;
    border-color: #19c transparent;
    transform-origin: 75px 129px;
    left: 50px;
    top: -4px;
    opacity: 1;
}

#wheel div.sec:nth-child(1) {
    transform: rotate(60deg);
    -webkit-transform: rotate(60deg);
    -moz-transform: rotate(60deg);
    -o-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    border-color: #4988BF transparent;
}

#wheel div.sec:nth-child(2) {
    transform: rotate(120deg);
    -webkit-transform: rotate(120deg);
    -moz-transform: rotate(120deg);
    -o-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    border-color: #D9D9D9 transparent;
}

#wheel div.sec:nth-child(3) {
    transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    border-color: #4988BF transparent;
}

#wheel div.sec:nth-child(4) {
    transform: rotate(240deg);
    -webkit-transform: rotate(240deg);
    -moz-transform: rotate(240deg);
    -o-transform: rotate(240deg);
    -ms-transform: rotate(240deg);
    border-color: #D9D9D9 transparent;
}

#wheel div.sec:nth-child(5) {
    transform: rotate(300deg);
    -webkit-transform: rotate(300deg);
    -moz-transform: rotate(300deg);
    -o-transform: rotate(300deg);
    -ms-transform: rotate(300deg);
    border-color: #4988BF transparent;
}

#wheel div.sec:nth-child(6) {
    transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    border-color: #D9D9D9 transparent;
}

#wheel div.sec .fa {
    margin-top: -100px;
    color: rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10000000;
    display: block;
    text-align: center;
    font-size: 36px;
    margin-left: -15px;
    text-shadow: rgba(255, 255, 255, 0.1) 0px -1px 0px, rgba(0, 0, 0, 0.2) 0px 1px 0px;
}

.first-title {
    z-index: 9999;
    position: relative;
    left: -28px;
    top: -130px;
    transform: rotate(0deg);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    display: flex;
    text-align: center;
}

.second-title {
    z-index: 9999;
    position: relative;
    left: -25px;
    top: -130px;
    transform: rotate(3deg);
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    text-align: center;
    color: #616161;
}

.three-title {
    z-index: 9999;
    position: relative;
    left: -14px;
    top: -130px;
    transform: rotate(0deg);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    text-align: center;
    display: flex;
}

.four-title {
    z-index: 9999;
    position: relative;
    left: -30px;
    top: -135px;
    transform: rotate(3deg);
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    color: #616161;
}

.five-title {
    z-index: 9999;
    position: relative;
    left: -36px;
    top: -132px;
    transform: rotate(3deg);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    font-size: 15px;
}

.sex-title {
    position: relative;
    left: -13px;
    top: -130px;
    transform: rotate(0deg);
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    text-align: center;
    color: #616161;
}

#spin {
    width: 68px;
    height: 68px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -34px 0 0 -34px;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 3px 0px;
    z-index: 1000;
    background: #fff;
    cursor: pointer;
    font-family: 'Exo 2', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

#spin:after {
    content: "";
    text-align: center;
    line-height: 68px;
    color: #CCC;
    text-shadow: 0 2px 0 #fff, 0 -2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100000;
    width: 68px;
    height: 68px;
    display: block;
}

#spin:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 20px 28px 20px;
    border-color: transparent transparent #ffc107 transparent;
    top: -12px;
    left: 14px;
}

#inner-spin {
    width: 54px;
    height: 54px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -27px 0 0 -27px;
    border-radius: 50%;
    background: red;
    z-index: 999;
    box-shadow: rgba(255, 255, 255, 1) 0px -2px 0px inset, rgba(255, 255, 255, 1) 0px 2px 0px inset, rgba(0, 0, 0, 0.4) 0px 0px 5px;
    background: rgb(255, 255, 255);
    /* Old browsers */
    background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 1) 0%, rgba(234, 234, 234, 1) 100%);
    /* FF3.6+ */
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(234, 234, 234, 1)));
    /* Chrome,Safari4+ */
    background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 1) 0%, rgba(234, 234, 234, 1) 100%);
    /* Chrome10+,Safari5.1+ */
    background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 1) 0%, rgba(234, 234, 234, 1) 100%);
    /* Opera 12+ */
    background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 1) 0%, rgba(234, 234, 234, 1) 100%);
    /* IE10+ */
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(234, 234, 234, 1) 100%);
    /* W3C */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea', GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
}

#spin:active #inner-spin {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 5px inset;
}

#spin:active:after {
    font-size: 15px;
}

#shine {
    width: 250px;
    height: 250px;
    position: absolute;
    top: 0;
    left: 0;
    background: -moz-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.99) 1%, rgba(255, 255, 255, 0.91) 9%, rgba(255, 255, 255, 0) 100%);
    /* FF3.6+ */
    background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(1%, rgba(255, 255, 255, 0.99)), color-stop(9%, rgba(255, 255, 255, 0.91)), color-stop(100%, rgba(255, 255, 255, 0)));
    /* Chrome,Safari4+ */
    background: -webkit-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.99) 1%, rgba(255, 255, 255, 0.91) 9%, rgba(255, 255, 255, 0) 100%);
    /* Chrome10+,Safari5.1+ */
    background: -o-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.99) 1%, rgba(255, 255, 255, 0.91) 9%, rgba(255, 255, 255, 0) 100%);
    /* Opera 12+ */
    background: -ms-radial-gradient(center, ellipse cover, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.99) 1%, rgba(255, 255, 255, 0.91) 9%, rgba(255, 255, 255, 0) 100%);
    /* IE10+ */
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.99) 1%, rgba(255, 255, 255, 0.91) 9%, rgba(255, 255, 255, 0) 100%);
    /* W3C */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#00ffffff', GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    opacity: 0.1;
}


/*ANIMATION*/

@-webkit-keyframes hh {
    0%,
    100% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }
    50% {
        transform: rotate(7deg);
        -webkit-transform: rotate(7deg);
    }
}

@keyframes hh {
    0%,
    100% {
        transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
    }
    50% {
        transform: rotate(7deg);
        -webkit-transform: rotate(7deg);
    }
}

.spin {
    -webkit-animation: hh 0.1s;
    /* Chrome, Safari, Opera */
    animation: hh 0.1s;
}

.spin-btn {
    margin: 25px 0 10px 0;
    width: 200px;
    background: #ffc107;
    color: white;
    border: solid 3px #4886D9;
    padding: 5px;
    font-size: 25px;
    font-weight: 900;
    border-radius: 7px;
    cursor: pointer;
}