
css
/* Reset básico e estilos gerais */
/*body {
    font-family: sans-serif; line-height: 1.6;
    background-color: #f4f4f4; padding: 20px;
}*/

.btnalinkmodulmodal {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-abrir:hover {
    background-color: #0056b3;
}

/* Estilos do Modal */
.modal-container {
    /* Esconde o modal por padrão */
    visibility: hidden;
    opacity: 0;
    /* Efeito de transição suave */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Quando o link âncora é clicado (via :target), o modal aparece */
.modal-container:target {
    visibility: visible;
    opacity: 1;
}

.modal-dialog {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px; /* Largura máxima em telas grandes (PCs, TVs) */
    width: 90vw; /* Responsivo: 90% da largura da viewport (celulares, tablets) */
    max-height: 90vh; /* Altura máxima para evitar estouro em telas pequenas */
    overflow-y: auto; /* Adiciona scroll se o conteúdo for muito grande */
    /* Animação de entrada */
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-container:target .modal-dialog {
    transform: scale(1);
}

.modal-content {
    /* Apenas para organização interna */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #079;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.modal-body {
    padding: 20px 0;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
    text-align: right;
}

.close {
    font-size: 2rem;
    text-decoration: none;
    color: #333;
    line-height: 1;
}

.btn-fechar {
    display: inline-block;
    padding: 8px 16px;
    background-color: #dc3545;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-fechar:hover {
    background-color: #c82333;
}