body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #d698a1;
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden; /* Empêche l'apparition de barres de défilement */
}

#nameInput {
    padding: 12px;
    border: 2px solid #ff4081;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    text-align: center;
    width: 80%;
}

#startBtn {
    background-color: #ff4081;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.hidden { display: none !important; }

#container {
    background-color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 350px;
}

h1 {
    color: #d32f2f;
    margin-bottom: 20px;
}

/* Alignement des boutons côte à côte */
.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Espace entre les deux boutons */
    margin-top: 25px;
    position: relative;
    min-height: 50px;
}

button {
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

#yesBtn {
    background-color: #ff4081;
    color: white;
}

#noBtn {
    background-color: #757575;
    color: white;
    z-index: 999; /* Pour qu'il passe au-dessus du reste en bougeant */
}

.hidden {
    display: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
}

/* Le conteneur blanc fixe */
#music-control {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    /* On force une taille identique pour la largeur et la hauteur */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* L'élément qui contient l'émoji et qui tourne */
#disk {
    font-size: 40px;
    line-height: 1; /* Très important pour éviter les décalages de texte */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    /* On s'assure que le point de rotation est le centre exact */
    transform-origin: center center; 
}

/* L'animation de rotation */
.spinning {
    animation: rotateDisk 2s linear infinite;
}

@keyframes rotateDisk {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

/* Style des petits cœurs qui tombent */
.heart-particle {
    position: fixed;
    top: -10%;
    user-select: none;
    pointer-events: none;
    z-index: 9999;
    animation: fall linear forwards;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}