body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

.wheel-container {
    text-align: center;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 10px solid #ccc;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.33, 1, 0.68, 1);
}

.item {
    position: absolute;
    width: 50%;
    height: 50%;
    top: 50%;
    left: 50%;
    transform-origin: 0% 100%;
    transform: rotate(calc(var(--i) * 45deg)) translate(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    color: white;
}

.item:nth-child(odd) {
    background-color: #3498db;
}

.item:nth-child(even) {
    background-color: #e74c3c;
}
