.wcontainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f0f0;
    padding: 20px;
    box-sizing: border-box;
    width: 100%; /* Prevent Bootstrap column compression */
    max-width: 100%; /* Override max-width constraints */
}

.wheel-container {
    position: relative;
    text-align: center;
    width: 90vmin;
    height: 90vmin;
    max-width: 700px;
    max-height: 700px;
    min-width: 300px;
    min-height: 300px;
    aspect-ratio: 1 / 1; /* Ensure square shape */
    margin: 0 auto; /* Center and avoid Bootstrap offsets */
}

.wheel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50% !important; /* High specificity */
    overflow: hidden !important; /* Clip gradient and content */
    transition: transform 4s ease-out;
    background: #fff; /* Fallback */
}

#wheelContent {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Clip child content */
    overflow: hidden; /* Prevent overflow */
    position: relative;
}

.segment-container {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%; /* Clip segment content */
    overflow: hidden;
    transform-origin: center center;
}

.image-name {
    position: absolute;
    width: 100px; /* Reduced from 150px to fit better */
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Clip long text */
    text-overflow: ellipsis; /* Add ellipsis for clipped text */
}

/* Keep other styles (e.g., .flapper, .spin-button, etc.) unchanged unless needed */
.flapper {
    position: absolute;
    top: -8vmin;
    left: 50%;
    transform: translateX(-50%);
    width: 6vmin;
    height: 9vmin;
    min-width: 25px;
    min-height: 37.5px;
    max-width: 30px;
    max-height: 45px;
    background: #ffffff;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    border: 2px solid #333;
}

.flapper::before {
    content: '';
    position: absolute;
    top: 1.6vmin;
    left: 50%;
    transform: translateX(-50%);
    width: 1.6vmin;
    height: 1.6vmin;
    min-width: 6px;
    min-height: 6px;
    max-width: 8px;
    max-height: 8px;
    background: #ff4444;
    border-radius: 50%;
    border: 1px solid #333;
}

.spin-button {
    margin: 20px auto 0 auto; /* top margin 20px, auto left/right */
    display: block; /* block-level to allow margin auto to work */
    padding: 10px 20px;
    font-size: 3vmin;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
}


.spin-button:hover {
    background: #45a049;
}

.spin-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

 .center-spin-button {

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18vmin;
    height: 18vmin;
    min-width: 80px;
    min-height: 80px;
    max-width: 120px;
    max-height: 120px;
    background: #ffb300;
    color: #333;
    border: 0px solid #333;
    border-radius: 50% !important; /* Counter overrides */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2vmin;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s ease;

}


.center-spin-button:hover {
    background: #ffb300;
}

.center-spin-button:disabled {
    background: #ffb300;
    cursor: not-allowed;
}

.center-spin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 30px;
    background: #ffb300;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    z-index: 21;
}

.result-container {
    margin-top: 20px;
    padding: 2vmin 4vmin;
    background: linear-gradient(135deg, #ffeb3b, #ffd700);
    border: 3px solid #ffca28;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: none;
    animation: popIn 0.5s ease-out;
}

.result-title {
    font-size: 4vmin;
    font-weight: bold;
    color: #d81b60;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-winner {
    font-size: 2vmin;
    font-weight: bold;
    color: #1b5e20;
    background: #ffffff;
    padding: 1vmin 2vmin;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

