/* Spin Wheel Styles */
.spinwheel {
    height: 85vh;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.spinwheel-container {
    max-width: 900px;
    width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    border: 2px solid #814f339e;
    background: #fff1dc;
}

.spinwheel-wrapper {
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 30px 0;
}

.wheel-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
    margin-left: -180px;
}   

.wheel-wrapper canvas#spin-wheel {
    transform: rotate(-30deg);
} 

canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.user-input {
    width: 54%;
    padding: 35px;
    margin-left: auto;
}

.user-input input, 
.user-input input[type="number"] {
    display: block;
    margin: 10px auto;
    padding: 10px 16px;
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    border: none;
    border-radius: 16px !important;
    outline: none;
}

.user-input input:focus {
    border: none;       
}

.user-input p#prize-message:not(:empty) {
    background: #f3e2cc;
    line-height: 1;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

#spin-btn {
    padding: 13px 20px;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    width: 100%;
    text-align: center;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: 14px;
    color: #612d0f;
    border-radius: 16px;
    border: 1px solid #612d0f;
    background: #fcd18d;
    box-shadow: 0 5px 20px #fcd18d;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

button#spin-btn:before {
    content: "";
    position: absolute;
    width: 40px;
    height: 100%;
    left: 0;
    top: 0;
    display: block;
    pointer-events: none;
    overflow: hidden;
    transform: skew(20deg);
    background-image: linear-gradient(to right,rgba(255,255,255,.1),rgba(255,255,255,.4),rgba(255,255,255,.4),rgba(255,255,255,.1));
    animation: addtocart cubic-bezier(.19,1,.22,1) 3s 3s infinite;
}

#spin-btn:disabled {
    background: #fcd18d;
    cursor: not-allowed;
}

.arrow {
    position: absolute;
    top: 50%;
    right: -34px;
    transform: translateY(-50%) rotate(270deg);
    z-index: 1;
}

.arrow::before {
    position: absolute;
    content: '';
    top: 28px;
    left: 15.1px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    width: 15px;
}

.arrow svg {
    width: 45px;
    height: 50px;
    transform: rotate(180deg);
    position: relative;
}   

/* Mobile Responsive */
@media only screen and (max-width: 799px) {
    .spinwheel {
        padding: 50px 0;
        height: auto;
    }   
    
    .spinwheel-container {
        max-width: 100%;
        width: 100%;
    }   
    
    .spinwheel-wrapper {
        padding: 40px 0 0;
        flex-direction: column;
        gap: 0;
    }   
    
    .wheel-wrapper {
        margin-left: 0;
    }   
    
    .user-input {
        width: 100%;
        padding: 25px;
    }   
}   

@media only screen and (max-width: 580px) {
    .wheel-wrapper {
        width: 320px;
        height: 320px;
    }       
}

@media only screen and (max-width: 450px) {
    .wheel-wrapper {
        width: 300px;
        height: 300px;
    }   
    
    .arrow {
        right: -25px;
    }   
}

