* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.app-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin-bottom: 20px;
}

canvas {
    display: block;
    margin: 0 auto;
}

#spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e74c3c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

#spin-button:hover {
    background-color: #c0392b;
    transform: translate(-50%, -50%) scale(1.05);
}

#result-container {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 30px;
}

.controls-container {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.control-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"], 
input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

.segment-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.segment-item input {
    flex: 1;
}

.segment-item button {
    background-color: #e74c3c;
    padding: 8px;
}

.segment-item button:hover {
    background-color: #c0392b;
}

#apply-changes {
    margin-top: 15px;
    width: 100%;
}

@media (max-width: 768px) {
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    
    canvas {
        width: 300px;
        height: 300px;
    }
    
    #spin-button {
        width: 60px;
        height: 60px;
        font-size: 0.9rem;
    }
}