body {
    font-family: sans-serif;
    margin: 0;
    padding: 20px;
}

.button-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.modal-button {
    font-size: 1.2rem;
    padding: 15px 25px;
    cursor: pointer;
    border: 2px solid #333;
    background-color: #e1e1ff;
    border-radius: 8px;
    text-align: center;
}

.modal-button:hover {
    background-color: #f0f0f0;
}

/* Modal */
#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* or "flex" */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto; /* Permette lo scroll se il contenuto è lungo */
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px; /* Applica il bordo arrotondato a questo contenitore */
    width: 90%;
    max-width: 90vw;
    position: relative;
    max-height: 90vh;
    /* Rimuovi overflow-y: auto da qui! */
}

.modal-body-scroll {
    max-height: calc(90vh - 60px); /* Regola l'altezza massima per lasciare spazio a padding e pulsante */
    overflow-y: auto; /* Aggiungi l'overflow solo a questo elemento */
    border-radius: 8px; /* Applica il bordo arrotondato anche qui per sicurezza */
}

/* Stile per l'intestazione del modal */
.modal-header {
    display: flex;
    justify-content: space-between; /* Sposta il titolo a sinistra e la "X" a destra */
    align-items: center; /* Allinea verticalmente gli elementi */
    /* padding-bottom: 20px; */
}

#modal-title {
    margin: 0; /* Rimuove i margini di default del tag h2 */
    font-size: 1.5rem;
    font-weight: bold;
}

/* Rimuovi la posizione fissa dalla "X" e la sposta a destra */
.close-button {
    font-size: 30px;
    cursor: pointer;
    color: #555;
    z-index: 1001;
    /* Rimuovi le seguenti proprietà se le avevi aggiunte */
    /* position: fixed; */
    /* top: 10px; */
    /* right: 20px; */
}

.close-button:hover {
    color: #000;
}

/* Stile del testo nel modal */
#modal-text p {
    font-size: clamp(1rem, 4vw, 1.2rem); /* Testo responsivo per PC e smartphone */
    line-height: 1.6;
}

.highlight {
	border: 2px dashed darkblue;
	background-color: lightyellow;
	border-radius: 8px;
	padding: 0px 10px 0px 10px;
	font-size: clamp(1rem, 4vw, 1.2rem); /* Testo responsivo per PC e smartphone */
}

.small-text {
	font-size: 0.75rem;
}

