/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: #333;
}

/* Wheel Container */
.wheel-container {
    text-align: center;
    max-width: 90%;
    margin: auto;
}

h1 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Wheel Styles */
.wheel {
    width: 80vw;
    max-width: 400px;
    height: 80vw;
    max-height: 400px;
    border: 10px solid #333;
    border-radius: 50%;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 4s ease-out;
    background: radial-gradient(circle at center, #f9f9f9, #ddd);
}

/* Segments */
.segment {
    position: absolute;
    width: 50%;
    height: 50%;
    color: white;
    text-align: center;
    line-height: 1.5;
    padding-top: 35%;
    box-sizing: border-box;
    transform-origin: 100% 100%;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    font-size: 1.1rem;
    font-weight: bold;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.segment:nth-child(1) {
    transform: rotate(0deg);
    background: linear-gradient(135deg, #ff5722, #ff9800);
}

.segment:nth-child(2) {
    transform: rotate(60deg);
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.segment:nth-child(3) {
    transform: rotate(120deg);
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.segment:nth-child(4) {
    transform: rotate(180deg);
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.segment:nth-child(5) {
    transform: rotate(240deg);
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.segment:nth-child(6) {
    transform: rotate(300deg);
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Blinking Effect */
.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}
/* test */
#result a {
    color: #ff9800; /* Match the button color or adjust as needed */
    text-decoration: none;
    font-weight: bold;
}

#result a:hover {
    text-decoration: underline;
}

/* Spin Button */
button {
    padding: 15px 30px;
    font-size: 1.5rem;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #e65100;
    transform: scale(1.1);
}

#result {
    margin-top: 30px;
    font-size: 1.8rem;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .segment {
        line-height: 1.2;
        font-size: 1rem;
    }

    button {
        font-size: 1.2rem;
    }

    #result {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .segment {
        line-height: 1;
        font-size: 0.9rem;
    }

    button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    #result {
        font-size: 1.3rem;
    }
}
