* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h1 {
    color: #444;
}

.config-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 300px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.config-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

label {
    margin-right: 10px;
    font-weight: bold;
}

input[type="number"] {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#update-wheel {
    background-color: #4b76a8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 10px;
}

#update-wheel:hover {
    background-color: #3a5c8d;
}

.roulette-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 50px auto;
    display: flex;
    justify-content: center;
}

canvas {
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

/* Remove or comment out the pointer class since we're now drawing the cigarette on canvas */
/*
.pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(270deg);
    height: 60px;
    z-index: 10;
}
*/

#spin-button {
    background-color: #d41010;
    color: white;
    border: none;
    padding: 25px 55px;
    font-size: 30px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 60px;
}

#spin-button:hover {
    background-color: #c0392b;
}

.result {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.result p {
    font-size: 18px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .wheel-container {
        width: 350px;
        height: 350px;
    }
    
    canvas {
        width: 500px;
        height: 500px;
    }
    
    #spin-button {
        padding: 20px 40px;
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    .wheel-container {
        width: 400px;
        height: 400px;
    }
    
    canvas {
        width: 350px;
        height: 350px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .config-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    label {
        margin-right: 0;
        margin-bottom: 5px;
    }
}