#game-container {
    text-align: center;
    position: relative;
}

#roue {
    position: relative;
}

.logo {
    position: absolute;
    top: 340px;
    left: 300px;
    width: 130px;
    height: auto;
    transform: translate(-50%, -86%);
}

@media screen and (max-width: 601px) {
    .logo {
        display: none;
    }
}

#centerImage {
    transition: transform 0.7s ease, opacity 0.7s ease; /* Animation douce */
}

#centerImage:hover {
    transform: scale(1.1); /* Agrandit légèrement l'image */
    opacity: 0.8; /* Rend l'image légèrement transparente */
}

#spinButton {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #EC221F;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#spinButton:hover {
    background-color: #D61A17;
}

text {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 19px; /* Augmentation de la taille de la police */
    /*font-weight: ; /* Texte en gras */
    fill: white;
    pointer-events: none; /* Désactive les événements de clic sur le texte */
    user-select: none; /* Empêche la sélection du texte */
}

#question {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; /* Largeur du popup */
    max-width: 800px; /* Largeur maximale */
    height: auto; /* Ajuste la hauteur au contenu */
    max-height: 90%; /* Limite la hauteur à 90% de la fenêtre */
    background: white;
    border: 1px solid #ccc;
    padding: 20px; /* Ajuste l'espace intérieur */
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: auto; /* Ajoute un défilement si nécessaire */
    text-align: center; /* Centre le texte et les boutons */
    box-sizing: border-box; /* Inclut le padding dans la largeur */
}

#question h1 {
    font-size: 32px; /* Taille de texte plus grande pour le titre */
    font-weight: bold;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-bottom: 30px;
    text-align: center; /* Centre le texte */
}

#question p {
    font-size: 20px; /* Taille de texte plus grande pour la réponse */
    line-height: 1.6; /* Meilleure lisibilité */
    margin-top: 20px;
    text-align: center; /* Centre le texte */
}

#question button {
    padding: 10px 20px; /* Taille du bouton */
    font-size: 16px; /* Taille de la police adaptée */
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 20px;
    display: inline-block;
    max-width: 100%; /* S'assure que le bouton ne dépasse pas */
    word-wrap: break-word; /* Coupe le texte s'il est trop long */
}

#question button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    #question {
        width: 90%; /* Réduit la largeur pour les petits écrans */
        padding: 15px; /* Moins de padding pour les petits écrans */
    }

    #question button {
        font-size: 14px; /* Texte du bouton légèrement plus petit */
        padding: 8px 16px; /* Réduit la taille des boutons */
    }
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;

}

#spinButton:disabled {
    background-color: #ff7572; /* Gris clair */
    cursor: not-allowed; /* Curseur interdit */
}

#chart {
    position: relative;
    margin: 0 auto 20px;
}

@media screen and (max-width: 601px) {
    #chart {
        transform: scale(calc(var(--refWidth) / 600)) translateX(10px);
        transform-origin: top left;
    }
}

#chart svg {
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3)); /* Ombre portée sous la roue */
    width: 100vw;
    height: 100vw;
    overflow: visible;
}

@media screen and (min-width: 600px) {
    #chart svg {
        width: 600px;
        height: 600px;
    }
}

#pointer {
    position: absolute;
    top: calc(100vw / 2 - 40px);
    right: -20px;
    transform: rotate(-90deg); /* Rotation pour qu'elle pointe vers la roue */
    width: 0;
    height: 0;
    border-left: 20px solid transparent; /* Triangle gauche */
    border-right: 20px solid transparent; /* Triangle droit */
    border-bottom: 60px solid red; /* La flèche */
    z-index: 10; /* Position au-dessus de la roue */
}

@media screen and (min-width: 600px) {
    #pointer {
        top: 270px;
    }
}

