body.modal-is-open {
    overflow: hidden;
}

.spin-wheel-parent {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(243, 10, 84, 0.5);
    /* Updated to theme pink background */
    z-index: 1000000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    display: none;
}

.wheel-holder {
    height: 100%;
    overflow: auto;
    align-content: center;
}


.spin-wheel-parent.spin-open {
    display: flex;
}

.spin-close-button {
    padding: 5px;
    position: absolute;
    top: 5px;
    right: 6px;
    cursor: pointer;

}

.spin-close-button svg {
    width: 20px;
    height: 20px;
}

body.light .spin-close-button svg {
    stroke: #696969 !important;
}

.wheel-wrapper {
    background: #141414;
    /* Updated to theme dark background */
    width: 500px;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 30px;
    padding-bottom: 20px;
    text-align: center;
    border: 1px solid #F30A54;
    /* Updated to theme pink */
    position: relative;


}



body.light .wheel-wrapper {
    background-color: #FFF3F7;
}

.wheel-wrapper .spin-info {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 24px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    text-transform: uppercase;
    color: #fff;
}

body.light .wheel-wrapper .spin-info {
    color: #696969;
}

.wheel-wrapper :where(.wheel-container) {
    --_items: 12;
    all: unset;
    aspect-ratio: 1 / 1;
    container-type: inline-size;
    direction: ltr;
    display: grid;
    position: relative;
    width: 100%;
    /* background: #0E011C; */
    /* Updated to theme dark background */
    border-radius: 50%;
    border: 2px solid #F30A54;
    /* Updated to theme pink */
}

.wheel-wrapper :where(.wheel-container)::after {
    background-color: #F30A54;
    /* Updated to theme pink */
    clip-path: polygon(100% 50%, 0% 0, 0 100%);
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(-100%);
}

.wheel-wrapper :where(.wheel-container)>* {
    position: absolute;
}

.wheel-wrapper button {
    aspect-ratio: 1 / 1;

    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 5cqi;
    place-self: center;
    width: 34cqi;
}

.wheel-wrapper ul {
    all: unset;
    clip-path: inset(0 0 0 0 round 50%);
    display: grid;
    inset: 0;
    place-content: center start;
}

.wheel-wrapper li {
    align-content: center;
    aspect-ratio: 1 / calc(2 * tan(180deg / var(--_items)));
    background: hsl(calc(360deg / var(--_items) * calc(var(--_idx))), 100%, 75%);
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    display: grid;
    font-size: 5cqi;
    grid-area: 1 / -1;
    padding-left: 0ch;
    rotate: calc(360deg / var(--_items) * calc(var(--_idx) - 1));
    transform-origin: center right;
    user-select: none;
    width: 50cqi;
}

.wheel-wrapper li:nth-of-type(1) {
    --_idx: 1;
}

.wheel-wrapper li:nth-of-type(2) {
    --_idx: 2;
}

.wheel-wrapper li:nth-of-type(3) {
    --_idx: 3;
}

.wheel-wrapper li:nth-of-type(4) {
    --_idx: 4;
}

.wheel-wrapper li:nth-of-type(5) {
    --_idx: 5;
}

.wheel-wrapper li:nth-of-type(6) {
    --_idx: 6;
}

.wheel-wrapper li:nth-of-type(7) {
    --_idx: 7;
}

.wheel-wrapper li:nth-of-type(8) {
    --_idx: 8;
}

.wheel-wrapper li:nth-of-type(9) {
    --_idx: 9;
}

.wheel-wrapper li:nth-of-type(10) {
    --_idx: 10;
}

.wheel-wrapper li:nth-of-type(11) {
    --_idx: 11;
}

.wheel-wrapper li:nth-of-type(12) {
    --_idx: 12;
}

.wheel-wrapper li.active-item {
    opacity: 0.9;
}

.wheel-wrapper li.active-item::before {
    background: linear-gradient(180deg, #F30A54 -200.79%, #fff 90.34%) !important;
    /* Updated to theme colors */

}

.wheel-wrapper li.active-item {
    background: rgb(255, 255, 255) !important;
}

.wheel-wrapper li {
    background: linear-gradient(270deg, #141414 0%, #F30A54 100%);
    /* Updated to theme gradient */
}

.wheel-wrapper li img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.wheel-wrapper li:nth-child(odd)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #F30A54 -200.79%, #141414 90.34%);
    /* Updated to theme colors */
}

.wheel-wrapper li:nth-child(even)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #F30A54 -103.79%, #141414 101.34%);
    /* Updated to theme colors */
}



/* .wheel-wrapper li:nth-of-type(1)::after { 
    background-image: url(images/animals/1.png);
    
}
.wheel-wrapper li:nth-of-type(2)::after { 
    background-image: url(images/animals/2.png);
}
.wheel-wrapper li:nth-of-type(3)::after { 
    background-image: url(images/animals/3.png);
}
.wheel-wrapper li:nth-of-type(4)::after { 
    background-image: url(images/animals/5.png);
}
.wheel-wrapper li:nth-of-type(5)::after { 
    background-image: url(images/animals/6.png);
}
.wheel-wrapper li:nth-of-type(6)::after { 
    background-image: url(images/animals/7.png);
}
.wheel-wrapper li:nth-of-type(7)::after { 
    background-image: url(images/animals/8.png);
}
.wheel-wrapper li:nth-of-type(8)::after { 
    background-image: url(images/animals/9.png);
}
.wheel-wrapper li:nth-of-type(9)::after { 
    background-image: url(images/animals/10.png);
}
.wheel-wrapper li:nth-of-type(10)::after { 
    background-image: url(images/animals/11.png);
}
.wheel-wrapper li:nth-of-type(11)::after { 
    background-image: url(images/animals/22.png);
}
.wheel-wrapper li:nth-of-type(12)::after { 
    background-image: url(images/animals/4.png);
} */

.wheel-wrapper li.active-item::after {
    background-color: rgba(255, 255, 255, 0.144);
}


/* css */
.are-you-human-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;

}

.are-you-human-wrapper label {
    margin-bottom: 0px;
}

.are-you-human-wrapper .are-you-human-button {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid #F30A54;
    /* Updated to theme pink */
    margin-left: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.are-you-human-wrapper .are-you-human-button.checked {
    border: 1px solid #F30A54;
    /* Updated to theme pink */
}

.are-you-human-wrapper .are-you-human-button .are-you-human-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F30A54;
    /* Updated to theme pink */
    display: none;
}

.are-you-human-wrapper .are-you-human-button.checked .are-you-human-result {
    display: flex;
}

.are-you-human-wrapper .are-you-human-button .are-you-human-result img {
    width: 60%;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(231deg) brightness(103%) contrast(103%);
}

.are-you-human-message {
    text-align: center;
    display: none;
    background: rgb(248, 76, 76);
    /* Updated to theme cyan */
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;

}

.are-you-human-message.show {
    display: block;
}

.wheel-wrapper .spin-change-captcha-button {
    color: #fff;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 0px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

body.light .wheel-wrapper .spin-change-captcha-button {
    color: #696969;
}

.wheel-wrapper .spin-change-captcha-button svg {
    stroke: #fff;
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

body.light .wheel-wrapper .spin-change-captcha-button svg {
    stroke: #696969;
}

.captcha-is-wrong-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(243, 10, 84, 0.3);
    /* Updated to theme pink with transparency */
    z-index: 1000000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.captcha-is-wrong-modal-wrapper.close {
    display: none;
}

.captcha-is-wrong-modal {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: #141414;
    /* Updated to theme dark background */
    border-radius: 20px;
    color: #fff;
    position: absolute;
    border: 1px solid #F30A54;
    /* Updated to theme pink */
    top: 40%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 100000;
    text-align: center;
}

body.light .captcha-is-wrong-modal {
    background-color: #FFF3F7;
    color: #696969;
}


.rotate-button {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    background-color: #fff;
}

.spin-check-captcha-button,
.captcha-is-wrong-modal-ok {

    justify-content: center;
    margin: auto;
}

/* New Modals Styles */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(243, 10, 84, 0.5);
    /* Updated to theme pink with transparency */
    z-index: 1000000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    display: none;
    /* Hidden by default */
}

.modal-wrapper.close {
    display: none;
}

.modal-wrapper:not(.close) {
    /* Show when not closed */
    display: flex;
    overflow: auto;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: #141414;
    /* Updated to theme dark background */
    border-radius: 20px;
    color: #fff;
    position: relative;
    border: 1px solid #F30A54;
    /* Updated to theme pink */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Center the modal if it's absolutely positioned, although flexbox above handles it */
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
}

body.light .modal-content {
    background-color: #FFF3F7;
    color: #696969;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-content p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.modal-content .close-modal-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #F30A54;
    /* Updated to theme pink */
    line-height: 1;
    /* Adjust line height to prevent extra space */
}

.modal-content .ok-modal-button {

    margin: auto;
}



/* Specific styles for success/failure modals text colors (optional, but good for visual cues) */
.success-modal-wrapper .modal-content h3 {
    color: #F30A54;
    /* Updated to theme pink for success */
}

.failure-modal-wrapper .modal-content h3 {
    color: #F30A54;
    /* Updated to theme pink for failure */
}

/* Ensure the body scroll is locked when any modal is open */
body.modal-is-open {
    overflow: hidden;
}

@media (max-width: 580px) {
    .wheel-wrapper {
        width: 95vw;
        padding: 15px;
    }
    .rotate-button{
        width: 80px;
        height: 80px;
    }
}

