/* Estilos para o PopUp */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fundo escuro para destacar o PopUp */
    display: none; /* Inicialmente oculto */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Garante que fique acima de outros elementos */
    transition: opacity 0.3s ease;
    opacity: 0;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    position: relative;
    width: 90%; /* Largura padrão */
    height: 90%; /* Altura padrão */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Garante que o iframe não ultrapasse o conteúdo */
}

/* Botão de Fechar */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #ff4444; /* Cor de destaque para fechar */
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000; /* Acima do iframe */
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.close-popup:hover {
    background: #cc0000;
    transform: rotate(90deg);
}

/* Iframe para a demonstração */
.demo-iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex-grow: 1;
}

/* Responsividade */
@media (max-width: 768px) {
    .popup-content {
        width: 98%;
        height: 98%;
        border-radius: 0;
    }

    .close-popup {
        top: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 18px;
    }
}


