/* PLayer audio */

.sticky-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    z-index: 1000;
}

.sticky-player audio {
    width: 90%;
}

.sticky-player .close-player {
    position: absolute;
    right: 0px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    right: 0px;
    color: red;
    top: -40px;
}

/* Media query per dispositivi medi e grandi */
@media (min-width: 768px) {
    .sticky-player .close-player {
        right: 0px;
    }
}

/* Anteprima PDF */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.pdf-modal .modal-content {
    margin: 2% auto;
    padding: 20px;
    width: 90%;
    height: 90%;
    position: relative;
}

.pdf-modal .close-pdf {
    position: fixed;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: red;
    font-size: 28px;
    cursor: pointer;
    z-index: 1002;
}

.pdf-modal .close-pdf:hover,
.pdf-modal .close-pdf:focus {
    color: black;
    text-decoration: none;
}

#pdfViewer canvas {
    display: block;
    margin: 10px auto;
    max-width: 100%;
    height: auto;
}

/* Player video */
.video-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    top: 10px;
    width: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.video-modal .modal-content {
    background-color: #fff;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    height: auto;
    position: relative;
}

.video-modal .close-video {
    position: absolute;
    top: 0px;
    right: 0px;
    background: transparent;
    border: none;
    color: red;
    font-size: 28px;
    cursor: pointer;
    padding: 20px;
}

.video-modal .close-video:hover,
.video-modal .close-video:focus {
    color: darkred;
    text-decoration: none;
}

#videoFrame {
    width: 100%;
    height: 100%;
}

@media (min-width: 768px) {
    .video-modal {
        top: 10px;
        right: 10px;
        left: auto;
        width: auto;
    }

    .video-modal .modal-content {
        width: 400px;
        height: 300px;
    }
}

@media (max-width: 767px) {
    .video-modal {
        top: 10px;
        left: 0;
        width: 100%;
    }

    .video-modal .modal-content {
        width: 100%;
    }
}