.card-popup {
    position: fixed;
    top: 50%;
    left: 50%;
/*    transform: translate(-50%, -50%); */
    z-index: 9999;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

dialog.card::backdrop {
    background: rgba(0,0,0,0.5);
}

dialog.card {
    padding: 20px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    max-width: 800px;
}

dialog.card button {
    display: inline-block;
    padding: 5px 10px;
    font-size: medium;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    width: 100px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

dialog.card button:hover {
    box-shadow: none;
    transform: none;
    transition: none;
}

dialog.card .dialog-buttons {
    text-align: right;
}