.modal{
    background-color: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s;
    width: 100%;
    z-index: 2000;
}

.modal.open {
    opacity: 1;
}

.modal .conted{
    background: 
        linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
        url(images/sfondoreel.jpeg) ;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.75rem;
    text-align: center;
    padding: 1em;
    box-shadow: 0 0 64px 12px rgba(255, 255, 255, 0.2);
    width: 50%;
    max-height: 80vh;     
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start;
}

.modalImage{
    width: 25%;
    border-radius: 0.75em;
}

.modalTitle{
    margin-bottom: 0.5em;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    font-family: 'CrayonHandRegular2016Demo';
}

.modalDescription{
    font-size: 0.8em;
    margin: 1em;
    text-align: center;
    font-family: 'Quicksand';
    font-weight: bold;
    white-space: pre-line;
}

.modalDesc{
    font-size: 1em;
    text-align:justify;
    font-family: 'Quicksand';
    font-weight: bold;
    margin-bottom: 1em;
}


@font-face {
    font-family: 'CrayonHandRegular2016Demo';
    src: url('CrayonHandRegular2016Demo.ttf') format('truetype');;
 }

.modal .conte button, .modal .conted button{
    font-family: 'CrayonHandRegular2016Demo';
    width: 50%;
    padding: 0.75rem;
    margin-bottom: 1em;
    color: #008F30;
    border: 0;
    border-radius: 0.5em;
    font-size: 1em;
    
}

.modal .conte button.cancelButtonText, .modal .conted button.cancelButtonText{
    background-color: #E9B416;
}

.modalImgTi{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid black;
    margin-bottom: 1em;
}

.modalLista{
    background-color: white;
    font-family: 'Quicksand';
    text-decoration: none;
    color: black;
    margin-bottom: 1em;
    border: 2px solid #008F30;
    border-radius: 1em;
    padding: 10px;
    font-size: 0.8em;
    font-weight: bold;
}

@media (max-width: 768px) {
    
    
    .modal .conted{
        width: 70%;
        max-height: 80vh;  /* anche qui */
        overflow-y: auto;
    }
    
    .modal .conte button, .modal .conted button, .modalImage{
        width: 50%;
    }
    
}