body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

.container {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

h1 {
    margin-top: 0;
}

.wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 1rem auto;
}

canvas {
    cursor: pointer;
    border-radius: 50%;
}

.pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 30px solid #c0392b;
}

.winner {
    margin-top: 1rem;
    color: #27ae60;
    font-size: 1.5rem;
    height: 2rem;
}

.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 1rem;
}

textarea {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0.5rem;
    font-size: 1rem;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    color: white;
    background-color: #3498db;
    transition: background-color 0.3s;
}

button:hover:not(:disabled) {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.winner-announcement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.winner-announcement.show {
    opacity: 1;
    pointer-events: all;
}
