#ruota-battesimo-container {
    text-align: center;
    margin: 20px;
}

#ruota-battesimo {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #ccc;
}

.wheel {
    width: 100%;
    height: 100%;
    transition: transform 3s ease-in-out;
    background-image: url('ruota.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ruota-battesimo-button {
  background-color: #708fa5; /* Colore di sfondo arancione */
  color: #fff; /* Colore del testo bianco */
  font-size: 18px; /* Dimensione del font */
  padding: 15px 30px; /* Spaziatura interna */
  border-radius: 50px; /* Rende il bottone rotondo */
  border: none; /* Rimuove il bordo */
  cursor: pointer; /* Cambia il cursore al passaggio del mouse */
  transition: background-color 0.3s, transform 0.3s; /* Aggiunge transizione per effetti */
}

.ruota-battesimo-button:hover {
  background-color: #708fa5; /* Colore di sfondo più scuro al passaggio del mouse */
  transform: scale(1.1); /* Effetto di ingrandimento al passaggio del mouse */
}

.ruota-battesimo-button:focus {
  outline: none; /* Rimuove il bordo di focus */
}


.lancetta {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: 160px;
    background-image: url('lancetta.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -65%);
    z-index: 1;
    margin-left: 2.5px;
}

.ruota-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.ruota-popup.show {
    opacity: 1;
}

.ruota-popup-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
    border-radius: 5px;
    transform: scale(0.8);
    transition: transform 0.3s ease-in-out;
    font-family: 'Playfair Display', serif;
}

.ruota-popup.show .ruota-popup-content {
    transform: scale(1);
}

.ruota-popup-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    #ruota-battesimo-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #ruota-battesimo {
        width: 90vw;
        height: 90vw;
        max-width: 400px;
        max-height: 400px;
        margin: 20px 0;
    }

    .ruota-battesimo-button {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .ruota-popup-content {
        width: 90%;
        max-width: 300px;
    }

    .lancetta { /* Aggiunto blocco per la lancetta */
        width: 150px; /* Riduce la larghezza della lancetta */
        height: 150px; /* Riduce l'altezza della lancetta */
    }
}