body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #f4f4f4;
    text-align: center;
    padding: 0;
    margin: 0;
    color: #333;
}

header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    font-size: 24px;
}

.wheel-container {
    margin: 50px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 8px solid #333;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 1fr);
    position: relative;
    overflow: hidden;
    transform: rotate(0deg);
}

.segment {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #333;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.pointer {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid #FF0000;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#spinButton {
    padding: 15px 30px;
    margin-top: 30px;
    background-color: #28a745;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#spinButton:hover {
    background-color: #218838;
}

.hidden {
    display: none;
}

footer {
    margin-top: 50px;
    background-color: #333;
    color: white;
    padding: 10px;
    font-size: 14px;
}

@media screen and (max-width: 600px) {
    .wheel {
        width: 300px;
        height: 300px;
    }
    .segment {
        font-size: 12px;
    }
}
