/* General page styling */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

/* Center container styling */
.center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

/* Wheel container styling */
.wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 30;
}

/* Spinning wheel styling */
.wheel {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid #333;
    position: relative;
    overflow: hidden;
    transform: rotate(0deg);
    transition: transform 4s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Each segment styling */
.segment {
    position: absolute;
    width: 50%;
    height: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    transform-origin: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

/* Pointer styling */
.pointer {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 29px solid transparent;
    border-bottom: 40px solid #333;
    position: absolute;
    top: 25px;
}

/* Spin button styling */
.spin-btn {
	width: 120px;
    margin: 20px 0;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #0073e6;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
}

/* Highlight winning segment */


/* Winning Segment Highlight */
.highlight {
    animation: popEffect 0.8s ease-out, glowPulse 1.5s infinite alternate;
    background-color: #ffd700; /* Gold effect */
    box-shadow: 0 0 20px 10px #ffd700;
    z-index: 2;
}

/* Pop animation for scaling */
@keyframes popEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Glowing pulse effect */
@keyframes glowPulse {
    0% { box-shadow: 0 0 15px 5px #ffd700; }
    100% { box-shadow: 0 0 30px 15px #ffdf00; }
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #fff;
    opacity: 0.8;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}



/* Winning segment display */
#result {
    margin: 20px 0;
    font-size: 18px;
    font-weight: bold;
}

/* Form styling */
form {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

input, select, button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

button {
    background-color: #0073e6;
    color: white;
    border: none;
    text-transform: uppercase;
}

small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    text-align: center;
}
