/* MODAL: fundo escuro e centralizado */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

/* ÁREA BRANCA DO MODAL */
.modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    max-width: 1100px;    /* Aumentado */
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    padding: 35px 45px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* BOTÃO "X" FIXO DENTRO DO MODAL */
.close-button {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 55px;
    font-weight: bold;
    cursor: pointer;
    color: #800040;
    z-index: 20;
    line-height: 0.8;
    user-select: none;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #b00060;
}

/* CONTEÚDO ORGANIZADO EM DUAS COLUNAS */
.modal-body-flex {
    display: flex;
    flex-wrap: nowrap;
    gap: 45px;
    margin-top: 30px;
}

/* ÁREA DA IMAGEM — MAIOR E BONITA */
.modal-image-container {
    flex: 0 0 55%;       /* Aumentado */
    background: #12141a;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 80vh;   /* Imagem maior */
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(0,0,0,0.35);
}

/* ÁREA DO TEXTO */
.modal-text {
    flex: 1;
    font-size: 1.25rem;     /* Texto maior */
    color: #222;
    line-height: 1.7;
    overflow-wrap: break-word;
}

.modal-text h3 {
    color: #800040;
    margin-bottom: 20px;
    font-size: 2.4rem;      /* Título maior */
    font-weight: 700;
}

/* LISTAS */
.modal-text ul {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.modal-text ul li {
    margin-bottom: 12px;
    font-weight: 700;
    text-align: justify;
}

.modal-text p {
    font-weight: 700;
    text-align: justify;
    margin-top: 12px;
}

/* SCROLL INTERNO DO TEXTO */
.modal-text::-webkit-scrollbar {
    width: 6px;
}
.modal-text::-webkit-scrollbar-thumb {
    background-color: #800040cc;
    border-radius: 3px;
}

/* RESPONSIVIDADE */

/* Telas menores (até 900px) */
@media (max-width: 900px) {
    .modal-body-flex {
        flex-direction: column;
        gap: 25px;
    }

    .modal-image-container {
        width: 100%;
        flex: none;
    }

    .modal-image-container img {
        max-height: 60vh;
    }

    .close-button {
        font-size: 48px;
        top: 12px;
        right: 15px;
    }

    .modal-text {
        font-size: 1.15rem;
    }
}

/* Celulares pequenos */
@media (max-width: 480px) {

    .modal-content {
        padding: 25px 25px 35px 25px;
    }

    .close-button {
        font-size: 45px;
        top: 10px;
        right: 12px;
    }

    .modal-text h3 {
        font-size: 1.9rem;
    }

    .modal-text {
        font-size: 1.05rem;
    }
}
