document.write('<style>.zl-bibtex-dialog {    display: none;    position: fixed;    top: 50%;    left: 50%;    transform: translate(-50%, -50%);    background-color: #111;    padding: 20px;    border-radius: 8px;    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);    z-index: 1000;    width: 90%;    max-width: 600px;}.zl-bibtex-textarea {    border: 1px solid #ddd;    width: 100%;    height: 300px;    padding: 10px;    margin-bottom: 10px;    resize: none;    color: #ddd;    background-color: #111;    margin-top: 0;    font-family: monospace;}.zl-button {    padding: 8px 12px;    border: none;    border-radius: 4px;    cursor: pointer;    margin-right: 10px;}.zl-button-green {    background-color: green;    color: white;}.zl-links {    cursor: pointer;    color: #cd4d16;    text-decoration: none;    transition: all 0.3s ease;    margin-right: 30px;}.zl-links:hover {    color: #b43218;}.zl-button-red {    background-color: red;    color: white;}</style>');
document.write('<div id=\'bibtex_dialog\' class=\'zl-bibtex-dialog\'></div>');

function openBibtex(bibtex) {
    document.getElementById('bibtex_dialog').style.display = 'block';
    document.getElementById('bibtex_dialog').innerHTML = "<textarea id='bibtexcode' class='zl-bibtex-textarea'>" + bibtex + "</textarea>";
    document.getElementById('bibtex_dialog').innerHTML += "<button class='zl-button zl-button-green' onclick='copyToClipboard()'>Copy</button>";
    document.getElementById('bibtex_dialog').innerHTML += "<button class='zl-button zl-button-red' onclick='document.getElementById(\"bibtex_dialog\").style.display = \"none\"'>Close</button>";
}

function copyToClipboard() {
//get bibtex code of textarea and copy
var textArea = document.getElementById('bibtexcode');
textArea.select();
document.execCommand('copy');

}document.write('No entries found for this topic.');
