html {
    color: #fff;
    background-image: repeating-linear-gradient(to right, #2d0000, #2d0000 50%, transparent 30px, transparent);
    background-size: 50px 50px;
    background-color: #380000;
    display: flex;
    flex-direction: column;
    height: 100%;
}

body {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: #fff;
}

#canvas {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    /* Arrière-plan pour mobile */
    background-image: url('../images/Mission-Background2.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

#wheel {
    position: relative;
    width: 900px;
    height: 900px;
    max-width: 95vw;
    max-height: 95vw;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

#wheel svg {
    width: 100%;
    height: 100%;
    overflow: visible; /* Ensure wheel is fully visible during rotation */
}

#wheel g {
    transform-box: fill-box;
    transform-origin: center;
}

#wheel text {
    font-family: 'Arial', sans-serif;
    /*font-size: 3.5px;*/
    font-weight: bold;
    /*font-size: inherit;*/
    fill: white;
    text-shadow: 0 3px 2px #000;
}

#wheel textPath {
    letter-spacing: 0.2px;
}

#wheel image {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto;
}

#wheel path[d^="M 46,-2"] {
    transform: scale(0.70);
    transform-origin: center top;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

#wheel path[d^="M 46,0"] {
    transform: scale(2.5);
    transform-origin: center top;
    fill: #ffbb00; /* Matching the wheel border color */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

#spin-button {
    position: relative;
    font-family: 'Roboto', sans-serif;
    padding: 15px 50px;
    background: rgb(230 28 54);
    color: #ffffff;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    margin-top: 6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.2),
        inset 0 1px 1px rgba(255,255,255,0.2);
}

#spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0,0,0,0.3),
        inset 0 1px 1px rgba(255,255,255,0.2);
    background: rgb(168, 1, 1);
}

#spin-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 50%;
    height: 100%;
    transform: rotate(80deg);
    background: #ffffff77;
    filter: blur(10px);
    transition: 0.6s ease-in-out;
}

#spin-button:hover::after {
    left: 100%;
}

/* Reset default button styles */
button {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    color: inherit;
    line-height: normal;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    text-shadow: none;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
    #spin-button {
        padding: 12px 30px;
        font-size: 20px;
    }
}

#menu {
    margin-top: 2rem;
}

#menu form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#menu label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#menu input[type="radio"] {
    accent-color: rgb(148, 1, 1);
}

.wheel-group {
    transform-origin: 50% 50%;
    transform-box: fill-box;
}

/* Remove any existing transform-origin from individual sections */
.wheel-section {
    transition: fill 0.3s ease;
}

/* Section colors matching the image exactly */
.section-1 { fill: #4052B3; } /* Gift card - royal blue */
.section-2 { fill: #E94F64; } /* Dessert - coral red */
.section-3 { fill: #4BA6C0; } /* Coupon - turquoise */
.section-4 { fill: #96B83C; } /* T-shirt - lime green */
.section-5 { fill: #E68449; } /* Coffee - orange */
