/* Modale per uri file esterni */
/* Stili per il modale */
.modale-ask,
.modale-uri {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color-alf-0);
    z-index: 9999;
}

.modale-uri .modal-content {
    margin: 0;
    padding: 0;
    border: 1px solid var(--background-card-border);
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    min-height: -webkit-fill-available;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
}

.modale-ask .close {
    font-family: 'ito-icon-to5-essential';
    right: 0;
    font-size: 24px;
    padding-top: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modale-ask .close:hover,
.modale-ask .close:focus {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background: var(--background-shadow-alf-3);
}

.modale-uri .close {
    font-family: 'ito-icon-to5-essential';
    position: absolute;
    font-size: 24px;
    padding-top: 2px;
    border-radius: 50%;
    margin-right: 13px;
    margin-top: 8px;
    width: 33px;
    height: 33px;
    display: flex;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modale-ask .close:before,
.modale-uri .close:before {
    content: "\fa90";
}

.modale-uri .close:hover,
.modale-uri .close:focus {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Stili per il testo del modale */
.modale-uri .modal-text {
    max-height: 83vh;
    overflow-y: auto;
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
}

.fullscreen.modal-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 0;
    border: none;
    z-index: 9999;
}

.fullscreen.modal-content {
    display: flex;
    align-items: flex-end;
    backdrop-filter: blur(10px);
}

.fullscreen .close {
    top: 1rem;
    margin-right: 1rem;
    position: fixed;
    z-index: 1000;
    width: 40px;
    height: 40px;
}

.fullscreen .modal-text {
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100%;
    overflow-y: auto;
    position: relative;
}

.loading-indicator {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--background-color);
    padding: 20px;
    z-index: 1000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.loading-text {
    font-size: 16px;
}

/* styles unrelated to zoom */
*:not(ul, ol, h1, h2, h3, h4, h5, h6, p, hr) {
    border: 0;
    margin: 0;
    padding: 0;
}

.modale-uri .modal-text.words {
    padding: 2rem;
}

@media screen and (max-width: 768px) {
    .modale-uri .modal-content {
        padding: 11px;
        margin: 7px;
        width: auto;
    }

    .modale-uri .modal-text.words {
        padding: 25px 1px;
    }

    .modale-ask .close,
    .modale-uri .close {
        font-size: 18px;
        margin-right: 4px;
        margin-top: 2px;
    }
}

#extraOptions {
    display: none;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#extraOptions.show {
    display: block;
    opacity: 1;
    transform: translateX(0);
}