@media (max-width: 767px) {

    #books {
        background-image: url('../../images/backgrounds/livros_mobile.webp');
        background-size: cover;
        background-position: center;
        min-height: 800px;
        padding: 60px 20px;
        text-align: center;
        position: relative;
    }

    #books::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        /* Cor preta com opacidade de 0.5 */
        z-index: 1;
    }

    .books-content {
        max-width: 100%;
        text-align: center;
        position: relative;
        z-index: 2;
    }

    .books-content h2 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .books-content p {
        font-size: 16px;
        margin-top: 15px;
    }

    #books .cta-card {
        padding: 15px;
        min-height: 250px;
        margin-top: 15px;
        border-radius: 8px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid #dc3545;
        color: #fff;
        justify-content: center;
    }

    #books .cta-card h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    #books .cta-card h4 {
        font-size: 18px;
        text-align: center;
        margin-bottom: 15px;
    }

    #books .cta-card p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    #books .cta-card img {
        width: 120px;
        margin-bottom: 15px;
    }

    #books .cta-btn {
        font-size: 16px;
        padding: 8px 16px;
    }

    /* Hover Automático com Javascript */
    #books .cta-card.hovered {
        background-color: #dc3545;
        /* Cor de fundo ao passar o mouse */
        color: #fff;
        /* Muda a cor do texto para branco */
    }


    /* Books2 */

    #books2 {
        background-image: url('../../images/backgrounds/livros2_mobile.webp');
        background-size: cover;
        background-position: right;
        min-height: 800px;
        padding: 60px 20px;
        text-align: center;
        position: relative;
    }

    #books2 h2 {
        font-size: 32px;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
        /* Sombra preta com leve opacidade */
    }

    #books2 .flip-card {
        width: 250px;
        height: 300px;
        margin-top: 10px;
    }

    #books2 .flip-card-inner {
        transition: transform 0.6s;
    }

    #books2 .flip-card-front,
    #books2 .flip-card-back {
        border-radius: 8px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    #books2 .flip-card-front h4 {
        font-size: 18px;
    }

    #books2 .flip-card-front p,
    #books2 .flip-card-back p {
        font-size: 12px;
    }

    /* Spoiler */

    .cloud {
        padding: 30px;
        border-radius: 40px;
        max-width: 100%;
        width: 90%;
        margin: 0 auto;
        /* Centraliza a .cloud */
        display: block;
    }

    .cloud:before,
    .cloud:after {
        width: 50px;
        height: 50px;
    }

    #books2 .spoiler {
        padding: 15px;
        margin-top: 15px;
        text-align: center;
        /* Centraliza o conteúdo do spoiler */
    }

    #books2 .spoiler h4 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    #books2 .spoiler p {
        font-size: 14px;
    }

    #books2 .cta-link {
        font-size: 14px;
    }

}