p {
    position: absolute;
    top: 0%;
    color: #d5dadd;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

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

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: #F44336;
    background-size: cover;
    gap: 16px;
    padding: 16px;
}

#NumOSec {
    height: 60px;
    width: clamp(260px, 60vw, 400px);
    font-size: 22px;
    border-radius: .75rem;
}

#SubmitSec {
    height: 56px;
    width: clamp(180px, 40vw, 260px);
    font-size: 20px;
    border-radius: .75rem;
    cursor: pointer;
}

.mainbox {
    position: relative;
    width: min(90vmin, 90vw, 90vh);
    height: min(90vmin, 90vw, 90vh);
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .mainbox {
        width: min(80vmin, 80vw, 80vh);
        height: min(80vmin, 80vw, 80vh);
    }
}

.mainbox:after {
    position: absolute;
    content: '';
    width: 32px;
    height: 32px;
    background: url('../Images/ArrowHead4.PNG') no-repeat;
    background-size: 32px;
    right: -30px;
    top: 47.5%;
    transform: translateY(-50%) scaleX(-1);
}

.box {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    border: .625rem solid #fff;
    overflow: hidden;

    transform-origin: center;
    will-change: transform;
    backface-visibility: hidden;

    transition: transform 5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#labels-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 2;
}

.label {
    position: absolute;
    width: 30vmin;
    text-align: center;
    left: 50%;
    top: 50%;
    transform-origin: left center;
    font-size: 2.5vmin;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 4px #000;
}

.spin {
    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: white;
    box-shadow: 0px 5px 20px black;
    font-weight: bold;
    font-size: 22px;
    cursor: pointer;
}

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

.mainbox.animate:after {
    animation: animateArrow .7s ease infinite;
}

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


@media (max-width: 600px) {
    body {
        gap: 20px;
        padding: 20px 16px;
        justify-content: center;
    }
    .mainbox {
        width: 72vw;
        height: 72vw;
    }
    #NumOSec {
        height: 44px;
        width: 72vw;
        font-size: 16px;
    }
    #SubmitSec {
        height: 44px;
        width: 72vw;
        font-size: 16px;
    }
}